From 719d9b500e5f1521f3ea56081bd8e7ad0ee63f83 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 17 Nov 2023 16:18:16 +0000 Subject: [PATCH] auto-organize --- .domino/compiled_metadata.json | 1378 ++++++++++++++++---------------- .domino/dependencies_map.json | 18 +- 2 files changed, 698 insertions(+), 698 deletions(-) diff --git a/.domino/compiled_metadata.json b/.domino/compiled_metadata.json index 3a00e1a..801b7cf 100644 --- a/.domino/compiled_metadata.json +++ b/.domino/compiled_metadata.json @@ -1,86 +1,185 @@ { - "DataConversionPiece": { - "name": "DataConversionPiece", + "SleepPiece": { + "name": "SleepPiece", "dependency": { "dockerfile": null, "requirements_file": "requirements_0.txt" }, "tags": [ - "data", - "conversion", - "default" + "default", + "sleep" ], "style": { - "node_label": "Data Conversion Piece", + "node_label": "Sleep", "node_type": "default", "node_style": { "backgroundColor": "#b3cde8" }, "useIcon": true, - "icon_class_name": "icon-park-outline:file-conversion", + "icon_class_name": "fa-solid:hourglass-start", "iconStyle": { "cursor": "pointer" } }, - "description": "Convert data from one format to another", + "description": "A Piece that sleeps for a given number of seconds.", + "input_schema": { + "description": "Sleep Piece Input Model", + "properties": { + "sleep_time": { + "default": 1, + "description": "Number of seconds to sleep", + "title": "Sleep Time", + "type": "number" + } + }, + "title": "InputModel", + "type": "object" + }, + "output_schema": { + "description": "Sleep Piece Output Model", + "properties": { + "message": { + "description": "Sleep piece executed", + "title": "Message", + "type": "string" + } + }, + "required": [ + "message" + ], + "title": "OutputModel", + "type": "object" + }, + "secrets_schema": null, + "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/SleepPiece" + }, + "LoremIpsumGeneratorPiece": { + "name": "LoremIpsumGeneratorPiece", + "dependency": { + "dockerfile": null, + "requirements_file": "requirements_0.txt" + }, + "tags": [ + "default", + "text" + ], + "style": { + "node_label": "Lorem Ipsum Generator", + "node_type": "default", + "node_style": { + "backgroundColor": "#b3cde8" + }, + "useIcon": true, + "icon_class_name": "carbon:character-sentence-case", + "iconStyle": { + "cursor": "pointer" + } + }, + "description": "A Piece that generates Lorem Ipsum text.", "input_schema": { "$defs": { - "DataFormatOption": { + "ItemsType": { "enum": [ - "csv", - "json" + "words", + "sentences", + "paragraphs" ], - "title": "DataFormatOption", + "title": "ItemsType", "type": "string" } }, + "description": "LoremIpsumGeneratorPiece Input Model", "properties": { - "input_data": { - "description": "Input data to be converted. Can be a file path or data as string.", - "title": "Input Data", - "type": "string" - }, - "input_data_format": { + "items": { "allOf": [ { - "$ref": "#/$defs/DataFormatOption" + "$ref": "#/$defs/ItemsType" } ], - "default": "csv", - "description": "Input data format to be converted." + "default": "words", + "description": "Type of items to generate." }, - "output_data_format": { - "allOf": [ - { - "$ref": "#/$defs/DataFormatOption" - } - ], - "default": "json", - "description": "Output data format." + "number_of_items": { + "default": 1, + "description": "Number of items to generate.", + "title": "Number Of Items", + "type": "integer" + } + }, + "title": "InputModel", + "type": "object" + }, + "output_schema": { + "description": "LoremIpsumGeneratorPiece Output Model", + "properties": { + "output_text": { + "description": "Generated text.", + "title": "Output Text", + "type": "string" } }, "required": [ - "input_data" + "output_text" + ], + "title": "OutputModel", + "type": "object" + }, + "secrets_schema": null, + "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/LoremIpsumGeneratorPiece" + }, + "SaveImagePiece": { + "name": "SaveImagePiece", + "dependency": { + "dockerfile": null, + "requirements_file": "requirements_0.txt" + }, + "tags": [ + "default", + "image" + ], + "style": { + "node_label": "Save Image", + "node_type": "default", + "node_style": { + "backgroundColor": "#b3cde8" + }, + "useIcon": true, + "icon_class_name": "material-symbols:image-outline", + "iconStyle": { + "cursor": "pointer" + } + }, + "description": "Save base64 as image file to results folder.", + "input_schema": { + "properties": { + "base64_data": { + "description": "Input data to be saved as image.", + "title": "Base64 Data", + "type": "string" + } + }, + "required": [ + "base64_data" ], "title": "InputModel", "type": "object" }, "output_schema": { "properties": { - "output_file_path": { - "description": "Path to the converted file.", - "title": "Output File Path", + "output_image_path": { + "description": "Output file path of the saved image.", + "title": "Output Image Path", "type": "string" } }, "required": [ - "output_file_path" + "output_image_path" ], "title": "OutputModel", "type": "object" }, "secrets_schema": null, - "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/DataConversionPiece" + "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/SaveImagePiece" }, "GetDateTimePiece": { "name": "GetDateTimePiece", @@ -194,416 +293,93 @@ "secrets_schema": null, "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/GetDateTimePiece" }, - "PageScrapperPiece": { - "name": "PageScrapperPiece", + "CustomPythonPiece": { + "name": "CustomPythonPiece", "dependency": { "dockerfile": null, "requirements_file": "requirements_0.txt" }, "tags": [ "default", - "scrapper" + "python" ], "style": { - "node_label": "Page Scrapper", + "node_label": "Custom Python", "node_type": "default", "node_style": { "backgroundColor": "#b3cde8" }, "useIcon": true, - "icon_class_name": "lucide:text-selection", + "icon_class_name": "fa-brands:python", "iconStyle": { "cursor": "pointer" } }, - "description": "Scrapes text from a web page, given a URL and a list of HTML tags.", + "description": "Executes user-defined Python code.", "input_schema": { "$defs": { - "ItemType": { + "InputKwargsModel": { "properties": { - "tag": { - "default": "p", - "description": "HTML tag name.", - "title": "Tag", + "kwarg_name": { + "default": null, + "description": "Argument name.", + "from_upstream": "never", + "title": "Kwarg Name", "type": "string" }, - "class_name": { - "default": "", - "description": "HTML tag class name.", - "title": "Class Name", - "type": "string" + "kwarg_value": { + "anyOf": [ + { + "type": "string" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "integer" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "object" + }, + { + "format": "date", + "type": "string" + }, + { + "format": "time", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } + ], + "default": null, + "description": "Argument value.", + "from_upstream": "always", + "title": "Kwarg Value" } }, - "title": "ItemType", + "title": "InputKwargsModel", "type": "object" - } - }, - "description": "PageScrapperPiece Input Model", - "properties": { - "url": { - "default": "", - "description": "URL to retrieve content from.", - "title": "Url", - "type": "string" - }, - "search_items": { - "default": [ - { - "class_name": "", - "tag": "p" - } - ], - "description": "List of HTML tags and class names to search for.", - "items": { - "$ref": "#/$defs/ItemType" - }, - "title": "Search Items", - "type": "array" - } - }, - "title": "InputModel", - "type": "object" - }, - "output_schema": { - "description": "PageScrapperPiece Output Model", - "properties": { - "scrapped_text": { - "description": "Scrapped text from the URL.", - "title": "Scrapped Text", - "type": "string" - } - }, - "required": [ - "scrapped_text" - ], - "title": "OutputModel", - "type": "object" - }, - "secrets_schema": null, - "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/PageScrapperPiece" - }, - "LogPiece": { - "name": "LogPiece", - "dependency": { - "dockerfile": null, - "requirements_file": "requirements_0.txt" - }, - "tags": [ - "default", - "log" - ], - "style": { - "node_label": "Log", - "node_type": "default", - "node_style": { - "backgroundColor": "#b3cde8" - }, - "useIcon": true, - "icon_class_name": "fa-solid:file-alt", - "iconStyle": { - "cursor": "pointer" - } - }, - "description": "A Piece that logs its inputs.", - "input_schema": { - "$defs": { - "InputEnum": { - "enum": [ - "option1", - "option2", - "option3" - ], - "title": "InputEnum", - "type": "string" - } - }, - "description": "LogPiece Input Model", - "properties": { - "input_str": { - "default": "default value", - "description": "Input string to be logged.", - "title": "Input Str", - "type": "string" - }, - "input_int": { - "default": 10, - "description": "Input integer to be logged.", - "title": "Input Int", - "type": "integer" - }, - "input_float": { - "default": 10.5, - "description": "Input float to be logged.", - "title": "Input Float", - "type": "number" - }, - "input_bool": { - "default": false, - "description": "Input boolean to be logged.", - "title": "Input Bool", - "type": "boolean" - }, - "input_enum": { - "allOf": [ - { - "$ref": "#/$defs/InputEnum" - } - ], - "default": "option1", - "description": "Input enum to be logged." - }, - "input_date": { - "default": "2023-01-01", - "description": "Input date to be logged.", - "format": "date", - "title": "Input Date", - "type": "string" - }, - "input_time": { - "default": "16:20:00", - "description": "Input time to be logged.", - "format": "time", - "title": "Input Time", - "type": "string" - }, - "input_datetime": { - "default": "2023-01-01T16:20:00", - "description": "Input datetime to be logged.", - "format": "date-time", - "title": "Input Datetime", - "type": "string" - }, - "input_array": { - "default": [ - "default_1", - "default_2", - "default_3" - ], - "description": "Input array to be logged.", - "items": { - "type": "string" - }, - "title": "Input Array", - "type": "array" - }, - "input_code": { - "default": "print('Hello world!')", - "description": "Input code to be logged.", - "title": "Input Code", - "type": "string", - "widget": "codeeditor" - } - }, - "title": "InputModel", - "type": "object" - }, - "output_schema": { - "description": "LogPiece Output Model", - "properties": { - "output_log": { - "description": "All values logged.", - "title": "Output Log", - "type": "string" - }, - "output_str": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Output string logged.", - "title": "Output Str" - }, - "output_int": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "description": "Output integer logged.", - "title": "Output Int" - }, - "output_float": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "description": "Output float logged.", - "title": "Output Float" - }, - "output_bool": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "description": "Output boolean logged.", - "title": "Output Bool" - }, - "output_enum": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Output enum logged.", - "title": "Output Enum" - }, - "output_date": { - "description": "Output date logged.", - "format": "date", - "title": "Output Date", - "type": "string" - }, - "output_time": { - "description": "Output time logged.", - "format": "time", - "title": "Output Time", - "type": "string" - }, - "output_datetime": { - "description": "Output datetime logged.", - "format": "date-time", - "title": "Output Datetime", - "type": "string" - }, - "output_array": { - "description": "Output array logged.", - "items": { - "type": "string" - }, - "title": "Output Array", - "type": "array" - }, - "output_code": { - "description": "Output code logged.", - "title": "Output Code", - "type": "string", - "widget": "codeeditor" - } - }, - "required": [ - "output_log", - "output_str", - "output_int", - "output_float", - "output_bool", - "output_enum", - "output_date", - "output_time", - "output_datetime", - "output_array", - "output_code" - ], - "title": "OutputModel", - "type": "object" - }, - "secrets_schema": null, - "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/LogPiece" - }, - "CustomPythonPiece": { - "name": "CustomPythonPiece", - "dependency": { - "dockerfile": null, - "requirements_file": "requirements_0.txt" - }, - "tags": [ - "default", - "python" - ], - "style": { - "node_label": "Custom Python", - "node_type": "default", - "node_style": { - "backgroundColor": "#b3cde8" - }, - "useIcon": true, - "icon_class_name": "fa-brands:python", - "iconStyle": { - "cursor": "pointer" - } - }, - "description": "Executes user-defined Python code.", - "input_schema": { - "$defs": { - "InputKwargsModel": { - "properties": { - "kwarg_name": { - "default": null, - "description": "Argument name.", - "from_upstream": "never", - "title": "Kwarg Name", - "type": "string" - }, - "kwarg_value": { - "anyOf": [ - { - "type": "string" - }, - { - "items": {}, - "type": "array" - }, - { - "type": "integer" - }, - { - "type": "number" - }, - { - "type": "boolean" - }, - { - "type": "object" - }, - { - "format": "date", - "type": "string" - }, - { - "format": "time", - "type": "string" - }, - { - "format": "date-time", - "type": "string" - } - ], - "default": null, - "description": "Argument value.", - "from_upstream": "always", - "title": "Kwarg Value" - } - }, - "title": "InputKwargsModel", - "type": "object" - }, - "OutputModifierItemType": { - "description": "OutputArgsType Enum", - "enum": [ - "string", - "integer", - "float", - "boolean", - "array" - ], - "title": "OutputModifierItemType", + }, + "OutputModifierItemType": { + "description": "OutputArgsType Enum", + "enum": [ + "string", + "integer", + "float", + "boolean", + "array" + ], + "title": "OutputModifierItemType", "type": "string" }, "OutputModifierModel": { @@ -703,33 +479,78 @@ "secrets_schema": null, "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/CustomPythonPiece" }, - "ToStringPiece": { - "name": "ToStringPiece", + "GetItemFromArrayPiece": { + "name": "GetItemFromArrayPiece", "dependency": { "dockerfile": null, "requirements_file": "requirements_0.txt" }, "tags": [ "default", - "string" + "array" ], "style": { - "node_label": "To String", + "node_label": "Get Item From Array", "node_type": "default", "node_style": { "backgroundColor": "#b3cde8" }, "useIcon": true, - "icon_class_name": "solar:text-bold", + "icon_class_name": "fluent:tray-item-remove-24-filled", "iconStyle": { "cursor": "pointer" } }, - "description": "A Piece that transforms any input to string.", + "description": "Get one item from an input array.", "input_schema": { - "description": "ToStringPiece Input Model", + "$defs": { + "IndexType": { + "enum": [ + "first", + "last", + "random", + "another" + ], + "title": "IndexType", + "type": "string" + } + }, + "description": "GetItemFromArrayPiece Input Model", "properties": { - "input_value": { + "input_array": { + "description": "Input array to get item from.", + "from_upstream": "always", + "items": {}, + "title": "Input Array", + "type": "array" + }, + "index": { + "allOf": [ + { + "$ref": "#/$defs/IndexType" + } + ], + "default": "first", + "description": "Index of item to get from input array." + }, + "another_index": { + "default": 1, + "description": "Index number of item to get from input array.", + "minimum": 1, + "title": "Another Index", + "type": "integer" + } + }, + "required": [ + "input_array" + ], + "title": "InputModel", + "type": "object" + }, + "output_schema": { + "description": "GetItemFromArrayPiece Output Model", + "properties": { + "output_value": { "anyOf": [ { "type": "string" @@ -763,24 +584,8 @@ "type": "string" } ], - "description": "Input value to be turned into string.", - "from_upstream": "always", - "title": "Input Value" - } - }, - "required": [ - "input_value" - ], - "title": "InputModel", - "type": "object" - }, - "output_schema": { - "description": "ToStringPiece Output Model", - "properties": { - "output_value": { - "description": "Input value as a string.", - "title": "Output Value", - "type": "string" + "description": "Item from input array at specified index.", + "title": "Output Value" } }, "required": [ @@ -790,255 +595,179 @@ "type": "object" }, "secrets_schema": null, - "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/ToStringPiece" + "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/GetItemFromArrayPiece" }, - "ImageFilterPiece": { - "name": "ImageFilterPiece", + "DataConversionPiece": { + "name": "DataConversionPiece", "dependency": { "dockerfile": null, "requirements_file": "requirements_0.txt" }, "tags": [ - "default", - "image" + "data", + "conversion", + "default" ], "style": { - "node_label": "Image Filter", + "node_label": "Data Conversion Piece", "node_type": "default", "node_style": { "backgroundColor": "#b3cde8" }, "useIcon": true, - "icon_class_name": "ic:twotone-filter", + "icon_class_name": "icon-park-outline:file-conversion", "iconStyle": { "cursor": "pointer" } }, - "description": "A Piece that applies selected image filters to an image.", + "description": "Convert data from one format to another", "input_schema": { "$defs": { - "OutputTypeType": { - "description": "Output type for the result text", + "DataFormatOption": { "enum": [ - "file", - "base64_string", - "both" + "csv", + "json" ], - "title": "OutputTypeType", + "title": "DataFormatOption", "type": "string" } }, "properties": { - "input_image": { - "description": "Input image. It should be either a path to a file, or a base64 encoded string.", - "from_upstream": "always", - "title": "Input Image", + "input_data": { + "description": "Input data to be converted. Can be a file path or data as string.", + "title": "Input Data", "type": "string" }, - "sepia": { - "default": false, - "description": "Apply sepia effect.", - "title": "Sepia", - "type": "boolean" - }, - "black_and_white": { - "default": false, - "description": "Apply black and white effect.", - "title": "Black And White", - "type": "boolean" - }, - "brightness": { - "default": false, - "description": "Apply brightness effect.", - "title": "Brightness", - "type": "boolean" - }, - "darkness": { - "default": false, - "description": "Apply darkness effect.", - "title": "Darkness", - "type": "boolean" - }, - "contrast": { - "default": false, - "description": "Apply contrast effect.", - "title": "Contrast", - "type": "boolean" - }, - "red": { - "default": false, - "description": "Apply red effect.", - "title": "Red", - "type": "boolean" - }, - "green": { - "default": false, - "description": "Apply green effect.", - "title": "Green", - "type": "boolean" - }, - "blue": { - "default": false, - "description": "Apply blue effect.", - "title": "Blue", - "type": "boolean" - }, - "cool": { - "default": false, - "description": "Apply cool effect.", - "title": "Cool", - "type": "boolean" - }, - "warm": { - "default": false, - "description": "Apply warm effect.", - "title": "Warm", - "type": "boolean" + "input_data_format": { + "allOf": [ + { + "$ref": "#/$defs/DataFormatOption" + } + ], + "default": "csv", + "description": "Input data format to be converted." }, - "output_type": { + "output_data_format": { "allOf": [ { - "$ref": "#/$defs/OutputTypeType" + "$ref": "#/$defs/DataFormatOption" } ], - "default": "both", - "description": "Format of the output image. Options are: `file`, `base64_string`, `both`." + "default": "json", + "description": "Output data format." } }, "required": [ - "input_image" + "input_data" ], "title": "InputModel", "type": "object" }, "output_schema": { "properties": { - "image_base64_string": { - "default": "", - "description": "Base64 encoded string of the output image.", - "title": "Image Base64 String", - "type": "string" - }, - "image_file_path": { - "default": "", - "description": "Path to the output image file.", - "title": "Image File Path", - "type": "string" - } - }, - "title": "OutputModel", - "type": "object" - }, - "secrets_schema": null, - "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/ImageFilterPiece" - }, - "SleepPiece": { - "name": "SleepPiece", - "dependency": { - "dockerfile": null, - "requirements_file": "requirements_0.txt" - }, - "tags": [ - "default", - "sleep" - ], - "style": { - "node_label": "Sleep", - "node_type": "default", - "node_style": { - "backgroundColor": "#b3cde8" - }, - "useIcon": true, - "icon_class_name": "fa-solid:hourglass-start", - "iconStyle": { - "cursor": "pointer" - } - }, - "description": "A Piece that sleeps for a given number of seconds.", - "input_schema": { - "description": "Sleep Piece Input Model", - "properties": { - "sleep_time": { - "default": 1, - "description": "Number of seconds to sleep", - "title": "Sleep Time", - "type": "number" - } - }, - "title": "InputModel", - "type": "object" - }, - "output_schema": { - "description": "Sleep Piece Output Model", - "properties": { - "message": { - "description": "Sleep piece executed", - "title": "Message", + "output_file_path": { + "description": "Path to the converted file.", + "title": "Output File Path", "type": "string" } }, "required": [ - "message" + "output_file_path" ], "title": "OutputModel", "type": "object" }, "secrets_schema": null, - "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/SleepPiece" + "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/DataConversionPiece" }, - "SaveImagePiece": { - "name": "SaveImagePiece", + "ToStringPiece": { + "name": "ToStringPiece", "dependency": { "dockerfile": null, "requirements_file": "requirements_0.txt" }, "tags": [ "default", - "image" + "string" ], "style": { - "node_label": "Save Image", + "node_label": "To String", "node_type": "default", "node_style": { "backgroundColor": "#b3cde8" }, "useIcon": true, - "icon_class_name": "material-symbols:image-outline", + "icon_class_name": "solar:text-bold", "iconStyle": { "cursor": "pointer" } }, - "description": "Save base64 as image file to results folder.", + "description": "A Piece that transforms any input to string.", "input_schema": { + "description": "ToStringPiece Input Model", "properties": { - "base64_data": { - "description": "Input data to be saved as image.", - "title": "Base64 Data", - "type": "string" + "input_value": { + "anyOf": [ + { + "type": "string" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "integer" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "object" + }, + { + "format": "date", + "type": "string" + }, + { + "format": "time", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } + ], + "description": "Input value to be turned into string.", + "from_upstream": "always", + "title": "Input Value" } }, "required": [ - "base64_data" + "input_value" ], "title": "InputModel", "type": "object" }, "output_schema": { + "description": "ToStringPiece Output Model", "properties": { - "output_image_path": { - "description": "Output file path of the saved image.", - "title": "Output Image Path", + "output_value": { + "description": "Input value as a string.", + "title": "Output Value", "type": "string" } }, "required": [ - "output_image_path" + "output_value" ], "title": "OutputModel", "type": "object" }, "secrets_schema": null, - "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/SaveImagePiece" + "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/ToStringPiece" }, "HttpRequestPiece": { "name": "HttpRequestPiece", @@ -1129,196 +858,467 @@ "secrets_schema": null, "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/HttpRequestPiece" }, - "GetItemFromArrayPiece": { - "name": "GetItemFromArrayPiece", + "PageScrapperPiece": { + "name": "PageScrapperPiece", "dependency": { "dockerfile": null, "requirements_file": "requirements_0.txt" }, "tags": [ "default", - "array" + "scrapper" ], "style": { - "node_label": "Get Item From Array", + "node_label": "Page Scrapper", "node_type": "default", "node_style": { "backgroundColor": "#b3cde8" }, "useIcon": true, - "icon_class_name": "fluent:tray-item-remove-24-filled", + "icon_class_name": "lucide:text-selection", "iconStyle": { "cursor": "pointer" } }, - "description": "Get one item from an input array.", + "description": "Scrapes text from a web page, given a URL and a list of HTML tags.", "input_schema": { "$defs": { - "IndexType": { + "ItemType": { + "properties": { + "tag": { + "default": "p", + "description": "HTML tag name.", + "title": "Tag", + "type": "string" + }, + "class_name": { + "default": "", + "description": "HTML tag class name.", + "title": "Class Name", + "type": "string" + } + }, + "title": "ItemType", + "type": "object" + } + }, + "description": "PageScrapperPiece Input Model", + "properties": { + "url": { + "default": "", + "description": "URL to retrieve content from.", + "title": "Url", + "type": "string" + }, + "search_items": { + "default": [ + { + "class_name": "", + "tag": "p" + } + ], + "description": "List of HTML tags and class names to search for.", + "items": { + "$ref": "#/$defs/ItemType" + }, + "title": "Search Items", + "type": "array" + } + }, + "title": "InputModel", + "type": "object" + }, + "output_schema": { + "description": "PageScrapperPiece Output Model", + "properties": { + "scrapped_text": { + "description": "Scrapped text from the URL.", + "title": "Scrapped Text", + "type": "string" + } + }, + "required": [ + "scrapped_text" + ], + "title": "OutputModel", + "type": "object" + }, + "secrets_schema": null, + "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/PageScrapperPiece" + }, + "LogPiece": { + "name": "LogPiece", + "dependency": { + "dockerfile": null, + "requirements_file": "requirements_0.txt" + }, + "tags": [ + "default", + "log" + ], + "style": { + "node_label": "Log", + "node_type": "default", + "node_style": { + "backgroundColor": "#b3cde8" + }, + "useIcon": true, + "icon_class_name": "fa-solid:file-alt", + "iconStyle": { + "cursor": "pointer" + } + }, + "description": "A Piece that logs its inputs.", + "input_schema": { + "$defs": { + "InputEnum": { "enum": [ - "first", - "last", - "random", - "another" + "option1", + "option2", + "option3" ], - "title": "IndexType", + "title": "InputEnum", "type": "string" } }, - "description": "GetItemFromArrayPiece Input Model", + "description": "LogPiece Input Model", "properties": { + "input_str": { + "default": "default value", + "description": "Input string to be logged.", + "title": "Input Str", + "type": "string" + }, + "input_int": { + "default": 10, + "description": "Input integer to be logged.", + "title": "Input Int", + "type": "integer" + }, + "input_float": { + "default": 10.5, + "description": "Input float to be logged.", + "title": "Input Float", + "type": "number" + }, + "input_bool": { + "default": false, + "description": "Input boolean to be logged.", + "title": "Input Bool", + "type": "boolean" + }, + "input_enum": { + "allOf": [ + { + "$ref": "#/$defs/InputEnum" + } + ], + "default": "option1", + "description": "Input enum to be logged." + }, + "input_date": { + "default": "2023-01-01", + "description": "Input date to be logged.", + "format": "date", + "title": "Input Date", + "type": "string" + }, + "input_time": { + "default": "16:20:00", + "description": "Input time to be logged.", + "format": "time", + "title": "Input Time", + "type": "string" + }, + "input_datetime": { + "default": "2023-01-01T16:20:00", + "description": "Input datetime to be logged.", + "format": "date-time", + "title": "Input Datetime", + "type": "string" + }, "input_array": { - "description": "Input array to get item from.", - "from_upstream": "always", - "items": {}, + "default": [ + "default_1", + "default_2", + "default_3" + ], + "description": "Input array to be logged.", + "items": { + "type": "string" + }, "title": "Input Array", "type": "array" }, - "index": { - "allOf": [ - { - "$ref": "#/$defs/IndexType" - } - ], - "default": "first", - "description": "Index of item to get from input array." - }, - "another_index": { - "default": 1, - "description": "Index number of item to get from input array.", - "minimum": 1, - "title": "Another Index", - "type": "integer" + "input_code": { + "default": "print('Hello world!')", + "description": "Input code to be logged.", + "title": "Input Code", + "type": "string", + "widget": "codeeditor" } }, - "required": [ - "input_array" - ], "title": "InputModel", "type": "object" }, "output_schema": { - "description": "GetItemFromArrayPiece Output Model", + "description": "LogPiece Output Model", "properties": { - "output_value": { + "output_log": { + "description": "All values logged.", + "title": "Output Log", + "type": "string" + }, + "output_str": { "anyOf": [ { "type": "string" }, { - "items": {}, - "type": "array" - }, + "type": "null" + } + ], + "description": "Output string logged.", + "title": "Output Str" + }, + "output_int": { + "anyOf": [ { "type": "integer" }, + { + "type": "null" + } + ], + "description": "Output integer logged.", + "title": "Output Int" + }, + "output_float": { + "anyOf": [ { "type": "number" }, { - "type": "boolean" - }, + "type": "null" + } + ], + "description": "Output float logged.", + "title": "Output Float" + }, + "output_bool": { + "anyOf": [ { - "type": "object" + "type": "boolean" }, { - "format": "date", - "type": "string" - }, + "type": "null" + } + ], + "description": "Output boolean logged.", + "title": "Output Bool" + }, + "output_enum": { + "anyOf": [ { - "format": "time", "type": "string" }, { - "format": "date-time", - "type": "string" + "type": "null" } ], - "description": "Item from input array at specified index.", - "title": "Output Value" + "description": "Output enum logged.", + "title": "Output Enum" + }, + "output_date": { + "description": "Output date logged.", + "format": "date", + "title": "Output Date", + "type": "string" + }, + "output_time": { + "description": "Output time logged.", + "format": "time", + "title": "Output Time", + "type": "string" + }, + "output_datetime": { + "description": "Output datetime logged.", + "format": "date-time", + "title": "Output Datetime", + "type": "string" + }, + "output_array": { + "description": "Output array logged.", + "items": { + "type": "string" + }, + "title": "Output Array", + "type": "array" + }, + "output_code": { + "description": "Output code logged.", + "title": "Output Code", + "type": "string", + "widget": "codeeditor" } }, "required": [ - "output_value" + "output_log", + "output_str", + "output_int", + "output_float", + "output_bool", + "output_enum", + "output_date", + "output_time", + "output_datetime", + "output_array", + "output_code" ], "title": "OutputModel", "type": "object" }, "secrets_schema": null, - "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/GetItemFromArrayPiece" + "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/LogPiece" }, - "LoremIpsumGeneratorPiece": { - "name": "LoremIpsumGeneratorPiece", + "ImageFilterPiece": { + "name": "ImageFilterPiece", "dependency": { "dockerfile": null, "requirements_file": "requirements_0.txt" }, "tags": [ "default", - "text" + "image" ], "style": { - "node_label": "Lorem Ipsum Generator", + "node_label": "Image Filter", "node_type": "default", "node_style": { "backgroundColor": "#b3cde8" }, "useIcon": true, - "icon_class_name": "carbon:character-sentence-case", + "icon_class_name": "ic:twotone-filter", "iconStyle": { "cursor": "pointer" } }, - "description": "A Piece that generates Lorem Ipsum text.", + "description": "A Piece that applies selected image filters to an image.", "input_schema": { "$defs": { - "ItemsType": { + "OutputTypeType": { + "description": "Output type for the result text", "enum": [ - "words", - "sentences", - "paragraphs" + "file", + "base64_string", + "both" ], - "title": "ItemsType", + "title": "OutputTypeType", "type": "string" } }, - "description": "LoremIpsumGeneratorPiece Input Model", "properties": { - "items": { + "input_image": { + "description": "Input image. It should be either a path to a file, or a base64 encoded string.", + "from_upstream": "always", + "title": "Input Image", + "type": "string" + }, + "sepia": { + "default": false, + "description": "Apply sepia effect.", + "title": "Sepia", + "type": "boolean" + }, + "black_and_white": { + "default": false, + "description": "Apply black and white effect.", + "title": "Black And White", + "type": "boolean" + }, + "brightness": { + "default": false, + "description": "Apply brightness effect.", + "title": "Brightness", + "type": "boolean" + }, + "darkness": { + "default": false, + "description": "Apply darkness effect.", + "title": "Darkness", + "type": "boolean" + }, + "contrast": { + "default": false, + "description": "Apply contrast effect.", + "title": "Contrast", + "type": "boolean" + }, + "red": { + "default": false, + "description": "Apply red effect.", + "title": "Red", + "type": "boolean" + }, + "green": { + "default": false, + "description": "Apply green effect.", + "title": "Green", + "type": "boolean" + }, + "blue": { + "default": false, + "description": "Apply blue effect.", + "title": "Blue", + "type": "boolean" + }, + "cool": { + "default": false, + "description": "Apply cool effect.", + "title": "Cool", + "type": "boolean" + }, + "warm": { + "default": false, + "description": "Apply warm effect.", + "title": "Warm", + "type": "boolean" + }, + "output_type": { "allOf": [ { - "$ref": "#/$defs/ItemsType" + "$ref": "#/$defs/OutputTypeType" } ], - "default": "words", - "description": "Type of items to generate." - }, - "number_of_items": { - "default": 1, - "description": "Number of items to generate.", - "title": "Number Of Items", - "type": "integer" + "default": "both", + "description": "Format of the output image. Options are: `file`, `base64_string`, `both`." } }, + "required": [ + "input_image" + ], "title": "InputModel", "type": "object" }, "output_schema": { - "description": "LoremIpsumGeneratorPiece Output Model", "properties": { - "output_text": { - "description": "Generated text.", - "title": "Output Text", + "image_base64_string": { + "default": "", + "description": "Base64 encoded string of the output image.", + "title": "Image Base64 String", + "type": "string" + }, + "image_file_path": { + "default": "", + "description": "Path to the output image file.", + "title": "Image File Path", "type": "string" } }, - "required": [ - "output_text" - ], "title": "OutputModel", "type": "object" }, "secrets_schema": null, - "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/LoremIpsumGeneratorPiece" + "source_url": "https://github.com/Tauffer-Consulting/default_domino_pieces/tree/main/pieces/ImageFilterPiece" } } \ No newline at end of file diff --git a/.domino/dependencies_map.json b/.domino/dependencies_map.json index c46b02f..7748a15 100644 --- a/.domino/dependencies_map.json +++ b/.domino/dependencies_map.json @@ -5,20 +5,20 @@ "requirements_file": "requirements_0.txt" }, "pieces": [ - "DataConversionPiece", + "SleepPiece", + "LoremIpsumGeneratorPiece", + "SaveImagePiece", "GetDateTimePiece", - "PageScrapperPiece", - "LogPiece", "CustomPythonPiece", + "GetItemFromArrayPiece", + "DataConversionPiece", "ToStringPiece", - "ImageFilterPiece", - "SleepPiece", - "SaveImagePiece", "HttpRequestPiece", - "GetItemFromArrayPiece", - "LoremIpsumGeneratorPiece" + "PageScrapperPiece", + "LogPiece", + "ImageFilterPiece" ], "secrets": [], - "source_image": "ghcr.io/tauffer-consulting/default_domino_pieces:0.7.0-group0" + "source_image": "ghcr.io/tauffer-consulting/default_domino_pieces:development-group0" } } \ No newline at end of file