@malawistore/store-sdk 0.1.0 → 0.1.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/CHANGELOG.md +13 -0
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,19 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.1.1] - 2026-10-28
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `relevance` as a `ProductSort` value for `products.list` and
|
|
14
|
+
`products.listPage`, matching the API's default full-text ranking when
|
|
15
|
+
`q` is set.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- `q` is documented as full-text search with a substring fallback instead
|
|
20
|
+
of plain substring matching.
|
|
21
|
+
|
|
9
22
|
## [0.1.0] - 2026-10-27
|
|
10
23
|
|
|
11
24
|
### Added
|
package/dist/index.d.cts
CHANGED
|
@@ -188,9 +188,13 @@ interface ProductDetail {
|
|
|
188
188
|
product: Product;
|
|
189
189
|
variants: ProductVariantView[];
|
|
190
190
|
}
|
|
191
|
-
type ProductSort = "name_asc" | "name_desc" | "price_asc" | "price_desc" | "newest" | "oldest" | "rating_asc" | "rating_desc";
|
|
191
|
+
type ProductSort = "name_asc" | "name_desc" | "price_asc" | "price_desc" | "newest" | "oldest" | "rating_asc" | "rating_desc" | "relevance";
|
|
192
192
|
interface ListProductsParams extends PageParams {
|
|
193
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* Full-text search over name, description and slug. Word prefixes match
|
|
195
|
+
* ("cook" finds "cooking"); the API falls back to substring search when
|
|
196
|
+
* full-text finds nothing.
|
|
197
|
+
*/
|
|
194
198
|
q?: string;
|
|
195
199
|
category_id?: string;
|
|
196
200
|
category_slug?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -188,9 +188,13 @@ interface ProductDetail {
|
|
|
188
188
|
product: Product;
|
|
189
189
|
variants: ProductVariantView[];
|
|
190
190
|
}
|
|
191
|
-
type ProductSort = "name_asc" | "name_desc" | "price_asc" | "price_desc" | "newest" | "oldest" | "rating_asc" | "rating_desc";
|
|
191
|
+
type ProductSort = "name_asc" | "name_desc" | "price_asc" | "price_desc" | "newest" | "oldest" | "rating_asc" | "rating_desc" | "relevance";
|
|
192
192
|
interface ListProductsParams extends PageParams {
|
|
193
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* Full-text search over name, description and slug. Word prefixes match
|
|
195
|
+
* ("cook" finds "cooking"); the API falls back to substring search when
|
|
196
|
+
* full-text finds nothing.
|
|
197
|
+
*/
|
|
194
198
|
q?: string;
|
|
195
199
|
category_id?: string;
|
|
196
200
|
category_slug?: string;
|