n8n-nodes-scavio 0.28.1 → 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 +15 -1
- 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/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
|
|
@@ -87,6 +91,16 @@ 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
|
+
|
|
90
104
|
## What changed in 0.28.1
|
|
91
105
|
|
|
92
106
|
- Glassdoor operations now cost 2 credits per call, and usually answer in a few seconds.
|
|
@@ -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;AACxF,oFAGgD;AAChD,sFAGiD;AACjD,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,ojBAAojB;QACrjB,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,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B,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;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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AQ,EAAE,EAAE,EAAE;gBAC1C,WAAW,EAAE,qEAAqE;gBAClF,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE;aAC1D;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE;gBAC3C,WAAW,EAAE,wCAAwC;gBACrD,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,EAAE;aAC9D;YACD;gBACC,WAAW,EAAE,KAAK;gBAClB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,SAAS;gBACtB,WAAW,EAAE,qFAAqF;gBAClG,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,4BAA4B,EAAE,EAAE,EAAE;aACrE;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dollarGeneralFields = exports.dollarGeneralOperations = void 0;
|
|
4
|
+
const show = (operation, extra = {}) => ({
|
|
5
|
+
show: { resource: ['dollarGeneral'], operation, ...extra },
|
|
6
|
+
});
|
|
7
|
+
const SORT_OPTIONS = [
|
|
8
|
+
{ name: 'Price: High to Low', value: 'price_high' },
|
|
9
|
+
{ name: 'Price: Low to High', value: 'price_low' },
|
|
10
|
+
{ name: 'Rating', value: 'rating' },
|
|
11
|
+
{ name: 'Recommended', value: 'recommended' },
|
|
12
|
+
];
|
|
13
|
+
exports.dollarGeneralOperations = [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Operation',
|
|
16
|
+
name: 'operation',
|
|
17
|
+
type: 'options',
|
|
18
|
+
noDataExpression: true,
|
|
19
|
+
displayOptions: { show: { resource: ['dollarGeneral'] } },
|
|
20
|
+
options: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Find Stores',
|
|
23
|
+
value: 'stores',
|
|
24
|
+
action: 'Find dollar general stores',
|
|
25
|
+
description: 'Dollar General stores near a US ZIP code or coordinates, nearest first (up to 25): store number, address, phone, coordinates, distance, opening hours and services. Set a UPC and one call returns that product\'s unit count at every store returned. Costs 1 credit.',
|
|
26
|
+
routing: { request: { method: 'POST', url: '/api/v1/dollargeneral/stores' } },
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get Coupons',
|
|
30
|
+
value: 'coupons',
|
|
31
|
+
action: 'Get dollar general coupons',
|
|
32
|
+
description: 'Dollar General\'s current digital coupons, 30 per page: offer ID and code, summary, description, brand, value, offer type, category, minimum quantity, start and expiration dates, and whether it is a manufacturer coupon. Costs 1 credit.',
|
|
33
|
+
routing: { request: { method: 'POST', url: '/api/v1/dollargeneral/coupons' } },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Get Deals',
|
|
37
|
+
value: 'deals',
|
|
38
|
+
action: 'Get dollar general deals',
|
|
39
|
+
description: 'Products on sale or on clearance, priced and stocked at one store, 24 per page. available_quantity above 0 means in stock at that store. Clearance items carry the current price only (no was-price). Costs 1 credit.',
|
|
40
|
+
routing: { request: { method: 'POST', url: '/api/v1/dollargeneral/deals' } },
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Get Product',
|
|
44
|
+
value: 'product',
|
|
45
|
+
action: 'Get a dollar general product',
|
|
46
|
+
description: 'One product by UPC at one store: price, original price, available_quantity (units on hand), nearby stores with stock, rating, review count, SKU, brand, description, highlights, images, categories, digital coupons and promotions. Costs 1 credit.',
|
|
47
|
+
routing: { request: { method: 'POST', url: '/api/v1/dollargeneral/product' } },
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Search Products',
|
|
51
|
+
value: 'search',
|
|
52
|
+
action: 'Search dollar general products',
|
|
53
|
+
description: 'Search Dollar General at one store: that store\'s price and original price, available_quantity (units on hand), rating, review count, categories, digital coupons and promotions, UPC and product URL. Use a result\'s UPC with Get Product. Costs 1 credit.',
|
|
54
|
+
routing: { request: { method: 'POST', url: '/api/v1/dollargeneral/search' } },
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
default: 'search',
|
|
58
|
+
},
|
|
59
|
+
];
|
|
60
|
+
exports.dollarGeneralFields = [
|
|
61
|
+
// -- Search Products --
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Keyword',
|
|
64
|
+
name: 'keyword',
|
|
65
|
+
type: 'string',
|
|
66
|
+
required: true,
|
|
67
|
+
default: '',
|
|
68
|
+
placeholder: 'paper towels',
|
|
69
|
+
displayOptions: show(['search']),
|
|
70
|
+
routing: { request: { body: { query: '={{ $value }}' } } },
|
|
71
|
+
description: 'Product search keyword',
|
|
72
|
+
},
|
|
73
|
+
// -- Get Product --
|
|
74
|
+
{
|
|
75
|
+
displayName: 'UPC',
|
|
76
|
+
name: 'upc',
|
|
77
|
+
type: 'string',
|
|
78
|
+
required: true,
|
|
79
|
+
default: '',
|
|
80
|
+
placeholder: '030772156629',
|
|
81
|
+
displayOptions: show(['product']),
|
|
82
|
+
routing: { request: { body: { upc: '={{ $value }}' } } },
|
|
83
|
+
description: 'Product UPC: the upc field of a search result. Leading zeros are optional.',
|
|
84
|
+
},
|
|
85
|
+
// -- Get Deals --
|
|
86
|
+
{
|
|
87
|
+
displayName: 'Deal Type',
|
|
88
|
+
name: 'type',
|
|
89
|
+
type: 'options',
|
|
90
|
+
required: true,
|
|
91
|
+
default: 'on_sale',
|
|
92
|
+
options: [
|
|
93
|
+
{ name: 'Clearance', value: 'clearance' },
|
|
94
|
+
{ name: 'On Sale', value: 'on_sale' },
|
|
95
|
+
],
|
|
96
|
+
displayOptions: show(['deals']),
|
|
97
|
+
routing: { request: { body: { type: '={{ $value }}' } } },
|
|
98
|
+
description: 'Everything on sale, or the clearance event',
|
|
99
|
+
},
|
|
100
|
+
// -- Store ID: Search Products, Get Product, Get Deals --
|
|
101
|
+
{
|
|
102
|
+
displayName: 'Store ID',
|
|
103
|
+
name: 'store_id',
|
|
104
|
+
type: 'string',
|
|
105
|
+
required: true,
|
|
106
|
+
default: '',
|
|
107
|
+
placeholder: '12629',
|
|
108
|
+
displayOptions: show(['search', 'product', 'deals']),
|
|
109
|
+
routing: { request: { body: { store_id: '={{ $value }}' } } },
|
|
110
|
+
description: "Dollar General store number from Find Stores. Prices and unit counts are that store's.",
|
|
111
|
+
},
|
|
112
|
+
// -- Find Stores --
|
|
113
|
+
{
|
|
114
|
+
displayName: 'Locate By',
|
|
115
|
+
name: 'locateBy',
|
|
116
|
+
type: 'options',
|
|
117
|
+
default: 'zip',
|
|
118
|
+
options: [
|
|
119
|
+
{ name: 'Coordinates', value: 'coordinates' },
|
|
120
|
+
{ name: 'ZIP Code', value: 'zip' },
|
|
121
|
+
],
|
|
122
|
+
displayOptions: show(['stores']),
|
|
123
|
+
description: 'Find stores near a ZIP code or a latitude/longitude pair',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
displayName: 'ZIP Code',
|
|
127
|
+
name: 'zip',
|
|
128
|
+
type: 'string',
|
|
129
|
+
required: true,
|
|
130
|
+
default: '',
|
|
131
|
+
placeholder: '75203',
|
|
132
|
+
displayOptions: show(['stores'], { locateBy: ['zip'] }),
|
|
133
|
+
routing: { request: { body: { zip: '={{ $value }}' } } },
|
|
134
|
+
description: 'US ZIP code to search around',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
displayName: 'Latitude',
|
|
138
|
+
name: 'latitude',
|
|
139
|
+
type: 'number',
|
|
140
|
+
required: true,
|
|
141
|
+
default: 0,
|
|
142
|
+
typeOptions: { minValue: -90, maxValue: 90, numberPrecision: 6 },
|
|
143
|
+
displayOptions: show(['stores'], { locateBy: ['coordinates'] }),
|
|
144
|
+
routing: { request: { body: { latitude: '={{ $value }}' } } },
|
|
145
|
+
description: 'Latitude to search around',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
displayName: 'Longitude',
|
|
149
|
+
name: 'longitude',
|
|
150
|
+
type: 'number',
|
|
151
|
+
required: true,
|
|
152
|
+
default: 0,
|
|
153
|
+
typeOptions: { minValue: -180, maxValue: 180, numberPrecision: 6 },
|
|
154
|
+
displayOptions: show(['stores'], { locateBy: ['coordinates'] }),
|
|
155
|
+
routing: { request: { body: { longitude: '={{ $value }}' } } },
|
|
156
|
+
description: 'Longitude to search around',
|
|
157
|
+
},
|
|
158
|
+
// -- Additional Options: Search Products --
|
|
159
|
+
{
|
|
160
|
+
displayName: 'Additional Options',
|
|
161
|
+
name: 'additionalOptions',
|
|
162
|
+
type: 'collection',
|
|
163
|
+
placeholder: 'Add Option',
|
|
164
|
+
default: {},
|
|
165
|
+
displayOptions: show(['search']),
|
|
166
|
+
options: [
|
|
167
|
+
{
|
|
168
|
+
displayName: 'In Stock Only',
|
|
169
|
+
name: 'in_stock_only',
|
|
170
|
+
type: 'boolean',
|
|
171
|
+
default: false,
|
|
172
|
+
description: 'Whether to return only products with units on hand at the store',
|
|
173
|
+
routing: { request: { body: { in_stock_only: '={{ $value }}' } } },
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
displayName: 'Page',
|
|
177
|
+
name: 'page',
|
|
178
|
+
type: 'number',
|
|
179
|
+
default: 1,
|
|
180
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
181
|
+
description: 'Results page, 24 results per page',
|
|
182
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
displayName: 'Sort By',
|
|
186
|
+
name: 'sort',
|
|
187
|
+
type: 'options',
|
|
188
|
+
default: 'recommended',
|
|
189
|
+
options: SORT_OPTIONS,
|
|
190
|
+
description: 'Result order',
|
|
191
|
+
routing: { request: { body: { sort: '={{ $value }}' } } },
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
// -- Additional Options: Get Deals --
|
|
196
|
+
{
|
|
197
|
+
displayName: 'Additional Options',
|
|
198
|
+
name: 'dealOptions',
|
|
199
|
+
type: 'collection',
|
|
200
|
+
placeholder: 'Add Option',
|
|
201
|
+
default: {},
|
|
202
|
+
displayOptions: show(['deals']),
|
|
203
|
+
options: [
|
|
204
|
+
{
|
|
205
|
+
displayName: 'Page',
|
|
206
|
+
name: 'page',
|
|
207
|
+
type: 'number',
|
|
208
|
+
default: 1,
|
|
209
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
210
|
+
description: 'Results page, 24 results per page',
|
|
211
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
displayName: 'Sort By',
|
|
215
|
+
name: 'sort',
|
|
216
|
+
type: 'options',
|
|
217
|
+
default: 'recommended',
|
|
218
|
+
options: SORT_OPTIONS,
|
|
219
|
+
description: 'Result order',
|
|
220
|
+
routing: { request: { body: { sort: '={{ $value }}' } } },
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
// -- Additional Options: Get Coupons --
|
|
225
|
+
{
|
|
226
|
+
displayName: 'Additional Options',
|
|
227
|
+
name: 'couponOptions',
|
|
228
|
+
type: 'collection',
|
|
229
|
+
placeholder: 'Add Option',
|
|
230
|
+
default: {},
|
|
231
|
+
displayOptions: show(['coupons']),
|
|
232
|
+
options: [
|
|
233
|
+
{
|
|
234
|
+
displayName: 'Page',
|
|
235
|
+
name: 'page',
|
|
236
|
+
type: 'number',
|
|
237
|
+
default: 1,
|
|
238
|
+
typeOptions: { minValue: 1, maxValue: 50 },
|
|
239
|
+
description: 'Coupons page, 30 coupons per page',
|
|
240
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
// -- Additional Options: Find Stores --
|
|
245
|
+
{
|
|
246
|
+
displayName: 'Additional Options',
|
|
247
|
+
name: 'storeOptions',
|
|
248
|
+
type: 'collection',
|
|
249
|
+
placeholder: 'Add Option',
|
|
250
|
+
default: {},
|
|
251
|
+
displayOptions: show(['stores']),
|
|
252
|
+
options: [
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Radius (Miles)',
|
|
255
|
+
name: 'radius',
|
|
256
|
+
type: 'number',
|
|
257
|
+
default: 25,
|
|
258
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
259
|
+
description: 'Search radius in miles, up to 100',
|
|
260
|
+
routing: { request: { body: { radius: '={{ $value }}' } } },
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
displayName: 'UPC',
|
|
264
|
+
name: 'upc',
|
|
265
|
+
type: 'string',
|
|
266
|
+
default: '',
|
|
267
|
+
placeholder: '030772156629',
|
|
268
|
+
description: "Product UPC. When set, every store also carries its unit count of that product.",
|
|
269
|
+
routing: { request: { body: { upc: '={{ $value || undefined }}' } } },
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
];
|
|
274
|
+
//# sourceMappingURL=DollarGeneralDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DollarGeneralDescription.js","sourceRoot":"","sources":["../../../../nodes/Scavio/descriptions/DollarGeneralDescription.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,CAAC,SAAmB,EAAE,QAAkC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE;CAC1D,CAAC,CAAC;AAEH,MAAM,YAAY,GAA2B;IAC5C,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,YAAY,EAAE;IACnD,EAAE,IA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I,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE;gBAC3C,WAAW,EAAE,mCAAmC;gBAChD,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,EAAE;aAC3D;YACD;gBACC,WAAW,EAAE,KAAK;gBAClB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,cAAc;gBAC3B,WAAW,EAAE,iFAAiF;gBAC9F,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,4BAA4B,EAAE,EAAE,EAAE;aACrE;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lowesFields = exports.lowesOperations = void 0;
|
|
4
|
+
exports.lowesOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: { show: { resource: ['lowes'] } },
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Find Stores',
|
|
14
|
+
value: 'stores',
|
|
15
|
+
action: 'Find lowes stores',
|
|
16
|
+
description: "Lowe's stores near a US ZIP code, nearest first: store number, name, address, phone, coordinates, distance, time zone, opening hours and features. Pass a store number and that store's ZIP to Search Products and Get Product. Costs 2 credits.",
|
|
17
|
+
routing: { request: { method: 'POST', url: '/api/v1/lowes/stores' } },
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'Get Product',
|
|
21
|
+
value: 'product',
|
|
22
|
+
action: 'Get a lowes product',
|
|
23
|
+
description: "One Lowe's item at one store: price, was-price and savings, on-hand stock with lead time per fulfillment method, stock at nearby stores, aisle and bay, specifications, UPC, dimensions, rating, images and the store's address and hours. Costs 2 credits.",
|
|
24
|
+
routing: { request: { method: 'POST', url: '/api/v1/lowes/product' } },
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Get Reviews',
|
|
28
|
+
value: 'reviews',
|
|
29
|
+
action: 'Get lowes product reviews',
|
|
30
|
+
description: "One page of an item's customer reviews (10 per page): rating, title, text, date, reviewer, recommended, helpful votes, verified and incentivized flags, photos and brand replies, plus the average rating and count per star. Costs 1 credit.",
|
|
31
|
+
routing: { request: { method: 'POST', url: '/api/v1/lowes/reviews' } },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Search Products',
|
|
35
|
+
value: 'search',
|
|
36
|
+
action: 'Search lowes products',
|
|
37
|
+
description: "Search Lowe's by keyword or category at one store: the store's price, was-price and savings with the sale end date, brand, model number, rating, review count, and stock for pickup, truck delivery, parcel shipping and same-day delivery. Turn on On Sale Only for that store's deals. Costs 2 credits.",
|
|
38
|
+
routing: { request: { method: 'POST', url: '/api/v1/lowes/search' } },
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
default: 'search',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.lowesFields = [
|
|
45
|
+
// -- Search Products --
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Keyword',
|
|
48
|
+
name: 'keyword',
|
|
49
|
+
type: 'string',
|
|
50
|
+
default: '',
|
|
51
|
+
placeholder: 'cordless drill',
|
|
52
|
+
displayOptions: { show: { resource: ['lowes'], operation: ['search'] } },
|
|
53
|
+
routing: { request: { body: { query: '={{ $value || undefined }}' } } },
|
|
54
|
+
description: 'Search keywords. Use this or Category ID.',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Category ID',
|
|
58
|
+
name: 'category_id',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: '',
|
|
61
|
+
placeholder: '4294607842',
|
|
62
|
+
displayOptions: { show: { resource: ['lowes'], operation: ['search'] } },
|
|
63
|
+
routing: { request: { body: { category_id: '={{ $value || undefined }}' } } },
|
|
64
|
+
description: 'The number at the end of a lowes.com/pl/ category URL. Use this or Keyword.',
|
|
65
|
+
},
|
|
66
|
+
// -- Get Product + Get Reviews --
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Item ID',
|
|
69
|
+
name: 'item_id',
|
|
70
|
+
type: 'string',
|
|
71
|
+
required: true,
|
|
72
|
+
default: '',
|
|
73
|
+
placeholder: '5016412045',
|
|
74
|
+
displayOptions: { show: { resource: ['lowes'], operation: ['product', 'reviews'] } },
|
|
75
|
+
routing: { request: { body: { item_id: '={{ $value }}' } } },
|
|
76
|
+
description: "Lowe's item ID (the number at the end of a lowes.com/pd/ URL, or item_id from a search result), or the full product URL",
|
|
77
|
+
},
|
|
78
|
+
// -- Search Products + Get Product: store --
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Store ID',
|
|
81
|
+
name: 'store_id',
|
|
82
|
+
type: 'string',
|
|
83
|
+
required: true,
|
|
84
|
+
default: '',
|
|
85
|
+
placeholder: '0595',
|
|
86
|
+
displayOptions: { show: { resource: ['lowes'], operation: ['search', 'product'] } },
|
|
87
|
+
routing: { request: { body: { store_id: '={{ $value }}' } } },
|
|
88
|
+
description: "Lowe's store number (up to 4 digits) from Find Stores. Prices and stock are that store's.",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
displayName: 'Store ZIP Code',
|
|
92
|
+
name: 'zip',
|
|
93
|
+
type: 'string',
|
|
94
|
+
required: true,
|
|
95
|
+
default: '',
|
|
96
|
+
placeholder: '28117',
|
|
97
|
+
displayOptions: { show: { resource: ['lowes'], operation: ['search', 'product'] } },
|
|
98
|
+
routing: { request: { body: { zip: '={{ $value }}' } } },
|
|
99
|
+
description: "The store's own 5-digit ZIP code, from Find Stores",
|
|
100
|
+
},
|
|
101
|
+
// -- Find Stores --
|
|
102
|
+
{
|
|
103
|
+
displayName: 'ZIP Code',
|
|
104
|
+
name: 'zip',
|
|
105
|
+
type: 'string',
|
|
106
|
+
required: true,
|
|
107
|
+
default: '',
|
|
108
|
+
placeholder: '10001',
|
|
109
|
+
displayOptions: { show: { resource: ['lowes'], operation: ['stores'] } },
|
|
110
|
+
routing: { request: { body: { zip: '={{ $value }}' } } },
|
|
111
|
+
description: '5-digit US ZIP code to find stores near',
|
|
112
|
+
},
|
|
113
|
+
// -- Additional Options: Search Products --
|
|
114
|
+
{
|
|
115
|
+
displayName: 'Additional Options',
|
|
116
|
+
name: 'additionalOptions',
|
|
117
|
+
type: 'collection',
|
|
118
|
+
placeholder: 'Add Option',
|
|
119
|
+
default: {},
|
|
120
|
+
displayOptions: { show: { resource: ['lowes'], operation: ['search'] } },
|
|
121
|
+
options: [
|
|
122
|
+
{
|
|
123
|
+
displayName: 'On Sale Only',
|
|
124
|
+
name: 'on_sale',
|
|
125
|
+
type: 'boolean',
|
|
126
|
+
default: false,
|
|
127
|
+
description: 'Whether to return only items on sale at this store (with a was-price). A page can then hold fewer than 24 results.',
|
|
128
|
+
routing: { request: { body: { on_sale: '={{ $value }}' } } },
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
displayName: 'Page',
|
|
132
|
+
name: 'page',
|
|
133
|
+
type: 'number',
|
|
134
|
+
default: 1,
|
|
135
|
+
typeOptions: { minValue: 1, maxValue: 31 },
|
|
136
|
+
description: 'Results page, 24 results per page, up to page 31',
|
|
137
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
// -- Additional Options: Find Stores --
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Additional Options',
|
|
144
|
+
name: 'storeOptions',
|
|
145
|
+
type: 'collection',
|
|
146
|
+
placeholder: 'Add Option',
|
|
147
|
+
default: {},
|
|
148
|
+
displayOptions: { show: { resource: ['lowes'], operation: ['stores'] } },
|
|
149
|
+
options: [
|
|
150
|
+
{
|
|
151
|
+
displayName: 'Max Stores',
|
|
152
|
+
name: 'maxStores',
|
|
153
|
+
type: 'number',
|
|
154
|
+
default: 10,
|
|
155
|
+
typeOptions: { minValue: 1, maxValue: 10 },
|
|
156
|
+
description: 'Stores to return, nearest first, 1-10. The API sends 10 when unset.',
|
|
157
|
+
routing: { request: { body: { limit: '={{ $value }}' } } },
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
// -- Additional Options: Get Reviews --
|
|
162
|
+
{
|
|
163
|
+
displayName: 'Additional Options',
|
|
164
|
+
name: 'reviewOptions',
|
|
165
|
+
type: 'collection',
|
|
166
|
+
placeholder: 'Add Option',
|
|
167
|
+
default: {},
|
|
168
|
+
displayOptions: { show: { resource: ['lowes'], operation: ['reviews'] } },
|
|
169
|
+
options: [
|
|
170
|
+
{
|
|
171
|
+
displayName: 'Page',
|
|
172
|
+
name: 'page',
|
|
173
|
+
type: 'number',
|
|
174
|
+
default: 1,
|
|
175
|
+
typeOptions: { minValue: 1, maxValue: 1000 },
|
|
176
|
+
description: 'Reviews page, 10 reviews per page',
|
|
177
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
displayName: 'Sort By',
|
|
181
|
+
name: 'sort',
|
|
182
|
+
type: 'options',
|
|
183
|
+
default: 'newest',
|
|
184
|
+
options: [
|
|
185
|
+
{ name: 'Most Helpful', value: 'most_helpful' },
|
|
186
|
+
{ name: 'Newest', value: 'newest' },
|
|
187
|
+
{ name: 'Oldest', value: 'oldest' },
|
|
188
|
+
],
|
|
189
|
+
description: 'Review order',
|
|
190
|
+
routing: { request: { body: { sort: '={{ $value }}' } } },
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
];
|
|
195
|
+
//# sourceMappingURL=LowesDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LowesDescription.js","sourceRoot":"","sources":["../../../../nodes/Scavio/descriptions/LowesDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;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,OAAO,CAAC,EAAE,EAAE;QACjD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EACV,kPAAkP;gBACnP,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,sBAAsB,EAAE,EAAE;aACrE;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,qBAAqB;gBAC7B,WAAW,EACV,6PAA6P;gBAC9P,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,uBAAuB,EAAE,EAAE;aACtE;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,2BAA2B;gBACnC,WAAW,EACV,+OAA+O;gBAChP,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,uBAAuB,EAAE,EAAE;aACtE;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EACV,2SAA2S;gBAC5S,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,sBAAsB,EAAE,EAAE;aACrE;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,WA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AAE,EAAE;aACzD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.samsClubFields = exports.samsClubOperations = void 0;
|
|
4
|
+
const show = (operation) => ({ show: { resource: ['samsClub'], operation } });
|
|
5
|
+
const SORT_OPTIONS = [
|
|
6
|
+
{ name: 'Price: High to Low', value: 'price_high' },
|
|
7
|
+
{ name: 'Price: Low to High', value: 'price_low' },
|
|
8
|
+
{ name: 'Relevance', value: 'relevance' },
|
|
9
|
+
{ name: 'Top Selling', value: 'top_selling' },
|
|
10
|
+
];
|
|
11
|
+
function listingOptions(operation, pageDescription) {
|
|
12
|
+
return {
|
|
13
|
+
displayName: 'Additional Options',
|
|
14
|
+
name: 'additionalOptions',
|
|
15
|
+
type: 'collection',
|
|
16
|
+
placeholder: 'Add Option',
|
|
17
|
+
default: {},
|
|
18
|
+
displayOptions: show([operation]),
|
|
19
|
+
options: [
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Page',
|
|
22
|
+
name: 'page',
|
|
23
|
+
type: 'number',
|
|
24
|
+
default: 1,
|
|
25
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
26
|
+
description: pageDescription,
|
|
27
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Sort By',
|
|
31
|
+
name: 'sort',
|
|
32
|
+
type: 'options',
|
|
33
|
+
default: 'relevance',
|
|
34
|
+
options: SORT_OPTIONS,
|
|
35
|
+
description: "Result order. Leave unset for the site's own order.",
|
|
36
|
+
routing: { request: { body: { sort: '={{ $value }}' } } },
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.samsClubOperations = [
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Operation',
|
|
44
|
+
name: 'operation',
|
|
45
|
+
type: 'options',
|
|
46
|
+
noDataExpression: true,
|
|
47
|
+
displayOptions: { show: { resource: ['samsClub'] } },
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
name: 'Find Clubs',
|
|
51
|
+
value: 'clubs',
|
|
52
|
+
action: 'Find sams club clubs',
|
|
53
|
+
description: "Sam's Club clubs near a US ZIP code, nearest first, within 100 miles: club ID, name, address, coordinates, distance, phone, opening hours, services and whether the club is temporarily closed. Use the club ID on Get Product. Costs 1 credit.",
|
|
54
|
+
routing: { request: { method: 'POST', url: '/api/v1/samsclub/clubs' } },
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Get Category Products',
|
|
58
|
+
value: 'category',
|
|
59
|
+
action: 'Get sams club category products',
|
|
60
|
+
description: "Products in a Sam's Club category, paged, with the same fields as Search Products. Clearance is category 1150109. Prices and stock are for a nearby club chosen by location, returned in club. Costs 1 credit.",
|
|
61
|
+
routing: { request: { method: 'POST', url: '/api/v1/samsclub/category' } },
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Get Instant Savings',
|
|
65
|
+
value: 'savings',
|
|
66
|
+
action: 'Get sams club instant savings',
|
|
67
|
+
description: "Every item on Sam's Club Instant Savings, paged: price, was price and savings amount, plus each offer's amount, end date, purchase limit and the channels it applies to. Prices are for a nearby club chosen by location, returned in club. Costs 1 credit.",
|
|
68
|
+
routing: { request: { method: 'POST', url: '/api/v1/samsclub/savings' } },
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Get Product',
|
|
72
|
+
value: 'product',
|
|
73
|
+
action: 'Get a sams club product',
|
|
74
|
+
description: "One Sam's Club item: online price and club shelf price (club_price), was price, savings, unit price, Instant Savings, rating histogram, images, UPC, specifications and fulfillment per method with stock and aisle. Set a Club ID to price and stock one club. available_quantity is capped at 8 (8 means 8 or more). Costs 1 credit.",
|
|
75
|
+
routing: { request: { method: 'POST', url: '/api/v1/samsclub/product' } },
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Get Reviews',
|
|
79
|
+
value: 'reviews',
|
|
80
|
+
action: 'Get sams club product reviews',
|
|
81
|
+
description: "Customer reviews for a Sam's Club item, 10 per page: rating, title, text, author, date, verified purchase and helpful votes, plus the average rating, total count and 1-5 star breakdown. Costs 1 credit.",
|
|
82
|
+
routing: { request: { method: 'POST', url: '/api/v1/samsclub/reviews' } },
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'Search Products',
|
|
86
|
+
value: 'search',
|
|
87
|
+
action: 'Search sams club products',
|
|
88
|
+
description: "Search Sam's Club: item ID, price, was price and savings, unit price, Instant Savings (amount, end date, limit), rating, review count, stock, pickup, delivery and shipping availability and aisle. Prices and stock are for a nearby club chosen by location, returned in club. Costs 1 credit.",
|
|
89
|
+
routing: { request: { method: 'POST', url: '/api/v1/samsclub/search' } },
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
default: 'search',
|
|
93
|
+
},
|
|
94
|
+
];
|
|
95
|
+
exports.samsClubFields = [
|
|
96
|
+
// -- Search Products --
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Keyword',
|
|
99
|
+
name: 'keyword',
|
|
100
|
+
type: 'string',
|
|
101
|
+
required: true,
|
|
102
|
+
default: '',
|
|
103
|
+
placeholder: 'paper towels',
|
|
104
|
+
displayOptions: show(['search']),
|
|
105
|
+
routing: { request: { body: { query: '={{ $value }}' } } },
|
|
106
|
+
description: 'Product search keyword',
|
|
107
|
+
},
|
|
108
|
+
// -- Get Product + Get Reviews --
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Item ID',
|
|
111
|
+
name: 'item_id',
|
|
112
|
+
type: 'string',
|
|
113
|
+
required: true,
|
|
114
|
+
default: '',
|
|
115
|
+
placeholder: '15325822107',
|
|
116
|
+
displayOptions: show(['product', 'reviews']),
|
|
117
|
+
routing: { request: { body: { item_id: '={{ $value }}' } } },
|
|
118
|
+
description: "Sam's Club item ID: the number at the end of a samsclub.com/ip/ URL, or item_id from a search result",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
displayName: 'Club ID',
|
|
122
|
+
name: 'club_id',
|
|
123
|
+
type: 'string',
|
|
124
|
+
default: '',
|
|
125
|
+
placeholder: '6372',
|
|
126
|
+
displayOptions: show(['product']),
|
|
127
|
+
routing: { request: { body: { club_id: '={{ $value || undefined }}' } } },
|
|
128
|
+
description: "Optional club number from Find Clubs. When set, club_price, in-club stock and aisle are that club's.",
|
|
129
|
+
},
|
|
130
|
+
// -- Find Clubs --
|
|
131
|
+
{
|
|
132
|
+
displayName: 'ZIP Code',
|
|
133
|
+
name: 'zip',
|
|
134
|
+
type: 'string',
|
|
135
|
+
required: true,
|
|
136
|
+
default: '',
|
|
137
|
+
placeholder: '75201',
|
|
138
|
+
displayOptions: show(['clubs']),
|
|
139
|
+
routing: { request: { body: { zip: '={{ $value }}' } } },
|
|
140
|
+
description: '5-digit US ZIP code',
|
|
141
|
+
},
|
|
142
|
+
// -- Get Category Products --
|
|
143
|
+
{
|
|
144
|
+
displayName: 'Category ID',
|
|
145
|
+
name: 'category_id',
|
|
146
|
+
type: 'string',
|
|
147
|
+
required: true,
|
|
148
|
+
default: '',
|
|
149
|
+
placeholder: '1150109',
|
|
150
|
+
displayOptions: show(['category']),
|
|
151
|
+
routing: { request: { body: { category_id: '={{ $value }}' } } },
|
|
152
|
+
description: 'The number at the end of a samsclub.com /browse/ or /cp/ URL. Clearance is 1150109.',
|
|
153
|
+
},
|
|
154
|
+
// -- Additional Options --
|
|
155
|
+
listingOptions('search', 'Results page, up to 45 results per page'),
|
|
156
|
+
listingOptions('savings', 'Results page, up to 45 items per page'),
|
|
157
|
+
listingOptions('category', 'Results page'),
|
|
158
|
+
{
|
|
159
|
+
displayName: 'Additional Options',
|
|
160
|
+
name: 'clubOptions',
|
|
161
|
+
type: 'collection',
|
|
162
|
+
placeholder: 'Add Option',
|
|
163
|
+
default: {},
|
|
164
|
+
displayOptions: show(['clubs']),
|
|
165
|
+
options: [
|
|
166
|
+
{
|
|
167
|
+
displayName: 'Max Clubs',
|
|
168
|
+
name: 'maxClubs',
|
|
169
|
+
type: 'number',
|
|
170
|
+
default: 10,
|
|
171
|
+
typeOptions: { minValue: 1, maxValue: 20 },
|
|
172
|
+
description: 'Clubs to return, nearest first, 1-20. The API sends 10 when unset.',
|
|
173
|
+
routing: { request: { body: { limit: '={{ $value }}' } } },
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
displayName: 'Additional Options',
|
|
179
|
+
name: 'reviewOptions',
|
|
180
|
+
type: 'collection',
|
|
181
|
+
placeholder: 'Add Option',
|
|
182
|
+
default: {},
|
|
183
|
+
displayOptions: show(['reviews']),
|
|
184
|
+
options: [
|
|
185
|
+
{
|
|
186
|
+
displayName: 'Page',
|
|
187
|
+
name: 'page',
|
|
188
|
+
type: 'number',
|
|
189
|
+
default: 1,
|
|
190
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
191
|
+
description: 'Reviews page, 10 reviews per page',
|
|
192
|
+
routing: { request: { body: { page: '={{ $value }}' } } },
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
displayName: 'Sort By',
|
|
196
|
+
name: 'sort',
|
|
197
|
+
type: 'options',
|
|
198
|
+
default: 'newest',
|
|
199
|
+
options: [
|
|
200
|
+
{ name: 'Highest Rating', value: 'highest' },
|
|
201
|
+
{ name: 'Lowest Rating', value: 'lowest' },
|
|
202
|
+
{ name: 'Most Helpful', value: 'most_helpful' },
|
|
203
|
+
{ name: 'Newest', value: 'newest' },
|
|
204
|
+
{ name: 'Oldest', value: 'oldest' },
|
|
205
|
+
],
|
|
206
|
+
description: 'Review order',
|
|
207
|
+
routing: { request: { body: { sort: '={{ $value }}' } } },
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
];
|
|
212
|
+
//# sourceMappingURL=SamsClubDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SamsClubDescription.js","sourceRoot":"","sources":["../../../../nodes/Scavio/descriptions/SamsClubDescription.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,CAAC,SAAmB,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;AAExF,MAAM,YAAY,GAA2B;IAC5C,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,YAAY,EAAE;IACnD,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,WAAW,EAAE;IAClD,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;IACzC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;CAC7C,CAAC;AAEF,SAAS,cAAc,CAAC,SAAiB,EAAE,eAAuB;IACjE,OAAO;QACN,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;QACjC,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE;gBAC3C,WAAW,EAAE,eAAe;gBAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE;aACzD;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,WAAW;gBACpB,OAAO,EAAE,YAAY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,KAAK,EAAE,cAAc,EAAE;oBAC/C,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;iBACnC;gBACD,WAAW,EAAE,cAAc;gBAC3B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE;aACzD;SACD;KACD;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const NODE_PACKAGE_VERSION = "0.
|
|
1
|
+
export declare const NODE_PACKAGE_VERSION = "0.29.0";
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NODE_PACKAGE_VERSION = void 0;
|
|
4
4
|
// Generated by scripts/gen-version.js from package.json. Do not edit.
|
|
5
|
-
exports.NODE_PACKAGE_VERSION = '0.
|
|
5
|
+
exports.NODE_PACKAGE_VERSION = '0.29.0';
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-scavio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "n8n community node for Scavio — real-time structured JSON from Google, ChatGPT, Gemini, Amazon, Walmart, eBay, Target, Home Depot, Costco, Mercado Libre, YouTube, Reddit, TikTok, Instagram, X, LinkedIn, Threads, Kuaishou, Zillow, Redfin, Realtor.com, Rightmove, Booking.com, Airbnb, Tripadvisor, Yelp, Indeed, Glassdoor, App Store, Google Play, SEC EDGAR, Companies House, G2, Capterra, Trustpilot, ad libraries, any URL, and whole websites (map, crawl, batch extract).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|