scavio 0.29.1 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +5 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -59
- package/dist/index.d.ts +4 -59
- package/dist/index.js +5 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3562,7 +3562,7 @@ declare class GlassdoorNamespace {
|
|
|
3562
3562
|
* only inside Glassdoor's /Overview/ URLs, so this lookup is the entry
|
|
3563
3563
|
* point.
|
|
3564
3564
|
*
|
|
3565
|
-
* Costs
|
|
3565
|
+
* Costs 2 credits. Single response, no pagination.
|
|
3566
3566
|
*/
|
|
3567
3567
|
companies(options: GlassdoorCompaniesOptions): Promise<Record<string, unknown>>;
|
|
3568
3568
|
/**
|
|
@@ -3575,7 +3575,7 @@ declare class GlassdoorNamespace {
|
|
|
3575
3575
|
* reviews() and salaries() to halve the lookups. `employer_id` or
|
|
3576
3576
|
* `url` is required - `company` is cosmetic and does not satisfy it.
|
|
3577
3577
|
*
|
|
3578
|
-
* Costs
|
|
3578
|
+
* Costs 2 credits. Single response, no pagination. Typically a few seconds.
|
|
3579
3579
|
*/
|
|
3580
3580
|
company(options: GlassdoorCompanyOptions): Promise<Record<string, unknown>>;
|
|
3581
3581
|
/**
|
|
@@ -3590,7 +3590,7 @@ declare class GlassdoorNamespace {
|
|
|
3590
3590
|
* filtered_review_count to see how many match; the aggregate statistics are
|
|
3591
3591
|
* the full-population signal here, not the bodies.
|
|
3592
3592
|
*
|
|
3593
|
-
* `employer_id` or `url` is required. Costs
|
|
3593
|
+
* `employer_id` or `url` is required. Costs 2 credits. Typically a few seconds.
|
|
3594
3594
|
*/
|
|
3595
3595
|
reviews(options: GlassdoorReviewsOptions): Promise<Record<string, unknown>>;
|
|
3596
3596
|
/**
|
|
@@ -3602,7 +3602,7 @@ declare class GlassdoorNamespace {
|
|
|
3602
3602
|
* salaries. Paged with `page` at 10 job titles per page; `page_count` on the
|
|
3603
3603
|
* response is how many pages exist.
|
|
3604
3604
|
*
|
|
3605
|
-
* `employer_id` or `url` is required. Costs
|
|
3605
|
+
* `employer_id` or `url` is required. Costs 2 credits. Typically a few seconds.
|
|
3606
3606
|
*/
|
|
3607
3607
|
salaries(options: GlassdoorSalariesOptions): Promise<Record<string, unknown>>;
|
|
3608
3608
|
}
|
|
@@ -5027,60 +5027,6 @@ declare class DecathlonNamespace {
|
|
|
5027
5027
|
product(options: DecathlonProductOptions): Promise<Record<string, unknown>>;
|
|
5028
5028
|
}
|
|
5029
5029
|
|
|
5030
|
-
interface TotalWineSearchOptions {
|
|
5031
|
-
/** Search keywords (1-200 characters). */
|
|
5032
|
-
query: string;
|
|
5033
|
-
/** Total Wine store number from stores(), e.g. "503". */
|
|
5034
|
-
store_id: string;
|
|
5035
|
-
/** Results page, 1-based (1-50). 24 results per page. */
|
|
5036
|
-
page?: number;
|
|
5037
|
-
[key: string]: unknown;
|
|
5038
|
-
}
|
|
5039
|
-
interface TotalWineProductOptions {
|
|
5040
|
-
/** Numeric product id from search() or the URL's /p/<id>, e.g. "96260175". */
|
|
5041
|
-
product_id?: string;
|
|
5042
|
-
/** Total Wine product URL ending in /p/<id>. */
|
|
5043
|
-
product_url?: string;
|
|
5044
|
-
/** Total Wine store number from stores(), e.g. "503". */
|
|
5045
|
-
store_id: string;
|
|
5046
|
-
[key: string]: unknown;
|
|
5047
|
-
}
|
|
5048
|
-
interface TotalWineStoresOptions {
|
|
5049
|
-
/** ZIP code, city, or "city, state", e.g. "78801". */
|
|
5050
|
-
query: string;
|
|
5051
|
-
/** Radius in miles (1-200). Defaults to 50. */
|
|
5052
|
-
radius?: number;
|
|
5053
|
-
[key: string]: unknown;
|
|
5054
|
-
}
|
|
5055
|
-
declare class TotalWineNamespace {
|
|
5056
|
-
private client;
|
|
5057
|
-
constructor(client: Scavio);
|
|
5058
|
-
/**
|
|
5059
|
-
* Search Total Wine at one store: that store's price (cents), units in
|
|
5060
|
-
* stock, purchase limit, aisle, size, rating and pickup/delivery/shipping
|
|
5061
|
-
* availability. When the store carries none of the matches, products is
|
|
5062
|
-
* empty and searched_all_stores is true.
|
|
5063
|
-
*
|
|
5064
|
-
* Costs 10 credits.
|
|
5065
|
-
*/
|
|
5066
|
-
search(options: TotalWineSearchOptions): Promise<Record<string, unknown>>;
|
|
5067
|
-
/**
|
|
5068
|
-
* One Total Wine product at one store: price (cents), units in stock, aisle,
|
|
5069
|
-
* bay, shelf, last restock date, ABV, taste profile, characteristics and
|
|
5070
|
-
* breadcrumbs. Pass product_id or product_url.
|
|
5071
|
-
*
|
|
5072
|
-
* Costs 10 credits.
|
|
5073
|
-
*/
|
|
5074
|
-
product(options: TotalWineProductOptions): Promise<Record<string, unknown>>;
|
|
5075
|
-
/**
|
|
5076
|
-
* Total Wine stores near a ZIP code or city, nearest first: store_id,
|
|
5077
|
-
* address, phone, coordinates, distance in miles and delivery availability.
|
|
5078
|
-
*
|
|
5079
|
-
* Costs 10 credits.
|
|
5080
|
-
*/
|
|
5081
|
-
stores(options: TotalWineStoresOptions): Promise<Record<string, unknown>>;
|
|
5082
|
-
}
|
|
5083
|
-
|
|
5084
5030
|
type SpecsRegion = "austin" | "corpus-christi" | "dallas" | "el-paso" | "fort-worth" | "houston" | "san-antonio";
|
|
5085
5031
|
interface SpecsSearchOptions {
|
|
5086
5032
|
/** Search keywords (1-200 characters). */
|
|
@@ -6250,7 +6196,6 @@ declare class Scavio extends ScavioCore {
|
|
|
6250
6196
|
readonly heb: HebNamespace;
|
|
6251
6197
|
readonly kroger: KrogerNamespace;
|
|
6252
6198
|
readonly decathlon: DecathlonNamespace;
|
|
6253
|
-
readonly totalwine: TotalWineNamespace;
|
|
6254
6199
|
readonly specs: SpecsNamespace;
|
|
6255
6200
|
readonly trustpilot: TrustpilotNamespace;
|
|
6256
6201
|
readonly chatgpt: ChatgptNamespace;
|
package/dist/index.d.ts
CHANGED
|
@@ -3562,7 +3562,7 @@ declare class GlassdoorNamespace {
|
|
|
3562
3562
|
* only inside Glassdoor's /Overview/ URLs, so this lookup is the entry
|
|
3563
3563
|
* point.
|
|
3564
3564
|
*
|
|
3565
|
-
* Costs
|
|
3565
|
+
* Costs 2 credits. Single response, no pagination.
|
|
3566
3566
|
*/
|
|
3567
3567
|
companies(options: GlassdoorCompaniesOptions): Promise<Record<string, unknown>>;
|
|
3568
3568
|
/**
|
|
@@ -3575,7 +3575,7 @@ declare class GlassdoorNamespace {
|
|
|
3575
3575
|
* reviews() and salaries() to halve the lookups. `employer_id` or
|
|
3576
3576
|
* `url` is required - `company` is cosmetic and does not satisfy it.
|
|
3577
3577
|
*
|
|
3578
|
-
* Costs
|
|
3578
|
+
* Costs 2 credits. Single response, no pagination. Typically a few seconds.
|
|
3579
3579
|
*/
|
|
3580
3580
|
company(options: GlassdoorCompanyOptions): Promise<Record<string, unknown>>;
|
|
3581
3581
|
/**
|
|
@@ -3590,7 +3590,7 @@ declare class GlassdoorNamespace {
|
|
|
3590
3590
|
* filtered_review_count to see how many match; the aggregate statistics are
|
|
3591
3591
|
* the full-population signal here, not the bodies.
|
|
3592
3592
|
*
|
|
3593
|
-
* `employer_id` or `url` is required. Costs
|
|
3593
|
+
* `employer_id` or `url` is required. Costs 2 credits. Typically a few seconds.
|
|
3594
3594
|
*/
|
|
3595
3595
|
reviews(options: GlassdoorReviewsOptions): Promise<Record<string, unknown>>;
|
|
3596
3596
|
/**
|
|
@@ -3602,7 +3602,7 @@ declare class GlassdoorNamespace {
|
|
|
3602
3602
|
* salaries. Paged with `page` at 10 job titles per page; `page_count` on the
|
|
3603
3603
|
* response is how many pages exist.
|
|
3604
3604
|
*
|
|
3605
|
-
* `employer_id` or `url` is required. Costs
|
|
3605
|
+
* `employer_id` or `url` is required. Costs 2 credits. Typically a few seconds.
|
|
3606
3606
|
*/
|
|
3607
3607
|
salaries(options: GlassdoorSalariesOptions): Promise<Record<string, unknown>>;
|
|
3608
3608
|
}
|
|
@@ -5027,60 +5027,6 @@ declare class DecathlonNamespace {
|
|
|
5027
5027
|
product(options: DecathlonProductOptions): Promise<Record<string, unknown>>;
|
|
5028
5028
|
}
|
|
5029
5029
|
|
|
5030
|
-
interface TotalWineSearchOptions {
|
|
5031
|
-
/** Search keywords (1-200 characters). */
|
|
5032
|
-
query: string;
|
|
5033
|
-
/** Total Wine store number from stores(), e.g. "503". */
|
|
5034
|
-
store_id: string;
|
|
5035
|
-
/** Results page, 1-based (1-50). 24 results per page. */
|
|
5036
|
-
page?: number;
|
|
5037
|
-
[key: string]: unknown;
|
|
5038
|
-
}
|
|
5039
|
-
interface TotalWineProductOptions {
|
|
5040
|
-
/** Numeric product id from search() or the URL's /p/<id>, e.g. "96260175". */
|
|
5041
|
-
product_id?: string;
|
|
5042
|
-
/** Total Wine product URL ending in /p/<id>. */
|
|
5043
|
-
product_url?: string;
|
|
5044
|
-
/** Total Wine store number from stores(), e.g. "503". */
|
|
5045
|
-
store_id: string;
|
|
5046
|
-
[key: string]: unknown;
|
|
5047
|
-
}
|
|
5048
|
-
interface TotalWineStoresOptions {
|
|
5049
|
-
/** ZIP code, city, or "city, state", e.g. "78801". */
|
|
5050
|
-
query: string;
|
|
5051
|
-
/** Radius in miles (1-200). Defaults to 50. */
|
|
5052
|
-
radius?: number;
|
|
5053
|
-
[key: string]: unknown;
|
|
5054
|
-
}
|
|
5055
|
-
declare class TotalWineNamespace {
|
|
5056
|
-
private client;
|
|
5057
|
-
constructor(client: Scavio);
|
|
5058
|
-
/**
|
|
5059
|
-
* Search Total Wine at one store: that store's price (cents), units in
|
|
5060
|
-
* stock, purchase limit, aisle, size, rating and pickup/delivery/shipping
|
|
5061
|
-
* availability. When the store carries none of the matches, products is
|
|
5062
|
-
* empty and searched_all_stores is true.
|
|
5063
|
-
*
|
|
5064
|
-
* Costs 10 credits.
|
|
5065
|
-
*/
|
|
5066
|
-
search(options: TotalWineSearchOptions): Promise<Record<string, unknown>>;
|
|
5067
|
-
/**
|
|
5068
|
-
* One Total Wine product at one store: price (cents), units in stock, aisle,
|
|
5069
|
-
* bay, shelf, last restock date, ABV, taste profile, characteristics and
|
|
5070
|
-
* breadcrumbs. Pass product_id or product_url.
|
|
5071
|
-
*
|
|
5072
|
-
* Costs 10 credits.
|
|
5073
|
-
*/
|
|
5074
|
-
product(options: TotalWineProductOptions): Promise<Record<string, unknown>>;
|
|
5075
|
-
/**
|
|
5076
|
-
* Total Wine stores near a ZIP code or city, nearest first: store_id,
|
|
5077
|
-
* address, phone, coordinates, distance in miles and delivery availability.
|
|
5078
|
-
*
|
|
5079
|
-
* Costs 10 credits.
|
|
5080
|
-
*/
|
|
5081
|
-
stores(options: TotalWineStoresOptions): Promise<Record<string, unknown>>;
|
|
5082
|
-
}
|
|
5083
|
-
|
|
5084
5030
|
type SpecsRegion = "austin" | "corpus-christi" | "dallas" | "el-paso" | "fort-worth" | "houston" | "san-antonio";
|
|
5085
5031
|
interface SpecsSearchOptions {
|
|
5086
5032
|
/** Search keywords (1-200 characters). */
|
|
@@ -6250,7 +6196,6 @@ declare class Scavio extends ScavioCore {
|
|
|
6250
6196
|
readonly heb: HebNamespace;
|
|
6251
6197
|
readonly kroger: KrogerNamespace;
|
|
6252
6198
|
readonly decathlon: DecathlonNamespace;
|
|
6253
|
-
readonly totalwine: TotalWineNamespace;
|
|
6254
6199
|
readonly specs: SpecsNamespace;
|
|
6255
6200
|
readonly trustpilot: TrustpilotNamespace;
|
|
6256
6201
|
readonly chatgpt: ChatgptNamespace;
|
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ function parseRetryAfter(header) {
|
|
|
145
145
|
var BASE_URL = "https://api.scavio.dev";
|
|
146
146
|
var DEFAULT_TIMEOUT = 3e4;
|
|
147
147
|
var DEFAULT_MAX_RETRIES = 2;
|
|
148
|
-
var SDK_VERSION = true ? "0.
|
|
148
|
+
var SDK_VERSION = true ? "0.30.1" : "0.0.0";
|
|
149
149
|
var USER_AGENT = `scavio-js/${SDK_VERSION}`;
|
|
150
150
|
function isServerRuntime() {
|
|
151
151
|
const g = globalThis;
|
|
@@ -1945,7 +1945,7 @@ var GlassdoorNamespace = class {
|
|
|
1945
1945
|
* only inside Glassdoor's /Overview/ URLs, so this lookup is the entry
|
|
1946
1946
|
* point.
|
|
1947
1947
|
*
|
|
1948
|
-
* Costs
|
|
1948
|
+
* Costs 2 credits. Single response, no pagination.
|
|
1949
1949
|
*/
|
|
1950
1950
|
async companies(options) {
|
|
1951
1951
|
return this.client._post("/api/v1/glassdoor/companies", options);
|
|
@@ -1960,7 +1960,7 @@ var GlassdoorNamespace = class {
|
|
|
1960
1960
|
* reviews() and salaries() to halve the lookups. `employer_id` or
|
|
1961
1961
|
* `url` is required - `company` is cosmetic and does not satisfy it.
|
|
1962
1962
|
*
|
|
1963
|
-
* Costs
|
|
1963
|
+
* Costs 2 credits. Single response, no pagination. Typically a few seconds.
|
|
1964
1964
|
*/
|
|
1965
1965
|
async company(options) {
|
|
1966
1966
|
return this.client._post("/api/v1/glassdoor/company", options);
|
|
@@ -1977,7 +1977,7 @@ var GlassdoorNamespace = class {
|
|
|
1977
1977
|
* filtered_review_count to see how many match; the aggregate statistics are
|
|
1978
1978
|
* the full-population signal here, not the bodies.
|
|
1979
1979
|
*
|
|
1980
|
-
* `employer_id` or `url` is required. Costs
|
|
1980
|
+
* `employer_id` or `url` is required. Costs 2 credits. Typically a few seconds.
|
|
1981
1981
|
*/
|
|
1982
1982
|
async reviews(options) {
|
|
1983
1983
|
return this.client._post("/api/v1/glassdoor/reviews", options);
|
|
@@ -1991,7 +1991,7 @@ var GlassdoorNamespace = class {
|
|
|
1991
1991
|
* salaries. Paged with `page` at 10 job titles per page; `page_count` on the
|
|
1992
1992
|
* response is how many pages exist.
|
|
1993
1993
|
*
|
|
1994
|
-
* `employer_id` or `url` is required. Costs
|
|
1994
|
+
* `employer_id` or `url` is required. Costs 2 credits. Typically a few seconds.
|
|
1995
1995
|
*/
|
|
1996
1996
|
async salaries(options) {
|
|
1997
1997
|
return this.client._post("/api/v1/glassdoor/salaries", options);
|
|
@@ -2763,44 +2763,6 @@ var DecathlonNamespace = class {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
};
|
|
2765
2765
|
|
|
2766
|
-
// src/namespaces/totalwine.ts
|
|
2767
|
-
var TotalWineNamespace = class {
|
|
2768
|
-
constructor(client) {
|
|
2769
|
-
this.client = client;
|
|
2770
|
-
}
|
|
2771
|
-
client;
|
|
2772
|
-
/**
|
|
2773
|
-
* Search Total Wine at one store: that store's price (cents), units in
|
|
2774
|
-
* stock, purchase limit, aisle, size, rating and pickup/delivery/shipping
|
|
2775
|
-
* availability. When the store carries none of the matches, products is
|
|
2776
|
-
* empty and searched_all_stores is true.
|
|
2777
|
-
*
|
|
2778
|
-
* Costs 10 credits.
|
|
2779
|
-
*/
|
|
2780
|
-
async search(options) {
|
|
2781
|
-
return this.client._post("/api/v1/totalwine/search", options);
|
|
2782
|
-
}
|
|
2783
|
-
/**
|
|
2784
|
-
* One Total Wine product at one store: price (cents), units in stock, aisle,
|
|
2785
|
-
* bay, shelf, last restock date, ABV, taste profile, characteristics and
|
|
2786
|
-
* breadcrumbs. Pass product_id or product_url.
|
|
2787
|
-
*
|
|
2788
|
-
* Costs 10 credits.
|
|
2789
|
-
*/
|
|
2790
|
-
async product(options) {
|
|
2791
|
-
return this.client._post("/api/v1/totalwine/product", options);
|
|
2792
|
-
}
|
|
2793
|
-
/**
|
|
2794
|
-
* Total Wine stores near a ZIP code or city, nearest first: store_id,
|
|
2795
|
-
* address, phone, coordinates, distance in miles and delivery availability.
|
|
2796
|
-
*
|
|
2797
|
-
* Costs 10 credits.
|
|
2798
|
-
*/
|
|
2799
|
-
async stores(options) {
|
|
2800
|
-
return this.client._post("/api/v1/totalwine/stores", options);
|
|
2801
|
-
}
|
|
2802
|
-
};
|
|
2803
|
-
|
|
2804
2766
|
// src/namespaces/specs.ts
|
|
2805
2767
|
var SpecsNamespace = class {
|
|
2806
2768
|
constructor(client) {
|
|
@@ -3351,7 +3313,6 @@ var Scavio = class extends ScavioCore {
|
|
|
3351
3313
|
heb;
|
|
3352
3314
|
kroger;
|
|
3353
3315
|
decathlon;
|
|
3354
|
-
totalwine;
|
|
3355
3316
|
specs;
|
|
3356
3317
|
trustpilot;
|
|
3357
3318
|
chatgpt;
|
|
@@ -3415,7 +3376,6 @@ var Scavio = class extends ScavioCore {
|
|
|
3415
3376
|
this.heb = new HebNamespace(this);
|
|
3416
3377
|
this.kroger = new KrogerNamespace(this);
|
|
3417
3378
|
this.decathlon = new DecathlonNamespace(this);
|
|
3418
|
-
this.totalwine = new TotalWineNamespace(this);
|
|
3419
3379
|
this.specs = new SpecsNamespace(this);
|
|
3420
3380
|
this.trustpilot = new TrustpilotNamespace(this);
|
|
3421
3381
|
this.chatgpt = new ChatgptNamespace(this);
|