scavio 0.26.2 → 0.26.4
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 +12 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -5
- package/dist/index.d.ts +14 -5
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -76,7 +76,11 @@ interface GoogleSearchOptions {
|
|
|
76
76
|
gl?: string;
|
|
77
77
|
/** Regional Google domain (e.g. 'google.co.uk'). */
|
|
78
78
|
google_domain?: string;
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Canonical location name; auto-encoded to a UULE string. On the standard
|
|
81
|
+
* results page it currently localizes the local pack only; set web_only for
|
|
82
|
+
* organic results localized to this location.
|
|
83
|
+
*/
|
|
80
84
|
location?: string;
|
|
81
85
|
/** Pre-encoded UULE location string (takes priority over location). */
|
|
82
86
|
uule?: string;
|
|
@@ -94,6 +98,11 @@ interface GoogleSearchOptions {
|
|
|
94
98
|
time_period?: "last_hour" | "last_day" | "last_week" | "last_month" | "last_year";
|
|
95
99
|
/** Resolve a deferred AI Overview (server default true). */
|
|
96
100
|
resolve_ai_overview?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Return Google's Web results only: organic results localized to location,
|
|
103
|
+
* with no local pack, ads, related questions, knowledge graph or AI Overview.
|
|
104
|
+
*/
|
|
105
|
+
web_only?: boolean;
|
|
97
106
|
[key: string]: unknown;
|
|
98
107
|
}
|
|
99
108
|
interface GoogleAiModeOptions {
|
|
@@ -4743,14 +4752,14 @@ declare class CostcoNamespace {
|
|
|
4743
4752
|
* `warehouse_id` to add that warehouse's in-store price and stock to every
|
|
4744
4753
|
* result.
|
|
4745
4754
|
*
|
|
4746
|
-
* Costs 1
|
|
4755
|
+
* Costs 2 credits for the US, 1 elsewhere.
|
|
4747
4756
|
*/
|
|
4748
4757
|
search(options: CostcoSearchOptions): Promise<Record<string, unknown>>;
|
|
4749
4758
|
/**
|
|
4750
4759
|
* Products in a Costco category, with the same sort, filters and
|
|
4751
4760
|
* per-warehouse pricing as search().
|
|
4752
4761
|
*
|
|
4753
|
-
* Costs 1
|
|
4762
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
4754
4763
|
*/
|
|
4755
4764
|
category(options: CostcoCategoryOptions): Promise<Record<string, unknown>>;
|
|
4756
4765
|
/**
|
|
@@ -4819,7 +4828,7 @@ declare class CostcoNamespace {
|
|
|
4819
4828
|
* favorites, online-only and everything on sale, with the same filters and
|
|
4820
4829
|
* optional per-warehouse pricing as search().
|
|
4821
4830
|
*
|
|
4822
|
-
* Costs 1
|
|
4831
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
4823
4832
|
*/
|
|
4824
4833
|
deals(options: CostcoDealsOptions): Promise<Record<string, unknown>>;
|
|
4825
4834
|
/**
|
|
@@ -4829,7 +4838,7 @@ declare class CostcoNamespace {
|
|
|
4829
4838
|
* buys on request. The codes are the member-community decode; Costco does
|
|
4830
4839
|
* not publish them. Only items Costco lists online are covered.
|
|
4831
4840
|
*
|
|
4832
|
-
* Costs 1
|
|
4841
|
+
* Costs 2 credits for the US (any `pages` value), 1 for Canada.
|
|
4833
4842
|
*/
|
|
4834
4843
|
clearance(options: CostcoClearanceOptions): Promise<Record<string, unknown>>;
|
|
4835
4844
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -76,7 +76,11 @@ interface GoogleSearchOptions {
|
|
|
76
76
|
gl?: string;
|
|
77
77
|
/** Regional Google domain (e.g. 'google.co.uk'). */
|
|
78
78
|
google_domain?: string;
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Canonical location name; auto-encoded to a UULE string. On the standard
|
|
81
|
+
* results page it currently localizes the local pack only; set web_only for
|
|
82
|
+
* organic results localized to this location.
|
|
83
|
+
*/
|
|
80
84
|
location?: string;
|
|
81
85
|
/** Pre-encoded UULE location string (takes priority over location). */
|
|
82
86
|
uule?: string;
|
|
@@ -94,6 +98,11 @@ interface GoogleSearchOptions {
|
|
|
94
98
|
time_period?: "last_hour" | "last_day" | "last_week" | "last_month" | "last_year";
|
|
95
99
|
/** Resolve a deferred AI Overview (server default true). */
|
|
96
100
|
resolve_ai_overview?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Return Google's Web results only: organic results localized to location,
|
|
103
|
+
* with no local pack, ads, related questions, knowledge graph or AI Overview.
|
|
104
|
+
*/
|
|
105
|
+
web_only?: boolean;
|
|
97
106
|
[key: string]: unknown;
|
|
98
107
|
}
|
|
99
108
|
interface GoogleAiModeOptions {
|
|
@@ -4743,14 +4752,14 @@ declare class CostcoNamespace {
|
|
|
4743
4752
|
* `warehouse_id` to add that warehouse's in-store price and stock to every
|
|
4744
4753
|
* result.
|
|
4745
4754
|
*
|
|
4746
|
-
* Costs 1
|
|
4755
|
+
* Costs 2 credits for the US, 1 elsewhere.
|
|
4747
4756
|
*/
|
|
4748
4757
|
search(options: CostcoSearchOptions): Promise<Record<string, unknown>>;
|
|
4749
4758
|
/**
|
|
4750
4759
|
* Products in a Costco category, with the same sort, filters and
|
|
4751
4760
|
* per-warehouse pricing as search().
|
|
4752
4761
|
*
|
|
4753
|
-
* Costs 1
|
|
4762
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
4754
4763
|
*/
|
|
4755
4764
|
category(options: CostcoCategoryOptions): Promise<Record<string, unknown>>;
|
|
4756
4765
|
/**
|
|
@@ -4819,7 +4828,7 @@ declare class CostcoNamespace {
|
|
|
4819
4828
|
* favorites, online-only and everything on sale, with the same filters and
|
|
4820
4829
|
* optional per-warehouse pricing as search().
|
|
4821
4830
|
*
|
|
4822
|
-
* Costs 1
|
|
4831
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
4823
4832
|
*/
|
|
4824
4833
|
deals(options: CostcoDealsOptions): Promise<Record<string, unknown>>;
|
|
4825
4834
|
/**
|
|
@@ -4829,7 +4838,7 @@ declare class CostcoNamespace {
|
|
|
4829
4838
|
* buys on request. The codes are the member-community decode; Costco does
|
|
4830
4839
|
* not publish them. Only items Costco lists online are covered.
|
|
4831
4840
|
*
|
|
4832
|
-
* Costs 1
|
|
4841
|
+
* Costs 2 credits for the US (any `pages` value), 1 for Canada.
|
|
4833
4842
|
*/
|
|
4834
4843
|
clearance(options: CostcoClearanceOptions): Promise<Record<string, unknown>>;
|
|
4835
4844
|
/**
|
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.26.
|
|
148
|
+
var SDK_VERSION = true ? "0.26.4" : "0.0.0";
|
|
149
149
|
var USER_AGENT = `scavio-js/${SDK_VERSION}`;
|
|
150
150
|
function isServerRuntime() {
|
|
151
151
|
const g = globalThis;
|
|
@@ -2533,7 +2533,7 @@ var CostcoNamespace = class {
|
|
|
2533
2533
|
* `warehouse_id` to add that warehouse's in-store price and stock to every
|
|
2534
2534
|
* result.
|
|
2535
2535
|
*
|
|
2536
|
-
* Costs 1
|
|
2536
|
+
* Costs 2 credits for the US, 1 elsewhere.
|
|
2537
2537
|
*/
|
|
2538
2538
|
async search(options) {
|
|
2539
2539
|
return this.client._post("/api/v1/costco/search", options);
|
|
@@ -2542,7 +2542,7 @@ var CostcoNamespace = class {
|
|
|
2542
2542
|
* Products in a Costco category, with the same sort, filters and
|
|
2543
2543
|
* per-warehouse pricing as search().
|
|
2544
2544
|
*
|
|
2545
|
-
* Costs 1
|
|
2545
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
2546
2546
|
*/
|
|
2547
2547
|
async category(options) {
|
|
2548
2548
|
return this.client._post("/api/v1/costco/category", options);
|
|
@@ -2629,7 +2629,7 @@ var CostcoNamespace = class {
|
|
|
2629
2629
|
* favorites, online-only and everything on sale, with the same filters and
|
|
2630
2630
|
* optional per-warehouse pricing as search().
|
|
2631
2631
|
*
|
|
2632
|
-
* Costs 1
|
|
2632
|
+
* Costs 2 credits for the US, 1 for Canada.
|
|
2633
2633
|
*/
|
|
2634
2634
|
async deals(options) {
|
|
2635
2635
|
return this.client._post("/api/v1/costco/deals", options);
|
|
@@ -2641,7 +2641,7 @@ var CostcoNamespace = class {
|
|
|
2641
2641
|
* buys on request. The codes are the member-community decode; Costco does
|
|
2642
2642
|
* not publish them. Only items Costco lists online are covered.
|
|
2643
2643
|
*
|
|
2644
|
-
* Costs 1
|
|
2644
|
+
* Costs 2 credits for the US (any `pages` value), 1 for Canada.
|
|
2645
2645
|
*/
|
|
2646
2646
|
async clearance(options) {
|
|
2647
2647
|
return this.client._post("/api/v1/costco/clearance", options);
|