Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions components/hubspot/actions/common/common-page-prop.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,16 @@ export default {
],
optional: true,
},
widgetContainers: {
type: "object",
label: "Widget Containers",
description: "A data structure containing the data for all the modules inside the containers for this page",
optional: true,
},
widgets: {
type: "object",
label: "Widgets",
description: "A data structure containing the data for all the modules for this page",
optional: true,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Create Landing Page",
description:
"Create a landing page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Flanding-pages)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
hubspot,
Expand Down Expand Up @@ -44,6 +44,8 @@ export default {
footerHtml: this.footerHtml,
headHtml: this.headHtml,
templatePath: this.templatePath,
widgetContainers: parseObject(this.widgetContainers),
widgets: parseObject(this.widgets),
},
});

Expand Down
4 changes: 3 additions & 1 deletion components/hubspot/actions/create-page/create-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Create Page",
description:
"Create a page in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Fsite-pages)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
hubspot,
Expand Down Expand Up @@ -36,6 +36,8 @@ export default {
footerHtml: this.footerHtml,
headHtml: this.headHtml,
templatePath: this.templatePath,
widgetContainers: parseObject(this.widgetContainers),
widgets: parseObject(this.widgets),
},
});

Expand Down
10 changes: 5 additions & 5 deletions components/hubspot/actions/list-pages/list-pages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "List Pages",
description:
"Retrieves a list of site pages. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages)",
version: "0.0.7",
version: "0.0.8",
type: "action",
props: {
hubspot,
Expand Down Expand Up @@ -79,7 +79,7 @@ export default {
},
},
async run({ $ }) {
const results = [];
const pages = [];
let hasMore,
count = 0;

Expand All @@ -105,7 +105,7 @@ export default {
break;
}
for (const item of results) {
results.push(item);
pages.push(item);
count++;
if (count >= this.maxResults) {
break;
Expand All @@ -117,10 +117,10 @@ export default {

$.export(
"$summary",
`Found ${results.length} page${results.length === 1
`Found ${pages.length} page${pages.length === 1
? ""
: "s"}`,
);
return results;
return pages;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Update Landing Page",
description:
"Update a landing page in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#patch-%2Fcms%2Fv3%2Fpages%2Flanding-pages%2F%7Bobjectid%7D)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
hubspot,
Expand Down Expand Up @@ -53,6 +53,8 @@ export default {
footerHtml: this.footerHtml,
headHtml: this.headHtml,
templatePath: this.templatePath,
widgetContainers: parseObject(this.widgetContainers),
widgets: parseObject(this.widgets),
},
});

Expand Down
4 changes: 3 additions & 1 deletion components/hubspot/actions/update-page/update-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Update Page",
description:
"Update a page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#patch-%2Fcms%2Fv3%2Fpages%2Fsite-pages%2F%7Bobjectid%7D)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
hubspot,
Expand Down Expand Up @@ -45,6 +45,8 @@ export default {
footerHtml: this.footerHtml,
headHtml: this.headHtml,
templatePath: this.templatePath,
widgetContainers: parseObject(this.widgetContainers),
widgets: parseObject(this.widgets),
},
});

Expand Down
2 changes: 1 addition & 1 deletion components/hubspot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/hubspot",
"version": "1.7.4",
"version": "1.7.5",
"description": "Pipedream Hubspot Components",
"main": "hubspot.app.mjs",
"keywords": [
Expand Down
Loading