sf-i-events 1.0.787 → 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.787",
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 = '[]';
@@ -16544,7 +16545,7 @@ let SfIEvents = class SfIEvents extends LitElement {
16544
16545
  }
16545
16546
  else {
16546
16547
  const jsonRespose = JSON.parse(xhr.responseText);
16547
- this.setError(jsonRespose.body.message);
16548
+ this.setError(jsonRespose.message);
16548
16549
  }
16549
16550
  };
16550
16551
  this.uploadReportsReviewsBulk = async (bulkBody) => {
@@ -16560,7 +16561,7 @@ let SfIEvents = class SfIEvents extends LitElement {
16560
16561
  }
16561
16562
  else {
16562
16563
  const jsonRespose = JSON.parse(xhr.responseText);
16563
- this.setError(jsonRespose.body.message);
16564
+ this.setError(jsonRespose.message);
16564
16565
  }
16565
16566
  };
16566
16567
  this.uploadReviewsBulk = async (bulkBody) => {
@@ -16576,7 +16577,7 @@ let SfIEvents = class SfIEvents extends LitElement {
16576
16577
  }
16577
16578
  else {
16578
16579
  const jsonRespose = JSON.parse(xhr.responseText);
16579
- this.setError(jsonRespose.body.message);
16580
+ this.setError(jsonRespose.message);
16580
16581
  }
16581
16582
  };
16582
16583
  this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events") => {
@@ -16621,7 +16622,7 @@ let SfIEvents = class SfIEvents extends LitElement {
16621
16622
  }
16622
16623
  else {
16623
16624
  const jsonRespose = JSON.parse(xhr.responseText);
16624
- this.setError(jsonRespose.body.message);
16625
+ this.setError(jsonRespose.message);
16625
16626
  }
16626
16627
  };
16627
16628
  this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
@@ -16641,7 +16642,7 @@ let SfIEvents = class SfIEvents extends LitElement {
16641
16642
  }
16642
16643
  else {
16643
16644
  const jsonRespose = JSON.parse(xhr.responseText);
16644
- this.setError(jsonRespose.body.message);
16645
+ this.setError(jsonRespose.message);
16645
16646
  }
16646
16647
  };
16647
16648
  this.uploadMapping = async () => {
@@ -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
 
@@ -22045,7 +22047,7 @@ export class SfIEvents extends LitElement {
22045
22047
 
22046
22048
  } else {
22047
22049
  const jsonRespose = JSON.parse(xhr.responseText);
22048
- this.setError(jsonRespose.body.message);
22050
+ this.setError(jsonRespose.message);
22049
22051
  }
22050
22052
  }
22051
22053
  uploadReportsReviewsBulk = async (bulkBody: any) => {
@@ -22062,7 +22064,7 @@ export class SfIEvents extends LitElement {
22062
22064
 
22063
22065
  } else {
22064
22066
  const jsonRespose = JSON.parse(xhr.responseText);
22065
- this.setError(jsonRespose.body.message);
22067
+ this.setError(jsonRespose.message);
22066
22068
  }
22067
22069
  }
22068
22070
  uploadReviewsBulk = async (bulkBody: any) => {
@@ -22079,7 +22081,7 @@ export class SfIEvents extends LitElement {
22079
22081
 
22080
22082
  } else {
22081
22083
  const jsonRespose = JSON.parse(xhr.responseText);
22082
- this.setError(jsonRespose.body.message);
22084
+ this.setError(jsonRespose.message);
22083
22085
  }
22084
22086
  }
22085
22087
 
@@ -22129,7 +22131,7 @@ export class SfIEvents extends LitElement {
22129
22131
 
22130
22132
  } else {
22131
22133
  const jsonRespose = JSON.parse(xhr.responseText);
22132
- this.setError(jsonRespose.body.message);
22134
+ this.setError(jsonRespose.message);
22133
22135
  }
22134
22136
  }
22135
22137
 
@@ -22151,7 +22153,7 @@ export class SfIEvents extends LitElement {
22151
22153
 
22152
22154
  } else {
22153
22155
  const jsonRespose = JSON.parse(xhr.responseText);
22154
- this.setError(jsonRespose.body.message);
22156
+ this.setError(jsonRespose.message);
22155
22157
  }
22156
22158
  }
22157
22159
 
@@ -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);