scavio 0.28.1 → 0.28.2
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/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -5
- package/dist/index.d.ts +21 -5
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4873,8 +4873,14 @@ interface HebSearchOptions {
|
|
|
4873
4873
|
query: string;
|
|
4874
4874
|
/** Results page, 1-based (1-100). */
|
|
4875
4875
|
page?: number;
|
|
4876
|
-
/** Results per page (1-60; server default
|
|
4876
|
+
/** Results per page (1-60; server default 60). */
|
|
4877
4877
|
page_size?: number;
|
|
4878
|
+
/**
|
|
4879
|
+
* HEB store number from stores() (field store_number), e.g. "441". Prices,
|
|
4880
|
+
* stock, aisle location and assortment come from that store, echoed in
|
|
4881
|
+
* data.store. US only. Omit for HEB's default store.
|
|
4882
|
+
*/
|
|
4883
|
+
store_id?: string | number;
|
|
4878
4884
|
[key: string]: unknown;
|
|
4879
4885
|
}
|
|
4880
4886
|
interface HebProductOptions {
|
|
@@ -4884,10 +4890,19 @@ interface HebProductOptions {
|
|
|
4884
4890
|
* Preferred over slug + product_id.
|
|
4885
4891
|
*/
|
|
4886
4892
|
product_url?: string;
|
|
4887
|
-
/**
|
|
4893
|
+
/**
|
|
4894
|
+
* HEB product id (numeric id at the end of a product URL). Requires slug,
|
|
4895
|
+
* unless store_id is set.
|
|
4896
|
+
*/
|
|
4888
4897
|
product_id?: string;
|
|
4889
|
-
/** Product slug (readable part of the URL). Required with product_id. */
|
|
4898
|
+
/** Product slug (readable part of the URL). Required with product_id, unless store_id is set. */
|
|
4890
4899
|
slug?: string;
|
|
4900
|
+
/**
|
|
4901
|
+
* HEB store number from stores() (field store_number), e.g. "441". Price,
|
|
4902
|
+
* stock and aisle location come from that store, echoed in data.store. US
|
|
4903
|
+
* only. Omit for HEB's default store.
|
|
4904
|
+
*/
|
|
4905
|
+
store_id?: string | number;
|
|
4891
4906
|
[key: string]: unknown;
|
|
4892
4907
|
}
|
|
4893
4908
|
interface HebStoresOptions {
|
|
@@ -4903,7 +4918,7 @@ declare class HebNamespace {
|
|
|
4903
4918
|
/**
|
|
4904
4919
|
* Search HEB grocery products by keyword: price (cents), sale status, unit
|
|
4905
4920
|
* price, size, UPC, stock, EBT/SNAP eligibility, aisle location and product
|
|
4906
|
-
* URL.
|
|
4921
|
+
* URL. Pass store_id for one store's prices, stock and assortment.
|
|
4907
4922
|
*
|
|
4908
4923
|
* Costs 2 credits.
|
|
4909
4924
|
*/
|
|
@@ -4911,7 +4926,8 @@ declare class HebNamespace {
|
|
|
4911
4926
|
/**
|
|
4912
4927
|
* Full HEB product detail: nutrition facts, ingredients, description, images,
|
|
4913
4928
|
* similar products, coupons, EBT/SNAP eligibility and breadcrumbs. Pass
|
|
4914
|
-
* product_url (from search()) or slug + product_id
|
|
4929
|
+
* product_url (from search()) or slug + product_id, or product_id alone
|
|
4930
|
+
* with store_id.
|
|
4915
4931
|
*
|
|
4916
4932
|
* Costs 2 credits.
|
|
4917
4933
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4873,8 +4873,14 @@ interface HebSearchOptions {
|
|
|
4873
4873
|
query: string;
|
|
4874
4874
|
/** Results page, 1-based (1-100). */
|
|
4875
4875
|
page?: number;
|
|
4876
|
-
/** Results per page (1-60; server default
|
|
4876
|
+
/** Results per page (1-60; server default 60). */
|
|
4877
4877
|
page_size?: number;
|
|
4878
|
+
/**
|
|
4879
|
+
* HEB store number from stores() (field store_number), e.g. "441". Prices,
|
|
4880
|
+
* stock, aisle location and assortment come from that store, echoed in
|
|
4881
|
+
* data.store. US only. Omit for HEB's default store.
|
|
4882
|
+
*/
|
|
4883
|
+
store_id?: string | number;
|
|
4878
4884
|
[key: string]: unknown;
|
|
4879
4885
|
}
|
|
4880
4886
|
interface HebProductOptions {
|
|
@@ -4884,10 +4890,19 @@ interface HebProductOptions {
|
|
|
4884
4890
|
* Preferred over slug + product_id.
|
|
4885
4891
|
*/
|
|
4886
4892
|
product_url?: string;
|
|
4887
|
-
/**
|
|
4893
|
+
/**
|
|
4894
|
+
* HEB product id (numeric id at the end of a product URL). Requires slug,
|
|
4895
|
+
* unless store_id is set.
|
|
4896
|
+
*/
|
|
4888
4897
|
product_id?: string;
|
|
4889
|
-
/** Product slug (readable part of the URL). Required with product_id. */
|
|
4898
|
+
/** Product slug (readable part of the URL). Required with product_id, unless store_id is set. */
|
|
4890
4899
|
slug?: string;
|
|
4900
|
+
/**
|
|
4901
|
+
* HEB store number from stores() (field store_number), e.g. "441". Price,
|
|
4902
|
+
* stock and aisle location come from that store, echoed in data.store. US
|
|
4903
|
+
* only. Omit for HEB's default store.
|
|
4904
|
+
*/
|
|
4905
|
+
store_id?: string | number;
|
|
4891
4906
|
[key: string]: unknown;
|
|
4892
4907
|
}
|
|
4893
4908
|
interface HebStoresOptions {
|
|
@@ -4903,7 +4918,7 @@ declare class HebNamespace {
|
|
|
4903
4918
|
/**
|
|
4904
4919
|
* Search HEB grocery products by keyword: price (cents), sale status, unit
|
|
4905
4920
|
* price, size, UPC, stock, EBT/SNAP eligibility, aisle location and product
|
|
4906
|
-
* URL.
|
|
4921
|
+
* URL. Pass store_id for one store's prices, stock and assortment.
|
|
4907
4922
|
*
|
|
4908
4923
|
* Costs 2 credits.
|
|
4909
4924
|
*/
|
|
@@ -4911,7 +4926,8 @@ declare class HebNamespace {
|
|
|
4911
4926
|
/**
|
|
4912
4927
|
* Full HEB product detail: nutrition facts, ingredients, description, images,
|
|
4913
4928
|
* similar products, coupons, EBT/SNAP eligibility and breadcrumbs. Pass
|
|
4914
|
-
* product_url (from search()) or slug + product_id
|
|
4929
|
+
* product_url (from search()) or slug + product_id, or product_id alone
|
|
4930
|
+
* with store_id.
|
|
4915
4931
|
*
|
|
4916
4932
|
* Costs 2 credits.
|
|
4917
4933
|
*/
|
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.28.
|
|
148
|
+
var SDK_VERSION = true ? "0.28.2" : "0.0.0";
|
|
149
149
|
var USER_AGENT = `scavio-js/${SDK_VERSION}`;
|
|
150
150
|
function isServerRuntime() {
|
|
151
151
|
const g = globalThis;
|
|
@@ -2675,7 +2675,7 @@ var HebNamespace = class {
|
|
|
2675
2675
|
/**
|
|
2676
2676
|
* Search HEB grocery products by keyword: price (cents), sale status, unit
|
|
2677
2677
|
* price, size, UPC, stock, EBT/SNAP eligibility, aisle location and product
|
|
2678
|
-
* URL.
|
|
2678
|
+
* URL. Pass store_id for one store's prices, stock and assortment.
|
|
2679
2679
|
*
|
|
2680
2680
|
* Costs 2 credits.
|
|
2681
2681
|
*/
|
|
@@ -2685,7 +2685,8 @@ var HebNamespace = class {
|
|
|
2685
2685
|
/**
|
|
2686
2686
|
* Full HEB product detail: nutrition facts, ingredients, description, images,
|
|
2687
2687
|
* similar products, coupons, EBT/SNAP eligibility and breadcrumbs. Pass
|
|
2688
|
-
* product_url (from search()) or slug + product_id
|
|
2688
|
+
* product_url (from search()) or slug + product_id, or product_id alone
|
|
2689
|
+
* with store_id.
|
|
2689
2690
|
*
|
|
2690
2691
|
* Costs 2 credits.
|
|
2691
2692
|
*/
|