From 49e2a7e3fa731fef74de902b073d956f4f9f922d Mon Sep 17 00:00:00 2001 From: falc1 Date: Fri, 25 Apr 2025 00:22:45 +0400 Subject: [PATCH 1/6] Apollo search contacts bug fix --- .../apollo_io/actions/search-contacts/search-contacts.mjs | 6 +++--- .../apollo_io/actions/search-sequences/search-sequences.mjs | 4 ++-- .../actions/update-contact-stage/update-contact-stage.mjs | 2 +- components/apollo_io/apollo_io.app.mjs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/apollo_io/actions/search-contacts/search-contacts.mjs b/components/apollo_io/actions/search-contacts/search-contacts.mjs index 8fe234ba8fd8a..4e3e4c8aeed9f 100644 --- a/components/apollo_io/actions/search-contacts/search-contacts.mjs +++ b/components/apollo_io/actions/search-contacts/search-contacts.mjs @@ -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", //4 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.`); diff --git a/components/apollo_io/actions/search-sequences/search-sequences.mjs b/components/apollo_io/actions/search-sequences/search-sequences.mjs index 647052f72f1d1..a1ef99d4810f1 100644 --- a/components/apollo_io/actions/search-sequences/search-sequences.mjs +++ b/components/apollo_io/actions/search-sequences/search-sequences.mjs @@ -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.`); diff --git a/components/apollo_io/actions/update-contact-stage/update-contact-stage.mjs b/components/apollo_io/actions/update-contact-stage/update-contact-stage.mjs index 1909f6a75761e..5cac15977b48b 100644 --- a/components/apollo_io/actions/update-contact-stage/update-contact-stage.mjs +++ b/components/apollo_io/actions/update-contact-stage/update-contact-stage.mjs @@ -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: { diff --git a/components/apollo_io/apollo_io.app.mjs b/components/apollo_io/apollo_io.app.mjs index ec999f8e53846..13faf8be5afed 100644 --- a/components/apollo_io/apollo_io.app.mjs +++ b/components/apollo_io/apollo_io.app.mjs @@ -216,12 +216,12 @@ export default { return { "Content-Type": "application/json", "Cache-Control": "no-cache", + "X-Api-Key": this.$auth.api_key, // ✅ this is correct ...headers, }; }, getParams(params) { return { - api_key: this.$auth.api_key, ...params, }; }, From 965cfc8a52c1ddc66589d993587e51be7c2bb1b5 Mon Sep 17 00:00:00 2001 From: falc1 Date: Fri, 25 Apr 2025 00:59:52 +0400 Subject: [PATCH 2/6] apollo_io : bump package.json and actions --- .../add-contacts-to-sequence/add-contacts-to-sequence.mjs | 2 +- components/apollo_io/actions/create-account/create-account.mjs | 2 +- components/apollo_io/actions/create-contact/create-contact.mjs | 2 +- .../apollo_io/actions/create-opportunity/create-opportunity.mjs | 2 +- .../actions/create-update-contact/create-update-contact.mjs | 2 +- .../apollo_io/actions/get-opportunity/get-opportunity.mjs | 2 +- .../apollo_io/actions/people-enrichment/people-enrichment.mjs | 2 +- .../apollo_io/actions/search-accounts/search-accounts.mjs | 2 +- .../apollo_io/actions/search-contacts/search-contacts.mjs | 2 +- .../actions/update-account-stage/update-account-stage.mjs | 2 +- components/apollo_io/actions/update-account/update-account.mjs | 2 +- components/apollo_io/actions/update-contact/update-contact.mjs | 2 +- .../apollo_io/actions/update-opportunity/update-opportunity.mjs | 2 +- components/apollo_io/package.json | 2 +- .../apollo_io/sources/account-created/account-created.mjs | 2 +- .../apollo_io/sources/account-updated/account-updated.mjs | 2 +- .../apollo_io/sources/contact-created/contact-created.mjs | 2 +- .../apollo_io/sources/contact-updated/contact-updated.mjs | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/components/apollo_io/actions/add-contacts-to-sequence/add-contacts-to-sequence.mjs b/components/apollo_io/actions/add-contacts-to-sequence/add-contacts-to-sequence.mjs index b4dd5fa4f6a41..3d5afe7db12ae 100644 --- a/components/apollo_io/actions/add-contacts-to-sequence/add-contacts-to-sequence.mjs +++ b/components/apollo_io/actions/add-contacts-to-sequence/add-contacts-to-sequence.mjs @@ -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: { diff --git a/components/apollo_io/actions/create-account/create-account.mjs b/components/apollo_io/actions/create-account/create-account.mjs index 64b374e1d9b9a..584bcaa4ca94d 100644 --- a/components/apollo_io/actions/create-account/create-account.mjs +++ b/components/apollo_io/actions/create-account/create-account.mjs @@ -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: { diff --git a/components/apollo_io/actions/create-contact/create-contact.mjs b/components/apollo_io/actions/create-contact/create-contact.mjs index 1d734d46d8a04..fc43a6feb5fa8 100644 --- a/components/apollo_io/actions/create-contact/create-contact.mjs +++ b/components/apollo_io/actions/create-contact/create-contact.mjs @@ -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: { diff --git a/components/apollo_io/actions/create-opportunity/create-opportunity.mjs b/components/apollo_io/actions/create-opportunity/create-opportunity.mjs index f6d9e29aa923e..5e8e492b5fdeb 100644 --- a/components/apollo_io/actions/create-opportunity/create-opportunity.mjs +++ b/components/apollo_io/actions/create-opportunity/create-opportunity.mjs @@ -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: { diff --git a/components/apollo_io/actions/create-update-contact/create-update-contact.mjs b/components/apollo_io/actions/create-update-contact/create-update-contact.mjs index 9d0f10756408e..e4bb0bf50b5b9 100644 --- a/components/apollo_io/actions/create-update-contact/create-update-contact.mjs +++ b/components/apollo_io/actions/create-update-contact/create-update-contact.mjs @@ -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: { diff --git a/components/apollo_io/actions/get-opportunity/get-opportunity.mjs b/components/apollo_io/actions/get-opportunity/get-opportunity.mjs index 228312fbb5306..0f2f7771c543e 100644 --- a/components/apollo_io/actions/get-opportunity/get-opportunity.mjs +++ b/components/apollo_io/actions/get-opportunity/get-opportunity.mjs @@ -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: { diff --git a/components/apollo_io/actions/people-enrichment/people-enrichment.mjs b/components/apollo_io/actions/people-enrichment/people-enrichment.mjs index 545ea52955717..d44f54a0eede4 100644 --- a/components/apollo_io/actions/people-enrichment/people-enrichment.mjs +++ b/components/apollo_io/actions/people-enrichment/people-enrichment.mjs @@ -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: { diff --git a/components/apollo_io/actions/search-accounts/search-accounts.mjs b/components/apollo_io/actions/search-accounts/search-accounts.mjs index 4d8b6406de98a..f3a6fb802587b 100644 --- a/components/apollo_io/actions/search-accounts/search-accounts.mjs +++ b/components/apollo_io/actions/search-accounts/search-accounts.mjs @@ -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: { diff --git a/components/apollo_io/actions/search-contacts/search-contacts.mjs b/components/apollo_io/actions/search-contacts/search-contacts.mjs index 4e3e4c8aeed9f..b196d79f3972b 100644 --- a/components/apollo_io/actions/search-contacts/search-contacts.mjs +++ b/components/apollo_io/actions/search-contacts/search-contacts.mjs @@ -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.6", //4 + version: "0.0.6", props: { app, search: { diff --git a/components/apollo_io/actions/update-account-stage/update-account-stage.mjs b/components/apollo_io/actions/update-account-stage/update-account-stage.mjs index 385abc493e48c..2000943cb2f83 100644 --- a/components/apollo_io/actions/update-account-stage/update-account-stage.mjs +++ b/components/apollo_io/actions/update-account-stage/update-account-stage.mjs @@ -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: { diff --git a/components/apollo_io/actions/update-account/update-account.mjs b/components/apollo_io/actions/update-account/update-account.mjs index 9e9a3d79d63f9..0fe106aa6f2c7 100644 --- a/components/apollo_io/actions/update-account/update-account.mjs +++ b/components/apollo_io/actions/update-account/update-account.mjs @@ -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: { diff --git a/components/apollo_io/actions/update-contact/update-contact.mjs b/components/apollo_io/actions/update-contact/update-contact.mjs index 0bf6e7b7ecb02..d00a6d18ae560 100644 --- a/components/apollo_io/actions/update-contact/update-contact.mjs +++ b/components/apollo_io/actions/update-contact/update-contact.mjs @@ -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: { diff --git a/components/apollo_io/actions/update-opportunity/update-opportunity.mjs b/components/apollo_io/actions/update-opportunity/update-opportunity.mjs index 3b4bc2115989f..f0a11334bf086 100644 --- a/components/apollo_io/actions/update-opportunity/update-opportunity.mjs +++ b/components/apollo_io/actions/update-opportunity/update-opportunity.mjs @@ -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: { diff --git a/components/apollo_io/package.json b/components/apollo_io/package.json index f55cd929c74b3..3778eb0f3688b 100644 --- a/components/apollo_io/package.json +++ b/components/apollo_io/package.json @@ -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": [ diff --git a/components/apollo_io/sources/account-created/account-created.mjs b/components/apollo_io/sources/account-created/account-created.mjs index c97eefd4a2357..8cebe077267c2 100644 --- a/components/apollo_io/sources/account-created/account-created.mjs +++ b/components/apollo_io/sources/account-created/account-created.mjs @@ -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, diff --git a/components/apollo_io/sources/account-updated/account-updated.mjs b/components/apollo_io/sources/account-updated/account-updated.mjs index 70e64a508e6e9..5c75c701c0d4e 100644 --- a/components/apollo_io/sources/account-updated/account-updated.mjs +++ b/components/apollo_io/sources/account-updated/account-updated.mjs @@ -7,7 +7,7 @@ export default { name: "Account Updated", 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, diff --git a/components/apollo_io/sources/contact-created/contact-created.mjs b/components/apollo_io/sources/contact-created/contact-created.mjs index 6c9146075d7f1..5a94043f816af 100644 --- a/components/apollo_io/sources/contact-created/contact-created.mjs +++ b/components/apollo_io/sources/contact-created/contact-created.mjs @@ -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, diff --git a/components/apollo_io/sources/contact-updated/contact-updated.mjs b/components/apollo_io/sources/contact-updated/contact-updated.mjs index 056695fa17870..059bc80f2f02a 100644 --- a/components/apollo_io/sources/contact-updated/contact-updated.mjs +++ b/components/apollo_io/sources/contact-updated/contact-updated.mjs @@ -6,7 +6,7 @@ export default { name: "Contact Updated", 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, From 3667733435a2d9988032cc704c60e71677c8f9c5 Mon Sep 17 00:00:00 2001 From: falc1 Date: Fri, 25 Apr 2025 01:04:56 +0400 Subject: [PATCH 3/6] remove trailing spaces --- .../apollo_io/actions/search-contacts/search-contacts.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apollo_io/actions/search-contacts/search-contacts.mjs b/components/apollo_io/actions/search-contacts/search-contacts.mjs index b196d79f3972b..86c755d76b9ee 100644 --- a/components/apollo_io/actions/search-contacts/search-contacts.mjs +++ b/components/apollo_io/actions/search-contacts/search-contacts.mjs @@ -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.6", + version: "0.0.6", props: { app, search: { From c1f48795834e8cd2de7fdcbe3a6bc5a2a134ca0a Mon Sep 17 00:00:00 2001 From: falc1 Date: Fri, 25 Apr 2025 01:14:18 +0400 Subject: [PATCH 4/6] bump version search-sequences.mjs --- .../apollo_io/actions/search-sequences/search-sequences.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apollo_io/actions/search-sequences/search-sequences.mjs b/components/apollo_io/actions/search-sequences/search-sequences.mjs index a1ef99d4810f1..383ed55e51bc2 100644 --- a/components/apollo_io/actions/search-sequences/search-sequences.mjs +++ b/components/apollo_io/actions/search-sequences/search-sequences.mjs @@ -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.5", props: { app, search: { From f8a0de542f2e1dc30cfbb98ab970ff729d9ce3a1 Mon Sep 17 00:00:00 2001 From: falc1 Date: Fri, 25 Apr 2025 01:23:19 +0400 Subject: [PATCH 5/6] bump --- .../apollo_io/actions/search-sequences/search-sequences.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apollo_io/actions/search-sequences/search-sequences.mjs b/components/apollo_io/actions/search-sequences/search-sequences.mjs index 383ed55e51bc2..89feabab04378 100644 --- a/components/apollo_io/actions/search-sequences/search-sequences.mjs +++ b/components/apollo_io/actions/search-sequences/search-sequences.mjs @@ -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.5", + version: "0.0.6", props: { app, search: { From 6fc0fbbfd795df5f0e69256a3d7cb3e55539ac98 Mon Sep 17 00:00:00 2001 From: michelle0927 Date: Mon, 28 Apr 2025 10:22:46 -0400 Subject: [PATCH 6/6] Update components/apollo_io/apollo_io.app.mjs Co-authored-by: Leo Vu --- components/apollo_io/apollo_io.app.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apollo_io/apollo_io.app.mjs b/components/apollo_io/apollo_io.app.mjs index 13faf8be5afed..7ca2a75d55328 100644 --- a/components/apollo_io/apollo_io.app.mjs +++ b/components/apollo_io/apollo_io.app.mjs @@ -216,7 +216,7 @@ export default { return { "Content-Type": "application/json", "Cache-Control": "no-cache", - "X-Api-Key": this.$auth.api_key, // ✅ this is correct + "X-Api-Key": this.$auth.api_key, ...headers, }; },