@pipedream/google_drive 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/actions/add-comment/add-comment.mjs +6 -1
  2. package/actions/add-file-sharing-preference/add-file-sharing-preference.mjs +6 -1
  3. package/actions/copy-file/copy-file.mjs +6 -1
  4. package/actions/create-file-from-template/create-file-from-template.mjs +7 -1
  5. package/actions/create-file-from-text/create-file-from-text.mjs +6 -1
  6. package/actions/create-folder/create-folder.mjs +6 -1
  7. package/actions/create-shared-drive/create-shared-drive.mjs +6 -1
  8. package/actions/delete-comment/delete-comment.mjs +6 -1
  9. package/actions/delete-file/delete-file.mjs +6 -1
  10. package/actions/delete-shared-drive/delete-shared-drive.mjs +6 -1
  11. package/actions/download-file/download-file.mjs +6 -1
  12. package/actions/find-file/find-file.mjs +6 -1
  13. package/actions/find-folder/find-folder.mjs +6 -1
  14. package/actions/find-forms/find-forms.mjs +6 -1
  15. package/actions/find-spreadsheets/find-spreadsheets.mjs +6 -1
  16. package/actions/get-current-user/get-current-user.mjs +32 -0
  17. package/actions/get-file-by-id/get-file-by-id.mjs +6 -1
  18. package/actions/get-folder-id-for-path/get-folder-id-for-path.mjs +6 -1
  19. package/actions/get-shared-drive/get-shared-drive.mjs +6 -1
  20. package/actions/list-access-proposals/list-access-proposals.mjs +6 -1
  21. package/actions/list-comments/list-comments.mjs +6 -1
  22. package/actions/list-files/list-files.mjs +6 -1
  23. package/actions/move-file/move-file.mjs +6 -1
  24. package/actions/move-file-to-trash/move-file-to-trash.mjs +6 -1
  25. package/actions/reply-to-comment/reply-to-comment.mjs +6 -1
  26. package/actions/resolve-access-proposal/resolve-access-proposal.mjs +6 -1
  27. package/actions/resolve-comment/resolve-comment.mjs +6 -1
  28. package/actions/search-shared-drives/search-shared-drives.mjs +6 -1
  29. package/actions/update-file/update-file.mjs +6 -1
  30. package/actions/update-shared-drive/update-shared-drive.mjs +6 -1
  31. package/actions/upload-file/upload-file.mjs +6 -1
  32. package/package.json +1 -1
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-add-comment",
5
5
  name: "Add Comment",
6
6
  description: "Add an unanchored comment to a Google Doc (general feedback, no text highlighting). [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/comments/create)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -20,7 +20,12 @@ export default {
20
20
  name: "Share File or Folder",
21
21
  description:
22
22
  "Add a [sharing permission](https://support.google.com/drive/answer/7166529) to the sharing preferences of a file or folder and provide a sharing URL. [See the documentation](https://developers.google.com/drive/api/v3/reference/permissions/create)",
23
- version: "0.2.6",
23
+ version: "0.2.7",
24
+ annotations: {
25
+ destructiveHint: false,
26
+ openWorldHint: true,
27
+ readOnlyHint: false,
28
+ },
24
29
  type: "action",
