Skip to content

Commit 4b6056d

Browse files
committed
Merge branch 'master' into 18493-trigger-shopify-draft-order-updated
2 parents 84bad94 + 2da7d96 commit 4b6056d

File tree

1,817 files changed

+11962
-1800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,817 files changed

+11962
-1800
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "brandfetch",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/brandfetch/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/brandfetch",
3+
"version": "0.0.1",
4+
"description": "Pipedream Brandfetch Components",
5+
"main": "brandfetch.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"brandfetch"
9+
],
10+
"homepage": "https://pipedream.com/apps/brandfetch",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
import dataforseo from "../../dataforseo.app.mjs";
2+
import { ConfigurationError } from "@pipedream/platform";
3+
4+
export default {
5+
key: "dataforseo-create-onpage-task",
6+
name: "Create OnPage Task",
7+
description: "Create an OnPage task to retrieve detailed information on how well your pages are optimized for search. [See the documentation](https://docs.dataforseo.com/v3/on_page/task_post/)",
8+
version: "0.0.1",
9+
type: "action",
10+
annotations: {
11+
destructiveHint: false,
12+
openWorldHint: true,
13+
readOnlyHint: false,
14+
},
15+
props: {
16+
dataforseo,
17+
target: {
18+
propDefinition: [
19+
dataforseo,
20+
"target",
21+
],
22+
},
23+
maxCrawlPages: {
24+
type: "integer",
25+
label: "Max Crawl Pages",
26+
description: "The number of pages to crawl on the specified domain",
27+
},
28+
startUrl: {
29+
type: "string",
30+
label: "Start URL",
31+
description: "The URL to start crawling from",
32+
optional: true,
33+
},
34+
loadResources: {
35+
type: "boolean",
36+
label: "Load Resources",
37+
description: "Set to `true` if you want to load image, stylesheets, scripts, and broken resources on the page",
38+
optional: true,
39+
},
40+
enableJavascript: {
41+
type: "boolean",
42+
label: "Enable Javascript",
43+
description: "Set to `true` if you want to load the scripts available on a page",
44+
optional: true,
45+
},
46+
tag: {
47+
propDefinition: [
48+
dataforseo,
49+
"tag",
50+
],
51+
},
52+
pingbackUrl: {
53+
type: "string",
54+
label: "Pingback URL",
55+
description: "When a task is completed you will be notified by a GET request sent to the URL you have specified",
56+
optional: true,
57+
},
58+
},
59+
methods: {
60+
createOnpageTask(args = {}) {
61+
return this.dataforseo._makeRequest({
62+
path: "/on_page/task_post",
63+
method: "post",
64+
...args,
65+
});
66+
},
67+
},
68+
async run({ $ }) {
69+
const response = await this.createOnpageTask({
70+
$,
71+
data: [
72+
{
73+
target: this.target,
74+
max_crawl_pages: this.maxCrawlPages,
75+
start_url: this.startUrl,
76+
load_resources: this.loadResources,
77+
enable_javascript: this.enableJavascript,
78+
tag: this.tag,
79+
pingback_url: this.pingbackUrl,
80+
},
81+
],
82+
});
83+
84+
if (response.status_code !== 20000) {
85+
throw new ConfigurationError(`Error: ${response.status_message}`);
86+
}
87+
88+
if (response.tasks[0].status_code !== 20000 && response.tasks[0].status_code !== 20100) {
89+
throw new ConfigurationError(`Error: ${response.tasks[0].status_message}`);
90+
}
91+
92+
$.export("$summary", "Successfully created onpage task.");
93+
return response;
94+
},
95+
};
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import dataforseo from "../../dataforseo.app.mjs";
2+
import { ConfigurationError } from "@pipedream/platform";
3+
4+
export default {
5+
key: "dataforseo-get-crawled-pages",
6+
name: "Get Crawled Pages with OnPage",
7+
description: "Get page-specific data with detailed information on how well your pages are optimized for search. [See the documentation](https://docs.dataforseo.com/v3/on_page/pages/)",
8+
version: "0.0.1",
9+
type: "action",
10+
annotations: {
11+
destructiveHint: false,
12+
openWorldHint: true,
13+
readOnlyHint: true,
14+
},
15+
props: {
16+
dataforseo,
17+
taskId: {
18+
type: "string",
19+
label: "Task ID",
20+
description: "The ID of the task. You can get this ID in the response of the Task POST endpoint. Example: `07131248-1535-0216-1000-17384017ad04`",
21+
},
22+
limit: {
23+
propDefinition: [
24+
dataforseo,
25+
"limit",
26+
],
27+
},
28+
searchAfterToken: {
29+
type: "string",
30+
label: "Search After Token",
31+
description: "The token for subsequent requests",
32+
optional: true,
33+
},
34+
tag: {
35+
propDefinition: [
36+
dataforseo,
37+
"tag",
38+
],
39+
},
40+
},
41+
methods: {
42+
getCrawledPage(args = {}) {
43+
return this.dataforseo._makeRequest({
44+
path: "/on_page/pages",
45+
method: "post",
46+
...args,
47+
});
48+
},
49+
},
50+
async run({ $ }) {
51+
const response = await this.getCrawledPage({
52+
$,
53+
data: [
54+
{
55+
id: this.taskId,
56+
limit: this.limit,
57+
search_after_token: this.searchAfterToken,
58+
tag: this.tag,
59+
},
60+
],
61+
});
62+
63+
if (response.status_code !== 20000) {
64+
throw new ConfigurationError(`Error: ${response.status_message}`);
65+
}
66+
67+
if (response.tasks[0].status_code !== 20000) {
68+
throw new ConfigurationError(`Error: ${response.tasks[0].status_message}`);
69+
}
70+
71+
$.export("$summary", "Successfully retrieved crawled pages.");
72+
return response;
73+
},
74+
};

