buildingproduct-library 0.2.87 → 0.2.89

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.
@@ -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
  };
@@ -984,9 +1014,6 @@
984
1014
  });
985
1015
  }
986
1016
  }
987
- else {
988
- window.location.reload();
989
- }
990
1017
  });
991
1018
  return [2 /*return*/];
992
1019
  });
@@ -2110,8 +2137,6 @@
2110
2137
  var LogoutService = /** @class */ (function () {
2111
2138
  function LogoutService(http) {
2112
2139
  this.http = http;
2113
- this.environment = sessionStorage.getItem('env');
2114
- this.env = JSON.parse(this.environment);
2115
2140
  }
2116
2141
  LogoutService.prototype.logoutRevoke = function () {
2117
2142
  var data = new rxjs.Observable();
@@ -2131,7 +2156,7 @@
2131
2156
  'Content-Type': 'application/x-www-form-urlencoded',
2132
2157
  'Authorization': 'Bearer ' + auth0AccessToken.token.access_token
2133
2158
  });
2134
- var logout_URL = this.env.occBaseUrl + 'authorizationserver/oauth/revoke';
2159
+ var logout_URL = Logout_Revoke.url;
2135
2160
  return this.http.post(logout_URL, formData.tokenVal, { headers: headers })
2136
2161
  .pipe(operators.catchError(function (errorRes) {
2137
2162
  return rxjs.throwError(errorRes);