@mendable/n8n-nodes-firecrawl 1.0.0 → 1.0.2
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 +9 -0
- package/dist/credentials/FirecrawlApi.credentials.js +0 -2
- package/dist/credentials/FirecrawlApi.credentials.js.map +1 -1
- package/dist/nodes/Firecrawl/Firecrawl.node.js +3 -0
- package/dist/nodes/Firecrawl/Firecrawl.node.js.map +1 -1
- package/dist/nodes/Firecrawl/api/form/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/form/index.js +163 -0
- package/dist/nodes/Firecrawl/api/form/index.js.map +1 -0
- package/dist/nodes/Firecrawl/api/index.d.ts +3 -0
- package/dist/nodes/Firecrawl/api/index.js +8 -0
- package/dist/nodes/Firecrawl/api/index.js.map +1 -1
- package/dist/nodes/Firecrawl/api/search/index.d.ts +6 -0
- package/dist/nodes/Firecrawl/api/search/index.js +131 -0
- package/dist/nodes/Firecrawl/api/search/index.js.map +1 -0
- package/dist/nodes/Firecrawl/helpers/http/debug.d.ts +2 -0
- package/dist/nodes/Firecrawl/helpers/http/debug.js +18 -0
- package/dist/nodes/Firecrawl/helpers/http/debug.js.map +1 -0
- package/dist/nodes/Firecrawl/helpers/http/requestModifiers.js +4 -0
- package/dist/nodes/Firecrawl/helpers/http/requestModifiers.js.map +1 -1
- package/dist/nodes/Firecrawl/openapi.json +2744 -0
- package/dist/nodes/Firecrawl/v1-openapi.json +1915 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,6 +21,9 @@ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes
|
|
|
21
21
|
|
|
22
22
|
The **Firecrawl** node supports the following operations:
|
|
23
23
|
|
|
24
|
+
### Search
|
|
25
|
+
- Search and optionally scrape search results
|
|
26
|
+
|
|
24
27
|
### Map
|
|
25
28
|
- Input a website and get all the website urls
|
|
26
29
|
|
|
@@ -64,6 +67,12 @@ To use the Firecrawl node, you need to:
|
|
|
64
67
|
|
|
65
68
|
## Version history
|
|
66
69
|
|
|
70
|
+
### 1.0.2
|
|
71
|
+
- Add integration parameter in all endpoint calls
|
|
72
|
+
|
|
73
|
+
### 1.0.1
|
|
74
|
+
- Support for Search operation
|
|
75
|
+
|
|
67
76
|
### 1.0.0
|
|
68
77
|
- Initial release
|
|
69
78
|
- Support for all basic Firecrawl operations:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirecrawlApi.credentials.js","sourceRoot":"","sources":["../../credentials/FirecrawlApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,eAAe,CAAC;QAE9B,qBAAgB,GAAG,iDAAiD,CAAC;QAErE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,8BAA8B;aACvC;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;
|
|
1
|
+
{"version":3,"file":"FirecrawlApi.credentials.js","sourceRoot":"","sources":["../../credentials/FirecrawlApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,eAAe,CAAC;QAE9B,qBAAgB,GAAG,iDAAiD,CAAC;QAErE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,8BAA8B;aACvC;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA/BD,oCA+BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Firecrawl.node.js","sourceRoot":"","sources":["../../../nodes/Firecrawl/Firecrawl.node.ts"],"names":[],"mappings":";;;AACA,uCAAuC;AACvC,6CAA6C;AAK7C,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE;gBACT,IAAI,EAAE,WAAW;aACjB;YACD,MAAM,EAAE,eAAe;YACvB,OAAO,EAAE,eAAe;YACxB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,8BAA8B;gBACvC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE,0BAAa;SACzB,CAAC;QAEF,YAAO,GAAG,oBAAU,CAAC;IACtB,CAAC;CAAA;
|
|
1
|
+
{"version":3,"file":"Firecrawl.node.js","sourceRoot":"","sources":["../../../nodes/Firecrawl/Firecrawl.node.ts"],"names":[],"mappings":";;;AACA,uCAAuC;AACvC,6CAA6C;AAK7C,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE;gBACT,IAAI,EAAE,WAAW;aACjB;YACD,MAAM,EAAE,eAAe;YACvB,OAAO,EAAE,eAAe;YACxB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,8BAA8B;gBACvC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;gBACD,IAAI,EAAE;oBACL,WAAW,EAAE,KAAK;iBAClB;aACD;YACD,UAAU,EAAE,0BAAa;SACzB,CAAC;QAEF,YAAO,GAAG,oBAAU,CAAC;IACtB,CAAC;CAAA;AAlCD,8BAkCC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const name = "form";
|
|
3
|
+
export declare const displayName = "Form Elements";
|
|
4
|
+
export declare const operationName = "form";
|
|
5
|
+
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
6
|
+
export { options, properties };
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.properties = exports.options = exports.operationName = exports.displayName = exports.name = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
exports.name = 'form';
|
|
6
|
+
exports.displayName = 'Form Elements';
|
|
7
|
+
exports.operationName = 'form';
|
|
8
|
+
function createFormElements() {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Form Elements',
|
|
12
|
+
name: 'formElements',
|
|
13
|
+
type: 'fixedCollection',
|
|
14
|
+
default: {},
|
|
15
|
+
description: 'Form elements to be displayed in the node',
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Elements',
|
|
19
|
+
name: 'elements',
|
|
20
|
+
values: [
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Field Label',
|
|
23
|
+
name: 'label',
|
|
24
|
+
type: 'string',
|
|
25
|
+
default: '',
|
|
26
|
+
description: 'The label that appears above the input field',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Element Type',
|
|
30
|
+
name: 'type',
|
|
31
|
+
type: 'options',
|
|
32
|
+
default: 'text',
|
|
33
|
+
description: 'The type of form element',
|
|
34
|
+
options: [
|
|
35
|
+
{
|
|
36
|
+
name: 'Custom HTML',
|
|
37
|
+
value: 'customHtml',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Date',
|
|
41
|
+
value: 'date',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Dropdown List',
|
|
45
|
+
value: 'dropdown',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Email',
|
|
49
|
+
value: 'email',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'File',
|
|
53
|
+
value: 'file',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Hidden Field',
|
|
57
|
+
value: 'hidden',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Number',
|
|
61
|
+
value: 'number',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Password',
|
|
65
|
+
value: 'password',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'Text',
|
|
69
|
+
value: 'text',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Textarea',
|
|
73
|
+
value: 'textarea',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: 'Required Field',
|
|
79
|
+
name: 'required',
|
|
80
|
+
type: 'boolean',
|
|
81
|
+
default: false,
|
|
82
|
+
description: 'Whether this field is required',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
displayName: 'Default Value',
|
|
86
|
+
name: 'defaultValue',
|
|
87
|
+
type: 'string',
|
|
88
|
+
default: '',
|
|
89
|
+
description: 'Default value for the field',
|
|
90
|
+
displayOptions: {
|
|
91
|
+
hide: {
|
|
92
|
+
type: ['customHtml'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
displayName: 'Custom HTML Content',
|
|
98
|
+
name: 'customHtml',
|
|
99
|
+
type: 'string',
|
|
100
|
+
default: '',
|
|
101
|
+
description: 'Custom HTML content to insert',
|
|
102
|
+
displayOptions: {
|
|
103
|
+
show: {
|
|
104
|
+
type: ['customHtml'],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
displayName: 'Dropdown Options',
|
|
110
|
+
name: 'dropdownOptions',
|
|
111
|
+
type: 'fixedCollection',
|
|
112
|
+
default: {},
|
|
113
|
+
description: 'Options for dropdown list',
|
|
114
|
+
displayOptions: {
|
|
115
|
+
show: {
|
|
116
|
+
type: ['dropdown'],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
options: [
|
|
120
|
+
{
|
|
121
|
+
displayName: 'Options',
|
|
122
|
+
name: 'options',
|
|
123
|
+
values: [
|
|
124
|
+
{
|
|
125
|
+
displayName: 'Label',
|
|
126
|
+
name: 'label',
|
|
127
|
+
type: 'string',
|
|
128
|
+
default: '',
|
|
129
|
+
description: 'The label for this option',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Value',
|
|
133
|
+
name: 'value',
|
|
134
|
+
type: 'string',
|
|
135
|
+
default: '',
|
|
136
|
+
description: 'The value for this option',
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Multiple Choice',
|
|
144
|
+
name: 'multipleChoice',
|
|
145
|
+
type: 'boolean',
|
|
146
|
+
default: false,
|
|
147
|
+
description: 'Whether to allow multiple selections in dropdown',
|
|
148
|
+
displayOptions: {
|
|
149
|
+
show: {
|
|
150
|
+
type: ['dropdown'],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
];
|
|
159
|
+
}
|
|
160
|
+
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createFormElements());
|
|
161
|
+
exports.options = options;
|
|
162
|
+
exports.properties = properties;
|
|
163
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/form/index.ts"],"names":[],"mappings":";;;AACA,sCAA+C;AAGlC,QAAA,IAAI,GAAG,MAAM,CAAC;AACd,QAAA,WAAW,GAAG,eAAe,CAAC;AAC9B,QAAA,aAAa,GAAG,MAAM,CAAC;AAKpC,SAAS,kBAAkB;IAC1B,OAAO;QACN;YACC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,2CAA2C;YACxD,OAAO,EAAE;gBACR;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,MAAM,EAAE;wBACP;4BACC,WAAW,EAAE,aAAa;4BAC1B,IAAI,EAAE,OAAO;4BACb,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AAC,CAAC;AAEnF,0BAAO;AAAE,gCAAU"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.apiMethods = exports.apiProperties = void 0;
|
|
4
|
+
const search_1 = require("./search");
|
|
4
5
|
const map_1 = require("./map");
|
|
5
6
|
const scrape_1 = require("./scrape");
|
|
6
7
|
const crawl_1 = require("./crawl");
|
|
@@ -8,6 +9,7 @@ const getCrawlStatus_1 = require("./getCrawlStatus");
|
|
|
8
9
|
const extract_1 = require("./extract");
|
|
9
10
|
const getExtractStatus_1 = require("./getExtractStatus");
|
|
10
11
|
const operationOptions = [
|
|
12
|
+
search_1.options,
|
|
11
13
|
map_1.options,
|
|
12
14
|
scrape_1.options,
|
|
13
15
|
crawl_1.options,
|
|
@@ -16,6 +18,7 @@ const operationOptions = [
|
|
|
16
18
|
getExtractStatus_1.options,
|
|
17
19
|
];
|
|
18
20
|
const rawProperties = [
|
|
21
|
+
...search_1.properties,
|
|
19
22
|
...map_1.properties,
|
|
20
23
|
...scrape_1.properties,
|
|
21
24
|
...crawl_1.properties,
|
|
@@ -39,6 +42,11 @@ const operationSelector = {
|
|
|
39
42
|
exports.apiProperties = [operationSelector, ...rawProperties];
|
|
40
43
|
exports.apiMethods = {
|
|
41
44
|
Default: {
|
|
45
|
+
search: {
|
|
46
|
+
execute() {
|
|
47
|
+
return this.helpers.httpRequest;
|
|
48
|
+
},
|
|
49
|
+
},
|
|
42
50
|
map: {
|
|
43
51
|
execute() {
|
|
44
52
|
return this.helpers.httpRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Firecrawl/api/index.ts"],"names":[],"mappings":";;;AAGA,+BAA2E;AAC3E,qCAAoF;AACpF,mCAAiF;AACjF,qDAG0B;AAC1B,uCAAuF;AACvF,yDAG4B;AAK5B,MAAM,gBAAgB,GAA2B;IAChD,a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D;QACD,cAAc,EAAE;YACf,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;QACD,OAAO,EAAE;YACR,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;QACD,gBAAgB,EAAE;YACjB,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const name = "search";
|
|
3
|
+
export declare const displayName = "Search and optionally scrape search results";
|
|
4
|
+
export declare const operationName = "search";
|
|
5
|
+
declare const options: import("n8n-workflow").INodePropertyOptions, properties: INodeProperties[];
|
|
6
|
+
export { options, properties };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.properties = exports.options = exports.operationName = exports.displayName = exports.name = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
exports.name = 'search';
|
|
7
|
+
exports.displayName = 'Search and optionally scrape search results';
|
|
8
|
+
exports.operationName = 'search';
|
|
9
|
+
function createQueryProperty(operation) {
|
|
10
|
+
return {
|
|
11
|
+
displayName: 'Query',
|
|
12
|
+
name: 'query',
|
|
13
|
+
type: 'string',
|
|
14
|
+
default: '',
|
|
15
|
+
required: true,
|
|
16
|
+
description: 'The search query',
|
|
17
|
+
routing: {
|
|
18
|
+
request: {
|
|
19
|
+
body: {
|
|
20
|
+
query: '={{ $value }}',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
displayOptions: {
|
|
25
|
+
show: {
|
|
26
|
+
operation: [operation],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function createLimitProperty(operation) {
|
|
32
|
+
return {
|
|
33
|
+
displayName: 'Limit',
|
|
34
|
+
name: 'limit',
|
|
35
|
+
type: 'number',
|
|
36
|
+
typeOptions: {
|
|
37
|
+
minValue: 1,
|
|
38
|
+
},
|
|
39
|
+
default: 50,
|
|
40
|
+
description: 'Max number of results to return',
|
|
41
|
+
routing: {
|
|
42
|
+
request: {
|
|
43
|
+
body: {
|
|
44
|
+
limit: '={{ $value }}',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
displayOptions: {
|
|
49
|
+
show: {
|
|
50
|
+
operation: [operation],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function createTimeBasedSearchProperty(operation) {
|
|
56
|
+
return {
|
|
57
|
+
displayName: 'Time Based Search',
|
|
58
|
+
name: 'tbs',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: '',
|
|
61
|
+
description: 'Time-based search parameter',
|
|
62
|
+
routing: {
|
|
63
|
+
request: {
|
|
64
|
+
body: {
|
|
65
|
+
tbs: '={{ $value }}',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
operation: [operation],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function createLanguageProperty(operation) {
|
|
77
|
+
return {
|
|
78
|
+
displayName: 'Language',
|
|
79
|
+
name: 'lang',
|
|
80
|
+
type: 'string',
|
|
81
|
+
default: 'en',
|
|
82
|
+
description: 'Language code for search results',
|
|
83
|
+
routing: {
|
|
84
|
+
request: {
|
|
85
|
+
body: {
|
|
86
|
+
lang: '={{ $value }}',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
displayOptions: {
|
|
91
|
+
show: {
|
|
92
|
+
operation: [operation],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function createCountryProperty(operation) {
|
|
98
|
+
return {
|
|
99
|
+
displayName: 'Country',
|
|
100
|
+
name: 'country',
|
|
101
|
+
type: 'string',
|
|
102
|
+
default: 'us',
|
|
103
|
+
description: 'Country code for search results',
|
|
104
|
+
routing: {
|
|
105
|
+
request: {
|
|
106
|
+
body: {
|
|
107
|
+
country: '={{ $value }}',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
displayOptions: {
|
|
112
|
+
show: {
|
|
113
|
+
operation: [operation],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function createSearchProperties() {
|
|
119
|
+
return [
|
|
120
|
+
(0, common_2.createOperationNotice)('Default', exports.name),
|
|
121
|
+
createQueryProperty(exports.name),
|
|
122
|
+
createLimitProperty(exports.name),
|
|
123
|
+
createTimeBasedSearchProperty(exports.name),
|
|
124
|
+
createLanguageProperty(exports.name),
|
|
125
|
+
createCountryProperty(exports.name),
|
|
126
|
+
];
|
|
127
|
+
}
|
|
128
|
+
const { options, properties } = (0, common_1.buildApiProperties)(exports.name, exports.displayName, createSearchProperties());
|
|
129
|
+
exports.options = options;
|
|
130
|
+
exports.properties = properties;
|
|
131
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/api/search/index.ts"],"names":[],"mappings":";;;AACA,sCAA+C;AAC/C,sCAAkD;AAGrC,QAAA,IAAI,GAAG,QAAQ,CAAC;AAChB,QAAA,WAAW,GAAG,6CAA6C,CAAC;AAC5D,QAAA,aAAa,GAAG,QAAQ,CAAC;AAKtC,SAAS,mBAAmB,CAAC,SAAiB;IAC7C,OAAO;QACN,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE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BACR,IAAI,EAAE;oBACL,IAAI,EAAE,eAAe;iBACrB;aACD;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;KACD,CAAC;AACH,CAAC;AAKD,SAAS,qBAAqB,CAAC,SAAiB;IAC/C,OAAO;QACN,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,OAAO,EAAE,eAAe;iBACxB;aACD;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;KACD,CAAC;AACH,CAAC;AAKD,SAAS,sBAAsB;IAC9B,OAAO;QAEN,IAAA,8BAAqB,EAAC,SAAS,EAAE,YAAI,CAAC;QAGtC,mBAAmB,CAAC,YAAI,CAAC;QAGzB,mBAAmB,CAAC,YAAI,CAAC;QACzB,6BAA6B,CAAC,YAAI,CAAC;QACnC,sBAAsB,CAAC,YAAI,CAAC;QAC5B,qBAAqB,CAAC,YAAI,CAAC;KAC3B,CAAC;AACH,CAAC;AAGD,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAA,2BAAkB,EAAC,YAAI,EAAE,mBAAW,EAAE,sBAAsB,EAAE,CAAC,CAAC;AAEvF,0BAAO;AAAE,gCAAU"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.debugRequest = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
function debugRequest(requestOptions) {
|
|
6
|
+
const debugInfo = {
|
|
7
|
+
url: requestOptions.url,
|
|
8
|
+
method: requestOptions.method,
|
|
9
|
+
headers: requestOptions.headers,
|
|
10
|
+
body: requestOptions.body,
|
|
11
|
+
};
|
|
12
|
+
n8n_workflow_1.LoggerProxy.debug('🔥 FIRECRAWL DEBUG 🔥', { scopes: ['firecrawl'] });
|
|
13
|
+
n8n_workflow_1.LoggerProxy.debug('Request Details:', { scopes: ['firecrawl'] });
|
|
14
|
+
n8n_workflow_1.LoggerProxy.debug(JSON.stringify(debugInfo, null, 2), { scopes: ['firecrawl'] });
|
|
15
|
+
n8n_workflow_1.LoggerProxy.debug('🔥 END DEBUG 🔥\n', { scopes: ['firecrawl'] });
|
|
16
|
+
}
|
|
17
|
+
exports.debugRequest = debugRequest;
|
|
18
|
+
//# sourceMappingURL=debug.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/helpers/http/debug.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAMhE,SAAgB,YAAY,CAAC,cAAmC;IAC/D,MAAM,SAAS,GAAG;QACjB,GAAG,EAAE,cAAc,CAAC,GAAG;QACvB,MAAM,EAAE,cAAc,CAAC,MAAM;QAC7B,OAAO,EAAE,cAAc,CAAC,OAAO;QAC/B,IAAI,EAAE,cAAc,CAAC,IAAI;KACzB,CAAC;IAGF,0BAAW,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IACtE,0BAAW,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IACjE,0BAAW,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IACjF,0BAAW,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;AACnE,CAAC;AAbD,oCAaC"}
|
|
@@ -4,11 +4,15 @@ exports.mergeCustomBodyWithRequest = void 0;
|
|
|
4
4
|
async function mergeCustomBodyWithRequest(requestOptions) {
|
|
5
5
|
const { customBody } = requestOptions.body;
|
|
6
6
|
if (typeof requestOptions.body === 'object' && typeof customBody === 'object') {
|
|
7
|
+
const integration = requestOptions.body.integration;
|
|
7
8
|
requestOptions.body = {
|
|
8
9
|
...requestOptions.body,
|
|
9
10
|
...customBody,
|
|
10
11
|
};
|
|
11
12
|
delete requestOptions.body.customBody;
|
|
13
|
+
if (integration) {
|
|
14
|
+
requestOptions.body.integration = integration;
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
17
|
return Promise.resolve(requestOptions);
|
|
14
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestModifiers.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/helpers/http/requestModifiers.ts"],"names":[],"mappings":";;;AAOO,KAAK,UAAU,0BAA0B,CAE/C,cAAmC;IAEnC,MAAM,EAAE,UAAU,EAAE,GAAG,cAAc,CAAC,IAAmB,CAAC;IAE1D,IAAI,OAAO,cAAc,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"requestModifiers.js","sourceRoot":"","sources":["../../../../../nodes/Firecrawl/helpers/http/requestModifiers.ts"],"names":[],"mappings":";;;AAOO,KAAK,UAAU,0BAA0B,CAE/C,cAAmC;IAEnC,MAAM,EAAE,UAAU,EAAE,GAAG,cAAc,CAAC,IAAmB,CAAC;IAE1D,IAAI,OAAO,cAAc,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAE9E,MAAM,WAAW,GAAI,cAAc,CAAC,IAAoB,CAAC,WAAW,CAAC;QAErE,cAAc,CAAC,IAAI,GAAG;YACrB,GAAG,cAAc,CAAC,IAAI;YACtB,GAAG,UAAU;SACb,CAAC;QAGF,OAAQ,cAAc,CAAC,IAAoB,CAAC,UAAU,CAAC;QAGvD,IAAI,WAAW,EAAE;YACf,cAAc,CAAC,IAAoB,CAAC,WAAW,GAAG,WAAW,CAAC;SAC/D;KACD;IAED,OAAO,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;AACxC,CAAC;AAzBD,gEAyBC"}
|