Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Add Contacts to Sequence",
description: "Adds one or more contacts to a sequence in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#add-contacts-to-sequence)",
type: "action",
version: "0.0.3",
version: "0.0.4",
props: {
app,
sequenceId: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Create Account",
description: "Creates a new account in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#create-an-account)",
type: "action",
version: "0.0.3",
version: "0.0.4",
props: {
app,
name: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Create Contact",
description: "Creates a new contact in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#create-a-contact)",
type: "action",
version: "0.0.4",
version: "0.0.5",
props: {
app,
email: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Create Opportunity",
description: "Creates a new opportunity in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#create-opportunity)",
type: "action",
version: "0.0.2",
version: "0.0.3",
props: {
app,
ownerId: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "Create Or Update Contact",
description: "Creates or updates a specific contact. If the contact email already exists, it's updated. Otherwise, a new contact is created. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#create-a-contact)",
type: "action",
version: "0.0.1",
version: "0.0.2",
props: {
app,
email: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Opportunity",
description: "Gets a specific opportunity in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#view-opportunity)",
type: "action",
version: "0.0.2",
version: "0.0.3",
props: {
app,
opportunityId: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "People Enrichment",
description: "Enriches a person's information, the more information you pass in, the more likely we can find a match. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#people-enrichment)",
type: "action",
version: "0.0.5",
version: "0.0.6",
props: {
app,
firstName: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "Search For Accounts",
description: "Search for accounts in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-accounts)",
type: "action",
version: "0.0.2",
version: "0.0.3",
props: {
app,
search: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "Search For Contacts",
description: "Search for contacts in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",
type: "action",
version: "0.0.2",
version: "0.0.3",
props: {
app,
search: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "Search For Sequences",
description: "Search for sequences in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-sequences)",
type: "action",
version: "0.0.2",
version: "0.0.3",
props: {
app,
search: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Update Account Stage",
description: "Updates the stage of one or more accounts in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#update-account-stage)",
type: "action",
version: "0.0.3",
version: "0.0.4",
props: {
app,
accountIds: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "Update Account",
description: "Updates an existing account in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#update-an-account)",
type: "action",
version: "0.0.3",
version: "0.0.4",
props: {
app,
accountId: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Update Contact Stage",
description: "Updates the stage of one or more contacts in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#update-contact-stage)",
type: "action",
version: "0.0.3",
version: "0.0.4",
props: {
app,
contactIds: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "Update Contact",
description: "Updates an existing contact in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#update-a-contact)",
type: "action",
version: "0.0.4",
version: "0.0.5",
props: {
app,
contactId: {
Expand Down Expand Up @@ -83,7 +83,9 @@ export default {
title: this.title,
account_id: this.accountId,
website_url: this.websiteUrl,
label_names: this.labelNames,
label_names: typeof this.labelNames === "string"
? JSON.parse(this.labelNames)
: this.labelNames,
present_raw_address: this.address,
direct_phone: this.phone,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Update Opportunity",
description: "Updates a new opportunity in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#update-opportunity)",
type: "action",
version: "0.0.2",
version: "0.0.3",
props: {
app,
opportunityId: {
Expand Down
12 changes: 11 additions & 1 deletion components/apollo_io/apollo_io.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,12 @@ export default {
labelNames: {
type: "string[]",
label: "Label Names",
description: "A list of names to tag this newly created contact. If the name does not exist, Apollo will automatically create it",
description: "A list of names to tag this contact. You can select the labels from the list or create new ones using a custom expression, i.e., `[\"label1\", \"label2\"]`",
optional: true,
async options() {
const response = await this.listLabels();
return response.map(({ name }) => name) || [];
},
},
address: {
type: "string",
Expand Down Expand Up @@ -384,6 +388,12 @@ export default {
...args,
});
},
listLabels(args = {}) {
return this.makeRequest({
path: "/labels",
...args,
});
},
async *getResourcesStream({
resourceFn,
resourceFnArgs,
Expand Down
2 changes: 1 addition & 1 deletion components/apollo_io/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/apollo_io",
"version": "0.4.1",
"version": "0.5.0",
"description": "Pipedream Apollo.io Components",
"main": "apollo_io.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
export default {
...common,
key: "apollo_io-account-created",
name: "Account Created",

Check warning on line 6 in components/apollo_io/sources/account-created/account-created.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
description: "Triggers when an account is created. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-accounts)",

Check warning on line 7 in components/apollo_io/sources/account-created/account-created.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source descriptions should start with "Emit new". See https://pipedream.com/docs/components/guidelines/#source-description
type: "source",
version: "0.0.3",
version: "0.0.4",
dedupe: "unique",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
export default {
...common,
key: "apollo_io-account-updated",
name: "Account Updated",

Check warning on line 7 in components/apollo_io/sources/account-updated/account-updated.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
description: "Triggers when an account is updated. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",

Check warning on line 8 in components/apollo_io/sources/account-updated/account-updated.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source descriptions should start with "Emit new". See https://pipedream.com/docs/components/guidelines/#source-description
type: "source",
version: "0.0.3",
version: "0.0.4",
dedupe: "unique",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
export default {
...common,
key: "apollo_io-contact-created",
name: "Contact Created",

Check warning on line 6 in components/apollo_io/sources/contact-created/contact-created.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
description: "Triggers when a contact is created. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",

Check warning on line 7 in components/apollo_io/sources/contact-created/contact-created.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source descriptions should start with "Emit new". See https://pipedream.com/docs/components/guidelines/#source-description
type: "source",
version: "0.0.5",
version: "0.0.6",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
export default {
...common,
key: "apollo_io-contact-updated",
name: "Contact Updated",

Check warning on line 6 in components/apollo_io/sources/contact-updated/contact-updated.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
description: "Triggers when a contact is updated. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",

Check warning on line 7 in components/apollo_io/sources/contact-updated/contact-updated.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source descriptions should start with "Emit new". See https://pipedream.com/docs/components/guidelines/#source-description
type: "source",
version: "0.0.5",
version: "0.0.6",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Loading