@smess/networking 1.0.21 → 1.0.23
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.
|
@@ -34,6 +34,13 @@ export class CustomerProvider {
|
|
|
34
34
|
}
|
|
35
35
|
get headers() {
|
|
36
36
|
let headers = SmessService.getHeaders(Accept.V1, this.$authToken.value);
|
|
37
|
+
switch (this.target) {
|
|
38
|
+
case "register":
|
|
39
|
+
headers = SmessService.getHeaders(Accept.V1);
|
|
40
|
+
break;
|
|
41
|
+
default:
|
|
42
|
+
headers = SmessService.getHeaders(Accept.V1, this.$authToken.value);
|
|
43
|
+
}
|
|
37
44
|
if (this.config.clientId) {
|
|
38
45
|
headers[SMESSHeader.ClientId] = this.config.clientId;
|
|
39
46
|
}
|
|
@@ -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(
|
|
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(
|
|
100
|
+
return this.provider("product-collection-by-store").request(payload, undefined, storeId);
|
|
101
101
|
}
|
|
102
102
|
}
|