buildingproduct-library 6.0.8 → 6.1.0

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.
@@ -8831,10 +8831,12 @@ class AddNewAddressComponent {
8831
8831
  this.showAddress = new BehaviorSubject(false);
8832
8832
  this.env = sessionStorage.getItem('env');
8833
8833
  this.environment = JSON.parse(this.env);
8834
- this.apigee_url = this.environment.coreLogicApiUrl; // PROD: 'api.corelogic.asia'
8834
+ this.apigee_url = this.environment.coreLogicApiUrl;
8835
8835
  this.client_id = this.environment.coreLogicClientId;
8836
8836
  this.client_secret = this.environment.coreLogicClientSecret;
8837
- this.token_url = `https://${this.apigee_url}/access/oauth/token?client_id=${this.client_id}&client_secret=${this.client_secret}&grant_type=client_credentials`;
8837
+ //PROD https://api.corelogic.asia/access ---> https://access.api.cotality.com.au
8838
+ //UAT https://api-uat.corelogic.asia/access ---> https://access.api-uat.cotality.com.au
8839
+ this.token_url = `https://${this.apigee_url}/oauth/token?client_id=${this.client_id}&client_secret=${this.client_secret}&grant_type=client_credentials`;
8838
8840
  this.updateNewAddress = new EventEmitter();
8839
8841
  this.errorInd$ = new BehaviorSubject(false);
8840
8842
  }
@@ -8884,7 +8886,7 @@ class AddNewAddressComponent {
8884
8886
  esriConfig.request.interceptors.push({
8885
8887
  urls: [streetmapURL], // set the `urls` property to the Apigee URLs
8886
8888
  before: (params) => {
8887
- if (params.url.includes(this.apigee_url)) {
8889
+ if (params.url.includes(streetmapURL)) {
8888
8890
  params.requestOptions.headers = params.requestOptions.headers || {};
8889
8891
  params.requestOptions.headers['authorization'] = `Bearer ${token}`;
8890
8892
  params.requestOptions.headers['Access-Control-Request-Headers'] = 'authorization';
@@ -9258,7 +9260,7 @@ class CustomCheckoutComponent {
9258
9260
  this.Initialtime = '6:00 AM';
9259
9261
  this.initialMaxTime = '06:30 AM';
9260
9262
  this.timeOptions = [
9261
- '06:00 AM', '06:30 AM', '07:00 AM', '08:30 AM',
9263
+ '06:00 AM', '06:30 AM', '07:00 AM', '07:30 AM', '08:00 AM', '08:30 AM',
9262
9264
  '09:00 AM', '09:30 AM', '10:00 AM', '10:30 AM', '11:00 AM', '11:30 AM',
9263
9265
  '12:00 PM'
9264
9266
  ];