@mendable/n8n-nodes-firecrawl 1.0.0 → 1.0.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 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,9 @@ To use the Firecrawl node, you need to:
64
67
 
65
68
  ## Version history
66
69
 
70
+ ### 1.0.1
71
+ - Support for Search operation
72
+
67
73
  ### 1.0.0
68
74
  - Initial release
69
75
  - Support for all basic Firecrawl operations:
@@ -2,6 +2,9 @@ import { INodeProperties } from 'n8n-workflow';
2
2
  export declare const apiProperties: INodeProperties[];
3
3
  export declare const apiMethods: {
4
4
  Default: {
5
+ search: {
6
+ execute(this: any): any;
7
+ };
5
8
  map: {
6
9
  execute(this: any): any;
7
10
  };
@@ -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,aAAU;IACV,gBAAa;IACb,eAAY;IACZ,wBAAqB;IACrB,iBAAc;IACd,0BAAuB;CACvB,CAAC;AAKF,MAAM,aAAa,GAAsB;IACxC,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,2BAAwB;IAC3B,GAAG,oBAAiB;IACpB,GAAG,6BAA0B;CAC7B,CAAC;AAKF,MAAM,iBAAiB,GAAoB;IAC1C,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,SAAS,CAAC;SACrB;KACD;IACD,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,gBAAgB;CACzB,CAAC;AAKW,QAAA,aAAa,GAAsB,CAAC,iBAAiB,EAAE,GAAG,aAAa,CAAC,CAAC;AAKzE,QAAA,UAAU,GAAG;IACzB,OAAO,EAAE;QACR,GAAG,EAAE;YACJ,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;QACD,MAAM,EAAE;YACP,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;QACD,KAAK,EAAE;YACN,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Firecrawl/api/index.ts"],"names":[],"mappings":";;;AAGA,qCAAoF;AACpF,+BAA2E;AAC3E,qCAAoF;AACpF,mCAAiF;AACjF,qDAG0B;AAC1B,uCAAuF;AACvF,yDAG4B;AAK5B,MAAM,gBAAgB,GAA2B;IAChD,gBAAa;IACb,aAAU;IACV,gBAAa;IACb,eAAY;IACZ,wBAAqB;IACrB,iBAAc;IACd,0BAAuB;CACvB,CAAC;AAKF,MAAM,aAAa,GAAsB;IACxC,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,2BAAwB;IAC3B,GAAG,oBAAiB;IACpB,GAAG,6BAA0B;CAC7B,CAAC;AAKF,MAAM,iBAAiB,GAAoB;IAC1C,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,SAAS,CAAC;SACrB;KACD;IACD,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,gBAAgB;CACzB,CAAC;AAKW,QAAA,aAAa,GAAsB,CAAC,iBAAiB,EAAE,GAAG,aAAa,CAAC,CAAC;AAKzE,QAAA,UAAU,GAAG;IACzB,OAAO,EAAE;QACR,MAAM,EAAE;YACP,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;QACD,GAAG,EAAE;YACJ,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;QACD,MAAM,EAAE;YACP,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;QACD,KAAK,EAAE;YACN,OAAO;gBACN,OAAO,IAAI,CAAC,OAAO,CAAC,WAAkB,CAAC;YACxC,CAAC;SACD;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,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,KAAK,EAAE,eAAe;iBACtB;aACD;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;KACD,CAAC;AACH,CAAC;AAKD,SAAS,mBAAmB,CAAC,SAAiB;IAC7C,OAAO;QACN,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,KAAK,EAAE,eAAe;iBACtB;aACD;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;KACD,CAAC;AACH,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