buildingproduct-library 0.2.87 → 0.2.88
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/{buildingproduct-library-0.2.87.tgz → buildingproduct-library-0.2.88.tgz} +0 -0
- package/bundles/buildingproduct-library.umd.js +32 -8
- package/bundles/buildingproduct-library.umd.js.map +1 -1
- package/esm2015/lib/account-dropdown/account-dropdown.component.js +2 -6
- package/esm2015/lib/environments/environment.js +24 -0
- package/esm2015/lib/services/endPointURL.js +8 -1
- package/esm2015/lib/services/logout.service.js +3 -4
- package/fesm2015/buildingproduct-library.js +32 -8
- package/fesm2015/buildingproduct-library.js.map +1 -1
- package/lib/environments/environment.d.ts +12 -0
- package/lib/services/endPointURL.d.ts +6 -0
- package/lib/services/logout.service.d.ts +0 -2
- package/package.json +1 -1
|
Binary file
|
|
@@ -417,6 +417,30 @@
|
|
|
417
417
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
+
// This file can be replaced during build by using the `fileReplacements` array.
|
|
421
|
+
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
|
|
422
|
+
// The list of file replacements can be found in `angular.json`.
|
|
423
|
+
var environment = {
|
|
424
|
+
production: false,
|
|
425
|
+
occBaseUrl: 'https://api.crre-fletcherb3-d2-public.model-t.cc.commerce.ondemand.com/',
|
|
426
|
+
baseSiteId: "occ/v2/dimond-spa/",
|
|
427
|
+
UIsiteURl: 'http://localhost:4200',
|
|
428
|
+
auth0Domain: 'https://dimond-qa.au.auth0.com',
|
|
429
|
+
auth0Audience: "https://dimond-spartacus-qa.au.com",
|
|
430
|
+
auth0Client_id: 'b5Osbq63YfSFd0y4rhgpJWyfI1H2jhnZ',
|
|
431
|
+
auth0Client_secret: 'Ddm_v6eZIBL1sId4Psolg85Fh5bwM4XHowQnSssZWulT02iL0J4BXhx07y2xkXp4',
|
|
432
|
+
logoutAuth0Domain: 'https://dimond-qa.au.auth0.com',
|
|
433
|
+
googleApiKey: 'AIzaSyADAiEVzbZjIauGB1k4H28FxJ56SMoHWEg',
|
|
434
|
+
};
|
|
435
|
+
/*
|
|
436
|
+
* For easier debugging in development mode, you can import the following file
|
|
437
|
+
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
|
438
|
+
*
|
|
439
|
+
* This import should be commented out in production mode because it will have a negative impact
|
|
440
|
+
* on performance if an error is thrown.
|
|
441
|
+
*/
|
|
442
|
+
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
|
|
443
|
+
|
|
420
444
|
var GlobalEnvVariable = {};
|
|
421
445
|
var SharedService = /** @class */ (function () {
|
|
422
446
|
function SharedService() {
|
|
@@ -452,6 +476,9 @@
|
|
|
452
476
|
var updateListOfAccounts = {
|
|
453
477
|
url: apiEndpointURL + 'b2busers/selectedAccount',
|
|
454
478
|
};
|
|
479
|
+
var AUTH0_GET_TOKEN = {
|
|
480
|
+
url: environment.auth0Domain + '/oauth/token',
|
|
481
|
+
};
|
|
455
482
|
var GET_PRODUCT_SEARCH = {
|
|
456
483
|
url: apiEndpointURL + 'bpProducts/search?',
|
|
457
484
|
};
|
|
@@ -461,6 +488,9 @@
|
|
|
461
488
|
var categorySearchUrl = {
|
|
462
489
|
url: apiEndpointURL + 'bpProducts/search?catCode=',
|
|
463
490
|
};
|
|
491
|
+
var Logout_Revoke = {
|
|
492
|
+
url: environment.occBaseUrl + 'authorizationserver/oauth/revoke',
|
|
493
|
+
};
|
|
464
494
|
var GET_MYTEAM_LIST_ENDPOINT = {
|
|
465
495
|
url: apiEndpointURL + 'users/current/bpOrgCustomers?',
|
|
466
496
|
};
|
|
@@ -955,6 +985,7 @@
|
|
|
955
985
|
var _this = this;
|
|
956
986
|
return __generator(this, function (_c) {
|
|
957
987
|
this.selecteduserData = JSON.parse(localStorage.getItem('selectedAccout') || '{}');
|
|
988
|
+
console.log(this.selecteduserData, this.selectedUser);
|
|
958
989
|
this.fiUserAccountDetailsService.getUserAccount().subscribe(function (user) {
|
|
959
990
|
var _a, _b;
|
|
960
991
|
if (user) {
|
|
@@ -979,14 +1010,9 @@
|
|
|
979
1010
|
_this.accounts = data;
|
|
980
1011
|
_this.getAccountsData();
|
|
981
1012
|
}
|
|
982
|
-
}, function (error) {
|
|
983
|
-
window.location.reload();
|
|
984
1013
|
});
|
|
985
1014
|
}
|
|
986
1015
|
}
|
|
987
|
-
else {
|
|
988
|
-
window.location.reload();
|
|
989
|
-
}
|
|
990
1016
|
});
|
|
991
1017
|
return [2 /*return*/];
|
|
992
1018
|
});
|
|
@@ -2110,8 +2136,6 @@
|
|
|
2110
2136
|
var LogoutService = /** @class */ (function () {
|
|
2111
2137
|
function LogoutService(http) {
|
|
2112
2138
|
this.http = http;
|
|
2113
|
-
this.environment = sessionStorage.getItem('env');
|
|
2114
|
-
this.env = JSON.parse(this.environment);
|
|
2115
2139
|
}
|
|
2116
2140
|
LogoutService.prototype.logoutRevoke = function () {
|
|
2117
2141
|
var data = new rxjs.Observable();
|
|
@@ -2131,7 +2155,7 @@
|
|
|
2131
2155
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
2132
2156
|
'Authorization': 'Bearer ' + auth0AccessToken.token.access_token
|
|
2133
2157
|
});
|
|
2134
|
-
var logout_URL =
|
|
2158
|
+
var logout_URL = Logout_Revoke.url;
|
|
2135
2159
|
return this.http.post(logout_URL, formData.tokenVal, { headers: headers })
|
|
2136
2160
|
.pipe(operators.catchError(function (errorRes) {
|
|
2137
2161
|
return rxjs.throwError(errorRes);
|