Skip to content

Commit 0cb7b75

Browse files
Merge branch 'master' into issue-16222
2 parents 2ae7e3d + c7d4b33 commit 0cb7b75

File tree

19 files changed

+1625
-19
lines changed

19 files changed

+1625
-19
lines changed
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: "notiff_io",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/notiff_io/package.json

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

components/servicenow/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ First, sign into your [ServiceNow Developer Portal](https://developer.servicenow
3131
### Create the OAuth Validator app
3232

3333
1. Copy the client ID and secret from the `Pipedream` app you created above.
34-
2. Name this app `Pipedream OAuth Validator` and add the previously copied client ID and secret.
35-
3. Set the grant type to **Authorization Code** and the **Token URL** to `oauth_token.do`.
36-
4. Use the same **Redirect URL** as before.
34+
2. Go back to the **System OAuth > Application Registry > New** and select **Connect to an OAuth Provider (simplified)**
35+
3. Name this app `Pipedream OAuth Validator` and add the previously copied client ID and secret.
36+
4. Set the grant type to **Authorization Code** and the **Token URL** to `oauth_token.do`.
37+
5. Use the same **Redirect URL** as before.
3738

38-
5. Visit [Pipedream's account page](https://pipedream.com/accounts), and click **Click Here to Connect An App**. Search for **ServiceNow** and select it. Enter the client ID, client secret, and your instance name (e.g., `dev98042` from `https://dev98042.service-now.com/`).
39+
6. Visit [Pipedream's account page](https://pipedream.com/accounts), and click **Click Here to Connect An App**. Search for **ServiceNow** and select it. Enter the client ID, client secret, and your instance name (e.g., `dev98042` from `https://dev98042.service-now.com/`).
3940

40-
6. Press **Connect**. A new window will prompt you to login to your ServiceNow instance, authorizing Pipedream's access to the ServiceNow REST API.
41+
7. Press **Connect**. A new window will prompt you to login to your ServiceNow instance, authorizing Pipedream's access to the ServiceNow REST API.
4142

4243
## ServiceNow Authorization Reference
4344

components/smartlead/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/smartlead",
3+
"version": "0.0.1",
4+
"description": "Pipedream Smartlead Components",
5+
"main": "smartlead.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"smartlead"
9+
],
10+
"homepage": "https://pipedream.com/apps/smartlead",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
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: "smartlead",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import app from "../../swell.app.mjs";
2+
3+
export default {
4+
key: "swell-create-account",
5+
name: "Create Account",
6+
description: "Create a new customer account. [See the documentation](https://developers.swell.is/backend-api/accounts/create-an-account)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
email: {
12+
propDefinition: [
13+
app,
14+
"email",
15+
],
16+
},
17+
firstName: {
18+
propDefinition: [
19+
app,
20+
"firstName",
21+
],
22+
},
23+
lastName: {
24+
propDefinition: [
25+
app,
26+
"lastName",
27+
],
28+
},
29+
phone: {
30+
propDefinition: [
31+
app,
32+
"phone",
33+
],
34+
},
35+
notes: {
36+
propDefinition: [
37+
app,
38+
"notes",
39+
],
40+
},
41+
},
42+
async run({ $ }) {
43+
const response = await this.app.createAccount({
44+
$,
45+
data: {
46+
email: this.email,
47+
first_name: this.firstName,
48+
last_name: this.lastName,
49+
phone: this.phone,
50+
notes: this.notes,
51+
},
52+
});
53+
$.export("$summary", "Successfully created account with ID: " + response.id);
54+
return response;
55+
},
56+
};
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import app from "../../swell.app.mjs";
2+
3+
export default {
4+
key: "swell-create-product",
5+
name: "Create Product",
6+
description: "Create a new product. [See the documentation](https://developers.swell.is/backend-api/products/create-a-product)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
name: {
12+
propDefinition: [
13+
app,
14+
"name",
15+
],
16+
},
17+
price: {
18+
propDefinition: [
19+
app,
20+
"price",
21+
],
22+
},
23+
active: {
24+
propDefinition: [
25+
app,
26+
"active",
27+
],
28+
},
29+
description: {
30+
propDefinition: [
31+
app,
32+
"description",
33+
],
34+
},
35+
discontinued: {
36+
propDefinition: [
37+
app,
38+
"discontinued",
39+
],
40+
},
41+
},
42+
async run({ $ }) {
43+
const response = await this.app.createProduct({
44+
$,
45+
data: {
46+
name: this.name,
47+
price: this.price,
48+
active: this.active,
49+
description: this.description,
50+
discontinued: this.discontinued,
51+
},
52+
});
53+
$.export("$summary", "Successfully created product with ID: " + response.id);
54+
return response;
55+
},
56+
};
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import app from "../../swell.app.mjs";
2+
3+
export default {
4+
key: "swell-update-account",
5+
name: "Update Account",
6+
description: "Update an existing account with the corresponding ID. [See the documentation](https://developers.swell.is/backend-api/accounts/update-an-account)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
email: {
12+
propDefinition: [
13+
app,
14+
"email",
15+
],
16+
},
17+
firstName: {
18+
propDefinition: [
19+
app,
20+
"firstName",
21+
],
22+
},
23+
lastName: {
24+
propDefinition: [
25+
app,
26+
"lastName",
27+
],
28+
},
29+
phone: {
30+
propDefinition: [
31+
app,
32+
"phone",
33+
],
34+
},
35+
notes: {
36+
propDefinition: [
37+
app,
38+
"notes",
39+
],
40+
},
41+
accountId: {
42+
propDefinition: [
43+
app,
44+
"accountId",
45+
],
46+
},
47+
},
48+
async run({ $ }) {
49+
const response = await this.app.updateAccount({
50+
$,
51+
accountId: this.accountId,
52+
data: {
53+
email: this.email,
54+
first_name: this.firstName,
55+
last_name: this.lastName,
56+
phone: this.phone,
57+
notes: this.notes,
58+
},
59+
});
60+
$.export("$summary", "Successfully updated account with ID: " + this.id);
61+
return response;
62+
},
63+
};

components/swell/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/swell",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "Pipedream Swell Components",
55
"main": "swell.app.mjs",
66
"keywords": [
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.0.3"
1417
}
1518
}

0 commit comments

Comments
 (0)