diff --git a/components/google_drive/actions/google-workspace-export-formats.mjs b/components/google_drive/actions/common/google-workspace-export-formats.mjs similarity index 73% rename from components/google_drive/actions/google-workspace-export-formats.mjs rename to components/google_drive/actions/common/google-workspace-export-formats.mjs index 185df3bfc8700..240b60d3e64d3 100644 --- a/components/google_drive/actions/google-workspace-export-formats.mjs +++ b/components/google_drive/actions/common/google-workspace-export-formats.mjs @@ -39,6 +39,22 @@ export default [ value: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", label: "MS Word document", }, + { + value: "application/vnd.oasis.opendocument.text", + label: "OpenDocument Text", + }, + { + value: "application/vnd.oasis.opendocument.spreadsheet", + label: "OpenDocument Spreadsheet", + }, + { + value: "application/vnd.oasis.opendocument.presentation", + label: "OpenDocument Presentation", + }, + { + value: "application/vnd.google-apps.vid", + label: "MP4", + }, { value: "application/zip", label: "HTML (zipped)", @@ -71,4 +87,12 @@ export default [ value: "text/tab-separated-values", label: "TSV (sheet only)", }, + { + value: "text/markdown", + label: "Markdown", + }, + { + value: "text/x-markdown", + label: "Markdown (Deprecated)", + }, ]; diff --git a/components/google_drive/actions/download-file/download-file.mjs b/components/google_drive/actions/download-file/download-file.mjs index 2a9b6d5b5b08b..7ac942153978d 100644 --- a/components/google_drive/actions/download-file/download-file.mjs +++ b/components/google_drive/actions/download-file/download-file.mjs @@ -3,7 +3,7 @@ import fs from "fs"; import stream from "stream"; import { promisify } from "util"; import { GOOGLE_DRIVE_MIME_TYPE_PREFIX } from "../../common/constants.mjs"; -import googleWorkspaceExportFormats from "../google-workspace-export-formats.mjs"; +import googleWorkspaceExportFormats from "../common/google-workspace-export-formats.mjs"; import { toSingleLineString } from "../../common/utils.mjs"; /** @@ -18,7 +18,7 @@ export default { key: "google_drive-download-file", name: "Download File", description: "Download a file. [See the documentation](https://developers.google.com/drive/api/v3/manage-downloads) for more information", - version: "0.1.9", + version: "0.1.10", type: "action", props: { googleDrive, @@ -82,7 +82,10 @@ export default { return exportFormats[file.mimeType].map((f) => googleWorkspaceExportFormats.find( (format) => format.value === f, - ) ?? f); + ) ?? { + value: f, + label: f, + }); }, }, }, diff --git a/components/google_drive/package.json b/components/google_drive/package.json index 9b571a80a1fe6..1420450de9d6e 100644 --- a/components/google_drive/package.json +++ b/components/google_drive/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/google_drive", - "version": "0.10.0", + "version": "0.10.1", "description": "Pipedream Google_drive Components", "main": "google_drive.app.mjs", "keywords": [