Skip to content

Commit 8110056

Browse files
authored
Hubspot - New or Updated Contact Source updates (#17143)
* update to new-or-updated-contact * pnpm-lock.yaml * versions
1 parent 31f21c9 commit 8110056

File tree

26 files changed

+33
-29
lines changed

26 files changed

+33
-29
lines changed

components/hubspot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/hubspot",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "Pipedream Hubspot Components",
55
"main": "hubspot.app.mjs",
66
"keywords": [

components/hubspot/sources/common/common.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ export default {
7979
}
8080

8181
for (const result of results) {
82-
if (await this.isRelevant(result, after)) {
83-
this.emitEvent(result);
84-
const ts = this.getTs(result);
82+
const ts = this.getTs(result);
83+
if (!after || ts > after) {
84+
if (await this.isRelevant(result, after, ts)) {
85+
this.emitEvent(result);
86+
}
8587
if (ts > maxTs) {
8688
maxTs = ts;
8789
this._setAfter(ts);

components/hubspot/sources/delete-blog-article/delete-blog-article.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-delete-blog-article",
77
name: "Deleted Blog Posts",
88
description: "Emit new event for each deleted blog post.",
9-
version: "0.0.22",
9+
version: "0.0.23",
1010
dedupe: "unique",
1111
type: "source",
1212
methods: {

components/hubspot/sources/new-company-property-change/new-company-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-company-property-change",
88
name: "New Company Property Change",
99
description: "Emit new event when a specified property is provided or updated on a company. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)",
10-
version: "0.0.15",
10+
version: "0.0.16",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-contact-property-change",
88
name: "New Contact Property Change",
99
description: "Emit new event when a specified property is provided or updated on a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)",
10-
version: "0.0.17",
10+
version: "0.0.18",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-new-custom-object-property-change",
77
name: "New Custom Object Property Change",
88
description: "Emit new event when a specified property is provided or updated on a custom object.",
9-
version: "0.0.7",
9+
version: "0.0.8",
1010
dedupe: "unique",
1111
type: "source",
1212
props: {

components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
key: "hubspot-new-deal-in-stage",
1010
name: "New Deal In Stage",
1111
description: "Emit new event for each new deal in a stage.",
12-
version: "0.0.28",
12+
version: "0.0.29",
1313
dedupe: "unique",
1414
type: "source",
1515
props: {

components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-deal-property-change",
88
name: "New Deal Property Change",
99
description: "Emit new event when a specified property is provided or updated on a deal. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals)",
10-
version: "0.0.16",
10+
version: "0.0.17",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-email-event/new-email-event.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "hubspot-new-email-event",
99
name: "New Email Event",
1010
description: "Emit new event for each new Hubspot email event.",
11-
version: "0.0.25",
11+
version: "0.0.26",
1212
dedupe: "unique",
1313
type: "source",
1414
props: {

components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-new-email-subscriptions-timeline",
77
name: "New Email Subscriptions Timeline",
88
description: "Emit new event when a new email timeline subscription is added for the portal.",
9-
version: "0.0.22",
9+
version: "0.0.23",
1010
dedupe: "unique",
1111
type: "source",
1212
methods: {

components/hubspot/sources/new-engagement/new-engagement.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "hubspot-new-engagement",
99
name: "New Engagement",
1010
description: "Emit new event for each new engagement created. This action returns a maximum of 5000 records at a time, make sure you set a correct time range so you don't miss any events",
11-
version: "0.0.27",
11+
version: "0.0.28",
1212
dedupe: "unique",
1313
type: "source",
1414
props: {

components/hubspot/sources/new-event/new-event.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "hubspot-new-event",
99
name: "New Events",
1010
description: "Emit new event for each new Hubspot event. Note: Only available for Marketing Hub Enterprise, Sales Hub Enterprise, Service Hub Enterprise, or CMS Hub Enterprise accounts",
11-
version: "0.0.26",
11+
version: "0.0.27",
1212
dedupe: "unique",
1313
type: "source",
1414
props: {

components/hubspot/sources/new-form-submission/new-form-submission.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-new-form-submission",
77
name: "New Form Submission",
88
description: "Emit new event for each new submission of a form.",
9-
version: "0.0.27",
9+
version: "0.0.28",
1010
dedupe: "unique",
1111
type: "source",
1212
props: {

components/hubspot/sources/new-note/new-note.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "hubspot-new-note",
99
name: "New Note Created",
1010
description: "Emit new event for each new note created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/notes#get-%2Fcrm%2Fv3%2Fobjects%2Fnotes)",
11-
version: "1.0.3",
11+
version: "1.0.4",
1212
type: "source",
1313
dedupe: "unique",
1414
methods: {

components/hubspot/sources/new-or-updated-blog-article/new-or-updated-blog-article.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-or-updated-blog-article",
88
name: "New or Updated Blog Post",
99
description: "Emit new event for each new or updated blog post in Hubspot.",
10-
version: "0.0.9",
10+
version: "0.0.10",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-or-updated-company/new-or-updated-company.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
key: "hubspot-new-or-updated-company",
1010
name: "New or Updated Company",
1111
description: "Emit new event for each new or updated company in Hubspot.",
12-
version: "0.0.9",
12+
version: "0.0.10",
1313
dedupe: "unique",
1414
type: "source",
1515
props: {

components/hubspot/sources/new-or-updated-contact/new-or-updated-contact.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
key: "hubspot-new-or-updated-contact",
1010
name: "New or Updated Contact",
1111
description: "Emit new event for each new or updated contact in Hubspot.",
12-
version: "0.0.9",
12+
version: "0.0.10",
1313
dedupe: "unique",
1414
type: "source",
1515
props: {
@@ -102,7 +102,9 @@ export default {
102102
limit: DEFAULT_LIMIT,
103103
sorts: [
104104
{
105-
propertyName: "lastmodifieddate",
105+
propertyName: this.newOnly
106+
? "createdate"
107+
: "lastmodifieddate",
106108
direction: "DESCENDING",
107109
},
108110
],

components/hubspot/sources/new-or-updated-crm-object/new-or-updated-crm-object.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-or-updated-crm-object",
88
name: "New or Updated CRM Object",
99
description: "Emit new event each time a CRM Object of the specified object type is updated.",
10-
version: "0.0.22",
10+
version: "0.0.23",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-or-updated-custom-object/new-or-updated-custom-object.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-or-updated-custom-object",
88
name: "New or Updated Custom Object",
99
description: "Emit new event each time a Custom Object of the specified schema is updated.",
10-
version: "0.0.11",
10+
version: "0.0.12",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
key: "hubspot-new-or-updated-deal",
1010
name: "New or Updated Deal",
1111
description: "Emit new event for each new or updated deal in Hubspot",
12-
version: "0.0.9",
12+
version: "0.0.10",
1313
dedupe: "unique",
1414
type: "source",
1515
props: {

components/hubspot/sources/new-or-updated-line-item/new-or-updated-line-item.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
key: "hubspot-new-or-updated-line-item",
1010
name: "New or Updated Line Item",
1111
description: "Emit new event for each new line item added or updated in Hubspot.",
12-
version: "0.0.9",
12+
version: "0.0.10",
1313
dedupe: "unique",
1414
type: "source",
1515
props: {

components/hubspot/sources/new-or-updated-product/new-or-updated-product.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
key: "hubspot-new-or-updated-product",
1010
name: "New or Updated Product",
1111
description: "Emit new event for each new or updated product in Hubspot.",
12-
version: "0.0.9",
12+
version: "0.0.10",
1313
dedupe: "unique",
1414
type: "source",
1515
props: {

components/hubspot/sources/new-social-media-message/new-social-media-message.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-new-social-media-message",
77
name: "New Social Media Message",
88
description: "Emit new event when a message is posted from HubSpot to the specified social media channel. Note: Only available for Marketing Hub Enterprise accounts",
9-
version: "0.0.22",
9+
version: "0.0.23",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {

components/hubspot/sources/new-task/new-task.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "hubspot-new-task",
99
name: "New Task Created",
1010
description: "Emit new event for each new task created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/tasks#get-%2Fcrm%2Fv3%2Fobjects%2Ftasks)",
11-
version: "1.0.3",
11+
version: "1.0.4",
1212
type: "source",
1313
dedupe: "unique",
1414
methods: {

components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-ticket-property-change",
88
name: "New Ticket Property Change",
99
description: "Emit new event when a specified property is provided or updated on a ticket. [See the documentation](https://developers.hubspot.com/docs/api/crm/tickets)",
10-
version: "0.0.16",
10+
version: "0.0.17",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-ticket/new-ticket.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
key: "hubspot-new-ticket",
1010
name: "New Ticket",
1111
description: "Emit new event for each new ticket created.",
12-
version: "0.0.22",
12+
version: "0.0.23",
1313
dedupe: "unique",
1414
type: "source",
1515
props: {

0 commit comments

Comments
 (0)