Skip to content

Commit 6957c64

Browse files
authored
Merging pull request #18393
* new components * remove console.log * versions * update
1 parent 5f205d7 commit 6957c64

File tree

23 files changed

+200
-23
lines changed

23 files changed

+200
-23
lines changed

components/dropbox/actions/create-a-text-file/create-a-text-file.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
name: "Create a Text File",
55
description: "Creates a brand new text file from plain text content you specify. [See the documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor)",
66
key: "dropbox-create-a-text-file",
7-
version: "0.0.11",
7+
version: "0.0.12",
88
type: "action",
99
props: {
1010
dropbox,

components/dropbox/actions/create-folder/create-folder.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
name: "Create folder",
55
description: "Create a Folder. [See the documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesCreateFolderV2__anchor)",
66
key: "dropbox-create-folder",
7-
version: "0.0.11",
7+
version: "0.0.12",
88
type: "action",
99
props: {
1010
dropbox,

components/dropbox/actions/create-or-append-to-a-text-file/create-or-append-to-a-text-file.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
name: "Create or Append to a Text File",
55
description: "Adds a new line to an existing text file, or creates a file if it doesn't exist. [See the documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor)",
66
key: "dropbox-create-or-append-to-a-text-file",
7-
version: "0.0.11",
7+
version: "0.0.12",
88
type: "action",
99
props: {
1010
dropbox,

components/dropbox/actions/create-update-share-link/create-update-share-link.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Create/Update a Share Link",
66
description: "Creates or updates a public share link to the file or folder (It allows you to share the file or folder with anyone). [See the documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingCreateSharedLinkWithSettings__anchor)",
77
key: "dropbox-create-update-share-link",
8-
version: "0.0.11",
8+
version: "0.0.12",
99
type: "action",
1010
props: {
1111
...common.props,
@@ -66,6 +66,13 @@ export default {
6666
optional: true,
6767
options: consts.CREATE_SHARED_LINK_ACCESS_OPTIONS,
6868
};
69+
props.audience = {
70+
type: "string",
71+
label: "Audience",
72+
description: "The audience for the shared link",
73+
optional: true,
74+
options: consts.CREATE_SHARED_LINK_AUDIENCE_OPTIONS,
75+
};
6976
}
7077

7178
return props;
@@ -84,6 +91,7 @@ export default {
8491
linkPassword,
8592
expires,
8693
access,
94+
audience,
8795
} = this;
8896

8997
const accountType = await this.getCurrentAccount();
@@ -107,6 +115,7 @@ export default {
107115
expires,
108116
access,
109117
allow_download: allowDownload,
118+
audience,
110119
},
111120
});
112121
$.export("$summary", `Shared link for "${path?.label || path}" successfully created`);

components/dropbox/actions/delete-file-folder/delete-file-folder.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
name: "Delete a File/Folder",
55
description: "Permanently removes a file/folder from the server. [See documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDeleteV2__anchor)",
66
key: "dropbox-delete-file-folder",
7-
version: "0.0.11",
7+
version: "0.0.12",
88
type: "action",
99
props: {
1010
dropbox,

components/dropbox/actions/download-file-to-tmp/download-file-to-tmp.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
name: "Download File to TMP",
1010
description: "Download a specific file to the temporary directory. [See the documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor).",
1111
key: "dropbox-download-file-to-tmp",
12-
version: "0.0.8",
12+
version: "0.0.9",
1313
type: "action",
1414
props: {
1515
dropbox,
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import dropbox from "../../dropbox.app.mjs";
2+
3+
export default {
4+
name: "Get Shared Link File",
5+
description: "Get a file from a shared link. [See the documentation](https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file)",
6+
key: "dropbox-get-shared-link-file",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
dropbox,
11+
sharedLinkUrl: {
12+
propDefinition: [
13+
dropbox,
14+
"sharedLinkUrl",
15+
],
16+
},
17+
linkPassword: {
18+
propDefinition: [
19+
dropbox,
20+
"linkPassword",
21+
],
22+
},
23+
},
24+
async run({ $ }) {
25+
const { result } = await this.dropbox.getSharedLinkFile({
26+
url: this.sharedLinkUrl,
27+
link_password: this.linkPassword,
28+
});
29+
$.export("$summary", "Successfully retrieved shared link file");
30+
return result;
31+
},
32+
};
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import dropbox from "../../dropbox.app.mjs";
2+
3+
export default {
4+
name: "Get Shared Link Metadata",
5+
description: "Retrieves the shared link metadata for a given shared link. [See the documentation](https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata)",
6+
key: "dropbox-get-shared-link-metadata",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
dropbox,
11+
sharedLinkUrl: {
12+
propDefinition: [
13+
dropbox,
14+
"sharedLinkUrl",
15+
],
16+
},
17+
linkPassword: {
18+
propDefinition: [
19+
dropbox,
20+
"linkPassword",
21+
],
22+
},
23+
},
24+
async run({ $ }) {
25+
const { result } = await this.dropbox.getSharedLinkMetadata({
26+
url: this.sharedLinkUrl,
27+
link_password: this.linkPassword,
28+
});
29+
$.export("$summary", "Successfully retrieved shared link metadata");
30+
return result;
31+
},
32+
};

components/dropbox/actions/list-file-folders-in-a-folder/list-file-folders-in-a-folder.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
name: "List All Files/Subfolders in a Folder",
55
description: "Retrieves a list of files or subfolders in a specified folder [See the documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolder__anchor)",
66
key: "dropbox-list-file-folders-in-a-folder",
7-
version: "0.0.11",
7+
version: "0.0.12",
88
type: "action",
99
props: {
1010
dropbox,

components/dropbox/actions/list-file-revisions/list-file-revisions.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "List File Revisions",
66
description: "Retrieves a list of file revisions needed to recover previous content. [See the documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListRevisions__anchor)",
77
key: "dropbox-list-file-revisions",
8-
version: "0.0.11",
8+
version: "0.0.12",
99
type: "action",
1010
props: {
1111
dropbox,

0 commit comments

Comments
 (0)