n8n-nodes-scavio 0.28.0 → 0.29.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 +20 -2
- package/dist/nodes/Scavio/Scavio.node.js +21 -2
- package/dist/nodes/Scavio/Scavio.node.js.map +1 -1
- package/dist/nodes/Scavio/descriptions/CanadianTireDescription.d.ts +3 -0
- package/dist/nodes/Scavio/descriptions/CanadianTireDescription.js +315 -0
- package/dist/nodes/Scavio/descriptions/CanadianTireDescription.js.map +1 -0
- package/dist/nodes/Scavio/descriptions/DollarGeneralDescription.d.ts +3 -0
- package/dist/nodes/Scavio/descriptions/DollarGeneralDescription.js +274 -0
- package/dist/nodes/Scavio/descriptions/DollarGeneralDescription.js.map +1 -0
- package/dist/nodes/Scavio/descriptions/GlassdoorDescription.js +5 -5
- package/dist/nodes/Scavio/descriptions/GlassdoorDescription.js.map +1 -1
- package/dist/nodes/Scavio/descriptions/LowesDescription.d.ts +3 -0
- package/dist/nodes/Scavio/descriptions/LowesDescription.js +195 -0
- package/dist/nodes/Scavio/descriptions/LowesDescription.js.map +1 -0
- package/dist/nodes/Scavio/descriptions/SamsClubDescription.d.ts +3 -0
- package/dist/nodes/Scavio/descriptions/SamsClubDescription.js +212 -0
- package/dist/nodes/Scavio/descriptions/SamsClubDescription.js.map +1 -0
- package/dist/nodes/Scavio/version.d.ts +1 -1
- package/dist/nodes/Scavio/version.js +1 -1
- package/package.json +1 -1
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?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) — a real-time structured-data API for search, AI assistant answers, 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 58 resources and 420 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
|
|
|
@@ -30,6 +30,10 @@ In n8n: **Settings -> Community Nodes -> Install** -> enter `n8n-nodes-scavio`.
|
|
|
30
30
|
| [HEB](https://scavio.dev/docs/heb-search?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 2 | Search Products, Get Product, Get Stores |
|
|
31
31
|
| [Kroger](https://scavio.dev/docs/kroger-search?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 2 | Search Products, Get Product |
|
|
32
32
|
| [Spec's](https://scavio.dev/docs/specs-product?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 5 | Search Products, Get Product, Find Stores |
|
|
33
|
+
| [Lowe's](https://scavio.dev/docs/lowes-search?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 2; Get Reviews 1 | Search Products, Get Product, Find Stores, Get Reviews |
|
|
34
|
+
| [Sam's Club](https://scavio.dev/docs/samsclub-search?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 1 | Search Products, Get Product, Find Clubs, Get Instant Savings, Get Category Products, Get Reviews |
|
|
35
|
+
| [Canadian Tire](https://scavio.dev/docs/canadiantire-search?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 1 | Search Products, Get Product, Find Stores, Get Availability, Find Clearance Items, Get Deals |
|
|
36
|
+
| [Dollar General](https://scavio.dev/docs/dollargeneral-search?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 1 | Search Products, Get Product, Find Stores, Get Deals, Get Coupons |
|
|
33
37
|
| [Mercado Libre (MX, BR, AR, CO)](https://scavio.dev/docs/mercadolibre-search?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 2; Get Reviews 1 | Search Listings, Get Product, Get Reviews, Get Questions, Get Best Sellers |
|
|
34
38
|
|
|
35
39
|
### Social and video
|
|
@@ -64,7 +68,7 @@ In n8n: **Settings -> Community Nodes -> Install** -> enter `n8n-nodes-scavio`.
|
|
|
64
68
|
| --- | --- | --- |
|
|
65
69
|
| [Yelp](https://scavio.dev/docs/yelp-search?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 2 | Search Businesses, Get Business, Get Reviews |
|
|
66
70
|
| [Indeed](https://scavio.dev/docs/indeed-search?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 2 | Search Jobs, Get Job, Get Company, Get Company Reviews |
|
|
67
|
-
| [Glassdoor](https://scavio.dev/docs/glassdoor-companies?utm_source=n8n-node&utm_medium=package&utm_campaign=readme)
|
|
71
|
+
| [Glassdoor](https://scavio.dev/docs/glassdoor-companies?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) || 2 | Search Companies, Get Company Profile, Get Reviews, Get Salaries |
|
|
68
72
|
|
|
69
73
|
### App stores, software, and business reviews
|
|
70
74
|
|
|
@@ -87,6 +91,20 @@ In n8n: **Settings -> Community Nodes -> Install** -> enter `n8n-nodes-scavio`.
|
|
|
87
91
|
| [Extract (Any URL)](https://scavio.dev/docs/extract?utm_source=n8n-node&utm_medium=package&utm_campaign=readme) | 1 normal, 1 advanced, 2 ultra; crawl and batch bill that per successful page; Map Website 1; status and cancel free | Extract Page, Map Website, Start Crawl, Get Crawl Status, Cancel Crawl, Start Batch, Get Batch Status, Cancel Batch, Screenshot |
|
|
88
92
|
| Account | Free | Get Usage |
|
|
89
93
|
|
|
94
|
+
## What changed in 0.29.0
|
|
95
|
+
|
|
96
|
+
**New resources: Lowe's, Sam's Club, Canadian Tire and Dollar General, 21 operations.** Each returns prices and stock for the one store or club you choose. Nothing else changed.
|
|
97
|
+
|
|
98
|
+
- **Lowe's** (2 credits; Get Reviews 1): Search Products, Get Product, Find Stores and Get Reviews. Search and Get Product take a required **Store ID** and that store's **ZIP code**, both from Find Stores. Turn on **On Sale Only** in Search Products for the store's deals. Get Product adds on-hand stock per fulfillment method, stock at nearby stores, and aisle and bay.
|
|
99
|
+
- **Sam's Club** (1 credit): Search Products, Get Product, Find Clubs, Get Instant Savings, Get Category Products and Get Reviews. Search, Instant Savings and Category Products price a nearby club chosen by location (echoed in `club`); for a specific club, use Get Product with a **Club ID** from Find Clubs. Clearance is category `1150109`. `available_quantity` is capped at 8 (8 means 8 or more).
|
|
100
|
+
- **Canadian Tire** (1 credit): Search Products, Get Product, Find Stores, Get Availability, Find Clearance Items and Get Deals. Every operation except Find Stores takes a required **Store ID**. Get Availability prices and stocks up to 50 SKUs at one store in one call. Find Stores locates by postal code or coordinates, and with a SKU adds each store's stock and aisle for it. Prices differ by store and province, including Quebec.
|
|
101
|
+
- **Dollar General** (1 credit): Search Products, Get Product, Find Stores, Get Deals and Get Coupons. Find Stores with a **UPC** returns that product's unit count at up to 25 nearby stores in one call. Get Deals reads On Sale or Clearance (clearance items carry the current price only, no was-price). Get Coupons lists the current digital coupons.
|
|
102
|
+
- Canadian Tire and Dollar General return a rating and review count, not review text.
|
|
103
|
+
|
|
104
|
+
## What changed in 0.28.1
|
|
105
|
+
|
|
106
|
+
- Glassdoor operations now cost 2 credits per call, and usually answer in a few seconds.
|
|
107
|
+
|
|
90
108
|
## What changed in 0.28.0
|
|
91
109
|
|
|
92
110
|
- **Removed the Total Wine resource.** The Total Wine API was retired on 2026-10-30 and its endpoints now return 410. Spec's is unchanged.
|
|
@@ -22,6 +22,10 @@ const HebDescription_1 = require("./descriptions/HebDescription");
|
|
|
22
22
|
const KrogerDescription_1 = require("./descriptions/KrogerDescription");
|
|
23
23
|
const DecathlonDescription_1 = require("./descriptions/DecathlonDescription");
|
|
24
24
|
const SpecsDescription_1 = require("./descriptions/SpecsDescription");
|
|
25
|
+
const LowesDescription_1 = require("./descriptions/LowesDescription");
|
|
26
|
+
const SamsClubDescription_1 = require("./descriptions/SamsClubDescription");
|
|
27
|
+
const CanadianTireDescription_1 = require("./descriptions/CanadianTireDescription");
|
|
28
|
+
const DollarGeneralDescription_1 = require("./descriptions/DollarGeneralDescription");
|
|
25
29
|
const ZillowDescription_1 = require("./descriptions/ZillowDescription");
|
|
26
30
|
const BookingDescription_1 = require("./descriptions/BookingDescription");
|
|
27
31
|
const TripadvisorDescription_1 = require("./descriptions/TripadvisorDescription");
|
|
@@ -64,7 +68,7 @@ class Scavio {
|
|
|
64
68
|
group: ['transform'],
|
|
65
69
|
version: 1,
|
|
66
70
|
subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
|
|
67
|
-
description: 'Real-time structured data from Google, ChatGPT, Gemini, Amazon, Walmart, eBay, Target, Home Depot, Costco, HEB, Kroger, Decathlon, Spec\'s, Mercado Libre, YouTube, Reddit, TikTok, Instagram, X, LinkedIn, Facebook, Pinterest, Threads, Kuaishou, Douyin, Weibo, Twitch, GitHub, Etsy, AliExpress, Zillow, Redfin, Realtor.com, Rightmove, Booking.com, Airbnb, Tripadvisor, Yelp, Indeed, Glassdoor, the App Store, Google Play, SEC EDGAR, Companies House, Legistar, G2, Capterra, Trustpilot, ad libraries, and any URL',
|
|
71
|
+
description: 'Real-time structured data from Google, ChatGPT, Gemini, Amazon, Walmart, eBay, Target, Home Depot, Costco, HEB, Kroger, Decathlon, Spec\'s, Lowe\'s, Sam\'s Club, Canadian Tire, Dollar General, Mercado Libre, YouTube, Reddit, TikTok, Instagram, X, LinkedIn, Facebook, Pinterest, Threads, Kuaishou, Douyin, Weibo, Twitch, GitHub, Etsy, AliExpress, Zillow, Redfin, Realtor.com, Rightmove, Booking.com, Airbnb, Tripadvisor, Yelp, Indeed, Glassdoor, the App Store, Google Play, SEC EDGAR, Companies House, Legistar, G2, Capterra, Trustpilot, ad libraries, and any URL',
|
|
68
72
|
defaults: { name: 'Scavio' },
|
|
69
73
|
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
70
74
|
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
@@ -93,11 +97,13 @@ class Scavio {
|
|
|
93
97
|
{ name: 'Amazon', value: 'amazon' },
|
|
94
98
|
{ name: 'Apple App Store', value: 'appStore' },
|
|
95
99
|
{ name: 'Booking.com', value: 'booking' },
|
|
100
|
+
{ name: 'Canadian Tire', value: 'canadianTire' },
|
|
96
101
|
{ name: 'Capterra (Software Reviews)', value: 'capterra' },
|
|
97
102
|
{ name: 'ChatGPT', value: 'chatgpt' },
|
|
98
103
|
{ name: 'Companies House (UK)', value: 'companiesHouse' },
|
|
99
104
|
{ name: 'Costco', value: 'costco' },
|
|
100
105
|
{ name: 'Decathlon', value: 'decathlon' },
|
|
106
|
+
{ name: 'Dollar General', value: 'dollarGeneral' },
|
|
101
107
|
{ name: 'Douyin (China)', value: 'douyin' },
|
|
102
108
|
{ name: 'eBay', value: 'ebay' },
|
|
103
109
|
{ name: 'Etsy', value: 'etsy' },
|
|
@@ -118,6 +124,11 @@ class Scavio {
|
|
|
118
124
|
{ name: 'Kuaishou (China)', value: 'kuaishou' },
|
|
119
125
|
{ name: 'Legistar (Municipal)', value: 'legistar' },
|
|
120
126
|
{ name: 'LinkedIn', value: 'linkedin' },
|
|
127
|
+
// Lowe's is the retailer's brand name, not a plural noun, and `lowes` is
|
|
128
|
+
// frozen once saved in user workflows. The rule reports only the first
|
|
129
|
+
// plural-looking option in this list, so the disable lives here.
|
|
130
|
+
// eslint-disable-next-line n8n-nodes-base/node-param-resource-with-plural-option
|
|
131
|
+
{ name: "Lowe's", value: 'lowes' },
|
|
121
132
|
{ name: 'Mercado Libre', value: 'mercadoLibre' },
|
|
122
133
|
{ name: 'Meta Ad Library', value: 'metaAds' },
|
|
123
134
|
{ name: 'Pinterest', value: 'pinterest' },
|
|
@@ -125,10 +136,10 @@ class Scavio {
|
|
|
125
136
|
{ name: 'Reddit', value: 'reddit' },
|
|
126
137
|
{ name: 'Redfin', value: 'redfin' },
|
|
127
138
|
{ name: 'Rightmove (UK)', value: 'rightmove' },
|
|
139
|
+
{ name: "Sam's Club", value: 'samsClub' },
|
|
128
140
|
{ name: 'SEC EDGAR', value: 'sec' },
|
|
129
141
|
// Spec's is the retailer's brand name, not a plural noun, and `specs` is
|
|
130
142
|
// frozen once saved in user workflows.
|
|
131
|
-
// eslint-disable-next-line n8n-nodes-base/node-param-resource-with-plural-option
|
|
132
143
|
{ name: "Spec's", value: 'specs' },
|
|
133
144
|
{ name: 'Target', value: 'target' },
|
|
134
145
|
// Threads is Meta's brand name, not a plural noun. Singularizing it to
|
|
@@ -171,6 +182,14 @@ class Scavio {
|
|
|
171
182
|
...DecathlonDescription_1.decathlonFields,
|
|
172
183
|
...SpecsDescription_1.specsOperations,
|
|
173
184
|
...SpecsDescription_1.specsFields,
|
|
185
|
+
...LowesDescription_1.lowesOperations,
|
|
186
|
+
...LowesDescription_1.lowesFields,
|
|
187
|
+
...SamsClubDescription_1.samsClubOperations,
|
|
188
|
+
...SamsClubDescription_1.samsClubFields,
|
|
189
|
+
...CanadianTireDescription_1.canadianTireOperations,
|
|
190
|
+
...CanadianTireDescription_1.canadianTireFields,
|
|
191
|
+
...DollarGeneralDescription_1.dollarGeneralOperations,
|
|
192
|
+
...DollarGeneralDescription_1.dollarGeneralFields,
|
|
174
193
|
...MercadoLibreDescription_1.mercadoLibreOperations,
|
|
175
194
|
...MercadoLibreDescription_1.mercadoLibreFields,
|
|
176
195
|
...YouTubeDescription_1.youtubeOperations,
|
|
@@ -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,kEAAyE;AACzE,wEAAkF;AAClF,8EAA2F;AAC3F,sEAA+E;AAC/E,wEAAkF;AAClF,0EAAqF;AACrF,kFAAiG;AACjG,wEAAkF;AAClF,wEAAkF;AAClF,8EAA2F;AAC3F,oEAA4E;AAC5E,4EAAwF;AACxF,gFAA8F;AAC9F,kEAAyE;AACzE,wEAAkF;AAClF,0EAAqF;AACrF,8EAA2F;AAC3F,oFAGgD;AAChD,wFAGkD;AAClD,gEAAsE;AACtE,4EAAwF;AACxF,gFAA8F;AAC9F,wEAK0C;AAC1C,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;AACxF,uCAAiD;AAEjD,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,kEAAyE;AACzE,wEAAkF;AAClF,8EAA2F;AAC3F,sEAA+E;AAC/E,sEAA+E;AAC/E,4EAAwF;AAC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YACd,GAAG,sCAAiB;YACpB,GAAG,kCAAa;YAChB,GAAG,sCAAiB;YACpB,GAAG,kCAAa;SAChB;KACD,CAAC;CACF;AA3ND,wBA2NC"}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.canadianTireFields = exports.canadianTireOperations = void 0;
|
|
4
|
+
const show = (operation, extra = {}) => ({
|
|
5
|
+
show: { resource: ['canadianTire'], operation, ...extra },
|
|
6
|
+
});
|
|
7
|
+
// Comma-separated text -> string array, blanks dropped.
|
|
8
|
+
const splitList = '={{ String($value).split(",").map(s => s.trim()).filter(Boolean) }}';
|
|
9
|
+
exports.canadianTireOperations = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Operation',
|
|
12
|
+
name: 'operation',
|
|
13
|
+
type: 'options',
|
|
14
|
+
noDataExpression: true,
|
|
15
|
+
displayOptions: { show: { resource: ['canadianTire'] } },
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Find Clearance Items',
|
|
19
|
+
value: 'clearance',
|
|
20
|
+
action: 'Find canadian tire clearance items',
|
|
21
|
+
description: 'Every clearance item at one Canadian Tire store, 100 per page: clearance price, regular price, stock at the store and the same fields as Search Products. In-stock items only by default. Costs 1 credit.',
|
|
22
|
+
routing: { request: { method: 'POST', url: '/api/v1/canadiantire/clearance' } },
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Find Stores',
|
|
26
|
+
value: 'stores',
|
|
27
|
+
action: 'Find canadian tire stores',
|
|
28
|
+
description: 'Canadian Tire stores near a postal code or coordinates, nearest first: store number, name, address, phone, coordinates, distance, weekly hours and services. Set a SKU to get each store\'s stock quantity and aisle for that item. Costs 1 credit.',
|
|
29
|
+
routing: { request: { method: 'POST', url: '/api/v1/canadiantire/stores' } },
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Get Availability',
|
|
33
|
+
value: 'availability',
|
|
34
|
+
action: 'Get canadian tire availability',
|
|
35
|
+
description: 'Up to 50 SKUs at one store in one call: the store\'s price and regular price, clearance and sale flags, price valid-until date, stock quantity, aisle, online stock, and pickup and delivery dates. Unknown SKUs are listed in not_found. Costs 1 credit.',
|
|
36
|
+
routing: { request: { method: 'POST', url: '/api/v1/canadiantire/availability' } },
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Get Deals',
|
|
40
|
+
value: 'deals',
|
|
41
|
+
action: 'Get canadian tire deals',
|
|
42
|
+
description: 'Items on a deal at one store, 100 per page: this week\'s sale prices, instant rebates, special buys or Triangle Rewards offers, with the same fields as Search Products. Costs 1 credit.',
|
|
43
|
+
routing: { request: { method: 'POST', url: '/api/v1/canadiantire/deals' } },
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Get Product',
|
|
47
|
+
value: 'product',
|
|
48
|
+
action: 'Get a canadian tire product',
|
|
49
|
+
description: 'One Canadian Tire product by code at one store: breadcrumb, images, videos, rating and review count, descriptions, features, specifications, price and regular price, warranty, manuals, variants with their SKUs, and the store\'s price, stock, and pickup and ship-to-home dates. Costs 1 credit.',
|
|
50
|
+
routing: { request: { method: 'POST', url: '/api/v1/canadiantire/product' } },
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Search Products',
|
|
54
|
+
value: 'search',
|
|
55
|
+
action: 'Search canadian tire products',
|
|
56
|
+
description: 'Search Canadian Tire by keyword or category at one store: the store\'s price and regular price (CAD), price range, savings message, clearance, sale and rebate badges, rating, review count, brand, part number, SKU, and stock at the store and online. Prices differ by store and province. Costs 1 credit.',
|
|
57
|
+
routing: { request: { method: 'POST', url: '/api/v1/canadiantire/search' } },
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
default: 'search',
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
exports.canadianTireFields = [
|
|
64
|
+
// -- Search Products --
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Keyword',
|
|
67
|
+
name: 'keyword',
|
|
68
|
+
type: 'string',
|
|
69
|
+
default: '',
|
|
70
|
+
placeholder: 'dewalt drill',
|
|
71
|
+
displayOptions: show(['search']),
|
|
72
|
+
routing: { request: { body: { query: '={{ $value || undefined }}' } } },
|
|
73
|
+
description: 'Search keywords. Use this or Category ID.',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'Category ID',
|
|
77
|
+
name: 'category_id',
|
|
78
|
+
type: 'string',
|
|
79
|
+
default: '',
|
|
80
|
+
placeholder: 'DC0002209',
|
|
81
|
+
displayOptions: show(['search']),
|
|
82
|
+
routing: { request: { body: { category_id: '={{ $value || undefined }}' } } },
|
|
83
|
+
description: 'Category ID (DC followed by 7 digits), or a canadiantire.ca category URL ending in one. Use this or Keyword.',
|
|
84
|
+
},
|
|
85
|
+
// -- Get Product --
|
|
86
|
+
{
|
|
87
|
+
displayName: 'Product Code',
|
|
88
|
+
name: 'product_code',
|
|
89
|
+
type: 'string',
|
|
90
|
+
required: true,
|
|
91
|
+
default: '',
|
|
92
|
+
placeholder: '0547273P',
|
|
93
|
+
displayOptions: show(['product']),
|
|
94
|
+
routing: { request: { body: { product_code: '={{ $value }}' } } },
|
|
95
|
+
description: 'Product code: the code field of a search result',
|
|
96
|
+
},
|
|
97
|
+
// -- Get Availability --
|
|
98
|
+
{
|
|
99
|
+
displayName: 'SKUs',
|
|
100
|
+
name: 'skus',
|
|
101
|
+
type: 'string',
|
|
102
|
+
required: true,
|
|
103
|
+
default: '',
|
|
104
|
+
placeholder: '0438858, 0547273',
|
|
105
|
+
displayOptions: show(['availability']),
|
|
106
|
+
routing: { send: { type: 'body', property: 'skus', value: splitList } },
|
|
107
|
+
description: '1-50 SKUs (7 digits each, the sku field of a search result or product variant) separated by commas',
|
|
108
|
+
},
|
|
109
|
+
// -- Get Deals --
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Deal Type',
|
|
112
|
+
name: 'type',
|
|
113
|
+
type: 'options',
|
|
114
|
+
required: true,
|
|
115
|
+
default: 'sale',
|
|
116
|
+
options: [
|
|
117
|
+
{ name: 'Instant Rebate', value: 'instant_rebate' },
|
|
118
|
+
{ name: 'Sale (This Week)', value: 'sale' },
|
|
119
|
+
{ name: 'Special Buy', value: 'special_buy' },
|
|
120
|
+
{ name: 'Triangle Rewards (Loyalty)', value: 'loyalty' },
|
|
121
|
+
],
|
|
122
|
+
displayOptions: show(['deals']),
|
|
123
|
+
routing: { request: { body: { type: '={{ $value }}' } } },
|
|
124
|
+
description: 'Which deal list to read',
|
|
125
|
+
},
|
|
126
|
+
// -- Store ID: every operation except Find Stores --
|
|
127
|
+
{
|
|
128
|
+
displayName: 'Store ID',
|
|
129
|
+
name: 'store_id',
|
|
130
|
+
type: 'string',
|
|
131
|
+
required: true,
|
|
132
|
+
default: '',
|
|
133
|
+
placeholder: '600',
|
|
134
|
+
displayOptions: show(['search', 'product', 'availability', 'clearance', 'deals']),
|
|
135
|
+
routing: { request: { body: { store_id: '={{ $value }}' } } },
|
|
136
|
+
description: "Canadian Tire store number from Find Stores. Prices and stock are that store's.",
|
|
137
|
+
},
|
|
138
|
+
// -- Find Stores --
|
|
139
|
+
{
|
|
140
|
+
displayName: 'Locate By',
|
|
141
|
+
name: 'locateBy',
|
|
142
|
+
type: 'options',
|
|
143
|
+
default: 'postalCode',
|
|
144
|
+
options: [
|
|
145
|
+
{ name: 'Coordinates', value: 'coordinates' },
|
|
146
|
+
{ name: 'Postal Code', value: 'postalCode' },
|
|
147
|
+
],
|
|
148
|
+
displayOptions: show(['stores']),
|
|
149
|
+
description: 'Find stores near a postal code or a latitude/longitude pair',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
displayName: 'Postal Code',
|
|
153
|
+
name: 'postal_code',
|
|
154
|
+
type: 'string',
|
|
155
|
+
required: true,
|
|
156
|
+
default: '',
|
|
157
|
+
placeholder: 'M5V 2T6',
|
|
158
|
+
displayOptions: show(['stores'], { locateBy: ['postalCode'] }),
|
|
159
|
+
routing: { request: { body: { postal_code: '={{ $value }}' } } },
|
|
160
|
+
description: 'Canadian postal code, or its first 3 characters',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
displayName: 'Latitude',
|
|
164
|
+
name: 'latitude',
|
|
165
|
+
type: 'number',
|
|
166
|
+
required: true,
|
|
167
|
+
default: 0,
|
|
168
|
+
typeOptions: { minValue: -90, maxValue: 90, numberPrecision: 6 },
|
|
169
|
+
displayOptions: show(['stores'], { locateBy: ['coordinates'] }),
|
|
170
|
+
routing: { request: { body: { latitude: '={{ $value }}' } } },
|
|
171
|
+
description: 'Latitude to search around',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Longitude',
|
|
175
|
+
name: 'longitude',
|
|
176
|
+
type: 'number',
|
|
177
|
+
required: true,
|
|
178
|
+
default: 0,
|
|
179
|
+
typeOptions: { minValue: -180, maxValue: 180, numberPrecision: 6 },
|
|
180
|
+
displayOptions: show(['stores'], { locateBy: ['coordinates'] }),
|
|
181
|
+
routing: { request: { body: { longitude: '={{ $value }}' } } },
|
|
182
|
+
description: 'Longitude to search around',
|
|
183
|
+
},
|
|
184
|
+
// -- Additional Options: Search Products --
|
|
185
|
+
{
|
|
186
|
+
displayName: 'Additional Options',
|
|
187
|
+
name: 'additionalOptions',
|
|
188
|
+
type: 'collection',
|
|
189
|
+
placeholder: 'Add Option',
|
|
190
|
+
default: {},
|
|
191
|
+
displayOptions: show(['search']),
|
|
192
|
+
options: [
|
|
193
|
+
{
|
|
194
|
+
displayName: 'In Stock Only',
|
|
195
|
+
name: 'in_stock_only',
|
|
196
|
+
type: 'boolean',
|
|
197
|
+
default: false,
|
|
198
|
+
description: 'Whether to return only items in stock at the store',
|
|
199
|
+
routing: { request: { body: { in_stock_only: '={{ $value }}' } } },
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
displayName: 'Page',
|
|
203
|
+
name: 'page',
|
|
204
|
+
type: 'number',
|
|
205
|
+
default: 1,
|
|
206
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
207
|
+
description: 'Results page, 24 results per page',
|
|
208
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
displayName: 'Sort By',
|
|
212
|
+
name: 'sort',
|
|
213
|
+
type: 'options',
|
|
214
|
+
default: 'relevance',
|
|
215
|
+
options: [
|
|
216
|
+
{ name: 'Best Selling', value: 'bestseller' },
|
|
217
|
+
{ name: 'Newest', value: 'newest' },
|
|
218
|
+
{ name: 'Price: High to Low', value: 'price_desc' },
|
|
219
|
+
{ name: 'Price: Low to High', value: 'price_asc' },
|
|
220
|
+
{ name: 'Rating', value: 'rating' },
|
|
221
|
+
{ name: 'Relevance', value: 'relevance' },
|
|
222
|
+
],
|
|
223
|
+
description: 'Result order',
|
|
224
|
+
routing: { request: { body: { sort: '={{ $value }}' } } },
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
// -- Additional Options: Find Clearance Items --
|
|
229
|
+
{
|
|
230
|
+
displayName: 'Additional Options',
|
|
231
|
+
name: 'clearanceOptions',
|
|
232
|
+
type: 'collection',
|
|
233
|
+
placeholder: 'Add Option',
|
|
234
|
+
default: {},
|
|
235
|
+
displayOptions: show(['clearance']),
|
|
236
|
+
options: [
|
|
237
|
+
{
|
|
238
|
+
displayName: 'In Stock Only',
|
|
239
|
+
name: 'in_stock_only',
|
|
240
|
+
type: 'boolean',
|
|
241
|
+
default: true,
|
|
242
|
+
description: 'Whether to return only clearance items in stock at the store (on by default)',
|
|
243
|
+
routing: { request: { body: { in_stock_only: '={{ $value }}' } } },
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
displayName: 'Page',
|
|
247
|
+
name: 'page',
|
|
248
|
+
type: 'number',
|
|
249
|
+
default: 1,
|
|
250
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
251
|
+
description: 'Results page, 100 results per page',
|
|
252
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
// -- Additional Options: Get Deals --
|
|
257
|
+
{
|
|
258
|
+
displayName: 'Additional Options',
|
|
259
|
+
name: 'dealOptions',
|
|
260
|
+
type: 'collection',
|
|
261
|
+
placeholder: 'Add Option',
|
|
262
|
+
default: {},
|
|
263
|
+
displayOptions: show(['deals']),
|
|
264
|
+
options: [
|
|
265
|
+
{
|
|
266
|
+
displayName: 'Page',
|
|
267
|
+
name: 'page',
|
|
268
|
+
type: 'number',
|
|
269
|
+
default: 1,
|
|
270
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
271
|
+
description: 'Results page, 100 results per page',
|
|
272
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
// -- Additional Options: Find Stores --
|
|
277
|
+
{
|
|
278
|
+
displayName: 'Additional Options',
|
|
279
|
+
name: 'storeOptions',
|
|
280
|
+
type: 'collection',
|
|
281
|
+
placeholder: 'Add Option',
|
|
282
|
+
default: {},
|
|
283
|
+
displayOptions: show(['stores']),
|
|
284
|
+
options: [
|
|
285
|
+
{
|
|
286
|
+
displayName: 'Max Stores',
|
|
287
|
+
name: 'maxStores',
|
|
288
|
+
type: 'number',
|
|
289
|
+
default: 10,
|
|
290
|
+
typeOptions: { minValue: 1, maxValue: 50 },
|
|
291
|
+
description: 'Stores to return, nearest first, 1-50. The API sends 10 when unset.',
|
|
292
|
+
routing: { request: { body: { limit: '={{ $value }}' } } },
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
displayName: 'Radius (Km)',
|
|
296
|
+
name: 'radius_km',
|
|
297
|
+
type: 'number',
|
|
298
|
+
default: 25,
|
|
299
|
+
typeOptions: { minValue: 1, maxValue: 200 },
|
|
300
|
+
description: 'Search radius in kilometres, up to 200',
|
|
301
|
+
routing: { request: { body: { radius_km: '={{ $value }}' } } },
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
displayName: 'SKU',
|
|
305
|
+
name: 'sku',
|
|
306
|
+
type: 'string',
|
|
307
|
+
default: '',
|
|
308
|
+
placeholder: '0438858',
|
|
309
|
+
description: "7-digit SKU. When set, each store also carries its stock quantity and aisle for it.",
|
|
310
|
+
routing: { request: { body: { sku: '={{ $value || undefined }}' } } },
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
},
|
|
314
|
+
];
|
|
315
|
+
//# sourceMappingURL=CanadianTireDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CanadianTireDescription.js","sourceRoot":"","sources":["../../../../nodes/Scavio/descriptions/CanadianTireDescription.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,CAAC,SAAmB,EAAE,QAAkC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE;CACzD,CAAC,CAAC;AAEH,wDAAwD;AACxD,MAAM,SAAS,GAAG,qEAAqE,CAAC;AAE3E,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QACxD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,oCAAoC;gBAC5C,WAAW,EACV,2MAA2M;gBAC5M,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,gCAAgC,EAAE,EAAE;aAC/E;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAA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