Skip to content

Commit 3f4c67c

Browse files
SokolovskyiKmichelle0927vunguyenhung
authored
Apollo search contacts bug fix (#16443)
* Apollo search contacts bug fix * apollo_io : bump package.json and actions * remove trailing spaces * bump version search-sequences.mjs * bump * Update components/apollo_io/apollo_io.app.mjs Co-authored-by: Leo Vu <vunguyenhung@outlook.com> --------- Co-authored-by: michelle0927 <michelle0927@users.noreply.github.com> Co-authored-by: Leo Vu <vunguyenhung@outlook.com>
1 parent 50d817c commit 3f4c67c

File tree

21 files changed

+25
-25
lines changed

21 files changed

+25
-25
lines changed

components/apollo_io/actions/add-contacts-to-sequence/add-contacts-to-sequence.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Add Contacts to Sequence",
66
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)",
77
type: "action",
8-
version: "0.0.5",
8+
version: "0.0.6",
99
props: {
1010
app,
1111
sequenceId: {

components/apollo_io/actions/create-account/create-account.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Create Account",
66
description: "Creates a new account in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#create-an-account)",
77
type: "action",
8-
version: "0.0.5",
8+
version: "0.0.6",
99
props: {
1010
app,
1111
name: {

components/apollo_io/actions/create-contact/create-contact.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Create Contact",
66
description: "Creates a new contact in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#create-a-contact)",
77
type: "action",
8-
version: "0.0.6",
8+
version: "0.0.7",
99
props: {
1010
app,
1111
email: {

components/apollo_io/actions/create-opportunity/create-opportunity.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Create Opportunity",
66
description: "Creates a new opportunity in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#create-opportunity)",
77
type: "action",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
props: {
1010
app,
1111
ownerId: {

components/apollo_io/actions/create-update-contact/create-update-contact.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Create Or Update Contact",
77
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)",
88
type: "action",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
props: {
1111
app,
1212
email: {

components/apollo_io/actions/get-opportunity/get-opportunity.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Get Opportunity",
66
description: "Gets a specific opportunity in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#view-opportunity)",
77
type: "action",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
props: {
1010
app,
1111
opportunityId: {

components/apollo_io/actions/people-enrichment/people-enrichment.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "People Enrichment",
66
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)",
77
type: "action",
8-
version: "0.0.7",
8+
version: "0.0.8",
99
props: {
1010
app,
1111
firstName: {

components/apollo_io/actions/search-accounts/search-accounts.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Search For Accounts",
77
description: "Search for accounts in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-accounts)",
88
type: "action",
9-
version: "0.0.4",
9+
version: "0.0.5",
1010
props: {
1111
app,
1212
search: {

components/apollo_io/actions/search-contacts/search-contacts.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Search For Contacts",
77
description: "Search for contacts in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",
88
type: "action",
9-
version: "0.0.4",
9+
version: "0.0.6",
1010
props: {
1111
app,
1212
search: {
@@ -43,7 +43,7 @@ export default {
4343
},
4444
},
4545
async run({ $ }) {
46-
const resourcesStream = this.app.getResourcesStream({
46+
const resourcesStream = this.app.getIterations({
4747
resourceFn: this.app.searchContacts,
4848
resourceFnArgs: {
4949
params: {
@@ -56,7 +56,7 @@ export default {
5656
resourceName: "contacts",
5757
});
5858

59-
const contacts = await utils.streamIterator(resourcesStream);
59+
const contacts = await utils.iterate(resourcesStream);
6060

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

components/apollo_io/actions/search-sequences/search-sequences.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Search For Sequences",
77
description: "Search for sequences in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-sequences)",
88
type: "action",
9-
version: "0.0.4",
9+
version: "0.0.6",
1010
props: {
1111
app,
1212
search: {
@@ -16,7 +16,7 @@ export default {
1616
},
1717
},
1818
async run({ $ }) {
19-
const resourcesStream = this.app.getResourcesStream({
19+
const resourcesStream = this.app.getIterations({
2020
resourceFn: this.app.listSequences,
2121
resourceFnArgs: {
2222
params: {
@@ -26,7 +26,7 @@ export default {
2626
resourceName: "emailer_campaigns",
2727
});
2828

29-
const sequences = await utils.streamIterator(resourcesStream);
29+
const sequences = await utils.iterate(resourcesStream);
3030

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

components/apollo_io/actions/update-account-stage/update-account-stage.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Update Account Stage",
66
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)",
77
type: "action",
8-
version: "0.0.5",
8+
version: "0.0.6",
99
props: {
1010
app,
1111
accountIds: {

components/apollo_io/actions/update-account/update-account.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Update Account",
77
description: "Updates an existing account in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#update-an-account)",
88
type: "action",
9-
version: "0.0.5",
9+
version: "0.0.6",
1010
props: {
1111
app,
1212
accountId: {

components/apollo_io/actions/update-contact-stage/update-contact-stage.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Update Contact Stage",
66
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)",
77
type: "action",
8-
version: "0.0.5",
8+
version: "0.0.6",
99
props: {
1010
app,
1111
contactIds: {

components/apollo_io/actions/update-contact/update-contact.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Update Contact",
77
description: "Updates an existing contact in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#update-a-contact)",
88
type: "action",
9-
version: "0.0.6",
9+
version: "0.0.7",
1010
props: {
1111
app,
1212
contactId: {

components/apollo_io/actions/update-opportunity/update-opportunity.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Update Opportunity",
66
description: "Updates a new opportunity in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#update-opportunity)",
77
type: "action",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
props: {
1010
app,
1111
opportunityId: {

components/apollo_io/apollo_io.app.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ export default {
216216
return {
217217
"Content-Type": "application/json",
218218
"Cache-Control": "no-cache",
219+
"X-Api-Key": this.$auth.api_key,
219220
...headers,
220221
};
221222
},
222223
getParams(params) {
223224
return {
224-
api_key: this.$auth.api_key,
225225
...params,
226226
};
227227
},

components/apollo_io/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/apollo_io",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"description": "Pipedream Apollo.io Components",
55
"main": "apollo_io.app.mjs",
66
"keywords": [

components/apollo_io/sources/account-created/account-created.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "New Account Created",
77
description: "Emit new event when an account is created. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-accounts)",
88
type: "source",
9-
version: "0.0.5",
9+
version: "0.0.6",
1010
dedupe: "unique",
1111
props: {
1212
...common.props,

components/apollo_io/sources/account-updated/account-updated.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Account Updated",
88
description: "Emit new event when an account is updated. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",
99
type: "source",
10-
version: "0.0.5",
10+
version: "0.0.6",
1111
dedupe: "unique",
1212
props: {
1313
...common.props,

components/apollo_io/sources/contact-created/contact-created.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "New Contact Created",
77
description: "Emit new event when a contact is created. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",
88
type: "source",
9-
version: "0.0.7",
9+
version: "0.0.8",
1010
dedupe: "unique",
1111
methods: {
1212
...common.methods,

components/apollo_io/sources/contact-updated/contact-updated.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Contact Updated",
77
description: "Emit new event when a contact is updated. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",
88
type: "source",
9-
version: "0.0.7",
9+
version: "0.0.8",
1010
dedupe: "unique",
1111
methods: {
1212
...common.methods,

0 commit comments

Comments
 (0)