n8n-nodes-scavio 0.16.0 → 0.17.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 +16 -1
- package/dist/nodes/Scavio/Scavio.node.js +5 -1
- package/dist/nodes/Scavio/Scavio.node.js.map +1 -1
- package/dist/nodes/Scavio/descriptions/CostcoDescription.d.ts +3 -0
- package/dist/nodes/Scavio/descriptions/CostcoDescription.js +584 -0
- package/dist/nodes/Scavio/descriptions/CostcoDescription.js.map +1 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This is an n8n community node. It lets you use [Scavio](https://scavio.dev) — a real-time structured-data API for search, retail, social, travel, real estate, jobs, app stores, software reviews, ad libraries, public company filings, and any URL — in your n8n workflows.
|
|
4
4
|
|
|
5
|
-
Scavio returns clean, structured JSON from
|
|
5
|
+
Scavio returns clean, structured JSON from 44 resources and 327 operations. Use it to power product research, price and review monitoring, AI agent retrieval, lead enrichment, competitive and ad intelligence, and content workflows.
|
|
6
6
|
|
|
7
7
|
[Installation](#installation) - [Operations](#operations) - [What changed in 0.13.0](#what-changed-in-0130) - [Per-resource notes](#per-resource-notes) - [Templates](#templates) - [Credentials](#credentials) - [Compatibility](#compatibility) - [Resources](#resources)
|
|
8
8
|
|
|
@@ -24,6 +24,7 @@ In n8n: **Settings -> Community Nodes -> Install** -> enter `n8n-nodes-scavio`.
|
|
|
24
24
|
| [eBay](https://scavio.dev/docs/ebay-search) | 1 | Search Listings, Get Listing, Get Seller Profile |
|
|
25
25
|
| [Target](https://scavio.dev/docs/target-search) | 1 | Search Products, Get Category Products, Get Product, Get Reviews |
|
|
26
26
|
| [Home Depot](https://scavio.dev/docs/home-depot-search) | 2 | Search Products, Get Product, Get Reviews |
|
|
27
|
+
| Costco | 1; Get Warehouse Prices, Get Availability and Get Gas Prices scale with the number of warehouses | Search Products, Get Category Products, Get Categories, Get Products, Get Warehouse Prices, Get Availability, Get Reviews, Get Warehouses, Get Gas Prices, Get Coupon Book, Get Deals, Find Clearance Items, Get Search Suggestions |
|
|
27
28
|
|
|
28
29
|
### Social and video
|
|
29
30
|
|
|
@@ -77,6 +78,20 @@ In n8n: **Settings -> Community Nodes -> Install** -> enter `n8n-nodes-scavio`.
|
|
|
77
78
|
| [Extract (Any URL)](https://scavio.dev/docs/extract) | 1 normal, 1 advanced, 2 ultra | Extract Page |
|
|
78
79
|
| Account | Free | Get Usage |
|
|
79
80
|
|
|
81
|
+
## What changed in 0.17.0
|
|
82
|
+
|
|
83
|
+
**New resource: Costco, 13 operations.** Nothing else changed.
|
|
84
|
+
|
|
85
|
+
- **Search Products**, **Get Category Products** and **Get Deals** share one set of filters: sort, brands, price range, minimum rating, on-sale, in-stock, page and page size. Set `Warehouse ID` to add that warehouse's in-store price, stock status and price code to every result.
|
|
86
|
+
- **Get Warehouse Prices** compares the online price with the in-warehouse price for up to 20 items at up to 10 warehouses: discount, final price, promotion start and end dates, per-order and per-member limits and price code. 1 credit for up to 9 warehouses, 2 at 10.
|
|
87
|
+
- **Get Availability** returns in-warehouse stock status for one item at up to 10 warehouses, plus pickup and same-day delivery. Status only, never quantities. 1 credit per 5 warehouses.
|
|
88
|
+
- **Get Gas Prices** returns regular, premium and diesel prices near a ZIP code or coordinates, or at specific warehouses. By location 1 credit (2 on Costco.ca); by warehouse IDs 1 credit per 5 warehouses (2 per warehouse on Costco.ca).
|
|
89
|
+
- **Get Coupon Book** returns the current member coupon book as data: item number, amount off, final price, scope, limits and valid dates. United States only, no parameters.
|
|
90
|
+
- **Find Clearance Items** scans a query or category at one warehouse for markdown price codes: `.97` clearance and `.00`/`.88` manager markdown by default, `.49`/`.79`/`.89` special buy on request. The codes are the member-community decode; Costco does not publish them, and only items Costco lists online are covered.
|
|
91
|
+
- **Get Products**, **Get Reviews**, **Get Categories**, **Get Warehouses** and **Get Search Suggestions** round out the catalog. Get Warehouses costs 2 credits on Costco.ca.
|
|
92
|
+
- `Item IDs`, `Warehouse IDs` and `Brands` take comma-separated values.
|
|
93
|
+
- `Country` is United States (default) or Canada everywhere except Get Coupon Book. Search Products, Get Products and Get Warehouses also accept the United Kingdom, Australia, Mexico, Japan, South Korea and Taiwan, with keyword, sort and paging only.
|
|
94
|
+
|
|
80
95
|
## What changed in 0.16.0
|
|
81
96
|
|
|
82
97
|
**Walmart store targeting is back, and Walmart gained a Get Stores operation.** This reverses the 0.13.0 note below that `Delivery ZIP` and `Store ID` were gone.
|
|
@@ -17,6 +17,7 @@ const KuaishouDescription_1 = require("./descriptions/KuaishouDescription");
|
|
|
17
17
|
const EbayDescription_1 = require("./descriptions/EbayDescription");
|
|
18
18
|
const TargetDescription_1 = require("./descriptions/TargetDescription");
|
|
19
19
|
const HomeDepotDescription_1 = require("./descriptions/HomeDepotDescription");
|
|
20
|
+
const CostcoDescription_1 = require("./descriptions/CostcoDescription");
|
|
20
21
|
const ZillowDescription_1 = require("./descriptions/ZillowDescription");
|
|
21
22
|
const BookingDescription_1 = require("./descriptions/BookingDescription");
|
|
22
23
|
const TripadvisorDescription_1 = require("./descriptions/TripadvisorDescription");
|
|
@@ -53,7 +54,7 @@ class Scavio {
|
|
|
53
54
|
group: ['transform'],
|
|
54
55
|
version: 1,
|
|
55
56
|
subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
|
|
56
|
-
description: 'Real-time structured data from Google, Amazon, Walmart, eBay, Target, Home Depot, YouTube, Reddit, TikTok, Instagram, X, LinkedIn, Facebook, Pinterest, Threads, Kuaishou, Douyin, Weibo, Twitch, GitHub, Etsy, AliExpress, Zillow, Redfin, Booking.com, Airbnb, Tripadvisor, Yelp, Indeed, Glassdoor, the App Store, Google Play, SEC EDGAR, Companies House, Legistar, G2, Capterra, ad libraries, and any URL',
|
|
57
|
+
description: 'Real-time structured data from Google, Amazon, Walmart, eBay, Target, Home Depot, Costco, YouTube, Reddit, TikTok, Instagram, X, LinkedIn, Facebook, Pinterest, Threads, Kuaishou, Douyin, Weibo, Twitch, GitHub, Etsy, AliExpress, Zillow, Redfin, Booking.com, Airbnb, Tripadvisor, Yelp, Indeed, Glassdoor, the App Store, Google Play, SEC EDGAR, Companies House, Legistar, G2, Capterra, ad libraries, and any URL',
|
|
57
58
|
defaults: { name: 'Scavio' },
|
|
58
59
|
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
59
60
|
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
@@ -82,6 +83,7 @@ class Scavio {
|
|
|
82
83
|
{ name: 'Booking.com', value: 'booking' },
|
|
83
84
|
{ name: 'Capterra (Software Reviews)', value: 'capterra' },
|
|
84
85
|
{ name: 'Companies House (UK)', value: 'companiesHouse' },
|
|
86
|
+
{ name: 'Costco', value: 'costco' },
|
|
85
87
|
{ name: 'Douyin (China)', value: 'douyin' },
|
|
86
88
|
{ name: 'eBay', value: 'ebay' },
|
|
87
89
|
{ name: 'Etsy', value: 'etsy' },
|
|
@@ -135,6 +137,8 @@ class Scavio {
|
|
|
135
137
|
...TargetDescription_1.targetFields,
|
|
136
138
|
...HomeDepotDescription_1.homeDepotOperations,
|
|
137
139
|
...HomeDepotDescription_1.homeDepotFields,
|
|
140
|
+
...CostcoDescription_1.costcoOperations,
|
|
141
|
+
...CostcoDescription_1.costcoFields,
|
|
138
142
|
...YouTubeDescription_1.youtubeOperations,
|
|
139
143
|
...YouTubeDescription_1.youtubeFields,
|
|
140
144
|
...RedditDescription_1.redditOperations,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scavio.node.js","sourceRoot":"","sources":["../../../nodes/Scavio/Scavio.node.ts"],"names":[],"mappings":";;;AAAA,+CAAmD;AAGnD,wEAAkF;AAClF,wEAAkF;AAClF,0EAAqF;AACrF,0EAAqF;AACrF,wEAAkF;AAClF,wEAAkF;AAClF,gFAA8F;AAC9F,8EAA2F;AAC3F,8DAAmE;AACnE,4EAAwF;AACxF,0EAAqF;AACrF,4EAAwF;AACxF,oEAA4E;AAC5E,wEAAkF;AAClF,8EAA2F;AAC3F,wEAAkF;AAClF,0EAAqF;AACrF,kFAAiG;AACjG,wEAAkF;AAClF,wEAAkF;AAClF,8EAA2F;AAC3F,oEAA4E;AAC5E,4EAAwF;AACxF,gFAA8F;AAC9F,kEAAyE;AACzE,wEAAkF;AAClF,wFAGkD;AAClD,gEAAsE;AACtE,4EAAwF;AACxF,8EAA2F;AAC3F,0EAAqF;AACrF,0EAAqF;AACrF,0EAAqF;AACrF,gFAA8F;AAC9F,wEAAkF;AAClF,oEAA4E;AAC5E,4EAAwF;AACxF,wEAAkF;AAClF,4EAAwF;AACxF,8EAA2F;AAC3F,wEAAkF;AAClF,sEAA+E;AAC/E,4EAAwF;AAExF,MAAa,MAAM;IAClB,WAAW,GAAyB;QACnC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,gEAAgE;QAC1E,WAAW,EACV,
|
|
1
|
+
{"version":3,"file":"Scavio.node.js","sourceRoot":"","sources":["../../../nodes/Scavio/Scavio.node.ts"],"names":[],"mappings":";;;AAAA,+CAAmD;AAGnD,wEAAkF;AAClF,wEAAkF;AAClF,0EAAqF;AACrF,0EAAqF;AACrF,wEAAkF;AAClF,wEAAkF;AAClF,gFAA8F;AAC9F,8EAA2F;AAC3F,8DAAmE;AACnE,4EAAwF;AACxF,0EAAqF;AACrF,4EAAwF;AACxF,oEAA4E;AAC5E,wEAAkF;AAClF,8EAA2F;AAC3F,wEAAkF;AAClF,wEAAkF;AAClF,0EAAqF;AACrF,kFAAiG;AACjG,wEAAkF;AAClF,wEAAkF;AAClF,8EAA2F;AAC3F,oEAA4E;AAC5E,4EAAwF;AACxF,gFAA8F;AAC9F,kEAAyE;AACzE,wEAAkF;AAClF,wFAGkD;AAClD,gEAAsE;AACtE,4EAAwF;AACxF,8E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gDAAoB;YACvB,GAAG,4BAAY;YACf,GAAG,wBAAQ;YACX,GAAG,wCAAkB;YACrB,GAAG,oCAAc;YACjB,GAAG,0CAAmB;YACtB,GAAG,sCAAe;YAClB,GAAG,sCAAiB;YACpB,GAAG,kCAAa;YAChB,GAAG,wCAAkB;YACrB,GAAG,oCAAc;YACjB,GAAG,4CAAoB;YACvB,GAAG,wCAAgB;YACnB,GAAG,oCAAgB;YACnB,GAAG,gCAAY;YACf,GAAG,gCAAc;YACjB,GAAG,4BAAU;YACb,GAAG,wCAAkB;YACrB,GAAG,oCAAc;YACjB,GAAG,oCAAgB;YACnB,GAAG,gCAAY;YACf,GAAG,wCAAkB;YACrB,GAAG,oCAAc;YACjB,GAAG,0CAAmB;YACtB,GAAG,sCAAe;YAClB,GAAG,oCAAgB;YACnB,GAAG,gCAAY;YACf,GAAG,kCAAe;YAClB,GAAG,8BAAW;YACd,GAAG,sCAAiB;YACpB,GAAG,kCAAa;YAChB,GAAG,sCAAiB;YACpB,GAAG,kCAAa;SAChB;KACD,CAAC;CACF;AA1KD,wBA0KC"}
|
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.costcoFields = exports.costcoOperations = void 0;
|
|
4
|
+
// Comma-separated text -> string array, blanks dropped.
|
|
5
|
+
const splitList = '={{ String($value).split(",").map(s => s.trim()).filter(Boolean) }}';
|
|
6
|
+
const NA_COUNTRIES = [
|
|
7
|
+
{ name: 'Canada (Costco.ca)', value: 'ca' },
|
|
8
|
+
{ name: 'United States (Costco.com)', value: 'us' },
|
|
9
|
+
];
|
|
10
|
+
const ALL_COUNTRIES = [
|
|
11
|
+
{ name: 'Australia', value: 'au' },
|
|
12
|
+
{ name: 'Canada (Costco.ca)', value: 'ca' },
|
|
13
|
+
{ name: 'Japan', value: 'jp' },
|
|
14
|
+
{ name: 'Mexico', value: 'mx' },
|
|
15
|
+
{ name: 'South Korea', value: 'kr' },
|
|
16
|
+
{ name: 'Taiwan', value: 'tw' },
|
|
17
|
+
{ name: 'United Kingdom', value: 'uk' },
|
|
18
|
+
{ name: 'United States (Costco.com)', value: 'us' },
|
|
19
|
+
];
|
|
20
|
+
function countryOption(all) {
|
|
21
|
+
return {
|
|
22
|
+
displayName: 'Country',
|
|
23
|
+
name: 'country',
|
|
24
|
+
type: 'options',
|
|
25
|
+
default: 'us',
|
|
26
|
+
options: all ? ALL_COUNTRIES : NA_COUNTRIES,
|
|
27
|
+
description: all
|
|
28
|
+
? 'Costco site. United States and Canada support every filter; the other sites support keyword, sort and paging only.'
|
|
29
|
+
: 'Costco.com (United States) or Costco.ca (Canada)',
|
|
30
|
+
routing: { request: { body: { country: '={{ $value }}' } } },
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/** Filters shared by Search Products, Get Category Products and Get Deals. */
|
|
34
|
+
function listingOptions(all) {
|
|
35
|
+
return [
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Brands',
|
|
38
|
+
name: 'brands',
|
|
39
|
+
type: 'string',
|
|
40
|
+
default: '',
|
|
41
|
+
placeholder: 'Kirkland Signature',
|
|
42
|
+
description: 'Brand names separated by commas, up to 20',
|
|
43
|
+
routing: { send: { type: 'body', property: 'brands', value: splitList } },
|
|
44
|
+
},
|
|
45
|
+
countryOption(all),
|
|
46
|
+
{
|
|
47
|
+
displayName: 'In Stock Only',
|
|
48
|
+
name: 'in_stock',
|
|
49
|
+
type: 'boolean',
|
|
50
|
+
default: false,
|
|
51
|
+
description: 'Whether to hide out-of-stock items',
|
|
52
|
+
routing: { request: { body: { in_stock: '={{ $value }}' } } },
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'In Stock at Warehouse',
|
|
56
|
+
name: 'in_warehouse',
|
|
57
|
+
type: 'boolean',
|
|
58
|
+
default: false,
|
|
59
|
+
description: 'Whether to keep only items sold and in stock at the warehouse set in Warehouse ID (requires Warehouse ID)',
|
|
60
|
+
routing: { request: { body: { in_warehouse: '={{ $value }}' } } },
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Max Price',
|
|
64
|
+
name: 'max_price',
|
|
65
|
+
type: 'number',
|
|
66
|
+
default: 0,
|
|
67
|
+
typeOptions: { minValue: 0, numberPrecision: 2 },
|
|
68
|
+
description: 'Maximum online price, inclusive',
|
|
69
|
+
routing: { request: { body: { max_price: '={{ $value }}' } } },
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
displayName: 'Min Price',
|
|
73
|
+
name: 'min_price',
|
|
74
|
+
type: 'number',
|
|
75
|
+
default: 0,
|
|
76
|
+
typeOptions: { minValue: 0, numberPrecision: 2 },
|
|
77
|
+
description: 'Minimum online price, inclusive',
|
|
78
|
+
routing: { request: { body: { min_price: '={{ $value }}' } } },
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Min Rating',
|
|
82
|
+
name: 'min_rating',
|
|
83
|
+
type: 'number',
|
|
84
|
+
default: 4,
|
|
85
|
+
typeOptions: { minValue: 1, maxValue: 5 },
|
|
86
|
+
description: 'Minimum average star rating, 1-5',
|
|
87
|
+
routing: { request: { body: { min_rating: '={{ $value }}' } } },
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
displayName: 'On Sale Only',
|
|
91
|
+
name: 'on_sale',
|
|
92
|
+
type: 'boolean',
|
|
93
|
+
default: false,
|
|
94
|
+
description: 'Whether to keep only items with an active discount',
|
|
95
|
+
routing: { request: { body: { on_sale: '={{ $value }}' } } },
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Page',
|
|
99
|
+
name: 'page',
|
|
100
|
+
type: 'number',
|
|
101
|
+
default: 1,
|
|
102
|
+
typeOptions: { minValue: 1, maxValue: 500 },
|
|
103
|
+
description: 'Results page, 1-based',
|
|
104
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
displayName: 'Page Size',
|
|
108
|
+
name: 'page_size',
|
|
109
|
+
type: 'number',
|
|
110
|
+
default: 24,
|
|
111
|
+
typeOptions: { minValue: 1, maxValue: 120 },
|
|
112
|
+
description: 'Results per page, up to 120. Defaults to 24.',
|
|
113
|
+
routing: { request: { body: { page_size: '={{ $value }}' } } },
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
displayName: 'Sort By',
|
|
117
|
+
name: 'sort_by',
|
|
118
|
+
type: 'options',
|
|
119
|
+
default: 'best_match',
|
|
120
|
+
options: [
|
|
121
|
+
{ name: 'Best Match', value: 'best_match' },
|
|
122
|
+
{ name: 'Newest', value: 'newest' },
|
|
123
|
+
{ name: 'Price: High to Low', value: 'price_high' },
|
|
124
|
+
{ name: 'Price: Low to High', value: 'price_low' },
|
|
125
|
+
{ name: 'Top Rated', value: 'top_rated' },
|
|
126
|
+
],
|
|
127
|
+
description: 'Result order. Costco broadens matching under any sort other than Best Match.',
|
|
128
|
+
routing: { request: { body: { sort_by: '={{ $value }}' } } },
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
displayName: 'Warehouse ID',
|
|
132
|
+
name: 'warehouse_id',
|
|
133
|
+
type: 'string',
|
|
134
|
+
default: '',
|
|
135
|
+
placeholder: '1062',
|
|
136
|
+
description: "Adds that warehouse's in-store price, stock status and price code to every result. Warehouse numbers come from Get Warehouses. Leave unset for online prices only.",
|
|
137
|
+
routing: { request: { body: { warehouse_id: '={{ $value }}' } } },
|
|
138
|
+
},
|
|
139
|
+
];
|
|
140
|
+
}
|
|
141
|
+
function additionalOptions(operation, options) {
|
|
142
|
+
return {
|
|
143
|
+
displayName: 'Additional Options',
|
|
144
|
+
name: 'additionalOptions',
|
|
145
|
+
type: 'collection',
|
|
146
|
+
placeholder: 'Add Option',
|
|
147
|
+
default: {},
|
|
148
|
+
displayOptions: { show: { resource: ['costco'], operation } },
|
|
149
|
+
options,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
const show = (operation, extra = {}) => ({
|
|
153
|
+
show: { resource: ['costco'], operation, ...extra },
|
|
154
|
+
});
|
|
155
|
+
exports.costcoOperations = [
|
|
156
|
+
{
|
|
157
|
+
displayName: 'Operation',
|
|
158
|
+
name: 'operation',
|
|
159
|
+
type: 'options',
|
|
160
|
+
noDataExpression: true,
|
|
161
|
+
displayOptions: { show: { resource: ['costco'] } },
|
|
162
|
+
options: [
|
|
163
|
+
{
|
|
164
|
+
name: 'Find Clearance Items',
|
|
165
|
+
value: 'clearance',
|
|
166
|
+
action: 'Find costco clearance items',
|
|
167
|
+
description: 'Scan a query or category at one warehouse and return the items whose in-warehouse price carries a markdown code: .97 clearance and .00/.88 manager markdown by default, .49/.79/.89 special buy on request. The codes are the member-community decode; Costco does not publish them, and only items Costco lists online are covered. Costs 1 credit.',
|
|
168
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/clearance', timeout: 120000 } },
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'Get Availability',
|
|
172
|
+
value: 'availability',
|
|
173
|
+
action: 'Get costco warehouse availability',
|
|
174
|
+
description: 'In-warehouse stock status for one item at up to 10 warehouses, plus pickup and same-day delivery availability. Status only, never quantities. Costs 1 credit per 5 warehouses.',
|
|
175
|
+
routing: {
|
|
176
|
+
request: { method: 'POST', url: '/api/v1/costco/availability', timeout: 120000 },
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'Get Categories',
|
|
181
|
+
value: 'categories',
|
|
182
|
+
action: 'Get costco categories',
|
|
183
|
+
description: 'The Costco department list, or the full subcategory tree under one department. Costs 1 credit.',
|
|
184
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/categories' } },
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'Get Category Products',
|
|
188
|
+
value: 'category',
|
|
189
|
+
action: 'Get costco category products',
|
|
190
|
+
description: 'Products in a Costco category, with the same sort, filters and per-warehouse pricing as search. Costs 1 credit.',
|
|
191
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/category' } },
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'Get Coupon Book',
|
|
195
|
+
value: 'coupons',
|
|
196
|
+
action: 'Get the costco coupon book',
|
|
197
|
+
description: "The current Costco member coupon book: every offer with its item number, amount off, final price, warehouse/online scope, limits and the book's valid dates. United States only, no parameters. Costs 1 credit.",
|
|
198
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/coupons' } },
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: 'Get Deals',
|
|
202
|
+
value: 'deals',
|
|
203
|
+
action: 'Get costco deals',
|
|
204
|
+
description: 'Costco deal feeds: new items, while supplies last, treasure hunt, member favorites, online-only and everything on sale, with the same filters and optional per-warehouse pricing as search. Costs 1 credit.',
|
|
205
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/deals' } },
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: 'Get Gas Prices',
|
|
209
|
+
value: 'gas',
|
|
210
|
+
action: 'Get costco gas prices',
|
|
211
|
+
description: 'Current regular, premium and diesel prices at Costco gas stations near a ZIP code or coordinates, or at specific warehouses. By location costs 1 credit (2 on Costco.ca); by warehouse IDs costs 1 credit per 5 warehouses (2 credits per warehouse on Costco.ca).',
|
|
212
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/gas', timeout: 120000 } },
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'Get Products',
|
|
216
|
+
value: 'product',
|
|
217
|
+
action: 'Get costco products',
|
|
218
|
+
description: 'Full details for up to 20 Costco items: description, features, specifications, variants, member-only and purchase limits, delivery fee, and promotions with start and end dates. Costs 1 credit for up to 20 items.',
|
|
219
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/product' } },
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: 'Get Reviews',
|
|
223
|
+
value: 'reviews',
|
|
224
|
+
action: 'Get costco product reviews',
|
|
225
|
+
description: 'Customer reviews for a Costco product with the rating distribution and recommend count; sort, star filter and up to 100 reviews per page. Costs 1 credit.',
|
|
226
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/reviews' } },
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: 'Get Search Suggestions',
|
|
230
|
+
value: 'autocomplete',
|
|
231
|
+
action: 'Get costco search suggestions',
|
|
232
|
+
description: 'Costco search suggestions for a partial query, plus matching warehouse locations. Costs 1 credit.',
|
|
233
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/autocomplete' } },
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: 'Get Warehouse Prices',
|
|
237
|
+
value: 'prices',
|
|
238
|
+
action: 'Get costco warehouse prices',
|
|
239
|
+
description: "Online price versus in-warehouse price for up to 20 items across up to 10 warehouses, with each location's discount, final price, promotion start and end dates, per-order and per-member limits and price code. Costs 1 credit for up to 9 warehouses, 2 credits at 10.",
|
|
240
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/prices', timeout: 120000 } },
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: 'Get Warehouses',
|
|
244
|
+
value: 'warehouses',
|
|
245
|
+
action: 'Get costco warehouses',
|
|
246
|
+
description: 'Costco warehouses near a ZIP code or coordinates: address, hours, departments, services, and gas station hours and prices. Costs 1 credit, 2 on Costco.ca.',
|
|
247
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/warehouses' } },
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: 'Search Products',
|
|
251
|
+
value: 'search',
|
|
252
|
+
action: 'Search costco products',
|
|
253
|
+
description: "Search Costco by keyword or item number: online price and original price, ratings, member-only and stock flags, promotions and facets. Set Warehouse ID to add that warehouse's in-store price, stock and price code to every result. Costs 1 credit.",
|
|
254
|
+
routing: { request: { method: 'POST', url: '/api/v1/costco/search' } },
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
default: 'search',
|
|
258
|
+
},
|
|
259
|
+
];
|
|
260
|
+
exports.costcoFields = [
|
|
261
|
+
// ── Search Products / Get Search Suggestions ──
|
|
262
|
+
{
|
|
263
|
+
displayName: 'Query',
|
|
264
|
+
name: 'query',
|
|
265
|
+
type: 'string',
|
|
266
|
+
required: true,
|
|
267
|
+
default: '',
|
|
268
|
+
placeholder: 'olive oil',
|
|
269
|
+
displayOptions: show(['search', 'autocomplete']),
|
|
270
|
+
routing: { request: { body: { query: '={{ $value }}' } } },
|
|
271
|
+
description: 'Keywords or a Costco item number. On Get Search Suggestions, a partial query such as "kirk".',
|
|
272
|
+
},
|
|
273
|
+
// ── Get Category Products ──
|
|
274
|
+
{
|
|
275
|
+
displayName: 'Category',
|
|
276
|
+
name: 'category',
|
|
277
|
+
type: 'string',
|
|
278
|
+
required: true,
|
|
279
|
+
default: '',
|
|
280
|
+
placeholder: 'televisions',
|
|
281
|
+
displayOptions: show(['category']),
|
|
282
|
+
routing: { request: { body: { category: '={{ $value }}' } } },
|
|
283
|
+
description: 'Category slug from Get Categories, or a costco.com category URL',
|
|
284
|
+
},
|
|
285
|
+
// ── Get Deals ──
|
|
286
|
+
{
|
|
287
|
+
displayName: 'Deal Type',
|
|
288
|
+
name: 'type',
|
|
289
|
+
type: 'options',
|
|
290
|
+
required: true,
|
|
291
|
+
default: 'while_supplies_last',
|
|
292
|
+
options: [
|
|
293
|
+
{ name: 'Member Favorites', value: 'member_favorites' },
|
|
294
|
+
{ name: 'New Items', value: 'new' },
|
|
295
|
+
{ name: 'On Sale', value: 'on_sale' },
|
|
296
|
+
{ name: 'Online Only', value: 'online_only' },
|
|
297
|
+
{ name: 'Treasure Hunt', value: 'treasure_hunt' },
|
|
298
|
+
{ name: 'While Supplies Last', value: 'while_supplies_last' },
|
|
299
|
+
],
|
|
300
|
+
displayOptions: show(['deals']),
|
|
301
|
+
routing: { request: { body: { type: '={{ $value }}' } } },
|
|
302
|
+
description: 'Which Costco deal feed to read',
|
|
303
|
+
},
|
|
304
|
+
// ── Get Products / Get Warehouse Prices ──
|
|
305
|
+
{
|
|
306
|
+
displayName: 'Item IDs',
|
|
307
|
+
name: 'item_ids',
|
|
308
|
+
type: 'string',
|
|
309
|
+
required: true,
|
|
310
|
+
default: '',
|
|
311
|
+
placeholder: '100334960, 1492456',
|
|
312
|
+
displayOptions: show(['product', 'prices']),
|
|
313
|
+
routing: { send: { type: 'body', property: 'item_ids', value: splitList } },
|
|
314
|
+
description: 'Costco item numbers, product IDs or costco.com product URLs, separated by commas, up to 20. Sites outside the United States and Canada take one item per call.',
|
|
315
|
+
},
|
|
316
|
+
// ── Get Availability ──
|
|
317
|
+
{
|
|
318
|
+
displayName: 'Item Number',
|
|
319
|
+
name: 'item_number',
|
|
320
|
+
type: 'string',
|
|
321
|
+
required: true,
|
|
322
|
+
default: '',
|
|
323
|
+
placeholder: '1492456',
|
|
324
|
+
displayOptions: show(['availability']),
|
|
325
|
+
routing: { request: { body: { item_number: '={{ $value }}' } } },
|
|
326
|
+
description: 'Costco item number or product ID, or a costco.com product URL',
|
|
327
|
+
},
|
|
328
|
+
// ── Get Warehouse Prices / Get Availability: warehouses ──
|
|
329
|
+
{
|
|
330
|
+
displayName: 'Warehouse IDs',
|
|
331
|
+
name: 'warehouse_ids',
|
|
332
|
+
type: 'string',
|
|
333
|
+
required: true,
|
|
334
|
+
default: '',
|
|
335
|
+
placeholder: '1062, 1107',
|
|
336
|
+
displayOptions: show(['prices', 'availability']),
|
|
337
|
+
routing: { send: { type: 'body', property: 'warehouse_ids', value: splitList } },
|
|
338
|
+
description: 'Costco warehouse numbers separated by commas, up to 10. Find them with Get Warehouses. On Get Warehouse Prices the online price is always included.',
|
|
339
|
+
},
|
|
340
|
+
// ── Get Reviews ──
|
|
341
|
+
{
|
|
342
|
+
displayName: 'Product ID',
|
|
343
|
+
name: 'product_id',
|
|
344
|
+
type: 'string',
|
|
345
|
+
required: true,
|
|
346
|
+
default: '',
|
|
347
|
+
placeholder: '100334960',
|
|
348
|
+
displayOptions: show(['reviews']),
|
|
349
|
+
routing: { request: { body: { product_id: '={{ $value }}' } } },
|
|
350
|
+
description: 'Costco product ID: the product_id field from Search Products or Get Products',
|
|
351
|
+
},
|
|
352
|
+
// ── Get Warehouses / Get Gas Prices: location ──
|
|
353
|
+
{
|
|
354
|
+
displayName: 'Locate By',
|
|
355
|
+
name: 'locateBy',
|
|
356
|
+
type: 'options',
|
|
357
|
+
default: 'zip',
|
|
358
|
+
options: [
|
|
359
|
+
{ name: 'Coordinates', value: 'coordinates' },
|
|
360
|
+
{ name: 'ZIP Code', value: 'zip' },
|
|
361
|
+
],
|
|
362
|
+
displayOptions: show(['warehouses']),
|
|
363
|
+
description: 'Find warehouses near a ZIP code or a latitude/longitude pair',
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
displayName: 'Locate By',
|
|
367
|
+
name: 'locateBy',
|
|
368
|
+
type: 'options',
|
|
369
|
+
default: 'zip',
|
|
370
|
+
options: [
|
|
371
|
+
{ name: 'Coordinates', value: 'coordinates' },
|
|
372
|
+
{ name: 'Warehouse IDs', value: 'warehouses' },
|
|
373
|
+
{ name: 'ZIP Code', value: 'zip' },
|
|
374
|
+
],
|
|
375
|
+
displayOptions: show(['gas']),
|
|
376
|
+
description: 'Find gas stations near a ZIP code or coordinates, or read specific warehouses',
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
displayName: 'ZIP Code',
|
|
380
|
+
name: 'zip',
|
|
381
|
+
type: 'string',
|
|
382
|
+
required: true,
|
|
383
|
+
default: '',
|
|
384
|
+
placeholder: '10025',
|
|
385
|
+
displayOptions: show(['warehouses', 'gas'], { locateBy: ['zip'] }),
|
|
386
|
+
routing: { request: { body: { zip: '={{ $value }}' } } },
|
|
387
|
+
description: 'US ZIP code to search around',
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
displayName: 'Latitude',
|
|
391
|
+
name: 'latitude',
|
|
392
|
+
type: 'number',
|
|
393
|
+
required: true,
|
|
394
|
+
default: 0,
|
|
395
|
+
typeOptions: { minValue: -90, maxValue: 90, numberPrecision: 6 },
|
|
396
|
+
displayOptions: show(['warehouses', 'gas'], { locateBy: ['coordinates'] }),
|
|
397
|
+
routing: { request: { body: { latitude: '={{ $value }}' } } },
|
|
398
|
+
description: 'Latitude to search around',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
displayName: 'Longitude',
|
|
402
|
+
name: 'longitude',
|
|
403
|
+
type: 'number',
|
|
404
|
+
required: true,
|
|
405
|
+
default: 0,
|
|
406
|
+
typeOptions: { minValue: -180, maxValue: 180, numberPrecision: 6 },
|
|
407
|
+
displayOptions: show(['warehouses', 'gas'], { locateBy: ['coordinates'] }),
|
|
408
|
+
routing: { request: { body: { longitude: '={{ $value }}' } } },
|
|
409
|
+
description: 'Longitude to search around',
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
displayName: 'Warehouse IDs',
|
|
413
|
+
name: 'gas_warehouse_ids',
|
|
414
|
+
type: 'string',
|
|
415
|
+
required: true,
|
|
416
|
+
default: '',
|
|
417
|
+
placeholder: '1062, 1107',
|
|
418
|
+
displayOptions: show(['gas'], { locateBy: ['warehouses'] }),
|
|
419
|
+
routing: { send: { type: 'body', property: 'warehouse_ids', value: splitList } },
|
|
420
|
+
description: 'Costco warehouse numbers separated by commas, up to 10. 1 credit per 5 warehouses; on Costco.ca, 2 credits per warehouse.',
|
|
421
|
+
},
|
|
422
|
+
// ── Find Clearance Items ──
|
|
423
|
+
{
|
|
424
|
+
displayName: 'Warehouse ID',
|
|
425
|
+
name: 'warehouse_id',
|
|
426
|
+
type: 'string',
|
|
427
|
+
required: true,
|
|
428
|
+
default: '',
|
|
429
|
+
placeholder: '1062',
|
|
430
|
+
displayOptions: show(['clearance']),
|
|
431
|
+
routing: { request: { body: { warehouse_id: '={{ $value }}' } } },
|
|
432
|
+
description: 'Costco warehouse number to scan, from Get Warehouses',
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
displayName: 'Scan By',
|
|
436
|
+
name: 'scanBy',
|
|
437
|
+
type: 'options',
|
|
438
|
+
default: 'query',
|
|
439
|
+
options: [
|
|
440
|
+
{ name: 'Category', value: 'category' },
|
|
441
|
+
{ name: 'Query', value: 'query' },
|
|
442
|
+
],
|
|
443
|
+
displayOptions: show(['clearance']),
|
|
444
|
+
description: 'Scan the results of a keyword query or of a category',
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
displayName: 'Query',
|
|
448
|
+
name: 'clearance_query',
|
|
449
|
+
type: 'string',
|
|
450
|
+
required: true,
|
|
451
|
+
default: '',
|
|
452
|
+
placeholder: 'tv',
|
|
453
|
+
displayOptions: show(['clearance'], { scanBy: ['query'] }),
|
|
454
|
+
routing: { request: { body: { query: '={{ $value }}' } } },
|
|
455
|
+
description: 'Keywords whose results are scanned for markdown codes',
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
displayName: 'Category',
|
|
459
|
+
name: 'clearance_category',
|
|
460
|
+
type: 'string',
|
|
461
|
+
required: true,
|
|
462
|
+
default: '',
|
|
463
|
+
placeholder: 'televisions',
|
|
464
|
+
displayOptions: show(['clearance'], { scanBy: ['category'] }),
|
|
465
|
+
routing: { request: { body: { category: '={{ $value }}' } } },
|
|
466
|
+
description: 'Category slug from Get Categories to scan instead of a query',
|
|
467
|
+
},
|
|
468
|
+
// ── Additional Options ──
|
|
469
|
+
additionalOptions(['search'], listingOptions(true)),
|
|
470
|
+
additionalOptions(['category', 'deals'], listingOptions(false)),
|
|
471
|
+
additionalOptions(['categories'], [
|
|
472
|
+
{
|
|
473
|
+
displayName: 'Category ID',
|
|
474
|
+
name: 'category_id',
|
|
475
|
+
type: 'string',
|
|
476
|
+
default: '',
|
|
477
|
+
placeholder: '30001',
|
|
478
|
+
description: 'Leave unset for the top-level departments; set a category ID for its full subcategory tree',
|
|
479
|
+
routing: { request: { body: { category_id: '={{ $value }}' } } },
|
|
480
|
+
},
|
|
481
|
+
countryOption(false),
|
|
482
|
+
]),
|
|
483
|
+
additionalOptions(['product'], [countryOption(true)]),
|
|
484
|
+
additionalOptions(['prices', 'availability', 'autocomplete'], [countryOption(false)]),
|
|
485
|
+
additionalOptions(['reviews'], [
|
|
486
|
+
{
|
|
487
|
+
displayName: 'Limit',
|
|
488
|
+
name: 'limit',
|
|
489
|
+
type: 'number',
|
|
490
|
+
default: 50,
|
|
491
|
+
typeOptions: { minValue: 1 },
|
|
492
|
+
hint: 'Reviews per page, 1 to 100. The API default is 25.',
|
|
493
|
+
description: 'Max number of results to return',
|
|
494
|
+
routing: { request: { body: { limit: '={{ $value }}' } } },
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
displayName: 'Page',
|
|
498
|
+
name: 'page',
|
|
499
|
+
type: 'number',
|
|
500
|
+
default: 1,
|
|
501
|
+
typeOptions: { minValue: 1, maxValue: 500 },
|
|
502
|
+
description: 'Review page, 1-based',
|
|
503
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
displayName: 'Rating',
|
|
507
|
+
name: 'rating',
|
|
508
|
+
type: 'number',
|
|
509
|
+
default: 5,
|
|
510
|
+
typeOptions: { minValue: 1, maxValue: 5 },
|
|
511
|
+
description: 'Only reviews with this star rating, 1-5',
|
|
512
|
+
routing: { request: { body: { rating: '={{ $value }}' } } },
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
displayName: 'Sort By',
|
|
516
|
+
name: 'sort_by',
|
|
517
|
+
type: 'options',
|
|
518
|
+
default: 'newest',
|
|
519
|
+
options: [
|
|
520
|
+
{ name: 'Highest Rating', value: 'highest_rating' },
|
|
521
|
+
{ name: 'Lowest Rating', value: 'lowest_rating' },
|
|
522
|
+
{ name: 'Most Helpful', value: 'most_helpful' },
|
|
523
|
+
{ name: 'Newest', value: 'newest' },
|
|
524
|
+
{ name: 'Oldest', value: 'oldest' },
|
|
525
|
+
],
|
|
526
|
+
description: 'Review order. Defaults to Newest.',
|
|
527
|
+
routing: { request: { body: { sort_by: '={{ $value }}' } } },
|
|
528
|
+
},
|
|
529
|
+
]),
|
|
530
|
+
additionalOptions(['warehouses'], [
|
|
531
|
+
countryOption(true),
|
|
532
|
+
{
|
|
533
|
+
displayName: 'Limit',
|
|
534
|
+
name: 'limit',
|
|
535
|
+
type: 'number',
|
|
536
|
+
default: 50,
|
|
537
|
+
typeOptions: { minValue: 1 },
|
|
538
|
+
hint: 'Nearest warehouses to return, 1 to 50. The API default is 10.',
|
|
539
|
+
description: 'Max number of results to return',
|
|
540
|
+
routing: { request: { body: { limit: '={{ $value }}' } } },
|
|
541
|
+
},
|
|
542
|
+
]),
|
|
543
|
+
additionalOptions(['gas'], [
|
|
544
|
+
countryOption(false),
|
|
545
|
+
{
|
|
546
|
+
displayName: 'Limit',
|
|
547
|
+
name: 'limit',
|
|
548
|
+
type: 'number',
|
|
549
|
+
default: 50,
|
|
550
|
+
typeOptions: { minValue: 1 },
|
|
551
|
+
hint: 'Nearest stations to return, 1 to 50, when locating by ZIP code or coordinates. The API default is 10.',
|
|
552
|
+
description: 'Max number of results to return',
|
|
553
|
+
routing: { request: { body: { limit: '={{ $value }}' } } },
|
|
554
|
+
},
|
|
555
|
+
]),
|
|
556
|
+
additionalOptions(['clearance'], [
|
|
557
|
+
countryOption(false),
|
|
558
|
+
{
|
|
559
|
+
displayName: 'Pages',
|
|
560
|
+
name: 'pages',
|
|
561
|
+
type: 'number',
|
|
562
|
+
default: 3,
|
|
563
|
+
typeOptions: { minValue: 1, maxValue: 5 },
|
|
564
|
+
description: 'Result pages of 120 items to scan, up to 5. Defaults to 3.',
|
|
565
|
+
routing: { request: { body: { pages: '={{ $value }}' } } },
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
displayName: 'Price Codes',
|
|
569
|
+
name: 'price_codes',
|
|
570
|
+
type: 'multiOptions',
|
|
571
|
+
default: [],
|
|
572
|
+
options: [
|
|
573
|
+
{ name: 'Clearance (.97)', value: 'clearance' },
|
|
574
|
+
{ name: 'Manager Markdown (.00 / .88)', value: 'manager_markdown' },
|
|
575
|
+
{ name: 'Special Buy (.49 / .79 / .89)', value: 'special_buy' },
|
|
576
|
+
],
|
|
577
|
+
description: 'Which markdown codes to keep. Defaults to Clearance and Manager Markdown; Special Buy endings are common on regular grocery prices.',
|
|
578
|
+
routing: {
|
|
579
|
+
request: { body: { price_codes: '={{ $value.length ? $value : undefined }}' } },
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
]),
|
|
583
|
+
];
|
|
584
|
+
//# sourceMappingURL=CostcoDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CostcoDescription.js","sourceRoot":"","sources":["../../../../nodes/Scavio/descriptions/CostcoDescription.ts"],"names":[],"mappings":";;;AAEA,wDAAwD;AACxD,MAAM,SAAS,GAAG,qEAAqE,CAAC;AAExF,MAAM,YAAY,GAA2B;IAC5C,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,IAAI,EAAE;IAC3C,EAAE,IAAI,EAAE,4BAA4B,EAAE,KAAK,EAAE,IAAI,EAAE;CACnD,CAAC;AAEF,MAAM,aAAa,GAA2B;IAC7C,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;IAClC,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,IAAI,EAAE;IAC3C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE;IAC9B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;IAC/B,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,EAAE;IACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;IAC/B,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAE;IACvC,EAAE,IAAI,EAAE,4BAA4B,EAAE,KAAK,EAAE,IAAI,EAAE;CACnD,C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I,EAAE,uGAAuG;YAC7G,WAAW,EAAE,iCAAiC;YAC9C,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE;SAC1D;KACD,CACD;IACD,iBAAiB,CAChB,CAAC,WAAW,CAAC,EACb;QACC,aAAa,CAAC,KAAK,CAAC;QACpB;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE;YACzC,WAAW,EAAE,4DAA4D;YACzE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE;SAC1D;QACD;YACC,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,EAAE;YACX,OAAO,EAAE;gBACR,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,WAAW,EAAE;gBAC/C,EAAE,IAAI,EAAE,8BAA8B,EAAE,KAAK,EAAE,kBAAkB,EAAE;gBACnE,EAAE,IAAI,EAAE,+BAA+B,EAAE,KAAK,EAAE,aAAa,EAAE;aAC/D;YACD,WAAW,EACV,qIAAqI;YACtI,OAAO,EAAE;gBACR,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,2CAA2C,EAAE,EAAE;aAC/E;SACD;KACD,CACD;CACD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-scavio",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "n8n community node for Scavio — real-time structured JSON from Google, Amazon, Walmart, eBay, Target, Home Depot, YouTube, Reddit, TikTok, Instagram, X, LinkedIn, Threads, Kuaishou, Zillow, Redfin, Booking.com, Airbnb, Tripadvisor, Yelp, Indeed, Glassdoor, App Store, Google Play, SEC EDGAR, Companies House, G2, Capterra, ad libraries, and any URL.",
|
|
3
|
+
"version": "0.17.0",
|
|
4
|
+
"description": "n8n community node for Scavio — real-time structured JSON from Google, Amazon, Walmart, eBay, Target, Home Depot, Costco, YouTube, Reddit, TikTok, Instagram, X, LinkedIn, Threads, Kuaishou, Zillow, Redfin, Booking.com, Airbnb, Tripadvisor, Yelp, Indeed, Glassdoor, App Store, Google Play, SEC EDGAR, Companies House, G2, Capterra, ad libraries, and any URL.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
7
7
|
"scavio",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"google",
|
|
10
10
|
"amazon",
|
|
11
11
|
"walmart",
|
|
12
|
+
"costco",
|
|
12
13
|
"youtube",
|
|
13
14
|
"reddit",
|
|
14
15
|
"tiktok",
|