Skip to content

Commit d5c554d

Browse files
Merging pull request PipedreamHQ#18347
* widget props * fix version
1 parent 8268c0e commit d5c554d

File tree

6 files changed

+29
-9
lines changed

6 files changed

+29
-9
lines changed

components/hubspot/actions/common/common-page-prop.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,16 @@ export default {
7676
],
7777
optional: true,
7878
},
79+
widgetContainers: {
80+
type: "object",
81+
label: "Widget Containers",
82+
description: "A data structure containing the data for all the modules inside the containers for this page",
83+
optional: true,
84+
},
85+
widgets: {
86+
type: "object",
87+
label: "Widgets",
88+
description: "A data structure containing the data for all the modules for this page",
89+
optional: true,
90+
},
7991
};

components/hubspot/actions/create-landing-page/create-landing-page.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Create Landing Page",
88
description:
99
"Create a landing page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Flanding-pages)",
10-
version: "0.0.6",
10+
version: "0.0.7",
1111
type: "action",
1212
props: {
1313
hubspot,
@@ -44,6 +44,8 @@ export default {
4444
footerHtml: this.footerHtml,
4545
headHtml: this.headHtml,
4646
templatePath: this.templatePath,
47+
widgetContainers: parseObject(this.widgetContainers),
48+
widgets: parseObject(this.widgets),
4749
},
4850
});
4951

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Create Page",
88
description:
99
"Create a page in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Fsite-pages)",
10-
version: "0.0.6",
10+
version: "0.0.7",
1111
type: "action",
1212
props: {
1313
hubspot,
@@ -36,6 +36,8 @@ export default {
3636
footerHtml: this.footerHtml,
3737
headHtml: this.headHtml,
3838
templatePath: this.templatePath,
39+
widgetContainers: parseObject(this.widgetContainers),
40+
widgets: parseObject(this.widgets),
3941
},
4042
});
4143

components/hubspot/actions/list-pages/list-pages.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "List Pages",
66
description:
77
"Retrieves a list of site pages. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages)",
8-
version: "0.0.7",
8+
version: "0.0.8",
99
type: "action",
1010
props: {
1111
hubspot,
@@ -79,7 +79,7 @@ export default {
7979
},
8080
},
8181
async run({ $ }) {
82-
const results = [];
82+
const pages = [];
8383
let hasMore,
8484
count = 0;
8585

@@ -105,7 +105,7 @@ export default {
105105
break;
106106
}
107107
for (const item of results) {
108-
results.push(item);
108+
pages.push(item);
109109
count++;
110110
if (count >= this.maxResults) {
111111
break;
@@ -117,10 +117,10 @@ export default {
117117

118118
$.export(
119119
"$summary",
120-
`Found ${results.length} page${results.length === 1
120+
`Found ${pages.length} page${pages.length === 1
121121
? ""
122122
: "s"}`,
123123
);
124-
return results;
124+
return pages;
125125
},
126126
};

components/hubspot/actions/update-landing-page/update-landing-page.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Update Landing Page",
88
description:
99
"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)",
10-
version: "0.0.6",
10+
version: "0.0.7",
1111
type: "action",
1212
props: {
1313
hubspot,
@@ -53,6 +53,8 @@ export default {
5353
footerHtml: this.footerHtml,
5454
headHtml: this.headHtml,
5555
templatePath: this.templatePath,
56+
widgetContainers: parseObject(this.widgetContainers),
57+
widgets: parseObject(this.widgets),
5658
},
5759
});
5860

components/hubspot/actions/update-page/update-page.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Update Page",
88
description:
99
"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)",
10-
version: "0.0.6",
10+
version: "0.0.7",
1111
type: "action",
1212
props: {
1313
hubspot,
@@ -45,6 +45,8 @@ export default {
4545
footerHtml: this.footerHtml,
4646
headHtml: this.headHtml,
4747
templatePath: this.templatePath,
48+
widgetContainers: parseObject(this.widgetContainers),
49+
widgets: parseObject(this.widgets),
4850
},
4951
});
5052

0 commit comments

Comments
 (0)