sf-i-events 1.0.788 → 1.0.789

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.788",
4
+ "version": "1.0.789",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.d.ts CHANGED
@@ -111,6 +111,7 @@ export declare class SfIEvents extends LitElement {
111
111
  barCharDataSet3Arr: Array<any>;
112
112
  barCharDataSet4: Array<any>;
113
113
  barCharDataSet4Arr: Array<any>;
114
+ getallcountryevetsParams: string;
114
115
  _SfDecryptContainer: any;
115
116
  _SfDecryptProjectInput: any;
116
117
  _SfDecryptFileInput: any;
package/sf-i-events.js CHANGED
@@ -844,6 +844,7 @@ let SfIEvents = class SfIEvents extends LitElement {
844
844
  this.barCharDataSet3Arr = [];
845
845
  this.barCharDataSet4 = [];
846
846
  this.barCharDataSet4Arr = [];
847
+ this.getallcountryevetsParams = "";
847
848
  this.decryptProjectId = "";
848
849
  this.decryptFileName = "";
849
850
  this.filteronboarding = '[]';
@@ -17901,18 +17902,23 @@ let SfIEvents = class SfIEvents extends LitElement {
17901
17902
  urlBody["searchstring"] = searchString;
17902
17903
  }
17903
17904
  //console.log('urlbody', urlBody);
17905
+ this.getallcountryevetsParams = JSON.stringify(urlBody);
17904
17906
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
17905
17907
  const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
17906
17908
  this._SfLoader.innerHTML = '';
17907
17909
  if (xhr.status == 200) {
17908
17910
  const jsonRespose = JSON.parse(xhr.responseText);
17909
17911
  console.log('jsonRespose', jsonRespose);
17910
- this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
17912
+ if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
17913
+ this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
17914
+ }
17911
17915
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
17912
- this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN');
17913
- console.log('rendering appropriate string', list);
17914
- this.renderAppropriateStream(startDate, endDate, true);
17915
- this.fetchBulkReportingData();
17916
+ if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
17917
+ this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN');
17918
+ console.log('rendering appropriate string', list);
17919
+ this.renderAppropriateStream(startDate, endDate, true);
17920
+ this.fetchBulkReportingData();
17921
+ }
17916
17922
  // if(this.selectedFeatures.indexOf('notices') >= 0){
17917
17923
  // this.fetchAndRenderNotices(startDate, endDate);
17918
17924
  // }
@@ -18073,10 +18079,11 @@ let SfIEvents = class SfIEvents extends LitElement {
18073
18079
  urlBody["filteruserid"] = filterid;
18074
18080
  }
18075
18081
  console.log('urlbody', urlBody);
18082
+ this.getallcountryevetsParams = JSON.stringify(urlBody);
18076
18083
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
18077
18084
  const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
18078
18085
  this._SfLoader.innerHTML = '';
18079
- if (xhr.status == 200) {
18086
+ if (xhr.status == 200 && this.getallcountryevetsParams == JSON.stringify(urlBody)) {
18080
18087
  const jsonRespose = JSON.parse(xhr.responseText);
18081
18088
  console.log('jsonRespose Statistics', jsonRespose);
18082
18089
  this.statistics = jsonRespose.data;
@@ -861,6 +861,8 @@ export class SfIEvents extends LitElement {
861
861
 
862
862
  barCharDataSet4Arr: Array<any> = [];
863
863
 
864
+ getallcountryevetsParams: string = "";
865
+
864
866
  @query('#decrypt-container')
865
867
  _SfDecryptContainer: any;
866
868
 
@@ -23930,7 +23932,7 @@ export class SfIEvents extends LitElement {
23930
23932
  }
23931
23933
 
23932
23934
  //console.log('urlbody', urlBody);
23933
-
23935
+ this.getallcountryevetsParams = JSON.stringify(urlBody);
23934
23936
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
23935
23937
  const xhr : any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
23936
23938
  this._SfLoader.innerHTML = '';
@@ -23938,12 +23940,16 @@ export class SfIEvents extends LitElement {
23938
23940
 
23939
23941
  const jsonRespose = JSON.parse(xhr.responseText);
23940
23942
  console.log('jsonRespose', jsonRespose);
23941
- this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
23943
+ if(JSON.stringify(urlBody) == this.getallcountryevetsParams){
23944
+ this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
23945
+ }
23942
23946
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
23943
- this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
23944
- console.log('rendering appropriate string', list);
23947
+ if(JSON.stringify(urlBody) == this.getallcountryevetsParams){
23948
+ this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
23949
+ console.log('rendering appropriate string', list);
23945
23950
  this.renderAppropriateStream(startDate, endDate, true);
23946
23951
  this.fetchBulkReportingData();
23952
+ }
23947
23953
  // if(this.selectedFeatures.indexOf('notices') >= 0){
23948
23954
  // this.fetchAndRenderNotices(startDate, endDate);
23949
23955
  // }
@@ -24148,11 +24154,11 @@ export class SfIEvents extends LitElement {
24148
24154
  }
24149
24155
 
24150
24156
  console.log('urlbody', urlBody);
24151
-
24157
+ this.getallcountryevetsParams = JSON.stringify(urlBody);
24152
24158
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24153
24159
  const xhr : any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
24154
24160
  this._SfLoader.innerHTML = '';
24155
- if(xhr.status == 200) {
24161
+ if(xhr.status == 200 && this.getallcountryevetsParams == JSON.stringify(urlBody)) {
24156
24162
 
24157
24163
  const jsonRespose = JSON.parse(xhr.responseText);
24158
24164
  console.log('jsonRespose Statistics', jsonRespose);