@mendable/n8n-nodes-firecrawl 1.0.5 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +122 -7
- package/dist/nodes/Firecrawl/Firecrawl.node.js +2 -1
- package/dist/nodes/Firecrawl/Firecrawl.node.js.map +1 -1
- package/dist/nodes/Firecrawl/api/{form → agent}/index.d.ts +2 -3
- package/dist/nodes/Firecrawl/api/agent/index.js +364 -0
- package/dist/nodes/Firecrawl/api/agent/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/agentAsync/index.d.ts +5 -0
- package/dist/nodes/Firecrawl/api/agentAsync/index.js +262 -0
- package/dist/nodes/Firecrawl/api/agentAsync/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/batchScrape/index.d.ts +7 -0
- package/dist/nodes/Firecrawl/api/batchScrape/index.js +173 -0
- package/dist/nodes/Firecrawl/api/batchScrape/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/batchScrapeErrors/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/batchScrapeErrors/index.js +40 -0
- package/dist/nodes/Firecrawl/api/batchScrapeErrors/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/batchScrapeStatus/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/batchScrapeStatus/index.js +40 -0
- package/dist/nodes/Firecrawl/api/batchScrapeStatus/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/cancelBatchScrape/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/cancelBatchScrape/index.js +40 -0
- package/dist/nodes/Firecrawl/api/cancelBatchScrape/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/cancelCrawl/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/cancelCrawl/index.js +40 -0
- package/dist/nodes/Firecrawl/api/cancelCrawl/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/common.d.ts +8 -5
- package/dist/nodes/Firecrawl/api/common.js +324 -35
- package/dist/nodes/Firecrawl/api/common.js.map +1 -1
- package/dist/nodes/Firecrawl/api/crawl/index.d.ts +2 -1
- package/dist/nodes/Firecrawl/api/crawl/index.js +24 -23
- package/dist/nodes/Firecrawl/api/crawl/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/crawlActive/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/crawlActive/index.js +20 -0
- package/dist/nodes/Firecrawl/api/crawlActive/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/crawlParamsPreview/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/crawlParamsPreview/index.js +42 -0
- package/dist/nodes/Firecrawl/api/crawlParamsPreview/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/creditUsageHistorical/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/creditUsageHistorical/index.js +20 -0
- package/dist/nodes/Firecrawl/api/creditUsageHistorical/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/extract/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/extract/index.js +20 -19
- package/dist/nodes/Firecrawl/api/extract/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/getAgentStatus/index.d.ts +5 -0
- package/dist/nodes/Firecrawl/api/getAgentStatus/index.js +52 -0
- package/dist/nodes/Firecrawl/api/getAgentStatus/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/getCrawlErrors/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/getCrawlErrors/index.js +40 -0
- package/dist/nodes/Firecrawl/api/getCrawlErrors/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/getCrawlStatus/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/getCrawlStatus/index.js +4 -3
- package/dist/nodes/Firecrawl/api/getCrawlStatus/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/getExtractStatus/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/getExtractStatus/index.js +4 -3
- package/dist/nodes/Firecrawl/api/getExtractStatus/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/index.d.ts +62 -4
- package/dist/nodes/Firecrawl/api/index.js +241 -20
- package/dist/nodes/Firecrawl/api/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/map/index.d.ts +2 -1
- package/dist/nodes/Firecrawl/api/map/index.js +15 -14
- package/dist/nodes/Firecrawl/api/map/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/scrape/index.d.ts +2 -1
- package/dist/nodes/Firecrawl/api/scrape/index.js +56 -7
- package/dist/nodes/Firecrawl/api/scrape/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/search/index.d.ts +2 -1
- package/dist/nodes/Firecrawl/api/search/index.js +13 -9
- package/dist/nodes/Firecrawl/api/search/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/teamCreditUsage/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/teamCreditUsage/index.js +20 -0
- package/dist/nodes/Firecrawl/api/teamCreditUsage/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/teamQueueStatus/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/teamQueueStatus/index.js +20 -0
- package/dist/nodes/Firecrawl/api/teamQueueStatus/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/teamTokenUsage/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/teamTokenUsage/index.js +20 -0
- package/dist/nodes/Firecrawl/api/teamTokenUsage/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/teamTokenUsageHistorical/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/teamTokenUsageHistorical/index.js +20 -0
- package/dist/nodes/Firecrawl/api/teamTokenUsageHistorical/index.js.map +1 -0
- package/dist/nodes/Firecrawl/methods.js +17 -2
- package/dist/nodes/Firecrawl/methods.js.map +1 -1
- package/dist/nodes/Firecrawl/properties.js +40 -63
- package/dist/nodes/Firecrawl/properties.js.map +1 -1
- package/dist/package.json +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/nodes/Firecrawl/api/form/index.js +0 -163
- package/dist/nodes/Firecrawl/api/form/index.js.map +0 -1
- package/dist/nodes/Firecrawl/helpers/http/debug.d.ts +0 -2
- package/dist/nodes/Firecrawl/helpers/http/debug.js +0 -18
- package/dist/nodes/Firecrawl/helpers/http/debug.js.map +0 -1
- package/dist/nodes/Firecrawl/openapi.json +0 -2744
- package/dist/nodes/Firecrawl/v1-openapi.json +0 -1915
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.properties = exports.options = exports.operationName = exports.displayName = exports.name = void 0;
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.operationName = exports.displayName = exports.name = void 0;
|
|
4
4
|
const common_1 = require("../common");
|
|
5
5
|
exports.name = 'map';
|
|
6
|
-
exports.displayName = 'Map a website
|
|
6
|
+
exports.displayName = 'Map a website to discover all URLs';
|
|
7
7
|
exports.operationName = 'map';
|
|
8
|
+
exports.resourceName = 'MapSearch';
|
|
8
9
|
function createSitemapProperty() {
|
|
9
10
|
return {
|
|
10
11
|
displayName: 'Sitemap',
|
|
@@ -14,21 +15,21 @@ function createSitemapProperty() {
|
|
|
14
15
|
{
|
|
15
16
|
name: 'Include',
|
|
16
17
|
value: 'include',
|
|
17
|
-
description: '
|
|
18
|
+
description: 'Use sitemap plus link discovery (default, most comprehensive)',
|
|
18
19
|
},
|
|
19
20
|
{
|
|
20
21
|
name: 'Only',
|
|
21
22
|
value: 'only',
|
|
22
|
-
description: 'Only return
|
|
23
|
+
description: 'Only return URLs from sitemap.xml (fastest, but may miss pages)',
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
26
|
name: 'Skip',
|
|
26
27
|
value: 'skip',
|
|
27
|
-
description: 'Ignore
|
|
28
|
+
description: 'Ignore sitemap, discover pages through links only',
|
|
28
29
|
},
|
|
29
30
|
],
|
|
30
31
|
default: 'include',
|
|
31
|
-
description: '
|
|
32
|
+
description: 'Control how URLs are discovered. "Include" combines sitemap with link crawling for best coverage. "Only" is fastest but limited to sitemap. "Skip" relies purely on link following.',
|
|
32
33
|
routing: {
|
|
33
34
|
request: {
|
|
34
35
|
body: {
|
|
@@ -41,7 +42,7 @@ function createSitemapProperty() {
|
|
|
41
42
|
useCustomBody: [true],
|
|
42
43
|
},
|
|
43
44
|
show: {
|
|
44
|
-
resource: [
|
|
45
|
+
resource: [exports.resourceName],
|
|
45
46
|
operation: [exports.operationName],
|
|
46
47
|
},
|
|
47
48
|
},
|
|
@@ -53,7 +54,7 @@ function createIncludeSubdomainsProperty() {
|
|
|
53
54
|
name: 'includeSubdomains',
|
|
54
55
|
type: 'boolean',
|
|
55
56
|
default: false,
|
|
56
|
-
description: 'Whether to
|
|
57
|
+
description: 'Whether to discover URLs on subdomains like blog.example.com or docs.example.com. Enable to map the entire domain ecosystem, not just the main domain.',
|
|
57
58
|
routing: {
|
|
58
59
|
request: {
|
|
59
60
|
body: {
|
|
@@ -66,7 +67,7 @@ function createIncludeSubdomainsProperty() {
|
|
|
66
67
|
useCustomBody: [true],
|
|
67
68
|
},
|
|
68
69
|
show: {
|
|
69
|
-
resource: [
|
|
70
|
+
resource: [exports.resourceName],
|
|
70
71
|
operation: [exports.operationName],
|
|
71
72
|
},
|
|
72
73
|
},
|
|
@@ -95,7 +96,7 @@ function createLimitProperty() {
|
|
|
95
96
|
useCustomBody: [true],
|
|
96
97
|
},
|
|
97
98
|
show: {
|
|
98
|
-
resource: [
|
|
99
|
+
resource: [exports.resourceName],
|
|
99
100
|
operation: [exports.operationName],
|
|
100
101
|
},
|
|
101
102
|
},
|
|
@@ -107,7 +108,7 @@ function createTimeoutProperty() {
|
|
|
107
108
|
name: 'timeout',
|
|
108
109
|
type: 'number',
|
|
109
110
|
default: 10000,
|
|
110
|
-
description: '
|
|
111
|
+
description: 'Maximum time in milliseconds to wait for URL discovery. Increase for large sites or slow connections. Default 10000ms (10 seconds).',
|
|
111
112
|
routing: {
|
|
112
113
|
request: {
|
|
113
114
|
body: {
|
|
@@ -120,7 +121,7 @@ function createTimeoutProperty() {
|
|
|
120
121
|
useCustomBody: [true],
|
|
121
122
|
},
|
|
122
123
|
show: {
|
|
123
|
-
resource: [
|
|
124
|
+
resource: [exports.resourceName],
|
|
124
125
|
operation: [exports.operationName],
|
|
125
126
|
},
|
|
126
127
|
},
|
|
@@ -183,8 +184,8 @@ function createAdditionalFieldsProperty(operation) {
|
|
|
183
184
|
}
|
|
184
185
|
function createMapProperties() {
|
|
185
186
|
return [
|
|
186
|
-
(0, common_1.createOperationNotice)(
|
|
187
|
-
(0, common_1.createUrlProperty)(exports.name),
|
|
187
|
+
(0, common_1.createOperationNotice)(exports.resourceName, exports.name),
|
|
188
|
+
(0, common_1.createUrlProperty)(exports.name, undefined, exports.resourceName),
|
|
188
189
|
createSitemapProperty(),
|
|
189
190
|
createIncludeSubdomainsProperty(),
|
|
190
191
|
createLimitProperty(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/map/index.ts"],"names":[],"mappings":";;;AAMA,sCAAyF;AAG5E,QAAA,IAAI,GAAG,KAAK,CAAC;AACb,QAAA,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/map/index.ts"],"names":[],"mappings":";;;AAMA,sCAAyF;AAG5E,QAAA,IAAI,GAAG,KAAK,CAAC;AACb,QAAA,WAAW,GAAG,oCAAoC,CAAC;AACnD,QAAA,aAAa,GAAG,KAAK,CAAC;AACtB,QAAA,YAAY,GAAG,WAAW,CAAC;AAExC,SAAS,qBAAqB;IAC7B,OAAO;QACN,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EA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CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare const name = "scrape";
|
|
3
|
-
export declare const displayName = "Scrape a
|
|
3
|
+
export declare const displayName = "Scrape a URL and get its content as markdown, summary, or other formats";
|
|
4
4
|
export declare const operationName = "scrape";
|
|
5
|
+
export declare const resourceName = "Scraping";
|
|
5
6
|
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
6
7
|
export { options, properties };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.properties = exports.options = exports.operationName = exports.displayName = exports.name = void 0;
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.operationName = exports.displayName = exports.name = void 0;
|
|
4
4
|
const common_1 = require("../common");
|
|
5
5
|
exports.name = 'scrape';
|
|
6
|
-
exports.displayName = 'Scrape a
|
|
6
|
+
exports.displayName = 'Scrape a URL and get its content as markdown, summary, or other formats';
|
|
7
7
|
exports.operationName = 'scrape';
|
|
8
|
+
exports.resourceName = 'Scraping';
|
|
8
9
|
function createParsersProperty(operationName) {
|
|
9
10
|
return {
|
|
10
11
|
displayName: 'Parsers',
|
|
@@ -14,23 +15,71 @@ function createParsersProperty(operationName) {
|
|
|
14
15
|
{
|
|
15
16
|
name: 'PDF',
|
|
16
17
|
value: 'pdf',
|
|
18
|
+
description: 'Extract PDF content as markdown (1 credit per page)',
|
|
17
19
|
},
|
|
18
20
|
],
|
|
19
21
|
default: [],
|
|
20
|
-
description: '
|
|
22
|
+
description: 'Enable file parsers for content extraction. Select "PDF" to extract PDF content as markdown text. Leave empty to get PDFs as base64 data.',
|
|
21
23
|
routing: {
|
|
22
24
|
request: {
|
|
23
25
|
body: {
|
|
24
26
|
parsers: '={{ $value }}',
|
|
25
27
|
},
|
|
26
28
|
},
|
|
29
|
+
send: {
|
|
30
|
+
preSend: [
|
|
31
|
+
async function (requestOptions) {
|
|
32
|
+
if (typeof requestOptions.body !== 'object' || !requestOptions.body) {
|
|
33
|
+
return requestOptions;
|
|
34
|
+
}
|
|
35
|
+
const body = requestOptions.body;
|
|
36
|
+
if (body.parsers !== undefined) {
|
|
37
|
+
let rawValue = body.parsers;
|
|
38
|
+
while (Array.isArray(rawValue) && rawValue.length === 1 && Array.isArray(rawValue[0])) {
|
|
39
|
+
rawValue = rawValue[0];
|
|
40
|
+
}
|
|
41
|
+
const extractStrings = (val) => {
|
|
42
|
+
if (typeof val === 'string') {
|
|
43
|
+
try {
|
|
44
|
+
const parsed = JSON.parse(val);
|
|
45
|
+
return extractStrings(parsed);
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
return val.trim() ? [val.trim().toLowerCase()] : [];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (Array.isArray(val)) {
|
|
52
|
+
return val.flatMap(extractStrings);
|
|
53
|
+
}
|
|
54
|
+
if (typeof val === 'object' && val !== null && 'type' in val) {
|
|
55
|
+
const typeVal = val.type;
|
|
56
|
+
if (typeof typeVal === 'string') {
|
|
57
|
+
return [typeVal.toLowerCase()];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return [];
|
|
61
|
+
};
|
|
62
|
+
const parsersArray = extractStrings(rawValue);
|
|
63
|
+
const validParsers = ['pdf'];
|
|
64
|
+
const uniqueParsers = [...new Set(parsersArray)].filter((p) => validParsers.includes(p));
|
|
65
|
+
if (uniqueParsers.length === 0) {
|
|
66
|
+
delete body.parsers;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
body.parsers = uniqueParsers.map((parser) => ({ type: parser }));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return requestOptions;
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
27
76
|
},
|
|
28
77
|
displayOptions: {
|
|
29
78
|
hide: {
|
|
30
79
|
useCustomBody: [true],
|
|
31
80
|
},
|
|
32
81
|
show: {
|
|
33
|
-
resource: [
|
|
82
|
+
resource: [exports.resourceName],
|
|
34
83
|
operation: [operationName],
|
|
35
84
|
},
|
|
36
85
|
},
|
|
@@ -93,10 +142,10 @@ function createAdditionalFieldsProperty(operation) {
|
|
|
93
142
|
}
|
|
94
143
|
function createScrapeProperties() {
|
|
95
144
|
return [
|
|
96
|
-
(0, common_1.createOperationNotice)(
|
|
97
|
-
(0, common_1.createUrlProperty)(exports.name, 'https://firecrawl.dev'),
|
|
145
|
+
(0, common_1.createOperationNotice)(exports.resourceName, exports.name),
|
|
146
|
+
(0, common_1.createUrlProperty)(exports.name, 'https://firecrawl.dev', exports.resourceName),
|
|
98
147
|
createParsersProperty(exports.operationName),
|
|
99
|
-
(0, common_1.createScrapeOptionsProperty)(exports.operationName, false),
|
|
148
|
+
(0, common_1.createScrapeOptionsProperty)(exports.operationName, false, false, exports.resourceName),
|
|
100
149
|
];
|
|
101
150
|
}
|
|
102
151
|
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createScrapeProperties());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/scrape/index.ts"],"names":[],"mappings":";;;AAMA,sCAKmB;AAGN,QAAA,IAAI,GAAG,QAAQ,CAAC;AAChB,QAAA,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/scrape/index.ts"],"names":[],"mappings":";;;AAMA,sCAKmB;AAGN,QAAA,IAAI,GAAG,QAAQ,CAAC;AAChB,QAAA,WAAW,GAAG,yEAAyE,CAAC;AACxF,QAAA,aAAa,GAAG,QAAQ,CAAC;AACzB,QAAA,YAAY,GAAG,UAAU,CAAC;AAOvC,SAAS,qBAAqB,CAAC,aAAqB;IACnD,OAAO;QACN,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EA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9B,OAAO;QAEN,IAAA,8BAAqB,EAAC,oBAAY,EAAE,YAAI,CAAC;QAGzC,IAAA,0BAAiB,EAAC,YAAI,EAAE,uBAAuB,EAAE,oBAAY,CAAC;QAG9D,qBAAqB,CAAC,qBAAa,CAAC;QAGpC,IAAA,oCAA2B,EAAC,qBAAa,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAY,CAAC;KACtE,CAAC;AACH,CAAC;AAGD,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAA,2BAAkB,EAAC,YAAI,EAAE,mBAAW,EAAE,sBAAsB,EAAE,CAAC,CAAC;AAKvF,0BAAO;AAAE,gCAAU;AAF5B,UAAU,CAAC,IAAI,CAAC,8BAA8B,CAAC,YAAI,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare const name = "search";
|
|
3
|
-
export declare const displayName = "Search and
|
|
3
|
+
export declare const displayName = "Search the web and scrape results";
|
|
4
4
|
export declare const operationName = "search";
|
|
5
|
+
export declare const resourceName = "MapSearch";
|
|
5
6
|
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
6
7
|
export { options, properties };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.properties = exports.options = exports.operationName = exports.displayName = exports.name = void 0;
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.operationName = exports.displayName = exports.name = void 0;
|
|
4
4
|
const common_1 = require("../common");
|
|
5
5
|
const common_2 = require("../common");
|
|
6
6
|
exports.name = 'search';
|
|
7
|
-
exports.displayName = 'Search and
|
|
7
|
+
exports.displayName = 'Search the web and scrape results';
|
|
8
8
|
exports.operationName = 'search';
|
|
9
|
+
exports.resourceName = 'MapSearch';
|
|
9
10
|
function createQueryProperty(operationName) {
|
|
10
11
|
return {
|
|
11
12
|
displayName: 'Query',
|
|
@@ -13,7 +14,7 @@ function createQueryProperty(operationName) {
|
|
|
13
14
|
type: 'string',
|
|
14
15
|
default: '',
|
|
15
16
|
required: true,
|
|
16
|
-
description: 'The search query',
|
|
17
|
+
description: 'The search query to find relevant web pages. Use natural language like you would in a search engine. Results are scraped and returned with their content.',
|
|
17
18
|
routing: {
|
|
18
19
|
request: {
|
|
19
20
|
body: {
|
|
@@ -64,18 +65,21 @@ function createSourcesProperty(operationName, omitDisplayOptions = false) {
|
|
|
64
65
|
{
|
|
65
66
|
name: 'Web',
|
|
66
67
|
value: 'web',
|
|
68
|
+
description: 'Search general web pages',
|
|
67
69
|
},
|
|
68
70
|
{
|
|
69
71
|
name: 'Images',
|
|
70
72
|
value: 'images',
|
|
73
|
+
description: 'Search for images',
|
|
71
74
|
},
|
|
72
75
|
{
|
|
73
76
|
name: 'News',
|
|
74
77
|
value: 'news',
|
|
78
|
+
description: 'Search news articles',
|
|
75
79
|
},
|
|
76
80
|
],
|
|
77
81
|
default: ['web'],
|
|
78
|
-
description: '
|
|
82
|
+
description: 'Types of content to search. Web returns general pages, News focuses on recent articles, Images finds visual content. Select at least one source.',
|
|
79
83
|
routing: {
|
|
80
84
|
request: {
|
|
81
85
|
body: {
|
|
@@ -104,7 +108,7 @@ function createSourcesProperty(operationName, omitDisplayOptions = false) {
|
|
|
104
108
|
useCustomBody: [true],
|
|
105
109
|
},
|
|
106
110
|
show: {
|
|
107
|
-
resource: [
|
|
111
|
+
resource: [exports.resourceName],
|
|
108
112
|
operation: [operationName],
|
|
109
113
|
},
|
|
110
114
|
},
|
|
@@ -116,7 +120,7 @@ function createTimeBasedSearchProperty(operation) {
|
|
|
116
120
|
name: 'tbs',
|
|
117
121
|
type: 'string',
|
|
118
122
|
default: '',
|
|
119
|
-
description: '
|
|
123
|
+
description: 'Filter results by time. Use "qdr:h" for past hour, "qdr:d" for past day, "qdr:w" for past week, "qdr:m" for past month, "qdr:y" for past year. Leave empty for all time.',
|
|
120
124
|
routing: {
|
|
121
125
|
request: {
|
|
122
126
|
body: {
|
|
@@ -195,7 +199,7 @@ function createTimeoutProperty(operationName) {
|
|
|
195
199
|
name: 'timeout',
|
|
196
200
|
type: 'number',
|
|
197
201
|
default: 60000,
|
|
198
|
-
description: '
|
|
202
|
+
description: 'Maximum time in milliseconds to wait for search results and scraping to complete. Increase for more results or slow connections. Default 60000ms (60 seconds).',
|
|
199
203
|
routing: {
|
|
200
204
|
request: {
|
|
201
205
|
body: {
|
|
@@ -208,7 +212,7 @@ function createTimeoutProperty(operationName) {
|
|
|
208
212
|
useCustomBody: [true],
|
|
209
213
|
},
|
|
210
214
|
show: {
|
|
211
|
-
resource: [
|
|
215
|
+
resource: [exports.resourceName],
|
|
212
216
|
operation: [operationName],
|
|
213
217
|
},
|
|
214
218
|
},
|
|
@@ -216,7 +220,7 @@ function createTimeoutProperty(operationName) {
|
|
|
216
220
|
}
|
|
217
221
|
function createSearchProperties() {
|
|
218
222
|
return [
|
|
219
|
-
(0, common_2.createOperationNotice)(
|
|
223
|
+
(0, common_2.createOperationNotice)(exports.resourceName, exports.name),
|
|
220
224
|
createQueryProperty(exports.name),
|
|
221
225
|
createSourcesProperty(exports.name),
|
|
222
226
|
createTimeoutProperty(exports.name),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/search/index.ts"],"names":[],"mappings":";;;AAMA,sCAA+C;AAC/C,sCAAkD;AAGrC,QAAA,IAAI,GAAG,QAAQ,CAAC;AAChB,QAAA,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/search/index.ts"],"names":[],"mappings":";;;AAMA,sCAA+C;AAC/C,sCAAkD;AAGrC,QAAA,IAAI,GAAG,QAAQ,CAAC;AAChB,QAAA,WAAW,GAAG,mCAAmC,CAAC;AAClD,QAAA,aAAa,GAAG,QAAQ,CAAC;AACzB,Q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flow';
|
|
2
|
+
export declare const name = "teamCreditUsage";
|
|
3
|
+
export declare const displayName = "Get team credit usage";
|
|
4
|
+
export declare const resourceName = "Account";
|
|
5
|
+
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
6
|
+
export { options, properties };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.displayName = exports.name = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
exports.name = 'teamCreditUsage';
|
|
6
|
+
exports.displayName = 'Get team credit usage';
|
|
7
|
+
exports.resourceName = 'Account';
|
|
8
|
+
function createProperties() {
|
|
9
|
+
return [(0, common_1.createOperationNotice)(exports.resourceName, exports.name, 'GET')];
|
|
10
|
+
}
|
|
11
|
+
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createProperties());
|
|
12
|
+
exports.options = options;
|
|
13
|
+
exports.properties = properties;
|
|
14
|
+
options.routing = {
|
|
15
|
+
request: {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: '=/team/credit-usage',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/teamCreditUsage/index.ts"],"names":[],"mappings":";;;AACA,sCAAsE;AAEzD,QAAA,IAAI,GAAG,iBAAiB,CAAC;AACzB,QAAA,WAAW,GAAG,uBAAuB,CAAC;AACtC,QAAA,YAAY,GAAG,SAAS,CAAC;AAEtC,SAAS,gBAAgB;IACxB,OAAO,CAAC,IAAA,8BAAqB,EAAC,oBAAY,EAAE,YAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAA,2BAAkB,EAAC,YAAI,EAAE,mBAAW,EAAE,gBAAgB,EAAE,CAAC,CAAC;AASjF,0BAAO;AAAE,gCAAU;AAP5B,OAAO,CAAC,OAAO,GAAG;IACjB,OAAO,EAAE;QACR,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,qBAAqB;KAC1B;CACD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const name = "teamQueueStatus";
|
|
3
|
+
export declare const displayName = "Get team queue status";
|
|
4
|
+
export declare const resourceName = "Account";
|
|
5
|
+
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
6
|
+
export { options, properties };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.displayName = exports.name = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
exports.name = 'teamQueueStatus';
|
|
6
|
+
exports.displayName = 'Get team queue status';
|
|
7
|
+
exports.resourceName = 'Account';
|
|
8
|
+
function createProperties() {
|
|
9
|
+
return [(0, common_1.createOperationNotice)(exports.resourceName, exports.name, 'GET')];
|
|
10
|
+
}
|
|
11
|
+
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createProperties());
|
|
12
|
+
exports.options = options;
|
|
13
|
+
exports.properties = properties;
|
|
14
|
+
options.routing = {
|
|
15
|
+
request: {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: '=/team/queue-status',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/teamQueueStatus/index.ts"],"names":[],"mappings":";;;AACA,sCAAsE;AAEzD,QAAA,IAAI,GAAG,iBAAiB,CAAC;AACzB,QAAA,WAAW,GAAG,uBAAuB,CAAC;AACtC,QAAA,YAAY,GAAG,SAAS,CAAC;AAEtC,SAAS,gBAAgB;IACxB,OAAO,CAAC,IAAA,8BAAqB,EAAC,oBAAY,EAAE,YAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAA,2BAAkB,EAAC,YAAI,EAAE,mBAAW,EAAE,gBAAgB,EAAE,CAAC,CAAC;AASjF,0BAAO;AAAE,gCAAU;AAP5B,OAAO,CAAC,OAAO,GAAG;IACjB,OAAO,EAAE;QACR,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,qBAAqB;KAC1B;CACD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const name = "teamTokenUsage";
|
|
3
|
+
export declare const displayName = "Get team token usage";
|
|
4
|
+
export declare const resourceName = "Account";
|
|
5
|
+
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
6
|
+
export { options, properties };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.displayName = exports.name = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
exports.name = 'teamTokenUsage';
|
|
6
|
+
exports.displayName = 'Get team token usage';
|
|
7
|
+
exports.resourceName = 'Account';
|
|
8
|
+
function createProperties() {
|
|
9
|
+
return [(0, common_1.createOperationNotice)(exports.resourceName, exports.name, 'GET')];
|
|
10
|
+
}
|
|
11
|
+
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createProperties());
|
|
12
|
+
exports.options = options;
|
|
13
|
+
exports.properties = properties;
|
|
14
|
+
options.routing = {
|
|
15
|
+
request: {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: '=/team/token-usage',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/teamTokenUsage/index.ts"],"names":[],"mappings":";;;AACA,sCAAsE;AAEzD,QAAA,IAAI,GAAG,gBAAgB,CAAC;AACxB,QAAA,WAAW,GAAG,sBAAsB,CAAC;AACrC,QAAA,YAAY,GAAG,SAAS,CAAC;AAEtC,SAAS,gBAAgB;IACxB,OAAO,CAAC,IAAA,8BAAqB,EAAC,oBAAY,EAAE,YAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAA,2BAAkB,EAAC,YAAI,EAAE,mBAAW,EAAE,gBAAgB,EAAE,CAAC,CAAC;AASjF,0BAAO;AAAE,gCAAU;AAP5B,OAAO,CAAC,OAAO,GAAG;IACjB,OAAO,EAAE;QACR,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,oBAAoB;KACzB;CACD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const name = "teamTokenUsageHistorical";
|
|
3
|
+
export declare const displayName = "Get historical token usage";
|
|
4
|
+
export declare const resourceName = "Account";
|
|
5
|
+
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
6
|
+
export { options, properties };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.displayName = exports.name = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
exports.name = 'teamTokenUsageHistorical';
|
|
6
|
+
exports.displayName = 'Get historical token usage';
|
|
7
|
+
exports.resourceName = 'Account';
|
|
8
|
+
function createProperties() {
|
|
9
|
+
return [(0, common_1.createOperationNotice)(exports.resourceName, exports.name, 'GET')];
|
|
10
|
+
}
|
|
11
|
+
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createProperties());
|
|
12
|
+
exports.options = options;
|
|
13
|
+
exports.properties = properties;
|
|
14
|
+
options.routing = {
|
|
15
|
+
request: {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: '=/team/token-usage/historical',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/teamTokenUsageHistorical/index.ts"],"names":[],"mappings":";;;AACA,sCAAsE;AAEzD,QAAA,IAAI,GAAG,0BAA0B,CAAC;AAClC,QAAA,WAAW,GAAG,4BAA4B,CAAC;AAC3C,QAAA,YAAY,GAAG,SAAS,CAAC;AAEtC,SAAS,gBAAgB;IACxB,OAAO,CAAC,IAAA,8BAAqB,EAAC,oBAAY,EAAE,YAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAA,2BAAkB,EAAC,YAAI,EAAE,mBAAW,EAAE,gBAAgB,EAAE,CAAC,CAAC;AASjF,0BAAO;AAAE,gCAAU;AAP5B,OAAO,CAAC,OAAO,GAAG;IACjB,OAAO,EAAE;QACR,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,+BAA+B;KACpC;CACD,CAAC"}
|
|
@@ -3,8 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.allMethods = void 0;
|
|
4
4
|
const api_1 = require("./api");
|
|
5
5
|
exports.allMethods = {
|
|
6
|
-
|
|
7
|
-
...api_1.apiMethods.
|
|
6
|
+
Scraping: {
|
|
7
|
+
...api_1.apiMethods.Scraping,
|
|
8
|
+
},
|
|
9
|
+
Crawling: {
|
|
10
|
+
...api_1.apiMethods.Crawling,
|
|
11
|
+
},
|
|
12
|
+
Agent: {
|
|
13
|
+
...api_1.apiMethods.Agent,
|
|
14
|
+
},
|
|
15
|
+
MapSearch: {
|
|
16
|
+
...api_1.apiMethods.MapSearch,
|
|
17
|
+
},
|
|
18
|
+
Account: {
|
|
19
|
+
...api_1.apiMethods.Account,
|
|
20
|
+
},
|
|
21
|
+
Extract: {
|
|
22
|
+
...api_1.apiMethods.Extract,
|
|
8
23
|
},
|
|
9
24
|
};
|
|
10
25
|
//# sourceMappingURL=methods.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../../nodes/Firecrawl/methods.ts"],"names":[],"mappings":";;;AACA,+BAAmC;AAmBtB,QAAA,UAAU,GAAG;IACzB,OAAO,EAAE;QACR,GAAG,gBAAU,CAAC,OAAO;KACrB;CACuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../../nodes/Firecrawl/methods.ts"],"names":[],"mappings":";;;AACA,+BAAmC;AAmBtB,QAAA,UAAU,GAAG;IACzB,QAAQ,EAAE;QACT,GAAG,gBAAU,CAAC,QAAQ;KACtB;IACD,QAAQ,EAAE;QACT,GAAG,gBAAU,CAAC,QAAQ;KACtB;IACD,KAAK,EAAE;QACN,GAAG,gBAAU,CAAC,KAAK;KACnB;IACD,SAAS,EAAE;QACV,GAAG,gBAAU,CAAC,SAAS;KACvB;IACD,OAAO,EAAE;QACR,GAAG,gBAAU,CAAC,OAAO;KACrB;IACD,OAAO,EAAE;QACR,GAAG,gBAAU,CAAC,OAAO;KACrB;CACuB,CAAC"}
|