Skip to content

Apollo search contacts bug fix #16443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 28, 2025
Merged
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
@@ -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.5",
version: "0.0.6",
props: {
app,
sequenceId: {
Original file line number Diff line number Diff line change
@@ -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.5",
version: "0.0.6",
props: {
app,
name: {
Original file line number Diff line number Diff line change
@@ -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.6",
version: "0.0.7",
props: {
app,
email: {
Original file line number Diff line number Diff line change
@@ -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.4",
version: "0.0.5",
props: {
app,
ownerId: {
Original file line number Diff line number Diff line change
@@ -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.3",
version: "0.0.4",
props: {
app,
email: {
Original file line number Diff line number Diff line change
@@ -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.4",
version: "0.0.5",
props: {
app,
opportunityId: {
Original file line number Diff line number Diff line change
@@ -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.7",
version: "0.0.8",
props: {
app,
firstName: {
Original file line number Diff line number Diff line change
@@ -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.4",
version: "0.0.5",
props: {
app,
search: {
Original file line number Diff line number Diff line change
@@ -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.4",
version: "0.0.6",
props: {
app,
search: {
@@ -43,7 +43,7 @@ export default {
},
},
async run({ $ }) {
const resourcesStream = this.app.getResourcesStream({
const resourcesStream = this.app.getIterations({
resourceFn: this.app.searchContacts,
resourceFnArgs: {
params: {
@@ -56,7 +56,7 @@ export default {
resourceName: "contacts",
});

const contacts = await utils.streamIterator(resourcesStream);
const contacts = await utils.iterate(resourcesStream);

$.export("$summary", `Successfully fetched ${contacts.length} contacts.`);

Original file line number Diff line number Diff line change
@@ -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.4",
version: "0.0.6",
props: {
app,
search: {
@@ -16,7 +16,7 @@ export default {
},
},
async run({ $ }) {
const resourcesStream = this.app.getResourcesStream({
const resourcesStream = this.app.getIterations({
resourceFn: this.app.listSequences,
resourceFnArgs: {
params: {
@@ -26,7 +26,7 @@ export default {
resourceName: "emailer_campaigns",
});

const sequences = await utils.streamIterator(resourcesStream);
const sequences = await utils.iterate(resourcesStream);

$.export("$summary", `Successfully fetched ${sequences.length} sequences.`);

Original file line number Diff line number Diff line change
@@ -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.5",
version: "0.0.6",
props: {
app,
accountIds: {
Original file line number Diff line number Diff line change
@@ -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.5",
version: "0.0.6",
props: {
app,
accountId: {
Original file line number Diff line number Diff line change
@@ -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.5",
version: "0.0.6",
props: {
app,
contactIds: {
Original file line number Diff line number Diff line change
@@ -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.6",
version: "0.0.7",
props: {
app,
contactId: {
Original file line number Diff line number Diff line change
@@ -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.4",
version: "0.0.5",
props: {
app,
opportunityId: {
2 changes: 1 addition & 1 deletion components/apollo_io/apollo_io.app.mjs
Original file line number Diff line number Diff line change
@@ -216,12 +216,12 @@ export default {
return {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"X-Api-Key": this.$auth.api_key,
...headers,
};
},
getParams(params) {
return {
api_key: this.$auth.api_key,
...params,
};
},
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.5.1",
"version": "0.5.2",
"description": "Pipedream Apollo.io Components",
"main": "apollo_io.app.mjs",
"keywords": [
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ export default {
name: "New Account Created",
description: "Emit new event when an account is created. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-accounts)",
type: "source",
version: "0.0.5",
version: "0.0.6",
dedupe: "unique",
props: {
...common.props,
Original file line number Diff line number Diff line change
@@ -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

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
description: "Emit new event when an account is updated. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",
type: "source",
version: "0.0.5",
version: "0.0.6",
dedupe: "unique",
props: {
...common.props,
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ export default {
name: "New Contact Created",
description: "Emit new event when a contact is created. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",
type: "source",
version: "0.0.7",
version: "0.0.8",
dedupe: "unique",
methods: {
...common.methods,
Original file line number Diff line number Diff line change
@@ -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

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
description: "Emit new event when a contact is updated. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",
type: "source",
version: "0.0.7",
version: "0.0.8",
dedupe: "unique",
methods: {
...common.methods,