@pipedream/google_drive 1.1.2 → 1.3.0
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.
- package/actions/add-comment/add-comment.mjs +11 -2
- package/actions/add-file-sharing-preference/add-file-sharing-preference.mjs +1 -1
- package/actions/copy-file/copy-file.mjs +1 -1
- package/actions/create-file-from-template/create-file-from-template.mjs +1 -1
- package/actions/create-file-from-text/create-file-from-text.mjs +1 -1
- package/actions/create-folder/create-folder.mjs +1 -1
- package/actions/create-shared-drive/create-shared-drive.mjs +1 -1
- package/actions/delete-comment/delete-comment.mjs +1 -1
- package/actions/delete-file/delete-file.mjs +1 -1
- package/actions/delete-reply/delete-reply.mjs +69 -0
- package/actions/delete-shared-drive/delete-shared-drive.mjs +1 -1
- package/actions/download-file/download-file.mjs +1 -1
- package/actions/find-file/find-file.mjs +1 -1
- package/actions/find-folder/find-folder.mjs +1 -1
- package/actions/find-forms/find-forms.mjs +1 -1
- package/actions/find-spreadsheets/find-spreadsheets.mjs +1 -1
- package/actions/get-comment/get-comment.mjs +65 -0
- package/actions/get-current-user/get-current-user.mjs +1 -1
- package/actions/get-file-by-id/get-file-by-id.mjs +1 -1
- package/actions/get-folder-id-for-path/get-folder-id-for-path.mjs +1 -1
- package/actions/get-reply/get-reply.mjs +66 -0
- package/actions/get-shared-drive/get-shared-drive.mjs +1 -1
- package/actions/list-access-proposals/list-access-proposals.mjs +1 -1
- package/actions/list-comments/list-comments.mjs +1 -1
- package/actions/list-files/list-files.mjs +1 -1
- package/actions/list-replies/list-replies.mjs +74 -0
- package/actions/move-file/move-file.mjs +1 -1
- package/actions/move-file-to-trash/move-file-to-trash.mjs +1 -1
- package/actions/reply-to-comment/reply-to-comment.mjs +1 -1
- package/actions/resolve-access-proposal/resolve-access-proposal.mjs +1 -1
- package/actions/resolve-comment/resolve-comment.mjs +1 -1
- package/actions/search-shared-drives/search-shared-drives.mjs +1 -1
- package/actions/update-comment/update-comment.mjs +66 -0
- package/actions/update-file/update-file.mjs +1 -1
- package/actions/update-reply/update-reply.mjs +90 -0
- package/actions/update-shared-drive/update-shared-drive.mjs +1 -1
- package/actions/upload-file/upload-file.mjs +1 -1
- package/google_drive.app.mjs +76 -6
- package/package.json +2 -2
- package/sources/changes-to-files-in-drive/changes-to-files-in-drive.mjs +1 -1
- package/sources/changes-to-specific-files/changes-to-specific-files.mjs +1 -1
- package/sources/changes-to-specific-files-shared-drive/changes-to-specific-files-shared-drive.mjs +1 -1
- package/sources/new-access-proposal/new-access-proposal.mjs +1 -1
- package/sources/new-files-instant/new-files-instant.mjs +1 -1
- package/sources/new-files-shared-drive/new-files-shared-drive.mjs +1 -1
- package/sources/new-or-modified-comments/new-or-modified-comments.mjs +1 -1
- package/sources/new-or-modified-files/new-or-modified-files.mjs +1 -1
- package/sources/new-or-modified-files-polling/new-or-modified-files-polling.mjs +220 -0
- package/sources/new-or-modified-files-polling/test-event.mjs +111 -0
- package/sources/new-or-modified-folders/new-or-modified-folders.mjs +1 -1
- package/sources/new-shared-drive/new-shared-drive.mjs +1 -1
- package/sources/new-spreadsheet/new-spreadsheet.mjs +1 -1
|
@@ -4,7 +4,7 @@ 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
|
|
7
|
+
version: "0.1.0",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -35,11 +35,20 @@ export default {
|
|
|
35
35
|
label: "Comment Content",
|
|
36
36
|
description: "The text content of the comment to add",
|
|
37
37
|
},
|
|
38
|
+
anchor: {
|
|
39
|
+
type: "string",
|
|
40
|
+
label: "Anchor",
|
|
41
|
+
description: "A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Manage comments and replies](https://developers.google.com/workspace/drive/api/v3/manage-comments).",
|
|
42
|
+
optional: true,
|
|
43
|
+
},
|
|
38
44
|
},
|
|
39
45
|
async run({ $ }) {
|
|
40
46
|
const response = await this.googleDrive.createComment(
|
|
41
|
-
this.content,
|
|
42
47
|
this.fileId,
|
|
48
|
+
{
|
|
49
|
+
content: this.content,
|
|
50
|
+
anchor: this.anchor,
|
|
51
|
+
},
|
|
43
52
|
);
|
|
44
53
|
|
|
45
54
|
$.export("$summary", `Successfully added comment with ID ${response.data.id}`);
|
|
@@ -20,7 +20,7 @@ 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.
|
|
23
|
+
version: "0.2.8",
|
|
24
24
|
annotations: {
|
|
25
25
|
destructiveHint: false,
|
|
26
26
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.1.15",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -8,7 +8,7 @@ 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.
|
|
11
|
+
version: "0.1.16",
|
|
12
12
|
annotations: {
|
|
13
13
|
destructiveHint: true,
|
|
14
14
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ 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.
|
|
8
|
+
version: "0.2.8",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -13,7 +13,7 @@ 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.
|
|
16
|
+
version: "0.1.16",
|
|
17
17
|
annotations: {
|
|
18
18
|
destructiveHint: false,
|
|
19
19
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.1.16",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.0.4",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ 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.
|
|
8
|
+
version: "0.1.16",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: true,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import googleDrive from "../../google_drive.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "google_drive-delete-reply",
|
|
5
|
+
name: "Delete Reply",
|
|
6
|
+
description: "Delete a reply on a specific comment. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/replies/delete) for more information",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
13
|
+
type: "action",
|
|
14
|
+
props: {
|
|
15
|
+
googleDrive,
|
|
16
|
+
drive: {
|
|
17
|
+
propDefinition: [
|
|
18
|
+
googleDrive,
|
|
19
|
+
"watchedDrive",
|
|
20
|
+
],
|
|
21
|
+
optional: true,
|
|
22
|
+
},
|
|
23
|
+
fileIdTip: {
|
|
24
|
+
type: "alert",
|
|
25
|
+
alertType: "info",
|
|
26
|
+
content: "You can use actions such as **Find File** or **List Files** to obtain a file ID, and use its value here.",
|
|
27
|
+
},
|
|
28
|
+
fileId: {
|
|
29
|
+
propDefinition: [
|
|
30
|
+
googleDrive,
|
|
31
|
+
"fileId",
|
|
32
|
+
(c) => ({
|
|
33
|
+
drive: c.drive,
|
|
34
|
+
}),
|
|
35
|
+
],
|
|
36
|
+
description: "The file to obtain info for. You can select a file or use a file ID from a previous step.",
|
|
37
|
+
},
|
|
38
|
+
commentId: {
|
|
39
|
+
propDefinition: [
|
|
40
|
+
googleDrive,
|
|
41
|
+
"commentId",
|
|
42
|
+
(c) => ({
|
|
43
|
+
fileId: c.fileId,
|
|
44
|
+
}),
|
|
45
|
+
],
|
|
46
|
+
description: "The comment to get info for. You can select a comment or use a comment ID from a previous step.",
|
|
47
|
+
},
|
|
48
|
+
replyId: {
|
|
49
|
+
propDefinition: [
|
|
50
|
+
googleDrive,
|
|
51
|
+
"replyId",
|
|
52
|
+
(c) => ({
|
|
53
|
+
fileId: c.fileId,
|
|
54
|
+
commentId: c.commentId,
|
|
55
|
+
}),
|
|
56
|
+
],
|
|
57
|
+
description: "The reply to get info for. You can select a reply or use a reply ID from a previous step.",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
async run({ $ }) {
|
|
61
|
+
const response = await this.googleDrive.deleteReply({
|
|
62
|
+
replyId: this.replyId,
|
|
63
|
+
fileId: this.fileId,
|
|
64
|
+
commentId: this.commentId,
|
|
65
|
+
});
|
|
66
|
+
$.export("$summary", `Successfully deleted reply with ID ${this.replyId}`);
|
|
67
|
+
return response;
|
|
68
|
+
},
|
|
69
|
+
};
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.1.15",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -18,7 +18,7 @@ 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.
|
|
21
|
+
version: "0.1.18",
|
|
22
22
|
annotations: {
|
|
23
23
|
destructiveHint: false,
|
|
24
24
|
openWorldHint: true,
|
|
@@ -6,7 +6,7 @@ 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.
|
|
9
|
+
version: "0.1.15",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -7,7 +7,7 @@ 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.
|
|
10
|
+
version: "0.1.15",
|
|
11
11
|
annotations: {
|
|
12
12
|
destructiveHint: false,
|
|
13
13
|
openWorldHint: true,
|
|
@@ -6,7 +6,7 @@ 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.
|
|
9
|
+
version: "0.0.16",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -6,7 +6,7 @@ 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.
|
|
9
|
+
version: "0.1.15",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import googleDrive from "../../google_drive.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "google_drive-get-comment",
|
|
5
|
+
name: "Get Comment By ID",
|
|
6
|
+
description: "Get comment by ID on a specific file. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/comments/get) for more information",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
13
|
+
type: "action",
|
|
14
|
+
props: {
|
|
15
|
+
googleDrive,
|
|
16
|
+
drive: {
|
|
17
|
+
propDefinition: [
|
|
18
|
+
googleDrive,
|
|
19
|
+
"watchedDrive",
|
|
20
|
+
],
|
|
21
|
+
optional: true,
|
|
22
|
+
},
|
|
23
|
+
fileIdTip: {
|
|
24
|
+
type: "alert",
|
|
25
|
+
alertType: "info",
|
|
26
|
+
content: "You can use actions such as **Find File** or **List Files** to obtain a file ID, and use its value here.",
|
|
27
|
+
},
|
|
28
|
+
fileId: {
|
|
29
|
+
propDefinition: [
|
|
30
|
+
googleDrive,
|
|
31
|
+
"fileId",
|
|
32
|
+
(c) => ({
|
|
33
|
+
drive: c.drive,
|
|
34
|
+
}),
|
|
35
|
+
],
|
|
36
|
+
description: "The file to obtain info for. You can select a file or use a file ID from a previous step.",
|
|
37
|
+
},
|
|
38
|
+
commentId: {
|
|
39
|
+
propDefinition: [
|
|
40
|
+
googleDrive,
|
|
41
|
+
"commentId",
|
|
42
|
+
(c) => ({
|
|
43
|
+
fileId: c.fileId,
|
|
44
|
+
}),
|
|
45
|
+
],
|
|
46
|
+
description: "The comment to get info for. You can select a comment or use a comment ID from a previous step.",
|
|
47
|
+
},
|
|
48
|
+
includeDeleted: {
|
|
49
|
+
type: "boolean",
|
|
50
|
+
label: "Include Deleted",
|
|
51
|
+
description: "Whether to include deleted comments.",
|
|
52
|
+
optional: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
async run({ $ }) {
|
|
56
|
+
const response = await this.googleDrive.getComment(
|
|
57
|
+
this.fileId,
|
|
58
|
+
this.commentId,
|
|
59
|
+
this.includeDeleted,
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
$.export("$summary", "Successfully fetched comment by ID");
|
|
63
|
+
return response;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "google_drive-get-current-user",
|
|
7
7
|
name: "Get Current User",
|
|
8
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.
|
|
9
|
+
version: "0.0.2",
|
|
10
10
|
type: "action",
|
|
11
11
|
annotations: {
|
|
12
12
|
destructiveHint: false,
|
|
@@ -5,7 +5,7 @@ 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.
|
|
8
|
+
version: "0.0.12",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -12,7 +12,7 @@ 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
|
+
version: "0.1.17",
|
|
16
16
|
annotations: {
|
|
17
17
|
destructiveHint: false,
|
|
18
18
|
openWorldHint: true,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import googleDrive from "../../google_drive.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "google_drive-get-reply",
|
|
5
|
+
name: "Get Reply By ID",
|
|
6
|
+
description: "Get reply by ID on a specific comment. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/replies/get) for more information",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
13
|
+
type: "action",
|
|
14
|
+
props: {
|
|
15
|
+
googleDrive,
|
|
16
|
+
drive: {
|
|
17
|
+
propDefinition: [
|
|
18
|
+
googleDrive,
|
|
19
|
+
"watchedDrive",
|
|
20
|
+
],
|
|
21
|
+
optional: true,
|
|
22
|
+
},
|
|
23
|
+
fileIdTip: {
|
|
24
|
+
type: "alert",
|
|
25
|
+
alertType: "info",
|
|
26
|
+
content: "You can use actions such as **Find File** or **List Files** to obtain a file ID, and use its value here.",
|
|
27
|
+
},
|
|
28
|
+
fileId: {
|
|
29
|
+
propDefinition: [
|
|
30
|
+
googleDrive,
|
|
31
|
+
"fileId",
|
|
32
|
+
(c) => ({
|
|
33
|
+
drive: c.drive,
|
|
34
|
+
}),
|
|
35
|
+
],
|
|
36
|
+
description: "The file to obtain info for. You can select a file or use a file ID from a previous step.",
|
|
37
|
+
},
|
|
38
|
+
commentId: {
|
|
39
|
+
propDefinition: [
|
|
40
|
+
googleDrive,
|
|
41
|
+
"commentId",
|
|
42
|
+
(c) => ({
|
|
43
|
+
fileId: c.fileId,
|
|
44
|
+
}),
|
|
45
|
+
],
|
|
46
|
+
description: "The comment to get info for. You can select a comment or use a comment ID from a previous step.",
|
|
47
|
+
},
|
|
48
|
+
replyId: {
|
|
49
|
+
propDefinition: [
|
|
50
|
+
googleDrive,
|
|
51
|
+
"replyId",
|
|
52
|
+
(c) => ({
|
|
53
|
+
fileId: c.fileId,
|
|
54
|
+
commentId: c.commentId,
|
|
55
|
+
}),
|
|
56
|
+
],
|
|
57
|
+
description: "The reply to get info for. You can select a reply or use a reply ID from a previous step.",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
async run({ $ }) {
|
|
61
|
+
const response = await this.googleDrive.getReply(this.replyId, this.fileId, this.commentId);
|
|
62
|
+
|
|
63
|
+
$.export("$summary", `Successfully fetched reply with ID ${this.replyId}`);
|
|
64
|
+
return response;
|
|
65
|
+
},
|
|
66
|
+
};
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.1.15",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.0.8",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.0.4",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ 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.
|
|
8
|
+
version: "0.1.19",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import googleDrive from "../../google_drive.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "google_drive-list-replies",
|
|
5
|
+
name: "List Replies",
|
|
6
|
+
description: "List replies to a specific comment. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/replies/list) for more information",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
13
|
+
type: "action",
|
|
14
|
+
props: {
|
|
15
|
+
googleDrive,
|
|
16
|
+
drive: {
|
|
17
|
+
propDefinition: [
|
|
18
|
+
googleDrive,
|
|
19
|
+
"watchedDrive",
|
|
20
|
+
],
|
|
21
|
+
optional: true,
|
|
22
|
+
},
|
|
23
|
+
fileIdTip: {
|
|
24
|
+
type: "alert",
|
|
25
|
+
alertType: "info",
|
|
26
|
+
content: "You can use actions such as **Find File** or **List Files** to obtain a file ID, and use its value here.",
|
|
27
|
+
},
|
|
28
|
+
fileId: {
|
|
29
|
+
propDefinition: [
|
|
30
|
+
googleDrive,
|
|
31
|
+
"fileId",
|
|
32
|
+
(c) => ({
|
|
33
|
+
drive: c.drive,
|
|
34
|
+
}),
|
|
35
|
+
],
|
|
36
|
+
description: "The file to obtain info for. You can select a file or use a file ID from a previous step.",
|
|
37
|
+
},
|
|
38
|
+
commentId: {
|
|
39
|
+
propDefinition: [
|
|
40
|
+
googleDrive,
|
|
41
|
+
"commentId",
|
|
42
|
+
(c) => ({
|
|
43
|
+
fileId: c.fileId,
|
|
44
|
+
}),
|
|
45
|
+
],
|
|
46
|
+
description: "The comment to get info for. You can select a comment or use a comment ID from a previous step.",
|
|
47
|
+
},
|
|
48
|
+
includeDeleted: {
|
|
49
|
+
type: "boolean",
|
|
50
|
+
label: "Include Deleted",
|
|
51
|
+
description: "Whether to include deleted replies.",
|
|
52
|
+
optional: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
async run({ $ }) {
|
|
56
|
+
const allReplies = [];
|
|
57
|
+
let pageToken;
|
|
58
|
+
do {
|
|
59
|
+
const {
|
|
60
|
+
replies, nextPageToken,
|
|
61
|
+
} = await this.googleDrive.listReplies(pageToken, {
|
|
62
|
+
fileId: this.fileId,
|
|
63
|
+
commentId: this.commentId,
|
|
64
|
+
includeDeleted: this.includeDeleted,
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
allReplies.push(...replies);
|
|
68
|
+
pageToken = nextPageToken;
|
|
69
|
+
} while (pageToken);
|
|
70
|
+
|
|
71
|
+
$.export("$summary", "Successfully listed replies");
|
|
72
|
+
return allReplies;
|
|
73
|
+
},
|
|
74
|
+
};
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.1.15",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ 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.
|
|
8
|
+
version: "0.1.15",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: true,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.0.4",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ 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.
|
|
8
|
+
version: "0.0.8",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.0.4",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
version: "0.1.16",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import googleDrive from "../../google_drive.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "google_drive-update-comment",
|
|
5
|
+
name: "Update Comment",
|
|
6
|
+
description: "Update the content of a specific comment. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/comments/update) for more information",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
13
|
+
type: "action",
|
|
14
|
+
props: {
|
|
15
|
+
googleDrive,
|
|
16
|
+
drive: {
|
|
17
|
+
propDefinition: [
|
|
18
|
+
googleDrive,
|
|
19
|
+
"watchedDrive",
|
|
20
|
+
],
|
|
21
|
+
optional: true,
|
|
22
|
+
},
|
|
23
|
+
fileIdTip: {
|
|
24
|
+
type: "alert",
|
|
25
|
+
alertType: "info",
|
|
26
|
+
content: "You can use actions such as **Find File** or **List Files** to obtain a file ID, and use its value here.",
|
|
27
|
+
},
|
|
28
|
+
fileId: {
|
|
29
|
+
propDefinition: [
|
|
30
|
+
googleDrive,
|
|
31
|
+
"fileId",
|
|
32
|
+
(c) => ({
|
|
33
|
+
drive: c.drive,
|
|
34
|
+
}),
|
|
35
|
+
],
|
|
36
|
+
description: "The file to obtain info for. You can select a file or use a file ID from a previous step.",
|
|
37
|
+
},
|
|
38
|
+
commentId: {
|
|
39
|
+
propDefinition: [
|
|
40
|
+
googleDrive,
|
|
41
|
+
"commentId",
|
|
42
|
+
(c) => ({
|
|
43
|
+
fileId: c.fileId,
|
|
44
|
+
}),
|
|
45
|
+
],
|
|
46
|
+
description: "The comment to get info for. You can select a comment or use a comment ID from a previous step.",
|
|
47
|
+
},
|
|
48
|
+
content: {
|
|
49
|
+
type: "string",
|
|
50
|
+
label: "Content",
|
|
51
|
+
description: "The new content of the comment.",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
async run({ $ }) {
|
|
55
|
+
const response = await this.googleDrive.updateComment(
|
|
56
|
+
this.commentId,
|
|
57
|
+
this.fileId,
|
|
58
|
+
{
|
|
59
|
+
content: this.content,
|
|
60
|
+
},
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
$.export("$summary", "Successfully updated comment");
|
|
64
|
+
return response;
|
|
65
|
+
},
|
|
66
|
+
};
|
|
@@ -6,7 +6,7 @@ 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.
|
|
9
|
+
version: "2.0.7",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: true,
|
|
12
12
|
openWorldHint: true,
|