Skip to content

Commit 6b54d05

Browse files
authored
Merge branch 'master' into databricks-sql-warehouses
2 parents db3b6cd + 0c007db commit 6b54d05

File tree

147 files changed

+3159
-150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+3159
-150
lines changed

components/azure_devops/azure_devops.app.mjs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
_personalAccessToken() {
5252
return this.$auth.personal_access_token;
5353
},
54-
_makeRequest(args = {}) {
54+
async _makeRequest(args = {}) {
5555
const {
5656
$ = this,
5757
url,
@@ -68,7 +68,14 @@ export default {
6868
? "&"
6969
: "?";
7070
config.url += `api-version=${API_VERSION}`;
71-
return axios($, config);
71+
try {
72+
return await axios($, config);
73+
} catch (error) {
74+
if (error.response?.status === 401 && !useOAuth) {
75+
throw new ConfigurationError("Azure DevOps Personal Access Token is required for this operation. Please verify that your personal access token is correct.");
76+
}
77+
throw error;
78+
}
7279
},
7380
async listAccounts(args = {}) {
7481
const { value } = await this._makeRequest({

components/azure_devops/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/azure_devops",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Azure DevOps Components",
55
"main": "azure_devops.app.mjs",
66
"keywords": [

components/azure_devops/sources/new-event/new-event.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import azureDevops from "../../azure_devops.app.mjs";
22

33
export default {
44
name: "New Event (Instant)",
5-
version: "0.0.3",
5+
version: "0.0.4",
66
key: "azure_devops-new-event",
77
description: "Emit new event for the specified event type.",
88
type: "source",

components/cockpit/cockpit.app.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "cockpit",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/cockpit/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/cockpit",
3+
"version": "0.0.1",
4+
"description": "Pipedream Cockpit Components",
5+
"main": "cockpit.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"cockpit"
9+
],
10+
"homepage": "https://pipedream.com/apps/cockpit",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

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,

0 commit comments

Comments
 (0)