buildingproduct-library 0.2.85 → 0.2.87
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.85.tgz → buildingproduct-library-0.2.87.tgz} +0 -0
- package/bundles/buildingproduct-library.umd.js +6 -31
- package/bundles/buildingproduct-library.umd.js.map +1 -1
- package/esm2015/lib/account-dropdown/account-dropdown.component.js +4 -1
- package/esm2015/lib/services/endPointURL.js +1 -8
- package/esm2015/lib/services/logout.service.js +4 -3
- package/fesm2015/buildingproduct-library.js +6 -31
- package/fesm2015/buildingproduct-library.js.map +1 -1
- package/lib/services/endPointURL.d.ts +0 -6
- package/lib/services/logout.service.d.ts +2 -0
- package/package.json +1 -1
- package/esm2015/lib/environments/environment.js +0 -24
- package/lib/environments/environment.d.ts +0 -12
|
Binary file
|
|
@@ -417,30 +417,6 @@
|
|
|
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
|
-
|
|
444
420
|
var GlobalEnvVariable = {};
|
|
445
421
|
var SharedService = /** @class */ (function () {
|
|
446
422
|
function SharedService() {
|
|
@@ -476,9 +452,6 @@
|
|
|
476
452
|
var updateListOfAccounts = {
|
|
477
453
|
url: apiEndpointURL + 'b2busers/selectedAccount',
|
|
478
454
|
};
|
|
479
|
-
var AUTH0_GET_TOKEN = {
|
|
480
|
-
url: environment.auth0Domain + '/oauth/token',
|
|
481
|
-
};
|
|
482
455
|
var GET_PRODUCT_SEARCH = {
|
|
483
456
|
url: apiEndpointURL + 'bpProducts/search?',
|
|
484
457
|
};
|
|
@@ -488,9 +461,6 @@
|
|
|
488
461
|
var categorySearchUrl = {
|
|
489
462
|
url: apiEndpointURL + 'bpProducts/search?catCode=',
|
|
490
463
|
};
|
|
491
|
-
var Logout_Revoke = {
|
|
492
|
-
url: environment.occBaseUrl + 'authorizationserver/oauth/revoke',
|
|
493
|
-
};
|
|
494
464
|
var GET_MYTEAM_LIST_ENDPOINT = {
|
|
495
465
|
url: apiEndpointURL + 'users/current/bpOrgCustomers?',
|
|
496
466
|
};
|
|
@@ -1014,6 +984,9 @@
|
|
|
1014
984
|
});
|
|
1015
985
|
}
|
|
1016
986
|
}
|
|
987
|
+
else {
|
|
988
|
+
window.location.reload();
|
|
989
|
+
}
|
|
1017
990
|
});
|
|
1018
991
|
return [2 /*return*/];
|
|
1019
992
|
});
|
|
@@ -2137,6 +2110,8 @@
|
|
|
2137
2110
|
var LogoutService = /** @class */ (function () {
|
|
2138
2111
|
function LogoutService(http) {
|
|
2139
2112
|
this.http = http;
|
|
2113
|
+
this.environment = sessionStorage.getItem('env');
|
|
2114
|
+
this.env = JSON.parse(this.environment);
|
|
2140
2115
|
}
|
|
2141
2116
|
LogoutService.prototype.logoutRevoke = function () {
|
|
2142
2117
|
var data = new rxjs.Observable();
|
|
@@ -2156,7 +2131,7 @@
|
|
|
2156
2131
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
2157
2132
|
'Authorization': 'Bearer ' + auth0AccessToken.token.access_token
|
|
2158
2133
|
});
|
|
2159
|
-
var logout_URL =
|
|
2134
|
+
var logout_URL = this.env.occBaseUrl + 'authorizationserver/oauth/revoke';
|
|
2160
2135
|
return this.http.post(logout_URL, formData.tokenVal, { headers: headers })
|
|
2161
2136
|
.pipe(operators.catchError(function (errorRes) {
|
|
2162
2137
|
return rxjs.throwError(errorRes);
|