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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 3 additions & 3 deletions
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

0 commit comments

Comments
 (0)