Skip to content

Commit 07aa033

Browse files
authored
Merge branch 'master' into issue-13275
2 parents c17f749 + 10ab585 commit 07aa033

File tree

15 files changed

+524
-15
lines changed

15 files changed

+524
-15
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { defineApp } from "@pipedream/types";
2-
3-
export default defineApp({
1+
export default {
42
type: "app",
5-
app: "suitedash",
3+
app: "deepimage",
64
propDefinitions: {},
75
methods: {
86
// this.$auth contains connected account data
97
authKeys() {
108
console.log(Object.keys(this.$auth));
119
},
1210
},
13-
});
11+
};

components/deepimage/package.json

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

components/little_green_light/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
The Little Green Light API provides access to a robust donor management platform, allowing for the creation, retrieval, update, and deletion of donor data. With the API, you can automate tasks related to fundraising, event management, and donor engagement. On Pipedream, you can harness this API to construct serverless workflows that trigger on various events, integrate with other apps, and automate repetitive tasks without managing infrastructure.
44

5+
Note: Little Green Light strongly recommends against connecting your LGL account with any AI services like ChatGPT, as that could lead to unintended use of personal data.
6+
57
# Example Use Cases
68

79
- **Sync Donor Information to Google Sheets**: Whenever a new donor is added in Little Green Light, automatically add their details to a Google Sheet. This workflow can help maintain an up-to-date backup of donor data and facilitate easy sharing and reporting.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import motion from "../../motion.app.mjs";
2+
3+
export default {
4+
key: "motion-get-schedules",
5+
name: "Retrieve Schedules",
6+
version: "0.0.1",
7+
description: "Get a list of schedules for your user. [See the documentation](https://docs.usemotion.com/docs/motion-rest-api/f9fec7bb61c6f-get-schedules)",
8+
type: "action",
9+
props: {
10+
motion,
11+
},
12+
methods: {
13+
getSchedules($) {
14+
return this.motion._makeRequest({
15+
$,
16+
path: "schedules",
17+
});
18+
},
19+
},
20+
async run({ $ }) {
21+
const response = await this.getSchedules($);
22+
$.export("$summary", `Successfully fetched ${response?.length} schedules`);
23+
return response;
24+
},
25+
};

components/motion/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/motion",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Pipedream Motion Components",
55
"main": "motion.app.mjs",
66
"keywords": [
@@ -13,6 +13,6 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^1.5.1"
16+
"@pipedream/platform": "^3.0.3"
1717
}
1818
}

