From 4410e03a01b0c188708df78d1edd2b41aba62cf1 Mon Sep 17 00:00:00 2001 From: stsiek <83702313+stsiek@users.noreply.github.com> Date: Mon, 18 Dec 2023 16:38:56 +0100 Subject: [PATCH] Add docu actions (#3148) * Added new action * Added New Actions * New Actions: - Regular Expression - Convert JSON to Excel - Create Word file * Add description * .. * Converter by Power2Apps/apiDefinition.swagger.json new actions * Description correction * deprecated changes * - New Converter Actions by Power2Apps * - summery correction by Power2Apps * Converter by Power2Apps - spelling correction * Converter by Power2Apps - spelling correction * New Actions added * Added Actions to Readme.md * Add docu link to actions --------- Co-authored-by: Siek --- .../Converter by Power2Apps/Readme.md | 56 +- .../apiDefinition.swagger.json | 563 +++++++++++++++++- 2 files changed, 597 insertions(+), 22 deletions(-) diff --git a/certified-connectors/Converter by Power2Apps/Readme.md b/certified-connectors/Converter by Power2Apps/Readme.md index d4d97add96..e068450cfe 100644 --- a/certified-connectors/Converter by Power2Apps/Readme.md +++ b/certified-connectors/Converter by Power2Apps/Readme.md @@ -8,96 +8,148 @@ Convert your data easily from one format to another with Microsoft Power Automat ### Convert CSV to JSON Convert a CSV to a JSON +https://converter.power2apps.com/1000_fileConversions/1021_ConvertCsvToJson ### Convert JSON to CSV Convert a JSON to a CSV +https://converter.power2apps.com/1000_fileConversions/1011_ConvertJsonToCsv ### Convert XML to JSON Convert an XML to a JSON +https://converter.power2apps.com/1000_fileConversions/1051_ConvertXmlToJsonV2 ### Convert JSON to XML Convert a JSON to an XML +https://converter.power2apps.com/1000_fileConversions/1041_ConvertJsonToXmlV2 ### Convert CSV to Excel File Convert a CSV to an Excel file (XLSX) +https://converter.power2apps.com/1000_fileConversions/1031_ConvertCsvToExcel ### Convert JSON to Excel File Convert a JSON to an Excel file (XLSX) +https://converter.power2apps.com/1000_fileConversions/1061_ConvertJsonToExcelV2 ### Convert JSON to YAML Convert a JSON to a YAML +https://converter.power2apps.com/1000_fileConversions/1080_ConvertJsonToYaml ### Convert YAML to JSON Convert a YAML to a JSON +https://converter.power2apps.com/1000_fileConversions/1070_ConvertYamlToJson ### Convert HTML Table to JSON Convert an HTML table to a JSON or extract the first HTML table from an URL and convert it to a JSON +https://converter.power2apps.com/7000_html/7011_ConvertHtmlTableToJsonV2 ### Convert HTML or URL to JPG Image Convert an HTML to an JPG (JPEG) Image or convert an URL containing HTML to an JPG (JPEG) Image +https://converter.power2apps.com/7000_html/7030_ConvertHtmlToImage ### Convert HTML or URL to PDF Convert an HTML to a PDF or convert an URL containing HTML to a PDF +https://converter.power2apps.com/7000_html/7020_ConvertHtmlToPdf ### Convert File (DOCX, PPTX, XLSX, HTML, ...) to PDF Convert a document file (Word, Powerpoint, Excel, ..) to a PDF file +https://converter.power2apps.com/4000_pdf/4011_ConvertFileToPDFV2 ### Create Word File Create a Word file (DOCX) with multiple text sections or add multiple text sections to a Word file (DOCX) +https://converter.power2apps.com/5000_word/5010_CreateWordFile ### Add Image to Word File Add Image to a Word file (DOCX) or create a new Word file (DOCX) with image +https://converter.power2apps.com/5000_word/5030_AddImageToWord ### Add Image to Word File within a Table Add an image to a Word file (DOCX) within a table or create a new Word file (DOCX) with an image within a table +https://converter.power2apps.com/5000_word/5040_AddImageWithinTableToWord ### Add Table to Word File Add Table to a Word file (DOCX) or create a new Word file (DOCX) with a table +https://converter.power2apps.com/5000_word/5050_AddTableToWord ### Add Text to Word File Add a text to a Word file (DOCX) or create a new Word file (DOCX) with a text +https://converter.power2apps.com/5000_word/5060_AddTextToWord + +### Inset Text to Word File +Inset a text to a Word file (DOCX) +https://converter.power2apps.com/5000_word/5070_InsertTextToWord + +### Inset Image to Word File +Inset a image to a Word file (DOCX) +https://converter.power2apps.com/5000_word/5080_InsertImageToWord + +### Inset Table to Word File +Inset a table to a Word file (DOCX) +https://converter.power2apps.com/5000_word/5090_InsertTableToWord ### Extract Bookmarks from Word File Extract all bookmarks from a Word fie (DOCX) and get them as a list +https://converter.power2apps.com/5000_word/5020_ExtractBookmarksToList -### Extract results from Send HTTP request to SharePoint -Extract results from the action 'Send HTTP request to SharePoint' +### Extract results from Send HTTP request to SharePoint search +Extract results from the action 'Send HTTP request to SharePoint' search +https://converter.power2apps.com/6000_SharePoint/6010_ConvertSharePointSearchResults + +### Extract Information from IBAN +Get the bank account details like account number, bank name, bank address and SWIFT code from International Bank Account Number (IBAN) +https://converter.power2apps.com/2000_dataHandling/2020_IbanData ### Extract Information from PDF Get the metadata of a PDF +https://converter.power2apps.com/4000_pdf/4030_PDFMetaData ### Extract Information from Image Get the metadata information from an image (JPEG, JPG, PNG, BMP, GIF, TIFF, ...) +https://converter.power2apps.com/3000_imagesBarcodes/3070_ImageMetaData ### Convert Image to another Image Format Convert an image to another format (JPEG, JPG, PNG, BMP, GIF, TIFF) +https://converter.power2apps.com/3000_imagesBarcodes/3010_ConvertImage ### Resize Image Adjust the width and height of an image (JPEG, JPG, PNG, BMP, GIF, TIFF) +https://converter.power2apps.com/3000_imagesBarcodes/3020_ResizeImage ### Rotate Image Rotate an image (JPEG, JPG, PNG, BMP, GIF, TIFF) by an angle (degree) of your choice +https://converter.power2apps.com/3000_imagesBarcodes/3030_RotateImage ### Compress JPG Image Compress a JPG (JPEG) image +https://converter.power2apps.com/3000_imagesBarcodes/3040_CompressImage ### Merge PDF Files Merge two PDF files into one PDF file +https://converter.power2apps.com/4000_pdf/4020_MergePDFs ### Protect PDF Protect a PDF with a password +https://converter.power2apps.com/4000_pdf/4040_ProtectPDF ### Unprotect PDF Remove the protection from a pdf +https://converter.power2apps.com/4000_pdf/4050_UnprotectPDF ### Read QR or Barcode Read a QR code or Barcode from an image +https://converter.power2apps.com/3000_imagesBarcodes/3050_ReadQrOrBarcode ### Create QR or Barcode Create a QR code or a Barcode from a string +https://converter.power2apps.com/3000_imagesBarcodes/3060_CreateQrOrBarcode ### Get File from URL Get a file (PDF, JPG, JPEG, PNG, CSV, ...) from an URL +https://converter.power2apps.com/2000_dataHandling/2030_UrlToFile ### Regular Expression (RegEx) Searches the specified input string for all occurrences of a specified .NET regular expression (RegEx), using the specified matching options. +https://converter.power2apps.com/2000_dataHandling/2010_RegularExpression + +### Translate Text +Translate a word or sentence +https://converter.power2apps.com/2000_dataHandling/2040_Translate \ No newline at end of file diff --git a/certified-connectors/Converter by Power2Apps/apiDefinition.swagger.json b/certified-connectors/Converter by Power2Apps/apiDefinition.swagger.json index a8a40d216a..ede9c8b5bc 100644 --- a/certified-connectors/Converter by Power2Apps/apiDefinition.swagger.json +++ b/certified-connectors/Converter by Power2Apps/apiDefinition.swagger.json @@ -152,6 +152,45 @@ } } }, + "deprecated": true, + "x-ms-visibility": "important", + "summary": "Add Image to Word File within Table", + "description": "Add an image to a Word file (DOCX) within a table or create a new Word file (DOCX) with an image within a table" + } + }, + "/AddImageWithinTableToWordV2": { + "post": { + "tags": [ + "Converter" + ], + "operationId": "AddImageWithinTableToWordV2", + "consumes": [ + "application/json", + "text/json", + "application/*+json" + ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "parameters": [ + { + "in": "body", + "name": "wordImageWithinTable", + "schema": { + "$ref": "#/definitions/WordImageWithinTable" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/FileResponse" + } + } + }, "x-ms-visibility": "important", "summary": "Add Image to Word File within Table", "description": "Add an image to a Word file (DOCX) within a table or create a new Word file (DOCX) with an image within a table" @@ -233,6 +272,120 @@ "description": "Add a text to a Word file (DOCX) or create a new Word file (DOCX) with a text" } }, + "/InsertTextToWord": { + "post": { + "tags": [ + "Converter" + ], + "operationId": "InsertTextToWord", + "consumes": [ + "application/json", + "text/json", + "application/*+json" + ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "parameters": [ + { + "in": "body", + "name": "insertWordText", + "schema": { + "$ref": "#/definitions/InsertWordText" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/FileResponse" + } + } + }, + "x-ms-visibility": "important", + "summary": "Insert Text to Word File", + "description": "Insert a text to a Word file (DOCX)" + } + }, + "/InsertImageToWord": { + "post": { + "tags": [ + "Converter" + ], + "operationId": "InsertImageToWord", + "consumes": [ + "application/json", + "text/json", + "application/*+json" + ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "parameters": [ + { + "in": "body", + "name": "insertWordImage", + "schema": { + "$ref": "#/definitions/InsertWordImage" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/FileResponse" + } + } + }, + "x-ms-visibility": "important", + "summary": "Insert Image to Word File", + "description": "Insert Image to a Word file (DOCX)" + } + }, + "/InsertTableToWord": { + "post": { + "tags": [ + "Converter" + ], + "operationId": "InsertTableToWord", + "consumes": [ + "application/json", + "text/json", + "application/*+json" + ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "parameters": [ + { + "in": "body", + "name": "insertWordTable", + "schema": { + "$ref": "#/definitions/InsertWordTable" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/FileResponse" + } + } + }, + "x-ms-visibility": "important", + "summary": "Insert Table to Word File", + "description": "Insert Table to a Word file (DOCX)" + } + }, "/ExtractWordBookmarks": { "post": { "tags": [ @@ -710,7 +863,7 @@ }, "deprecated": true, "x-ms-visibility": "important", - "summary": "Convert file (DOCX, PPTX, XLSX, HTML, ...) to PDF (deprecated)", + "summary": "Convert file (DOCX, PPTX, XLSX, HTML, ...) to PDF", "description": "Convert a document (Word, Powerpoint, Excel, ..) to a PDF file" } }, @@ -735,15 +888,15 @@ "in": "header", "name": "fileName", "type": "string", - "x-ms-visibility": "important", - "x-ms-summary": "File Name", - "description": "File name" + "x-ms-visibility": "advanced", + "x-ms-summary": "Origin File Name", + "description": "Only used with 'Extract from origin file name'. E.g. 'MyFileName.docx'" }, { "in": "header", "name": "fileExtension", "type": "string", - "default": "Extract from File name", + "default": "HTML", "x-ms-dynamic-values": { "operationId": "GetFileExtensions", "value-path": "name", @@ -751,8 +904,8 @@ "parameters": {} }, "x-ms-visibility": "important", - "x-ms-summary": "File Extension", - "description": "File extension" + "x-ms-summary": "Origin File Extension", + "description": "Origin File extension" }, { "in": "body", @@ -999,7 +1152,7 @@ }, "deprecated": true, "x-ms-visibility": "important", - "summary": "Convert XML to JSON (deprecated)", + "summary": "Convert XML to JSON", "description": "Convert XML to JSON" } }, @@ -1085,7 +1238,7 @@ }, "deprecated": true, "x-ms-visibility": "important", - "summary": "Convert JSON to XML (deprecated)", + "summary": "Convert JSON to XML", "description": "Convert JSON to XML" } }, @@ -1171,7 +1324,7 @@ }, "deprecated": true, "x-ms-visibility": "important", - "summary": "Convert JSON to CSV (deprecated)", + "summary": "Convert JSON to CSV", "description": "Convert JSON to CSV" } }, @@ -1212,6 +1365,64 @@ } } }, + "deprecated": true, + "x-ms-visibility": "important", + "summary": "Convert JSON to CSV", + "description": "Convert a JSON to a CSV" + } + }, + "/ConvertJsonToCsvV2": { + "post": { + "tags": [ + "Converter" + ], + "operationId": "ConvertJsonToCsvV2", + "consumes": [ + "application/json", + "text/json", + "application/*+json" + ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "parameters": [ + { + "in": "header", + "name": "delimiter", + "type": "string", + "default": ";", + "x-ms-dynamic-values": { + "operationId": "GetSeparators", + "value-path": "name", + "value-title": "name", + "parameters": {} + }, + "x-ms-visibility": "advanced", + "x-ms-summary": "Separator", + "description": "Separator (delimiter) of the fields. Default = ';'" + }, + { + "in": "body", + "name": "jsonData", + "required": true, + "schema": { + "$ref": "#/definitions/JsonData" + }, + "x-ms-visibility": "important", + "x-ms-summary": "JSON", + "description": "JSON" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CsvResponse" + } + } + }, "x-ms-visibility": "important", "summary": "Convert JSON to CSV", "description": "Convert a JSON to a CSV" @@ -1341,7 +1552,7 @@ }, "deprecated": true, "x-ms-visibility": "important", - "summary": "Convert CSV data to JSON (deprecated)", + "summary": "Convert CSV data to JSON", "description": "Convert CSV data to JSON" } }, @@ -1540,7 +1751,7 @@ }, "deprecated": true, "x-ms-visibility": "important", - "summary": "Convert JSON to Excel file (deprecated)", + "summary": "Convert JSON to Excel file", "description": "Convert JSON to Excel file" } }, @@ -1635,7 +1846,7 @@ }, "deprecated": true, "x-ms-visibility": "important", - "summary": "Convert CSV data to Excel file (deprecated)", + "summary": "Convert CSV data to Excel file", "description": "Convert CSV data to Excel file" } }, @@ -1756,7 +1967,7 @@ }, "x-ms-visibility": "important", "summary": "Convert CSV to Excel File", - "description": "Convert a CSV to an Excel file (XLSX)" + "description": "Convert a CSV to a Excel file (XLSX)" } }, "/ConvertHTMLtableToJson": { @@ -1796,6 +2007,49 @@ } } }, + "deprecated": true, + "x-ms-visibility": "important", + "summary": "Convert HTML Table to JSON", + "description": "Convert an HTML table to a JSON or extract the first HTML table from an URL and convert it to a JSON" + } + }, + "/ConvertHTMLtableToJsonV2": { + "post": { + "tags": [ + "Converter" + ], + "operationId": "ConvertHTMLtableToJsonV2", + "consumes": [ + "application/json", + "text/json", + "application/*+json" + ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "parameters": [ + { + "in": "body", + "name": "htmlTableData", + "required": true, + "schema": { + "$ref": "#/definitions/HtmlTableData" + }, + "x-ms-visibility": "important", + "x-ms-summary": "HTML table", + "description": "HTML table" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/JsonTableResponse" + } + } + }, "x-ms-visibility": "important", "summary": "Convert HTML Table to JSON", "description": "Convert an HTML table to a JSON or extract the first HTML table from an URL and convert it to a JSON" @@ -1968,8 +2222,8 @@ } }, "x-ms-visibility": "important", - "summary": "Extract results from Send HTTP request to SharePoint", - "description": "Extract results from the action 'Send HTTP request to SharePoint'" + "summary": "Extract results from Send HTTP request to SharePoint search", + "description": "Extract results from the action 'Send HTTP request to SharePoint' search" } }, "/GetRegexOptions": { @@ -2231,6 +2485,105 @@ "summary": "Extract Information from IBAN", "description": "Get the bank account details like account number, bank name, bank address and SWIFT code from International Bank Account Number (IBAN)" } + }, + "/GetLanguages": { + "get": { + "tags": [ + "Converter" + ], + "operationId": "GetLanguages", + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ListOption" + } + } + } + }, + "x-ms-visibility": "internal", + "summary": "Get list of languages", + "description": "Returns language list" + } + }, + "/Translate": { + "post": { + "tags": [ + "Converter" + ], + "operationId": "Translate", + "consumes": [ + "application/json", + "text/json", + "application/*+json" + ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "parameters": [ + { + "in": "header", + "name": "from", + "required": true, + "type": "string", + "x-ms-dynamic-values": { + "operationId": "GetLanguages", + "value-path": "name", + "value-title": "name", + "parameters": {} + }, + "x-ms-visibility": "important", + "x-ms-summary": "From", + "description": "From" + }, + { + "in": "header", + "name": "to", + "required": true, + "type": "string", + "x-ms-dynamic-values": { + "operationId": "GetLanguages", + "value-path": "name", + "value-title": "name", + "parameters": {} + }, + "x-ms-visibility": "important", + "x-ms-summary": "To", + "description": "To" + }, + { + "in": "body", + "name": "translationData", + "required": true, + "schema": { + "$ref": "#/definitions/TranslationData" + }, + "x-ms-visibility": "important", + "x-ms-summary": "Text", + "description": "Text" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/TranslationResponse" + } + } + }, + "x-ms-visibility": "important", + "summary": "Translate Text", + "description": "Translate a word or sentence" + } } }, "definitions": { @@ -2551,6 +2904,89 @@ } } }, + "InsertWordImage": { + "required": [ + "existingFileContent", + "placeholderImage" + ], + "type": "object", + "properties": { + "existingFileContent": { + "format": "byte", + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Existing file content", + "description": "Existing Word file to insert image in" + }, + "placeholderName": { + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Placeholder name", + "description": "Placeholder name" + }, + "placeholderImage": { + "format": "byte", + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Placeholder image", + "description": "Placeholder image" + } + } + }, + "InsertWordTable": { + "required": [ + "existingFileContent" + ], + "type": "object", + "properties": { + "existingFileContent": { + "format": "byte", + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Existing file content", + "description": "Existing Word file to insert table in" + }, + "placeholderName": { + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Placeholder name", + "description": "Placeholder name" + }, + "placeholderTable": { + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Placeholder table", + "description": "Placeholder table as json" + } + } + }, + "InsertWordText": { + "required": [ + "existingFileContent" + ], + "type": "object", + "properties": { + "existingFileContent": { + "format": "byte", + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Existing file content", + "description": "Existing Word file to insert text in" + }, + "placeholderName": { + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Placeholder name", + "description": "Placeholder name" + }, + "placeholderText": { + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Placeholder text", + "description": "Placeholder text" + } + } + }, "JsonData": { "required": [ "json" @@ -2577,6 +3013,27 @@ } } }, + "JsonTableResponse": { + "required": [ + "firstTable" + ], + "type": "object", + "properties": { + "firstTable": { + "minLength": 1, + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "JSON table response", + "description": "JSON table response" + }, + "tables": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, "KeyValPair": { "type": "object", "properties": { @@ -2603,6 +3060,9 @@ }, "name": { "type": "string" + }, + "value": { + "type": "string" } } }, @@ -2824,6 +3284,41 @@ } } }, + "TranslationData": { + "required": [ + "translation" + ], + "type": "object", + "properties": { + "translation": { + "minLength": 1, + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Translation", + "description": "Translation" + } + } + }, + "TranslationResponse": { + "type": "object", + "properties": { + "firstTranslation": { + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "First translation response", + "description": "First translation response" + }, + "translations": { + "type": "array", + "items": { + "type": "string" + }, + "x-ms-visibility": "important", + "x-ms-summary": "Translations response", + "description": "Translations response" + } + } + }, "UrlData": { "required": [ "url" @@ -2847,7 +3342,7 @@ "type": "string", "x-ms-visibility": "important", "x-ms-summary": "Existing file content", - "description": "Content of the Word file which should be updated. Default: empty Word file" + "description": "Existing Word file to update. By default a blank Word file is used." }, "sections": { "type": "array", @@ -2868,7 +3363,7 @@ "type": "string", "x-ms-visibility": "important", "x-ms-summary": "Existing file content", - "description": "Content of the Word file which should be updated. Default: empty Word file" + "description": "Existing Word file to update. By default a blank Word file is used." }, "image": { "format": "byte", @@ -2885,6 +3380,34 @@ } } }, + "WordImageWithinTable": { + "required": [ + "image" + ], + "type": "object", + "properties": { + "existingFileContent": { + "format": "byte", + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Existing file content", + "description": "Existing Word file to update. By default a blank Word file is used." + }, + "image": { + "format": "byte", + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Image", + "description": "Image to add" + }, + "imageText": { + "type": "string", + "x-ms-visibility": "important", + "x-ms-summary": "Description Text", + "description": "Text displayed next to image" + } + } + }, "WordTable": { "type": "object", "properties": { @@ -2893,7 +3416,7 @@ "type": "string", "x-ms-visibility": "important", "x-ms-summary": "Existing file content", - "description": "Content of the Word file which should be updated. Default: empty Word file" + "description": "Existing Word file to update. By default a blank Word file is used." }, "table": { "type": "string", @@ -2917,7 +3440,7 @@ "type": "string", "x-ms-visibility": "important", "x-ms-summary": "Existing file content", - "description": "Content of the Word file which should be updated. Default: empty Word file" + "description": "Existing Word file to update. By default a blank Word file is used." }, "sectionType": { "default": "Heading1",