@solidpepper/solidpepper-service 1.0.7 → 1.0.8
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.
|
@@ -3642,6 +3642,23 @@ class SkusService {
|
|
|
3642
3642
|
return this.http.get(this._settingsService.getSettings('apiUrl') + 'SkusArchive/filters', { headers });
|
|
3643
3643
|
}
|
|
3644
3644
|
}
|
|
3645
|
+
getSkuFilterFields(categoryGuid = '', archive = false) {
|
|
3646
|
+
let headers = this._settingsService.getHeaders();
|
|
3647
|
+
const controller = archive
|
|
3648
|
+
? 'SkusArchive'
|
|
3649
|
+
: 'Skus';
|
|
3650
|
+
let url = this._settingsService.getSettings('apiUrl') +
|
|
3651
|
+
controller +
|
|
3652
|
+
'/filters?allFields=true';
|
|
3653
|
+
if (categoryGuid) {
|
|
3654
|
+
url +=
|
|
3655
|
+
'&categoryGuid=' +
|
|
3656
|
+
encodeURIComponent(categoryGuid);
|
|
3657
|
+
}
|
|
3658
|
+
return this.http.get(url, {
|
|
3659
|
+
headers
|
|
3660
|
+
});
|
|
3661
|
+
}
|
|
3645
3662
|
getSkuGroups(start, limit, filters) {
|
|
3646
3663
|
let headers = this._settingsService.getHeaders();
|
|
3647
3664
|
if (filters) {
|
|
@@ -5332,6 +5349,13 @@ class AttributesService {
|
|
|
5332
5349
|
'Attributes/groups/' +
|
|
5333
5350
|
attributeGroupGuid, { headers });
|
|
5334
5351
|
}
|
|
5352
|
+
getMediaSystemFields() {
|
|
5353
|
+
const headers = this._settingsService.getHeaders();
|
|
5354
|
+
return this.http.get(this._settingsService.getSettings('apiUrl') +
|
|
5355
|
+
'Attributes/media/systemfields', {
|
|
5356
|
+
headers
|
|
5357
|
+
});
|
|
5358
|
+
}
|
|
5335
5359
|
/* ========================================================================
|
|
5336
5360
|
CREATE
|
|
5337
5361
|
======================================================================== */
|