@mendable/n8n-nodes-firecrawl 1.0.6 → 2.0.0
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 +72 -8
- package/dist/nodes/Firecrawl/Firecrawl.node.d.ts +0 -3
- package/dist/nodes/Firecrawl/Firecrawl.node.js +2 -1
- package/dist/nodes/Firecrawl/Firecrawl.node.js.map +1 -1
- package/dist/nodes/Firecrawl/api/agent/index.d.ts +5 -0
- 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 +2 -1
- package/dist/nodes/Firecrawl/api/batchScrape/index.js +56 -7
- package/dist/nodes/Firecrawl/api/batchScrape/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/batchScrapeErrors/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/batchScrapeErrors/index.js +4 -3
- package/dist/nodes/Firecrawl/api/batchScrapeErrors/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/batchScrapeStatus/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/batchScrapeStatus/index.js +4 -3
- package/dist/nodes/Firecrawl/api/batchScrapeStatus/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/cancelBatchScrape/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/cancelBatchScrape/index.js +4 -3
- package/dist/nodes/Firecrawl/api/cancelBatchScrape/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/cancelCrawl/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/cancelCrawl/index.js +4 -3
- package/dist/nodes/Firecrawl/api/cancelCrawl/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/common.d.ts +7 -5
- package/dist/nodes/Firecrawl/api/common.js +180 -60
- 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 +1 -0
- package/dist/nodes/Firecrawl/api/crawlActive/index.js +3 -2
- package/dist/nodes/Firecrawl/api/crawlActive/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/crawlParamsPreview/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/crawlParamsPreview/index.js +4 -3
- package/dist/nodes/Firecrawl/api/crawlParamsPreview/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/creditUsageHistorical/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/creditUsageHistorical/index.js +3 -2
- package/dist/nodes/Firecrawl/api/creditUsageHistorical/index.js.map +1 -1
- 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 +1 -0
- package/dist/nodes/Firecrawl/api/getCrawlErrors/index.js +4 -3
- package/dist/nodes/Firecrawl/api/getCrawlErrors/index.js.map +1 -1
- 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 +36 -17
- package/dist/nodes/Firecrawl/api/index.js +171 -54
- 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 +1 -0
- package/dist/nodes/Firecrawl/api/teamCreditUsage/index.js +3 -2
- package/dist/nodes/Firecrawl/api/teamCreditUsage/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/teamQueueStatus/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/teamQueueStatus/index.js +3 -2
- package/dist/nodes/Firecrawl/api/teamQueueStatus/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/teamTokenUsage/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/teamTokenUsage/index.js +3 -2
- package/dist/nodes/Firecrawl/api/teamTokenUsage/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/teamTokenUsageHistorical/index.d.ts +1 -0
- package/dist/nodes/Firecrawl/api/teamTokenUsageHistorical/index.js +3 -2
- package/dist/nodes/Firecrawl/api/teamTokenUsageHistorical/index.js.map +1 -1
- package/dist/nodes/Firecrawl/methods.d.ts +0 -3
- 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
|
@@ -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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AAC;aACrB;SACD;KACD,CAAC;AACH,CAAC;AAKD,SAAS,sBAAsB;IAC9B,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,GAA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}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare const name = "teamCreditUsage";
|
|
3
3
|
export declare const displayName = "Get team credit usage";
|
|
4
|
+
export declare const resourceName = "Account";
|
|
4
5
|
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
5
6
|
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.displayName = exports.name = void 0;
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.displayName = exports.name = void 0;
|
|
4
4
|
const common_1 = require("../common");
|
|
5
5
|
exports.name = 'teamCreditUsage';
|
|
6
6
|
exports.displayName = 'Get team credit usage';
|
|
7
|
+
exports.resourceName = 'Account';
|
|
7
8
|
function createProperties() {
|
|
8
|
-
return [(0, common_1.createOperationNotice)(
|
|
9
|
+
return [(0, common_1.createOperationNotice)(exports.resourceName, exports.name, 'GET')];
|
|
9
10
|
}
|
|
10
11
|
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createProperties());
|
|
11
12
|
exports.options = options;
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare const name = "teamQueueStatus";
|
|
3
3
|
export declare const displayName = "Get team queue status";
|
|
4
|
+
export declare const resourceName = "Account";
|
|
4
5
|
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
5
6
|
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.displayName = exports.name = void 0;
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.displayName = exports.name = void 0;
|
|
4
4
|
const common_1 = require("../common");
|
|
5
5
|
exports.name = 'teamQueueStatus';
|
|
6
6
|
exports.displayName = 'Get team queue status';
|
|
7
|
+
exports.resourceName = 'Account';
|
|
7
8
|
function createProperties() {
|
|
8
|
-
return [(0, common_1.createOperationNotice)(
|
|
9
|
+
return [(0, common_1.createOperationNotice)(exports.resourceName, exports.name, 'GET')];
|
|
9
10
|
}
|
|
10
11
|
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createProperties());
|
|
11
12
|
exports.options = options;
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare const name = "teamTokenUsage";
|
|
3
3
|
export declare const displayName = "Get team token usage";
|
|
4
|
+
export declare const resourceName = "Account";
|
|
4
5
|
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
5
6
|
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.displayName = exports.name = void 0;
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.displayName = exports.name = void 0;
|
|
4
4
|
const common_1 = require("../common");
|
|
5
5
|
exports.name = 'teamTokenUsage';
|
|
6
6
|
exports.displayName = 'Get team token usage';
|
|
7
|
+
exports.resourceName = 'Account';
|
|
7
8
|
function createProperties() {
|
|
8
|
-
return [(0, common_1.createOperationNotice)(
|
|
9
|
+
return [(0, common_1.createOperationNotice)(exports.resourceName, exports.name, 'GET')];
|
|
9
10
|
}
|
|
10
11
|
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createProperties());
|
|
11
12
|
exports.options = options;
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare const name = "teamTokenUsageHistorical";
|
|
3
3
|
export declare const displayName = "Get historical token usage";
|
|
4
|
+
export declare const resourceName = "Account";
|
|
4
5
|
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
5
6
|
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.displayName = exports.name = void 0;
|
|
3
|
+
exports.properties = exports.options = exports.resourceName = exports.displayName = exports.name = void 0;
|
|
4
4
|
const common_1 = require("../common");
|
|
5
5
|
exports.name = 'teamTokenUsageHistorical';
|
|
6
6
|
exports.displayName = 'Get historical token usage';
|
|
7
|
+
exports.resourceName = 'Account';
|
|
7
8
|
function createProperties() {
|
|
8
|
-
return [(0, common_1.createOperationNotice)(
|
|
9
|
+
return [(0, common_1.createOperationNotice)(exports.resourceName, exports.name, 'GET')];
|
|
9
10
|
}
|
|
10
11
|
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createProperties());
|
|
11
12
|
exports.options = options;
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -11,9 +11,6 @@ export declare const allMethods: {
|
|
|
11
11
|
resourceMapping?: {
|
|
12
12
|
[functionName: string]: (this: import("n8n-workflow").ILoadOptionsFunctions) => Promise<import("n8n-workflow").ResourceMapperFields>;
|
|
13
13
|
} | undefined;
|
|
14
|
-
localResourceMapping?: {
|
|
15
|
-
[functionName: string]: (this: import("n8n-workflow").ILocalLoadOptionsFunctions) => Promise<import("n8n-workflow").ResourceMapperFields>;
|
|
16
|
-
} | undefined;
|
|
17
14
|
actionHandler?: {
|
|
18
15
|
[functionName: string]: (this: import("n8n-workflow").ILoadOptionsFunctions, payload: string | import("n8n-workflow").IDataObject | undefined) => Promise<import("n8n-workflow").NodeParameterValueType>;
|
|
19
16
|
} | undefined;
|
|
@@ -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"}
|
|
@@ -8,15 +8,35 @@ exports.resourceSelect = [
|
|
|
8
8
|
{
|
|
9
9
|
displayName: 'Resource',
|
|
10
10
|
name: 'resource',
|
|
11
|
-
type: '
|
|
11
|
+
type: 'options',
|
|
12
12
|
noDataExpression: true,
|
|
13
13
|
options: [
|
|
14
14
|
{
|
|
15
|
-
name: '
|
|
16
|
-
value: '
|
|
15
|
+
name: 'Account',
|
|
16
|
+
value: 'Account',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'Agent',
|
|
20
|
+
value: 'Agent',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Crawling',
|
|
24
|
+
value: 'Crawling',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Extract (Legacy)',
|
|
28
|
+
value: 'Extract',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Map & Search',
|
|
32
|
+
value: 'MapSearch',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Scraping',
|
|
36
|
+
value: 'Scraping',
|
|
17
37
|
},
|
|
18
38
|
],
|
|
19
|
-
default: '
|
|
39
|
+
default: 'Scraping',
|
|
20
40
|
},
|
|
21
41
|
];
|
|
22
42
|
exports.extraProperties = [
|
|
@@ -46,8 +66,8 @@ exports.extraProperties = [
|
|
|
46
66
|
displayOptions: {
|
|
47
67
|
show: {
|
|
48
68
|
useCustomBody: [true],
|
|
49
|
-
resource: ['
|
|
50
|
-
operation: ['
|
|
69
|
+
resource: ['Crawling'],
|
|
70
|
+
operation: ['crawl'],
|
|
51
71
|
},
|
|
52
72
|
},
|
|
53
73
|
},
|
|
@@ -55,7 +75,7 @@ exports.extraProperties = [
|
|
|
55
75
|
displayName: 'Custom Body',
|
|
56
76
|
name: 'customBody',
|
|
57
77
|
type: 'json',
|
|
58
|
-
default: '{\n "url": "string",\n "
|
|
78
|
+
default: '{\n "url": "string",\n "formats": [\n {\n "type": "markdown"\n }\n ],\n "extract": {\n "schema": "string",\n "systemPrompt": "string",\n "prompt": "string"\n },\n "actions": [\n {\n "type": "wait",\n "selector": "string",\n "milliseconds": 0,\n "text": "string",\n "key": "string"\n }\n ]\n}',
|
|
59
79
|
description: 'Custom body to send',
|
|
60
80
|
routing: {
|
|
61
81
|
request: {
|
|
@@ -70,8 +90,8 @@ exports.extraProperties = [
|
|
|
70
90
|
displayOptions: {
|
|
71
91
|
show: {
|
|
72
92
|
useCustomBody: [true],
|
|
73
|
-
resource: ['
|
|
74
|
-
operation: ['
|
|
93
|
+
resource: ['Scraping'],
|
|
94
|
+
operation: ['scrape'],
|
|
75
95
|
},
|
|
76
96
|
},
|
|
77
97
|
},
|
|
@@ -79,7 +99,7 @@ exports.extraProperties = [
|
|
|
79
99
|
displayName: 'Custom Body',
|
|
80
100
|
name: 'customBody',
|
|
81
101
|
type: 'json',
|
|
82
|
-
default: '{\n "url": "
|
|
102
|
+
default: '{\n "url": "https://firecrawl.dev",\n "search": "docs"\n}',
|
|
83
103
|
description: 'Custom body to send',
|
|
84
104
|
routing: {
|
|
85
105
|
request: {
|
|
@@ -94,8 +114,8 @@ exports.extraProperties = [
|
|
|
94
114
|
displayOptions: {
|
|
95
115
|
show: {
|
|
96
116
|
useCustomBody: [true],
|
|
97
|
-
resource: ['
|
|
98
|
-
operation: ['
|
|
117
|
+
resource: ['MapSearch'],
|
|
118
|
+
operation: ['map'],
|
|
99
119
|
},
|
|
100
120
|
},
|
|
101
121
|
},
|
|
@@ -103,8 +123,8 @@ exports.extraProperties = [
|
|
|
103
123
|
displayName: 'Custom Body',
|
|
104
124
|
name: 'customBody',
|
|
105
125
|
type: 'json',
|
|
106
|
-
default: '{\n "
|
|
107
|
-
description: 'Custom body to send',
|
|
126
|
+
default: '{\n "prompt": "Find the founders of Firecrawl",\n "urls": ["https://firecrawl.dev"],\n "schema": {\n "type": "object",\n "properties": {\n "founders": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "name": { "type": "string" },\n "role": { "type": "string" }\n }\n }\n }\n }\n }\n}',
|
|
127
|
+
description: 'Custom body to send to the Agent endpoint',
|
|
108
128
|
routing: {
|
|
109
129
|
request: {
|
|
110
130
|
body: {
|
|
@@ -118,8 +138,8 @@ exports.extraProperties = [
|
|
|
118
138
|
displayOptions: {
|
|
119
139
|
show: {
|
|
120
140
|
useCustomBody: [true],
|
|
121
|
-
resource: ['
|
|
122
|
-
operation: ['
|
|
141
|
+
resource: ['Agent'],
|
|
142
|
+
operation: ['agent'],
|
|
123
143
|
},
|
|
124
144
|
},
|
|
125
145
|
},
|
|
@@ -127,8 +147,8 @@ exports.extraProperties = [
|
|
|
127
147
|
displayName: 'Custom Body',
|
|
128
148
|
name: 'customBody',
|
|
129
149
|
type: 'json',
|
|
130
|
-
default: '{\n "
|
|
131
|
-
description: 'Custom body to send',
|
|
150
|
+
default: '{\n "prompt": "Find the founders of Firecrawl",\n "urls": ["https://firecrawl.dev"],\n "schema": {\n "type": "object",\n "properties": {\n "founders": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "name": { "type": "string" },\n "role": { "type": "string" }\n }\n }\n }\n }\n }\n}',
|
|
151
|
+
description: 'Custom body to send to the Agent Async endpoint',
|
|
132
152
|
routing: {
|
|
133
153
|
request: {
|
|
134
154
|
body: {
|
|
@@ -142,59 +162,16 @@ exports.extraProperties = [
|
|
|
142
162
|
displayOptions: {
|
|
143
163
|
show: {
|
|
144
164
|
useCustomBody: [true],
|
|
145
|
-
resource: ['
|
|
146
|
-
operation: ['
|
|
165
|
+
resource: ['Agent'],
|
|
166
|
+
operation: ['agentAsync'],
|
|
147
167
|
},
|
|
148
168
|
},
|
|
149
169
|
},
|
|
150
170
|
];
|
|
151
|
-
const customBodyCrawl = {
|
|
152
|
-
displayName: 'Custom Body',
|
|
153
|
-
name: 'customBody',
|
|
154
|
-
type: 'json',
|
|
155
|
-
default: `{
|
|
156
|
-
"url": "https://firecrawl.dev",
|
|
157
|
-
"excludePaths": ["blog/*"],
|
|
158
|
-
"includePaths": [],
|
|
159
|
-
"prompt": "Get the latest news from the blog",
|
|
160
|
-
"limit": 100,
|
|
161
|
-
"crawlOptions": {
|
|
162
|
-
"ignoreSitemap": false,
|
|
163
|
-
"allowBackwardLinks": false,
|
|
164
|
-
"allowExternalLinks": false
|
|
165
|
-
},
|
|
166
|
-
"scrapeOptions": {
|
|
167
|
-
"formats": [
|
|
168
|
-
{
|
|
169
|
-
"type": "markdown"
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"onlyMainContent": true,
|
|
173
|
-
"removeBase64Images": true,
|
|
174
|
-
"mobile": false,
|
|
175
|
-
"waitFor": 0
|
|
176
|
-
},
|
|
177
|
-
"webhook": ""
|
|
178
|
-
}`,
|
|
179
|
-
description: 'Custom body to send',
|
|
180
|
-
routing: {
|
|
181
|
-
request: {
|
|
182
|
-
body: '={{JSON.parse($value)}}',
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
displayOptions: {
|
|
186
|
-
show: {
|
|
187
|
-
resource: ['Default'],
|
|
188
|
-
operation: ['Crawl a website'],
|
|
189
|
-
useCustomBody: [true],
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
};
|
|
193
171
|
exports.allProperties = [
|
|
194
172
|
...exports.authenticationProperties,
|
|
195
173
|
...exports.resourceSelect,
|
|
196
174
|
...api_1.apiProperties,
|
|
197
175
|
...exports.extraProperties,
|
|
198
|
-
customBodyCrawl,
|
|
199
176
|
];
|
|
200
177
|
//# sourceMappingURL=properties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../nodes/Firecrawl/properties.ts"],"names":[],"mappings":";;;AACA,+BAAsC;AACtC,uCAAoD;AAKvC,QAAA,wBAAwB,GAAsB,EAAE,CAAC;AAKjD,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../nodes/Firecrawl/properties.ts"],"names":[],"mappings":";;;AACA,+BAAsC;AACtC,uCAAoD;AAKvC,QAAA,wBAAwB,GAAsB,EAAE,CAAC;AAKjD,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;aAChB;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;aACd;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;aACjB;YACD;gBACC,IAAI,EAAE,kBAAkB;gBACxB,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