@veloceapps/api 6.0.0-93 → 6.0.0-95

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.
@@ -1420,14 +1420,11 @@
1420
1420
  function GuidedSellingsAdminApiService(baseHttpService) {
1421
1421
  var _this = this;
1422
1422
  this.baseHttpService = baseHttpService;
1423
- this.serviceUrl = '/guided-sellings';
1423
+ this.serviceUrl = '/admin/guided-selling';
1424
1424
  this.fetchGuidedSellings$ = function (searchParams) {
1425
- var params = new i4.HttpParams({ fromObject: Object.assign({}, searchParams) });
1426
- return rxjs.of([{ id: '1', name: 'test', description: 'test', configurationJson: '[]' }]);
1427
- // return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
1425
+ return _this.searchGuidedSellings$(searchParams);
1428
1426
  };
1429
1427
  this.searchGuidedSellings$ = function (searchParams, expression) {
1430
- return rxjs.of([{ id: '1', name: 'test', description: 'test', configurationJson: '[]' }]);
1431
1428
  var params = new i4.HttpParams({ fromObject: Object.assign({}, searchParams) });
1432
1429
  return _this.baseHttpService.api({
1433
1430
  method: 'post',
@@ -1436,6 +1433,9 @@
1436
1433
  body: expression || {},
1437
1434
  });
1438
1435
  };
1436
+ this.fetchGuidedSelling$ = function (id) {
1437
+ return _this.baseHttpService.api({ url: _this.serviceUrl + "/" + id });
1438
+ };
1439
1439
  this.createNewGuidedSelling$ = function (guidedSelling) {
1440
1440
  return _this.baseHttpService.api({
1441
1441
  url: "" + _this.serviceUrl,