Skip to content

Commit 8a9fd72

Browse files
committed
Changing custom object 'name' to 'fullyQualifiedName'
1 parent fcb2933 commit 8a9fd72

File tree

7 files changed

+16
-11
lines changed

7 files changed

+16
-11
lines changed

components/hubspot/actions/create-associations/create-associations.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "hubspot-create-associations",
66
name: "Create Associations",
77
description: "Create associations between objects. [See the documentation](https://developers.hubspot.com/docs/api/crm/associations#endpoint?spec=POST-/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/create)",
8-
version: "0.0.13",
8+
version: "1.0.0",
99
type: "action",
1010
props: {
1111
hubspot,

components/hubspot/actions/create-custom-object/create-custom-object.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-create-custom-object",
77
name: "Create Custom Object",
88
description: "Create a new custom object in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/custom-objects#create-a-custom-object)",
9-
version: "0.0.5",
9+
version: "1.0.0",
1010
type: "action",
1111
props: {
1212
...appProp.props,

components/hubspot/actions/search-crm/search-crm.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
key: "hubspot-search-crm",
1717
name: "Search CRM",
1818
description: "Search companies, contacts, deals, feedback submissions, products, tickets, line-items, quotes, leads, or custom objects. [See the documentation](https://developers.hubspot.com/docs/api/crm/search)",
19-
version: "0.0.13",
19+
version: "1.0.0",
2020
type: "action",
2121
props: {
2222
hubspot,

components/hubspot/actions/update-custom-object/update-custom-object.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-update-custom-object",
77
name: "Update Custom Object",
88
description: "Update a custom object in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/custom-objects#update-existing-custom-objects)",
9-
version: "0.0.5",
9+
version: "1.0.0",
1010
type: "action",
1111
methods: {
1212
...common.methods,

components/hubspot/hubspot.app.mjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default {
8888
if (includeCustom) {
8989
const { results } = await this.listSchemas();
9090
const customObjects = results?.map(({
91-
name: value, labels,
91+
fullyQualifiedName: value, labels,
9292
}) => ({
9393
value,
9494
label: labels.plural,
@@ -437,10 +437,15 @@ export default {
437437
customObjectType: {
438438
type: "string",
439439
label: "Custom Object Type",
440-
description: "Tye type of custom object to create",
440+
description: "The type of custom object to create",
441441
async options() {
442442
const { results } = await this.listSchemas();
443-
return results?.map(({ name }) => name ) || [];
443+
return results?.map(({
444+
name, fullyQualifiedName,
445+
}) => ({
446+
label: name,
447+
value: fullyQualifiedName,
448+
}) ) || [];
444449
},
445450
},
446451
},

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

Lines changed: 2 additions & 2 deletions
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: "0.0.2",
11+
version: "1.0.0",
1212
type: "source",
1313
dedupe: "unique",
1414
methods: {
@@ -34,7 +34,7 @@ export default {
3434

3535
const objectTypes = OBJECT_TYPES.map(({ value }) => value);
3636
const { results: custom } = await this.hubspot.listSchemas();
37-
const customObjects = custom?.map(({ name }) => name);
37+
const customObjects = custom?.map(({ fullyQualifiedName }) => fullyQualifiedName);
3838
const associations = [
3939
...objectTypes,
4040
...customObjects,

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

Lines changed: 2 additions & 2 deletions
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: "0.0.14",
11+
version: "1.0.0",
1212
type: "source",
1313
dedupe: "unique",
1414
methods: {
@@ -34,7 +34,7 @@ export default {
3434

3535
const objectTypes = OBJECT_TYPES.map(({ value }) => value);
3636
const { results: custom } = await this.hubspot.listSchemas();
37-
const customObjects = custom?.map(({ name }) => name);
37+
const customObjects = custom?.map(({ fullyQualifiedName }) => fullyQualifiedName);
3838
const associations = [
3939
...objectTypes,
4040
...customObjects,

0 commit comments

Comments
 (0)