vanilli-shop-client
Advanced tools
Comparing version 0.9.21 to 0.9.22
@@ -36,3 +36,4 @@ import { IBaseDto, IPropertyDto } from "./base"; | ||
active: boolean; | ||
minStock?: number; | ||
additionalProps?: IPropertyDto[]; | ||
} |
@@ -12,3 +12,3 @@ import BaseStore from "./base-store"; | ||
searchProducts(request: IProductSearchDto): Promise<void>; | ||
loadMoreProducts(): Promise<void>; | ||
loadMoreProducts(request: IProductSearchDto): Promise<void>; | ||
getProductByRef(ref: string, refType: string): Promise<void>; | ||
@@ -15,0 +15,0 @@ setSearchProp(value: string, key: string): void; |
@@ -117,12 +117,9 @@ "use strict"; | ||
}; | ||
ProductStore.prototype.loadMoreProducts = function () { | ||
ProductStore.prototype.loadMoreProducts = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var request, limit, queryParams, notificationStore, result, data, e_2; | ||
var limit, queryParams, notificationStore, result, data, e_2; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
request = { | ||
active: true, | ||
additionalProps: this.lastSearchProps | ||
}; | ||
request.additionalProps = this.lastSearchProps; | ||
limit = this.productList.limit + 100; | ||
@@ -129,0 +126,0 @@ queryParams = { |
{ | ||
"name": "vanilli-shop-client", | ||
"version": "0.9.21", | ||
"version": "0.9.22", | ||
"description": "Client for Vanilli Shop API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -61,3 +61,4 @@ import {IBaseDto, IPropertyDto} from "./base"; | ||
active: boolean, | ||
minStock?: number, | ||
additionalProps?: IPropertyDto[] | ||
} |
@@ -52,8 +52,4 @@ import BaseStore from "./base-store"; | ||
async loadMoreProducts() { | ||
const request = { | ||
active: true, | ||
additionalProps: this.lastSearchProps | ||
}; | ||
async loadMoreProducts(request: IProductSearchDto) { | ||
request.additionalProps = this.lastSearchProps; | ||
const limit = this.productList.limit + 100; | ||
@@ -60,0 +56,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149504
3436