25
30
  props: {
26
31
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-copy-file",
5
5
  name: "Copy File",
6
6
  description: "Create a copy of the specified file. [See the documentation](https://developers.google.com/drive/api/v3/reference/files/copy) for more information",
7
- version: "0.1.13",
7
+ version: "0.1.14",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -8,7 +8,12 @@ export default {
8
8
  key: "google_drive-create-file-from-template",
9
9
  name: "Create New File From Template",
10
10
  description: "Create a new Google Docs file from a template. Optionally include placeholders in the template document that will get replaced from this action. [See documentation](https://www.npmjs.com/package/google-docs-mustaches)",
11
- version: "0.1.13",
11
+ version: "0.1.15",
12
+ annotations: {
13
+ destructiveHint: true,
14
+ openWorldHint: true,
15
+ readOnlyHint: false,
16
+ },
12
17
  type: "action",
13
18
  props: {
14
19
  googleDrive,
@@ -27,6 +32,7 @@ export default {
27
32
  ],
28
33
  description:
29
34
  "Select the folder of the newly created Google Doc and/or PDF, or use a custom expression to reference a folder ID from a previous step.",
35
+ optional: true,
30
36
  },
31
37
  name: {
32
38
  propDefinition: [
@@ -5,7 +5,12 @@ export default {
5
5
  key: "google_drive-create-file-from-text",
6
6
  name: "Create New File From Text",
7
7
  description: "Create a new file from plain text. [See the documentation](https://developers.google.com/drive/api/v3/reference/files/create) for more information",
8
- version: "0.2.6",
8
+ version: "0.2.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  googleDrive,
@@ -13,7 +13,12 @@ export default {
13
13
  key: "google_drive-create-folder",
14
14
  name: "Create Folder",
15
15
  description: "Create a new empty folder. [See the documentation](https://developers.google.com/drive/api/v3/reference/files/create) for more information",
16
- version: "0.1.14",
16
+ version: "0.1.15",
17
+ annotations: {
18
+ destructiveHint: false,
19
+ openWorldHint: true,
20
+ readOnlyHint: false,
21
+ },
17
22
  type: "action",
18
23
  props: {
19
24
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-create-shared-drive",
5
5
  name: "Create Shared Drive",
6
6
  description: "Create a new shared drive. [See the documentation](https://developers.google.com/drive/api/v3/reference/drives/create) for more information",
7
- version: "0.1.14",
7
+ version: "0.1.15",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-delete-comment",
5
5
  name: "Delete Comment",
6
6
  description: "Delete a specific comment (Requires ownership or permissions). [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/comments/delete)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -5,7 +5,12 @@ export default {
5
5
  name: "Delete File",
6
6
  description:
7
7
  "Permanently delete a file or folder without moving it to the trash. [See the documentation](https://developers.google.com/drive/api/v3/reference/files/delete) for more information",
8
- version: "0.1.14",
8
+ version: "0.1.15",
9
+ annotations: {
10
+ destructiveHint: true,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-delete-shared-drive",
5
5
  name: "Delete Shared Drive",
6
6
  description: "Delete a shared drive without any content. [See the documentation](https://developers.google.com/drive/api/v3/reference/drives/delete) for more information",
7
- version: "0.1.13",
7
+ version: "0.1.14",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -18,7 +18,12 @@ export default {
18
18
  key: "google_drive-download-file",
19
19
  name: "Download File",
20
20
  description: "Download a file. [See the documentation](https://developers.google.com/drive/api/v3/manage-downloads) for more information",
21
- version: "0.1.16",
21
+ version: "0.1.17",
22
+ annotations: {
23
+ destructiveHint: false,
24
+ openWorldHint: true,
25
+ readOnlyHint: false,
26
+ },
22
27
  type: "action",
23
28
  props: {
24
29
  googleDrive,
@@ -6,7 +6,12 @@ export default {
6
6
  key: "google_drive-find-file",
7
7
  name: "Find File",
8
8
  description: "Search for a specific file by name. [See the documentation](https://developers.google.com/drive/api/v3/search-files) for more information",
9
- version: "0.1.13",
9
+ version: "0.1.14",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: true,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  googleDrive,
@@ -7,7 +7,12 @@ export default {
7
7
  key: "google_drive-find-folder",
8
8
  name: "Find Folder",
9
9
  description: "Search for a specific folder by name. [See the documentation](https://developers.google.com/drive/api/v3/search-files) for more information",
10
- version: "0.1.13",
10
+ version: "0.1.14",
11
+ annotations: {
12
+ destructiveHint: false,
13
+ openWorldHint: true,
14
+ readOnlyHint: true,
15
+ },
11
16
  type: "action",
12
17
  props: {
13
18
  googleDrive,
@@ -6,7 +6,12 @@ export default {
6
6
  key: "google_drive-find-forms",
7
7
  name: "Find Forms",
8
8
  description: "List Google Form documents or search for a Form by name. [See the documentation](https://developers.google.com/drive/api/v3/search-files) for more information",
9
- version: "0.0.14",
9
+ version: "0.0.15",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: true,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  googleDrive,
@@ -6,7 +6,12 @@ export default {
6
6
  key: "google_drive-find-spreadsheets",
7
7
  name: "Find Spreadsheets",
8
8
  description: "Search for a specific spreadsheet by name. [See the documentation](https://developers.google.com/drive/api/v3/search-files) for more information",
9
- version: "0.1.13",
9
+ version: "0.1.14",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: true,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  googleDrive,
@@ -0,0 +1,32 @@
1
+ import googleDrive from "../../google_drive.app.mjs";
2
+
3
+ const ABOUT_FIELDS = "user,storageQuota";
4
+
5
+ export default {
6
+ key: "google_drive-get-current-user",
7
+ name: "Get Current User",
8
+ description: "Retrieve Google Drive account metadata for the authenticated user via `about.get`, including display name, email, permission ID, and storage quota. Useful when flows or agents need to confirm the active Google identity or understand available storage. [See the documentation](https://developers.google.com/drive/api/v3/reference/about/get).",
9
+ version: "0.0.1",
10
+ type: "action",
11
+ annotations: {
12
+ destructiveHint: false,
13
+ openWorldHint: true,
14
+ readOnlyHint: true,
15
+ },
16
+ props: {
17
+ googleDrive,
18
+ },
19
+ async run({ $ }) {
20
+ const about = await this.googleDrive.getAbout(ABOUT_FIELDS);
21
+
22
+ const summaryName =
23
+ about?.user?.displayName
24
+ || about?.user?.emailAddress
25
+ || about?.user?.permissionId;
26
+ $.export("$summary", `Retrieved Google Drive user ${summaryName}`);
27
+
28
+ return {
29
+ about,
30
+ };
31
+ },
32
+ };
@@ -5,7 +5,12 @@ export default {
5
5
  key: "google_drive-get-file-by-id",
6
6
  name: "Get File By ID",
7
7
  description: "Get info on a specific file. [See the documentation](https://developers.google.com/drive/api/reference/rest/v3/files/get) for more information",
8
- version: "0.0.10",
8
+ version: "0.0.11",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: true,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  googleDrive,
@@ -12,7 +12,12 @@ export default {
12
12
  key: "google_drive-get-folder-id-for-path",
13
13
  name: "Get Folder ID for a Path",
14
14
  description: "Retrieve a folderId for a path. [See the documentation](https://developers.google.com/drive/api/v3/search-files) for more information",
15
- version: "0.1.15",
15
+ version: "0.1.16",
16
+ annotations: {
17
+ destructiveHint: false,
18
+ openWorldHint: true,
19
+ readOnlyHint: true,
20
+ },
16
21
  type: "action",
17
22
  props: {
18
23
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-get-shared-drive",
5
5
  name: "Get Shared Drive",
6
6
  description: "Get metadata for one or all shared drives. [See the documentation](https://developers.google.com/drive/api/v3/reference/drives/get) for more information",
7
- version: "0.1.13",
7
+ version: "0.1.14",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-list-access-proposals",
5
5
  name: "List Access Proposals",
6
6
  description: "List access proposals for a file or folder. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/accessproposals/list)",
7
- version: "0.0.6",
7
+ version: "0.0.7",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-list-comments",
5
5
  name: "List Comments",
6
6
  description: "List all comments on a file. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/comments/list)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "google_drive-list-files",
6
6
  name: "List Files",
7
7
  description: "List files from a specific folder. [See the documentation](https://developers.google.com/drive/api/v3/reference/files/list) for more information",
8
- version: "0.1.17",
8
+ version: "0.1.18",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: true,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-move-file",
5
5
  name: "Move File",
6
6
  description: "Move a file from one folder to another. [See the documentation](https://developers.google.com/drive/api/v3/reference/files/update) for more information",
7
- version: "0.1.13",
7
+ version: "0.1.14",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "google_drive-move-file-to-trash",
6
6
  name: "Move File to Trash",
7
7
  description: "Move a file or folder to trash. [See the documentation](https://developers.google.com/drive/api/v3/reference/files/update) for more information",
8
- version: "0.1.13",
8
+ version: "0.1.14",
9
+ annotations: {
10
+ destructiveHint: true,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-reply-to-comment",
5
5
  name: "Reply to Comment",
6
6
  description: "Add a reply to an existing comment. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/replies/create)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "google_drive-resolve-access-proposal",
6
6
  name: "Resolve Access Proposals",
7
7
  description: "Accept or deny a request for access to a file or folder in Google Drive. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/accessproposals/resolve)",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-resolve-comment",
5
5
  name: "Resolve Comment",
6
6
  description: "Mark a comment as resolved. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/comments/update)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-search-shared-drives",
5
5
  name: "Search for Shared Drives",
6
6
  description: "Search for shared drives with query options. [See the documentation](https://developers.google.com/drive/api/v3/search-shareddrives) for more information",
7
- version: "0.1.14",
7
+ version: "0.1.15",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -6,7 +6,12 @@ export default {
6
6
  key: "google_drive-update-file",
7
7
  name: "Update File",
8
8
  description: "Update a file's metadata and/or content. [See the documentation](https://developers.google.com/drive/api/v3/reference/files/update) for more information",
9
- version: "2.0.5",
9
+ version: "2.0.6",
10
+ annotations: {
11
+ destructiveHint: true,
12
+ openWorldHint: true,
13
+ readOnlyHint: false,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  googleDrive,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "google_drive-update-shared-drive",
5
5
  name: "Update Shared Drive",
6
6
  description: "Update an existing shared drive. [See the documentation](https://developers.google.com/drive/api/v3/reference/drives/update) for more information",
7
- version: "0.1.13",
7
+ version: "0.1.14",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  googleDrive,
@@ -13,7 +13,12 @@ export default {
13
13
  key: "google_drive-upload-file",
14
14
  name: "Upload File",
15
15
  description: "Upload a file to Google Drive. [See the documentation](https://developers.google.com/drive/api/v3/manage-uploads) for more information",
16
- version: "2.0.6",
16
+ version: "2.0.7",
17
+ annotations: {
18
+ destructiveHint: false,
19
+ openWorldHint: true,
20
+ readOnlyHint: false,
21
+ },
17
22
  type: "action",
18
23
  props: {
19
24
  googleDrive,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_drive",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Pipedream Google_drive Components",
5
5
  "main": "google_drive.app.mjs",
6
6
  "keywords": [