components/dataforseo/actions/parse-page-content/parse-page-content.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import dataforseo from "../../dataforseo.app.mjs";
33

44
export default {
55
key: "dataforseo-parse-page-content",
6-
name: "Parse Page Content",
6+
name: "Parse Page Content with OnPage",
77
description:
88
"Parse the content on any page and return its structured content. [See the documentation](https://docs.dataforseo.com/v3/on_page/content_parsing/live/)",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
annotations: {
1111
destructiveHint: false,
1212
openWorldHint: true,

components/dataforseo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/dataforseo",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Pipedream DataForSEO Components",
55
"main": "dataforseo.app.mjs",
66
"keywords": [
@@ -13,6 +13,6 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^3.0.3"
16+
"@pipedream/platform": "^3.1.0"
1717
}
1818
}

components/google_drive/actions/create-file-from-template/create-file-from-template.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "google_drive-create-file-from-template",
99
name: "Create New File From Template",
1010
description: "Create a new Google Docs file from a template. Optionally include placeholders in the template document that will get replaced from this action. [See documentation](https://www.npmjs.com/package/google-docs-mustaches)",
11-
version: "0.1.14",
11+
version: "0.1.15",
1212
annotations: {
1313
destructiveHint: true,
1414
openWorldHint: true,
@@ -32,6 +32,7 @@ export default {
3232
],
3333
description:
3434
"Select the folder of the newly created Google Doc and/or PDF, or use a custom expression to reference a folder ID from a previous step.",
35+
optional: true,
3536
},
3637
name: {
3738
propDefinition: [

components/google_drive/package.json

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

components/google_sheets/actions/add-column/add-column.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "google_sheets-add-column",
55
name: "Create Column",
66
description: "Create a new column in a spreadsheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdate)",
7-
version: "0.1.12",
7+
version: "0.1.13",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/google_sheets/actions/add-multiple-rows/add-multiple-rows.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
key: "google_sheets-add-multiple-rows",
1212
name: "Add Multiple Rows",
1313
description: "Add multiple rows of data to a Google Sheet. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append)",
14-
version: "0.2.15",
14+
version: "0.2.16",
1515
annotations: {
1616
destructiveHint: false,
1717
openWorldHint: true,

0 commit comments

Comments
 (0)