@betterstore/sdk 0.3.90 → 0.3.92
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 +12 -0
- package/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -157,9 +157,9 @@ interface Product {
|
|
|
157
157
|
interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
|
|
158
158
|
}
|
|
159
159
|
type ListProductsQuery = {
|
|
160
|
-
|
|
160
|
+
collectionId: string;
|
|
161
161
|
} | {
|
|
162
|
-
|
|
162
|
+
collectionSeoHandle: string;
|
|
163
163
|
};
|
|
164
164
|
type ListProductsSortBy = "createdAt" | "updatedAt" | "title" | "stockAvailable";
|
|
165
165
|
type ListProductsParams = {
|
|
@@ -268,6 +268,14 @@ type ListDiscountsQuery = {
|
|
|
268
268
|
valueType?: Discount["valueType"];
|
|
269
269
|
method?: Discount["method"];
|
|
270
270
|
status?: Discount["status"];
|
|
271
|
+
minimumRequirementsType?: Discount["minimumRequirementsType"];
|
|
272
|
+
minimumRequirementsScope?: Discount["minimumRequirementsScope"];
|
|
273
|
+
discountScope?: Discount["discountScope"];
|
|
274
|
+
allowedCombinations?: Discount["allowedCombinations"];
|
|
275
|
+
allowedProductIDs?: Discount["allowedProductIDs"];
|
|
276
|
+
allowedCollectionIDs?: Discount["allowedCollectionIDs"];
|
|
277
|
+
requiredProductIDs?: Discount["requiredProductIDs"];
|
|
278
|
+
requiredCollectionIDs?: Discount["requiredCollectionIDs"];
|
|
271
279
|
};
|
|
272
280
|
type ListDiscountsSortBy = "createdAt" | "updatedAt";
|
|
273
281
|
type ListDiscountsParams = {
|
package/dist/index.d.ts
CHANGED
|
@@ -157,9 +157,9 @@ interface Product {
|
|
|
157
157
|
interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
|
|
158
158
|
}
|
|
159
159
|
type ListProductsQuery = {
|
|
160
|
-
|
|
160
|
+
collectionId: string;
|
|
161
161
|
} | {
|
|
162
|
-
|
|
162
|
+
collectionSeoHandle: string;
|
|
163
163
|
};
|
|
164
164
|
type ListProductsSortBy = "createdAt" | "updatedAt" | "title" | "stockAvailable";
|
|
165
165
|
type ListProductsParams = {
|
|
@@ -268,6 +268,14 @@ type ListDiscountsQuery = {
|
|
|
268
268
|
valueType?: Discount["valueType"];
|
|
269
269
|
method?: Discount["method"];
|
|
270
270
|
status?: Discount["status"];
|
|
271
|
+
minimumRequirementsType?: Discount["minimumRequirementsType"];
|
|
272
|
+
minimumRequirementsScope?: Discount["minimumRequirementsScope"];
|
|
273
|
+
discountScope?: Discount["discountScope"];
|
|
274
|
+
allowedCombinations?: Discount["allowedCombinations"];
|
|
275
|
+
allowedProductIDs?: Discount["allowedProductIDs"];
|
|
276
|
+
allowedCollectionIDs?: Discount["allowedCollectionIDs"];
|
|
277
|
+
requiredProductIDs?: Discount["requiredProductIDs"];
|
|
278
|
+
requiredCollectionIDs?: Discount["requiredCollectionIDs"];
|
|
271
279
|
};
|
|
272
280
|
type ListDiscountsSortBy = "createdAt" | "updatedAt";
|
|
273
281
|
type ListDiscountsParams = {
|