@pepperi-addons/ngx-lib 0.3.9-beta.14 → 0.3.9-beta.15

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.
@@ -1957,6 +1957,7 @@
1957
1957
  this.jwtHelper = jwtHelper;
1958
1958
  this.IDP_TOKEN_KEY = 'idp_token';
1959
1959
  this.PAPI_BASE_URL_KEY = 'pepperi.baseurl';
1960
+ this.API_BASE_URL_KEY = 'pepperi.publicapibaseurl';
1960
1961
  // private readonly WAPI_TOKEN_KEY = 'auth_token';
1961
1962
  this.WAPI_BASE_URL_KEY = 'serverHostURL'; // pepperi.webapibaseurl
1962
1963
  }
@@ -2009,6 +2010,10 @@
2009
2010
  var tokenObj = this.getParseToken();
2010
2011
  return tokenObj ? tokenObj[this.PAPI_BASE_URL_KEY] : null;
2011
2012
  };
2013
+ PepSessionService.prototype.getPublicApiBaseUrl = function () {
2014
+ var tokenObj = this.getParseToken();
2015
+ return tokenObj ? tokenObj[this.API_BASE_URL_KEY] : null;
2016
+ };
2012
2017
  return PepSessionService;
2013
2018
  }());
2014
2019
  PepSessionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PepSessionService_Factory() { return new PepSessionService(i0__namespace.ɵɵinject(PepJwtHelperService)); }, token: PepSessionService, providedIn: "root" });
@@ -2542,6 +2547,16 @@
2542
2547
  var papiBaseUrl = this.sessionService.getPapiBaseUrl();
2543
2548
  return this.postHttpCall("" + papiBaseUrl + url, body, httpOptions);
2544
2549
  };
2550
+ PepHttpService.prototype.getPublicApiCall = function (url, httpOptions) {
2551
+ if (httpOptions === void 0) { httpOptions = {}; }
2552
+ var papiBaseUrl = this.sessionService.getPublicApiBaseUrl();
2553
+ return this.getHttpCall("" + papiBaseUrl + url, httpOptions);
2554
+ };
2555
+ PepHttpService.prototype.postPublicApiCall = function (url, body, httpOptions) {
2556
+ if (httpOptions === void 0) { httpOptions = {}; }
2557
+ var papiBaseUrl = this.sessionService.getPublicApiBaseUrl();
2558
+ return this.postHttpCall("" + papiBaseUrl + url, body, httpOptions);
2559
+ };
2545
2560
  return PepHttpService;
2546
2561
  }());
2547
2562
  PepHttpService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PepHttpService_Factory() { return new PepHttpService(i0__namespace.ɵɵinject(PepSessionService), i0__namespace.ɵɵinject(PepCookieService), i0__namespace.ɵɵinject(i3__namespace.HttpClient)); }, token: PepHttpService, providedIn: "root" });