@smess/networking 1.0.21 → 1.0.22

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.
@@ -8,6 +8,7 @@ export interface StoreProductCollectionRequest {
8
8
  search?: string;
9
9
  sort_by?: string;
10
10
  category?: string;
11
+ group?: string;
11
12
  min_price?: number;
12
13
  max_price?: number;
13
14
  only_discounted?: boolean;
@@ -90,13 +90,13 @@ export class StoreProductService {
90
90
  * GET /api/v1/store/product-collection
91
91
  */
92
92
  getProductCollection(payload) {
93
- return this.provider("product-collection").request(null, undefined, undefined, payload);
93
+ return this.provider("product-collection").request(payload, undefined, undefined);
94
94
  }
95
95
  /**
96
96
  * Get product collection by store
97
97
  * GET /api/v1/store/{id}/product-collection
98
98
  */
99
99
  getProductCollectionByStore(storeId, payload) {
100
- return this.provider("product-collection-by-store").request(null, undefined, storeId, payload);
100
+ return this.provider("product-collection-by-store").request(payload, undefined, storeId);
101
101
  }
102
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smess/networking",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Networking utilities and services for SMESS platform.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",