@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.
- package/bundles/pepperi-addons-ngx-lib.umd.js +15 -0
- package/bundles/pepperi-addons-ngx-lib.umd.js.map +1 -1
- package/core/common/services/session.service.d.ts +2 -0
- package/core/http/services/http.service.d.ts +2 -0
- package/esm2015/core/common/services/session.service.js +6 -1
- package/esm2015/core/http/services/http.service.js +9 -1
- package/fesm2015/pepperi-addons-ngx-lib.js +13 -0
- package/fesm2015/pepperi-addons-ngx-lib.js.map +1 -1
- package/package.json +1 -1
- package/pepperi-addons-ngx-lib.metadata.json +1 -1
|
@@ -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" });
|