diff --git a/components/google_sheets/actions/add-column/add-column.mjs b/components/google_sheets/actions/add-column/add-column.mjs index a5dd2ff078d96..67373f4d44439 100644 --- a/components/google_sheets/actions/add-column/add-column.mjs +++ b/components/google_sheets/actions/add-column/add-column.mjs @@ -4,7 +4,7 @@ export default { key: "google_sheets-add-column", name: "Create Column", description: "Create a new column in a spreadsheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdate)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/add-multiple-rows/add-multiple-rows.mjs b/components/google_sheets/actions/add-multiple-rows/add-multiple-rows.mjs index 21e4299fb0600..3aec6c8eb9029 100644 --- a/components/google_sheets/actions/add-multiple-rows/add-multiple-rows.mjs +++ b/components/google_sheets/actions/add-multiple-rows/add-multiple-rows.mjs @@ -11,7 +11,7 @@ export default { key: "google_sheets-add-multiple-rows", name: "Add Multiple Rows", description: "Add multiple rows of data to a Google Sheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append)", - version: "0.2.15", + version: "0.2.16", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/add-single-row/add-single-row.mjs b/components/google_sheets/actions/add-single-row/add-single-row.mjs index fe6ed9bf8788b..044972d4387ca 100644 --- a/components/google_sheets/actions/add-single-row/add-single-row.mjs +++ b/components/google_sheets/actions/add-single-row/add-single-row.mjs @@ -10,7 +10,7 @@ export default { key: "google_sheets-add-single-row", name: "Add Single Row", description: "Add a single row of data to Google Sheets. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append)", - version: "2.1.17", + version: "2.1.18", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/clear-cell/clear-cell.mjs b/components/google_sheets/actions/clear-cell/clear-cell.mjs index cb9f566a147b6..540a9c75e1e47 100644 --- a/components/google_sheets/actions/clear-cell/clear-cell.mjs +++ b/components/google_sheets/actions/clear-cell/clear-cell.mjs @@ -7,7 +7,7 @@ export default { key: "google_sheets-clear-cell", name: "Clear Cell", description: "Delete the content of a specific cell in a spreadsheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/clear)", - version: "0.1.16", + version: "0.1.17", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/google_sheets/actions/clear-rows/clear-rows.mjs b/components/google_sheets/actions/clear-rows/clear-rows.mjs index 009f75a5d82ee..4b03106f26b33 100644 --- a/components/google_sheets/actions/clear-rows/clear-rows.mjs +++ b/components/google_sheets/actions/clear-rows/clear-rows.mjs @@ -7,7 +7,7 @@ export default { key: "google_sheets-clear-rows", name: "Clear Rows", description: "Delete the content of a row or rows in a spreadsheet. Deleted rows will appear as blank rows. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/clear)", - version: "0.1.14", + version: "0.1.15", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/google_sheets/actions/copy-worksheet/copy-worksheet.mjs b/components/google_sheets/actions/copy-worksheet/copy-worksheet.mjs index 66f6fac81f98b..bedb3d623229e 100644 --- a/components/google_sheets/actions/copy-worksheet/copy-worksheet.mjs +++ b/components/google_sheets/actions/copy-worksheet/copy-worksheet.mjs @@ -4,7 +4,7 @@ export default { key: "google_sheets-copy-worksheet", name: "Copy Worksheet", description: "Copy an existing worksheet to another Google Sheets file. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.sheets/copyTo)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/create-spreadsheet/create-spreadsheet.mjs b/components/google_sheets/actions/create-spreadsheet/create-spreadsheet.mjs index 5827665b4c425..bfb4c8fd44f9b 100644 --- a/components/google_sheets/actions/create-spreadsheet/create-spreadsheet.mjs +++ b/components/google_sheets/actions/create-spreadsheet/create-spreadsheet.mjs @@ -4,7 +4,7 @@ export default { key: "google_sheets-create-spreadsheet", name: "Create Spreadsheet", description: "Create a blank spreadsheet or duplicate an existing spreadsheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/create)", - version: "0.1.14", + version: "0.1.15", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/create-worksheet/create-worksheet.mjs b/components/google_sheets/actions/create-worksheet/create-worksheet.mjs index b3a4ccb5e9203..a969ee91add02 100644 --- a/components/google_sheets/actions/create-worksheet/create-worksheet.mjs +++ b/components/google_sheets/actions/create-worksheet/create-worksheet.mjs @@ -4,7 +4,7 @@ export default { key: "google_sheets-create-worksheet", name: "Create Worksheet", description: "Create a blank worksheet with a title. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdate)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/delete-rows/delete-rows.mjs b/components/google_sheets/actions/delete-rows/delete-rows.mjs index 043308be65ee6..06beb77dee072 100644 --- a/components/google_sheets/actions/delete-rows/delete-rows.mjs +++ b/components/google_sheets/actions/delete-rows/delete-rows.mjs @@ -4,7 +4,7 @@ export default { key: "google_sheets-delete-rows", name: "Delete Rows", description: "Deletes the specified rows from a spreadsheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/request#deletedimensionrequest)", - version: "0.0.12", + version: "0.0.13", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/google_sheets/actions/delete-worksheet/delete-worksheet.mjs b/components/google_sheets/actions/delete-worksheet/delete-worksheet.mjs index 81b61f5c1efa0..0390b9fbdc604 100644 --- a/components/google_sheets/actions/delete-worksheet/delete-worksheet.mjs +++ b/components/google_sheets/actions/delete-worksheet/delete-worksheet.mjs @@ -4,7 +4,7 @@ export default { key: "google_sheets-delete-worksheet", name: "Delete Worksheet", description: "Delete a specific worksheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdate)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/google_sheets/actions/find-row/find-row.mjs b/components/google_sheets/actions/find-row/find-row.mjs index d58b47728e4ac..059da6e7fccdd 100644 --- a/components/google_sheets/actions/find-row/find-row.mjs +++ b/components/google_sheets/actions/find-row/find-row.mjs @@ -7,7 +7,7 @@ export default { key: "google_sheets-find-row", name: "Find Row", description: "Find one or more rows by a column and value. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get)", - version: "0.2.15", + version: "0.2.16", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/get-cell/get-cell.mjs b/components/google_sheets/actions/get-cell/get-cell.mjs index f82024a677f6a..aa0333b3029e4 100644 --- a/components/google_sheets/actions/get-cell/get-cell.mjs +++ b/components/google_sheets/actions/get-cell/get-cell.mjs @@ -7,7 +7,7 @@ export default { key: "google_sheets-get-cell", name: "Get Cell", description: "Fetch the contents of a specific cell in a spreadsheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get)", - version: "0.1.14", + version: "0.1.15", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/get-spreadsheet-by-id/get-spreadsheet-by-id.mjs b/components/google_sheets/actions/get-spreadsheet-by-id/get-spreadsheet-by-id.mjs index 0f13f0f6e80e5..9c32fff3dea65 100644 --- a/components/google_sheets/actions/get-spreadsheet-by-id/get-spreadsheet-by-id.mjs +++ b/components/google_sheets/actions/get-spreadsheet-by-id/get-spreadsheet-by-id.mjs @@ -4,7 +4,7 @@ export default { key: "google_sheets-get-spreadsheet-by-id", name: "Get Spreadsheet by ID", description: "Returns the spreadsheet at the given ID. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/get) for more information", - version: "0.1.13", + version: "0.1.14", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/get-values-in-range/get-values-in-range.mjs b/components/google_sheets/actions/get-values-in-range/get-values-in-range.mjs index f73abf68a5a87..2f458700f6eb9 100644 --- a/components/google_sheets/actions/get-values-in-range/get-values-in-range.mjs +++ b/components/google_sheets/actions/get-values-in-range/get-values-in-range.mjs @@ -7,7 +7,7 @@ export default { key: "google_sheets-get-values-in-range", name: "Get Values in Range", description: "Get all values or values from a range of cells using A1 notation. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get)", - version: "0.1.14", + version: "0.1.15", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/insert-anchored-note/insert-anchored-note.mjs b/components/google_sheets/actions/insert-anchored-note/insert-anchored-note.mjs index 0319befc4c6c5..20bc9d9e39164 100644 --- a/components/google_sheets/actions/insert-anchored-note/insert-anchored-note.mjs +++ b/components/google_sheets/actions/insert-anchored-note/insert-anchored-note.mjs @@ -5,7 +5,7 @@ export default { key: "google_sheets-insert-anchored-note", name: "Insert an Anchored Note", description: "Insert a note on a spreadsheet cell. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/insert-comment/insert-comment.mjs b/components/google_sheets/actions/insert-comment/insert-comment.mjs index 8edc61e0873bd..cf1af96093d47 100644 --- a/components/google_sheets/actions/insert-comment/insert-comment.mjs +++ b/components/google_sheets/actions/insert-comment/insert-comment.mjs @@ -4,7 +4,7 @@ export default { key: "google_sheets-insert-comment", name: "Insert Comment", description: "Insert a comment into a spreadsheet. [See the documentation](https://developers.google.com/drive/api/v3/reference/comments/create)", - version: "0.1.13", + version: "0.1.14", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/list-worksheets/list-worksheets.mjs b/components/google_sheets/actions/list-worksheets/list-worksheets.mjs index 211c3413cfbdf..df73828a68a61 100644 --- a/components/google_sheets/actions/list-worksheets/list-worksheets.mjs +++ b/components/google_sheets/actions/list-worksheets/list-worksheets.mjs @@ -4,7 +4,7 @@ export default { key: "google_sheets-list-worksheets", name: "List Worksheets", description: "Get a list of all worksheets in a spreadsheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/get)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/google_sheets/actions/update-cell/update-cell.mjs b/components/google_sheets/actions/update-cell/update-cell.mjs index e21e2fd09e84f..fc56817a5746c 100644 --- a/components/google_sheets/actions/update-cell/update-cell.mjs +++ b/components/google_sheets/actions/update-cell/update-cell.mjs @@ -7,7 +7,7 @@ export default { key: "google_sheets-update-cell", name: "Update Cell", description: "Update a cell in a spreadsheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update)", - version: "0.1.14", + version: "0.1.15", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/google_sheets/actions/update-formatting/update-formatting.mjs b/components/google_sheets/actions/update-formatting/update-formatting.mjs new file mode 100644 index 0000000000000..b870e51cb6dc7 --- /dev/null +++ b/components/google_sheets/actions/update-formatting/update-formatting.mjs @@ -0,0 +1,316 @@ +import googleSheets from "../../google_sheets.app.mjs"; +import { + BORDER_STYLES, HORIZONTAL_ALIGNMENTS, +} from "../../common/constants.mjs"; + +export default { + key: "google_sheets-update-formatting", + name: "Update Formatting", + description: "Update the formatting of a cell in a spreadsheet. [See the documentation](https://developers.google.com/workspace/sheets/api/samples/formatting)", + version: "0.0.1", + type: "action", + annotations: { + destructiveHint: true, + openWorldHint: true, + readOnlyHint: false, + }, + props: { + googleSheets, + drive: { + propDefinition: [ + googleSheets, + "watchedDrive", + ], + description: "The drive containing the worksheet to update. If you are connected with any [Google Shared Drives](https://support.google.com/a/users/answer/9310351), you can select it here.", + }, + sheetId: { + propDefinition: [ + googleSheets, + "sheetID", + (c) => ({ + driveId: googleSheets.methods.getDriveId(c.drive), + }), + ], + description: "The spreadsheet containing the worksheet to update", + }, + worksheetId: { + propDefinition: [ + googleSheets, + "worksheetIDs", + (c) => ({ + sheetId: c.sheetId, + }), + ], + }, + range: { + propDefinition: [ + googleSheets, + "range", + ], + description: "The range of cells to update. E.g., `A1:A10`", + }, + backgroundColorRedValue: { + type: "string", + label: "Background Color Red Value", + description: "The amount of red in the color as a value in the interval [0, 1]", + optional: true, + }, + backgroundColorGreenValue: { + type: "string", + label: "Background Color Green Value", + description: "The amount of green in the color as a value in the interval [0, 1]", + optional: true, + }, + backgroundColorBlueValue: { + type: "string", + label: "Background Color Blue Value", + description: "The amount of blue in the color as a value in the interval [0, 1]", + optional: true, + }, + textColorRedValue: { + type: "string", + label: "Text Color Red Value", + description: "The amount of red in the color as a value in the interval [0, 1]", + optional: true, + }, + textColorGreenValue: { + type: "string", + label: "Text Color Green Value", + description: "The amount of green in the color as a value in the interval [0, 1]", + optional: true, + }, + textColorBlueValue: { + type: "string", + label: "Text Color Blue Value", + description: "The amount of blue in the color as a value in the interval [0, 1]", + optional: true, + }, + fontSize: { + type: "integer", + label: "Font Size", + description: "The size of the font", + optional: true, + }, + bold: { + type: "boolean", + label: "Bold", + description: "Whether the font should be bold", + optional: true, + }, + italic: { + type: "boolean", + label: "Italic", + description: "Whether the font should be italic", + optional: true, + }, + strikethrough: { + type: "boolean", + label: "Strikethrough", + description: "Whether the font should be strikethrough", + optional: true, + }, + horizontalAlignment: { + type: "string", + label: "Horizontal Alignment", + description: "The horizontal alignment of the text", + options: HORIZONTAL_ALIGNMENTS, + optional: true, + }, + topBorderStyle: { + type: "string", + label: "Top Border Style", + description: "The style of the top border", + options: BORDER_STYLES, + optional: true, + }, + bottomBorderStyle: { + type: "string", + label: "Bottom Border Style", + description: "The style of the bottom border", + options: BORDER_STYLES, + optional: true, + }, + leftBorderStyle: { + type: "string", + label: "Left Border Style", + description: "The style of the left border", + options: BORDER_STYLES, + optional: true, + }, + rightBorderStyle: { + type: "string", + label: "Right Border Style", + description: "The style of the right border", + options: BORDER_STYLES, + optional: true, + }, + innerHorizontalBorderStyle: { + type: "string", + label: "Inner Horizontal Border Style", + description: "The style of the inner horizontal border", + options: BORDER_STYLES, + optional: true, + }, + innerVerticalBorderStyle: { + type: "string", + label: "Inner Vertical Border Style", + description: "The style of the inner vertical border", + options: BORDER_STYLES, + optional: true, + }, + }, + async run({ $ }) { + const ASCII_A = 65; // Unicode (UTF-16) value for the character 'A' + const OFFSET_INCLUSIVE = -1; // For making the end column index inclusive + const { + startCol, + endCol, + startRow, + endRow, + } = this.googleSheets._parseRangeString(`${this.worksheetId}!${this.range}`); + + const range = { + sheetId: this.worksheetId, + startRowIndex: startRow, + endRowIndex: endRow, + startColumnIndex: startCol.charCodeAt(0) - ASCII_A, + endColumnIndex: endCol.charCodeAt(0) - (ASCII_A + OFFSET_INCLUSIVE), + }; + + const hasBorderStyles = this.topBorderStyle + || this.bottomBorderStyle + || this.leftBorderStyle + || this.rightBorderStyle + || this.innerHorizontalBorderStyle + || this.innerVerticalBorderStyle; + + const hasRepeatCellStyles = this.backgroundColorRedValue + || this.backgroundColorGreenValue + || this.backgroundColorBlueValue + || this.textColorRedValue + || this.textColorGreenValue + || this.textColorBlueValue + || this.fontSize + || this.bold || this.italic || this.strikethrough || this.horizontalAlignment; + + const requests = []; + if (hasBorderStyles) { + const updateBorders = { + range, + }; + if (this.topBorderStyle) { + updateBorders.top = { + style: this.topBorderStyle, + }; + } + if (this.bottomBorderStyle) { + updateBorders.bottom = { + style: this.bottomBorderStyle, + }; + } + if (this.leftBorderStyle) { + updateBorders.left = { + style: this.leftBorderStyle, + }; + } + if (this.rightBorderStyle) { + updateBorders.right = { + style: this.rightBorderStyle, + }; + } + if (this.innerHorizontalBorderStyle) { + updateBorders.innerHorizontal = { + style: this.innerHorizontalBorderStyle, + }; + } + if (this.innerVerticalBorderStyle) { + updateBorders.innerVertical = { + style: this.innerVerticalBorderStyle, + }; + } + requests.push({ + updateBorders, + }); + } + if (hasRepeatCellStyles) { + const repeatCell = { + range, + cell: { + userEnteredFormat: {}, + }, + }; + const fields = []; + if (this.backgroundColorRedValue + || this.backgroundColorGreenValue + || this.backgroundColorBlueValue + ) { + repeatCell.cell.userEnteredFormat.backgroundColor = {}; + fields.push("backgroundColor"); + if (this.backgroundColorRedValue) { + repeatCell.cell.userEnteredFormat.backgroundColor.red = this.backgroundColorRedValue; + } + if (this.backgroundColorGreenValue) { + repeatCell.cell.userEnteredFormat.backgroundColor.green = this.backgroundColorGreenValue; + } + if (this.backgroundColorBlueValue) { + repeatCell.cell.userEnteredFormat.backgroundColor.blue = this.backgroundColorBlueValue; + } + } + if (this.textColorRedValue || this.textColorGreenValue || this.textColorBlueValue) { + fields.push("textFormat.foregroundColor"); + repeatCell.cell.userEnteredFormat.textFormat = { + foregroundColor: {}, + }; + if (this.textColorRedValue) { + repeatCell.cell.userEnteredFormat.textFormat.foregroundColor.red = this.textColorRedValue; + } + if (this.textColorGreenValue) { + repeatCell.cell.userEnteredFormat.textFormat.foregroundColor.green + = this.textColorGreenValue; + } + if (this.textColorBlueValue) { + repeatCell.cell.userEnteredFormat.textFormat.foregroundColor.blue + = this.textColorBlueValue; + } + } + if (this.fontSize || this.bold || this.italic || this.strikethrough) { + repeatCell.cell.userEnteredFormat.textFormat = { + ...(repeatCell.cell.userEnteredFormat.textFormat || {}), + }; + } + if (this.fontSize) { + fields.push("textFormat.fontSize"); + repeatCell.cell.userEnteredFormat.textFormat.fontSize = this.fontSize; + } + if (this.bold) { + fields.push("textFormat.bold"); + repeatCell.cell.userEnteredFormat.textFormat.bold = this.bold; + } + if (this.italic) { + fields.push("textFormat.italic"); + repeatCell.cell.userEnteredFormat.textFormat.italic = this.italic; + } + if (this.strikethrough) { + fields.push("textFormat.strikethrough"); + repeatCell.cell.userEnteredFormat.textFormat.strikethrough = this.strikethrough; + } + if (this.horizontalAlignment) { + fields.push("horizontalAlignment"); + repeatCell.cell.userEnteredFormat.horizontalAlignment = this.horizontalAlignment; + } + repeatCell.fields = `userEnteredFormat(${fields.join(",")})`; + requests.push({ + repeatCell, + }); + } + + const response = await this.googleSheets.sheets().spreadsheets.batchUpdate({ + spreadsheetId: this.sheetId, + requestBody: { + requests, + }, + }); + $.export("$summary", `Updated formatting for range ${this.range}`); + return response; + }, +}; diff --git a/components/google_sheets/actions/update-multiple-rows/update-multiple-rows.mjs b/components/google_sheets/actions/update-multiple-rows/update-multiple-rows.mjs index 1e0e1df704ac8..789302b21b868 100644 --- a/components/google_sheets/actions/update-multiple-rows/update-multiple-rows.mjs +++ b/components/google_sheets/actions/update-multiple-rows/update-multiple-rows.mjs @@ -9,7 +9,7 @@ export default { key: "google_sheets-update-multiple-rows", name: "Update Multiple Rows", description: "Update multiple rows in a spreadsheet defined by a range. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update)", - version: "0.1.14", + version: "0.1.15", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/google_sheets/actions/update-row/update-row.mjs b/components/google_sheets/actions/update-row/update-row.mjs index ba922c0ea40a5..71b646d4cfd5e 100644 --- a/components/google_sheets/actions/update-row/update-row.mjs +++ b/components/google_sheets/actions/update-row/update-row.mjs @@ -10,7 +10,7 @@ export default { key: "google_sheets-update-row", name: "Update Row", description: "Update a row in a spreadsheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update)", - version: "0.1.16", + version: "0.1.17", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/google_sheets/actions/upsert-row/upsert-row.mjs b/components/google_sheets/actions/upsert-row/upsert-row.mjs index 89bfb484873df..16a7048452536 100644 --- a/components/google_sheets/actions/upsert-row/upsert-row.mjs +++ b/components/google_sheets/actions/upsert-row/upsert-row.mjs @@ -24,7 +24,7 @@ export default { key: "google_sheets-upsert-row", name: "Upsert Row", description: "Upsert a row of data in a Google Sheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append)", - version: "0.1.16", + version: "0.1.17", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/google_sheets/common/constants.mjs b/components/google_sheets/common/constants.mjs index 7c1886c031ac7..1292570438995 100644 --- a/components/google_sheets/common/constants.mjs +++ b/components/google_sheets/common/constants.mjs @@ -90,8 +90,26 @@ const INSERT_DATA_OPTION = { INSERT_ROWS: GOOGLE_SHEETS_DATA_INSERT_ROWS, }; +const BORDER_STYLES = [ + "DOTTED", + "DASHED", + "SOLID", + "SOLID_MEDIUM", + "SOLID_THICK", + "NONE", + "DOUBLE", +]; + +const HORIZONTAL_ALIGNMENTS = [ + "LEFT", + "CENTER", + "RIGHT", +]; + export { VALUE_RENDER_OPTION, VALUE_INPUT_OPTION, INSERT_DATA_OPTION, + BORDER_STYLES, + HORIZONTAL_ALIGNMENTS, }; diff --git a/components/google_sheets/package.json b/components/google_sheets/package.json index c5eb5c98fbe59..ae17a3c4cb99c 100644 --- a/components/google_sheets/package.json +++ b/components/google_sheets/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/google_sheets", - "version": "0.8.12", + "version": "0.9.0", "description": "Pipedream Google_sheets Components", "main": "google_sheets.app.mjs", "keywords": [ diff --git a/components/google_sheets/sources/new-comment/new-comment.mjs b/components/google_sheets/sources/new-comment/new-comment.mjs index edd175f580c4b..f02d5c80d683a 100644 --- a/components/google_sheets/sources/new-comment/new-comment.mjs +++ b/components/google_sheets/sources/new-comment/new-comment.mjs @@ -6,7 +6,7 @@ export default { key: "google_sheets-new-comment", name: "New Comment (Instant)", description: "Emit new event each time a comment is added to a spreadsheet.", - version: "0.1.0", + version: "0.1.1", dedupe: "unique", type: "source", methods: { diff --git a/components/google_sheets/sources/new-row-added-polling/new-row-added-polling.mjs b/components/google_sheets/sources/new-row-added-polling/new-row-added-polling.mjs index 5911a2cfde38f..c4bd18cb86377 100644 --- a/components/google_sheets/sources/new-row-added-polling/new-row-added-polling.mjs +++ b/components/google_sheets/sources/new-row-added-polling/new-row-added-polling.mjs @@ -8,7 +8,7 @@ export default { key: "google_sheets-new-row-added-polling", name: "New Row Added", description: "Emit new event each time a row or rows are added to the bottom of a spreadsheet.", - version: "0.1.0", + version: "0.1.1", dedupe: "unique", type: "source", props: { diff --git a/components/google_sheets/sources/new-row-added/new-row-added.mjs b/components/google_sheets/sources/new-row-added/new-row-added.mjs index eb3d5ed3d14de..9abda1dd75782 100644 --- a/components/google_sheets/sources/new-row-added/new-row-added.mjs +++ b/components/google_sheets/sources/new-row-added/new-row-added.mjs @@ -8,7 +8,7 @@ export default { key: "google_sheets-new-row-added", name: "New Row Added (Instant)", description: "Emit new event each time a row or rows are added to the bottom of a spreadsheet.", - version: "0.2.0", + version: "0.2.1", dedupe: "unique", type: "source", props: { diff --git a/components/google_sheets/sources/new-updates/new-updates.mjs b/components/google_sheets/sources/new-updates/new-updates.mjs index 2e02d02483a18..9ad4b0a4831e2 100644 --- a/components/google_sheets/sources/new-updates/new-updates.mjs +++ b/components/google_sheets/sources/new-updates/new-updates.mjs @@ -9,7 +9,7 @@ export default { type: "source", name: "New Updates (Instant)", description: "Emit new event each time a row or cell is updated in a spreadsheet.", - version: "0.3.0", + version: "0.3.1", dedupe: "unique", props: { ...httpBase.props, diff --git a/components/google_sheets/sources/new-worksheet/new-worksheet.mjs b/components/google_sheets/sources/new-worksheet/new-worksheet.mjs index b208633d90457..07ad0c133c292 100644 --- a/components/google_sheets/sources/new-worksheet/new-worksheet.mjs +++ b/components/google_sheets/sources/new-worksheet/new-worksheet.mjs @@ -9,7 +9,7 @@ export default { type: "source", name: "New Worksheet (Instant)", description: "Emit new event each time a new worksheet is created in a spreadsheet.", - version: "0.2.0", + version: "0.2.1", dedupe: "unique", hooks: { ...httpBase.hooks,