components/suitedash/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import suitedash from "../../suitedash.app.mjs";
2+
3+
export default {
4+
key: "suitedash-create-company",
5+
name: "Create Company",
6+
description: "Creates a new company in SuiteDash. [See the documentation](https://app.suitedash.com/secure-api/swagger)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
suitedash,
11+
companyName: {
12+
propDefinition: [
13+
suitedash,
14+
"companyName",
15+
],
16+
},
17+
companyRole: {
18+
propDefinition: [
19+
suitedash,
20+
"role",
21+
],
22+
},
23+
firstName: {
24+
type: "string",
25+
label: "First Name",
26+
description: "First name of the company's primary contact",
27+
},
28+
lastName: {
29+
type: "string",
30+
label: "Last Name",
31+
description: "Last name of the company's primary contact",
32+
},
33+
email: {
34+
type: "string",
35+
label: "Email",
36+
description: "Email address of the company's primary contact",
37+
},
38+
sendWelcomeEmail: {
39+
type: "boolean",
40+
label: "Send Welcome Email",
41+
description: "Send welcome email to the primary contact. Default: `false`",
42+
optional: true,
43+
default: false,
44+
},
45+
createPrimaryContactIfNotExists: {
46+
type: "boolean",
47+
label: "Create Primary Contact If Not Exists",
48+
description: "Create a Primary Contact with all provided data if the email does not exist. Default: `true`",
49+
optional: true,
50+
default: true,
51+
},
52+
preventIndividualMode: {
53+
type: "boolean",
54+
label: "Prevent Individual Mode",
55+
description: "Prevent this Primary Contact from switching into `Individual Mode`. Default: `false`",
56+
optional: true,
57+
default: false,
58+
},
59+
},
60+
async run({ $ }) {
61+
const response = await this.suitedash.createCompany({
62+
$,
63+
data: {
64+
name: this.companyName,
65+
role: this.companyRole,
66+
primaryContact: {
67+
first_name: this.firstName,
68+
last_name: this.lastName,
69+
email: this.email,
70+
send_welcome_email: this.sendWelcomeEmail,
71+
create_primary_contact_if_not_exists: this.createPrimaryContactIfNotExists,
72+
prevent_individual_mode: this.preventIndividualMode,
73+
},
74+
},
75+
});
76+
$.export("$summary", `Successfully created company ${this.companyName}`);
77+
return response;
78+
},
79+
};
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import suitedash from "../../suitedash.app.mjs";
2+
3+
export default {
4+
key: "suitedash-create-contact",
5+
name: "Create Contact",
6+
description: "Creates a new contact in SuiteDash. [See the documentation](https://app.suitedash.com/secure-api/swagger)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
suitedash,
11+
firstName: {
12+
type: "string",
13+
label: "Contact First Name",
14+
description: "The first name of the new contact",
15+
},
16+
lastName: {
17+
type: "string",
18+
label: "Contact Last Name",
19+
description: "The last name of the new contact",
20+
},
21+
email: {
22+
type: "string",
23+
label: "Contact Email",
24+
description: "The email of the new contact",
25+
},
26+
role: {
27+
propDefinition: [
28+
suitedash,
29+
"role",
30+
],
31+
label: "Contact Role",
32+
description: "The role of the new contact",
33+
},
34+
sendWelcomeEmail: {
35+
type: "boolean",
36+
label: "Send Welcome Email",
37+
description: "Whether to send a welcome email to the new contact",
38+
optional: true,
39+
},
40+
},
41+
async run({ $ }) {
42+
const response = await this.suitedash.createContact({
43+
$,
44+
data: {
45+
first_name: this.firstName,
46+
last_name: this.lastName,
47+
email: this.email,
48+
role: this.role,
49+
send_welcome_email: this.sendWelcomeEmail,
50+
},
51+
});
52+
$.export("$summary", `Successfully created contact ${this.firstName} ${this.lastName}`);
53+
return response;
54+
},
55+
};
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
import suitedash from "../../suitedash.app.mjs";
2+
import { ConfigurationError } from "@pipedream/platform";
3+
4+
export default {
5+
key: "suitedash-update-company",
6+
name: "Update Company",
7+
description: "Updates an existing company's details in SuiteDash. [See the documentation](https://app.suitedash.com/secure-api/swagger)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
suitedash,
12+
companyId: {
13+
propDefinition: [
14+
suitedash,
15+
"companyId",
16+
],
17+
},
18+
companyName: {
19+
propDefinition: [
20+
suitedash,
21+
"companyName",
22+
],
23+
optional: true,
24+
},
25+
website: {
26+
type: "string",
27+
label: "Website",
28+
description: "The website of the company.",
29+
optional: true,
30+
},
31+
phone: {
32+
type: "string",
33+
label: "Phone",
34+
description: "The phone number of the company",
35+
optional: true,
36+
},
37+
companyAddress: {
38+
type: "string",
39+
label: "Company Address",
40+
description: "The full address of the company. Example: dba Staybridge Suites Mount Laurel 324 Church Road Mount Laurel, NJ 09478",
41+
optional: true,
42+
},
43+
tags: {
44+
type: "string[]",
45+
label: "Tags",
46+
description: "An array of tags associated with the company",
47+
optional: true,
48+
},
49+
backgroundInfo: {
50+
type: "string",
51+
label: "Background Info",
52+
description: "Background information about the company",
53+
optional: true,
54+
},
55+
},
56+
async run({ $ }) {
57+
if (!this.companyName
58+
&& !this.website
59+
&& !this.phone
60+
&& !this.companyAddress
61+
&& !this.tags
62+
&& !this.backgroundInfo
63+
) {
64+
throw new ConfigurationError("Please enter at least one field to update");
65+
}
66+
67+
const response = await this.suitedash.updateCompany({
68+
$,
69+
companyId: this.companyId,
70+
data: {
71+
name: this.companyName,
72+
website: this.website,
73+
phone: this.phone,
74+
full_address: this.companyAddress,
75+
tags: this.tags,
76+
background_info: this.backgroundInfo,
77+
},
78+
});
79+
$.export("$summary", `Successfully updated company ${this.companyId}`);
80+
return response;
81+
},
82+
};

components/suitedash/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
22
"name": "@pipedream/suitedash",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"description": "Pipedream SuiteDash Components",
55
"main": "dist/app/suitedash.app.mjs",
66
"keywords": [
77
"pipedream",
88
"suitedash"
99
],
10-
"files": ["dist"],
1110
"homepage": "https://pipedream.com/apps/suitedash",
1211
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1312
"publishConfig": {
1413
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.0.3"
1517
}
1618
}

0 commit comments

Comments
 (0)