Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/google_sheets/actions/add-column/add-column.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.9",
version: "0.1.10",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.12",
version: "0.2.13",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.14",
version: "2.1.15",
type: "action",
props: {
googleSheets,
Expand Down
2 changes: 1 addition & 1 deletion components/google_sheets/actions/clear-cell/clear-cell.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.13",
version: "0.1.14",
type: "action",
props: {
googleSheets,
Expand Down
2 changes: 1 addition & 1 deletion components/google_sheets/actions/clear-rows/clear-rows.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.11",
version: "0.1.12",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.9",
version: "0.1.10",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.11",
version: "0.1.12",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.9",
version: "0.1.10",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.9",
version: "0.0.10",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.9",
version: "0.1.10",
type: "action",
props: {
googleSheets,
Expand Down
2 changes: 1 addition & 1 deletion components/google_sheets/actions/find-row/find-row.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.12",
version: "0.2.13",
type: "action",
props: {
googleSheets,
Expand Down
2 changes: 1 addition & 1 deletion components/google_sheets/actions/get-cell/get-cell.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.11",
version: "0.1.12",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.10",
version: "0.1.11",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.11",
version: "0.1.12",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.9",
version: "0.1.10",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.10",
version: "0.1.11",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.9",
version: "0.1.10",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.11",
version: "0.1.12",
type: "action",
props: {
googleSheets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.11",
version: "0.1.12",
type: "action",
props: {
googleSheets,
Expand Down
2 changes: 1 addition & 1 deletion components/google_sheets/actions/update-row/update-row.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.12",
version: "0.1.13",
type: "action",
props: {
googleSheets,
Expand Down
2 changes: 1 addition & 1 deletion components/google_sheets/actions/upsert-row/upsert-row.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.13",
version: "0.1.14",
type: "action",
props: {
googleSheets,
Expand Down
9 changes: 6 additions & 3 deletions components/google_sheets/google_sheets.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
label: "Row Values",
description: "Provide an array of arrays",
},
rowsDescription: {

Check warning on line 47 in components/google_sheets/google_sheets.app.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop rowsDescription must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 47 in components/google_sheets/google_sheets.app.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop rowsDescription must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "neutral",
content: "Each nested array should represent a row, with each element of the nested array representing a cell/column value (e.g., passing `[[\"Foo\",1,2],[\"Bar\",3,4]]` will insert two rows of data with three columns each). The most common pattern is to reference an array of arrays exported by a previous step (e.g., `{{steps.foo.$return_value}}`). You may also enter or construct a string that will `JSON.parse()` to an array of arrays.",
},
headersDisplay: {

Check warning on line 52 in components/google_sheets/google_sheets.app.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop headersDisplay must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 52 in components/google_sheets/google_sheets.app.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop headersDisplay must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "",
Expand All @@ -64,9 +64,10 @@
query,
prevContext,
driveId,
fetchOnlyOwned,
}) {
const { nextPageToken } = prevContext;
return this.listSheetsOptions(driveId, nextPageToken, query);
return this.listSheetsOptions(driveId, nextPageToken, query, fetchOnlyOwned);
},
},
worksheetIDs: {
Expand Down Expand Up @@ -252,11 +253,13 @@
}
return sum;
},
async listSheetsOptions(driveId, pageToken = null, query) {
async listSheetsOptions(driveId, pageToken = null, query, fetchOnlyOwned) {
const searchQuery = query
? ` and name contains '${query}'`
: "";
const q = `mimeType='application/vnd.google-apps.spreadsheet'${searchQuery}`;
const q = fetchOnlyOwned
? `mimeType='application/vnd.google-apps.spreadsheet'${searchQuery} and 'me' in owners`
: `mimeType='application/vnd.google-apps.spreadsheet'${searchQuery}`;
let request = {
q,
};
Expand Down
2 changes: 1 addition & 1 deletion components/google_sheets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/google_sheets",
"version": "0.8.5",
"version": "0.8.6",
"description": "Pipedream Google_sheets Components",
"main": "google_sheets.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.0.8",
version: "0.0.9",
dedupe: "unique",
type: "source",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.0.5",
version: "0.0.6",
dedupe: "unique",
type: "source",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.13",
version: "0.1.14",
dedupe: "unique",
type: "source",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.10",
version: "0.2.11",
dedupe: "unique",
props: {
...httpBase.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.13",
version: "0.1.14",
dedupe: "unique",
hooks: {
...httpBase.hooks,
Expand Down
Loading