sf-i-events 1.0.788 → 1.0.790
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 +1 -1
- package/sf-i-events.d.ts +1 -0
- package/sf-i-events.js +28 -6
- package/src/sf-i-events.ts +27 -6
package/package.json
CHANGED
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 = '[]';
|
|
@@ -16545,6 +16546,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16545
16546
|
else {
|
|
16546
16547
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16547
16548
|
this.setError(jsonRespose.message);
|
|
16549
|
+
setTimeout(() => {
|
|
16550
|
+
this.clearMessages();
|
|
16551
|
+
}, 3000);
|
|
16548
16552
|
}
|
|
16549
16553
|
};
|
|
16550
16554
|
this.uploadReportsReviewsBulk = async (bulkBody) => {
|
|
@@ -16561,6 +16565,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16561
16565
|
else {
|
|
16562
16566
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16563
16567
|
this.setError(jsonRespose.message);
|
|
16568
|
+
setTimeout(() => {
|
|
16569
|
+
this.clearMessages();
|
|
16570
|
+
}, 3000);
|
|
16564
16571
|
}
|
|
16565
16572
|
};
|
|
16566
16573
|
this.uploadReviewsBulk = async (bulkBody) => {
|
|
@@ -16577,6 +16584,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16577
16584
|
else {
|
|
16578
16585
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16579
16586
|
this.setError(jsonRespose.message);
|
|
16587
|
+
setTimeout(() => {
|
|
16588
|
+
this.clearMessages();
|
|
16589
|
+
}, 3000);
|
|
16580
16590
|
}
|
|
16581
16591
|
};
|
|
16582
16592
|
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events") => {
|
|
@@ -16622,6 +16632,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16622
16632
|
else {
|
|
16623
16633
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16624
16634
|
this.setError(jsonRespose.message);
|
|
16635
|
+
setTimeout(() => {
|
|
16636
|
+
this.clearMessages();
|
|
16637
|
+
}, 3000);
|
|
16625
16638
|
}
|
|
16626
16639
|
};
|
|
16627
16640
|
this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
|
|
@@ -16642,6 +16655,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16642
16655
|
else {
|
|
16643
16656
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16644
16657
|
this.setError(jsonRespose.message);
|
|
16658
|
+
setTimeout(() => {
|
|
16659
|
+
this.clearMessages();
|
|
16660
|
+
}, 3000);
|
|
16645
16661
|
}
|
|
16646
16662
|
};
|
|
16647
16663
|
this.uploadMapping = async () => {
|
|
@@ -17901,18 +17917,23 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17901
17917
|
urlBody["searchstring"] = searchString;
|
|
17902
17918
|
}
|
|
17903
17919
|
//console.log('urlbody', urlBody);
|
|
17920
|
+
this.getallcountryevetsParams = JSON.stringify(urlBody);
|
|
17904
17921
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17905
17922
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
17906
17923
|
this._SfLoader.innerHTML = '';
|
|
17907
17924
|
if (xhr.status == 200) {
|
|
17908
17925
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17909
17926
|
console.log('jsonRespose', jsonRespose);
|
|
17910
|
-
|
|
17927
|
+
if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
|
|
17928
|
+
this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
17929
|
+
}
|
|
17911
17930
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
|
|
17912
|
-
|
|
17913
|
-
|
|
17914
|
-
|
|
17915
|
-
|
|
17931
|
+
if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
|
|
17932
|
+
this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN');
|
|
17933
|
+
console.log('rendering appropriate string', list);
|
|
17934
|
+
this.renderAppropriateStream(startDate, endDate, true);
|
|
17935
|
+
this.fetchBulkReportingData();
|
|
17936
|
+
}
|
|
17916
17937
|
// if(this.selectedFeatures.indexOf('notices') >= 0){
|
|
17917
17938
|
// this.fetchAndRenderNotices(startDate, endDate);
|
|
17918
17939
|
// }
|
|
@@ -18073,10 +18094,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18073
18094
|
urlBody["filteruserid"] = filterid;
|
|
18074
18095
|
}
|
|
18075
18096
|
console.log('urlbody', urlBody);
|
|
18097
|
+
this.getallcountryevetsParams = JSON.stringify(urlBody);
|
|
18076
18098
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18077
18099
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
18078
18100
|
this._SfLoader.innerHTML = '';
|
|
18079
|
-
if (xhr.status == 200) {
|
|
18101
|
+
if (xhr.status == 200 && this.getallcountryevetsParams == JSON.stringify(urlBody)) {
|
|
18080
18102
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18081
18103
|
console.log('jsonRespose Statistics', jsonRespose);
|
|
18082
18104
|
this.statistics = jsonRespose.data;
|
package/src/sf-i-events.ts
CHANGED
|
@@ -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
|
|
|
@@ -22046,6 +22048,9 @@ export class SfIEvents extends LitElement {
|
|
|
22046
22048
|
} else {
|
|
22047
22049
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22048
22050
|
this.setError(jsonRespose.message);
|
|
22051
|
+
setTimeout(() => {
|
|
22052
|
+
this.clearMessages();
|
|
22053
|
+
}, 3000);
|
|
22049
22054
|
}
|
|
22050
22055
|
}
|
|
22051
22056
|
uploadReportsReviewsBulk = async (bulkBody: any) => {
|
|
@@ -22063,6 +22068,9 @@ export class SfIEvents extends LitElement {
|
|
|
22063
22068
|
} else {
|
|
22064
22069
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22065
22070
|
this.setError(jsonRespose.message);
|
|
22071
|
+
setTimeout(() => {
|
|
22072
|
+
this.clearMessages();
|
|
22073
|
+
}, 3000);
|
|
22066
22074
|
}
|
|
22067
22075
|
}
|
|
22068
22076
|
uploadReviewsBulk = async (bulkBody: any) => {
|
|
@@ -22080,6 +22088,9 @@ export class SfIEvents extends LitElement {
|
|
|
22080
22088
|
} else {
|
|
22081
22089
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22082
22090
|
this.setError(jsonRespose.message);
|
|
22091
|
+
setTimeout(() => {
|
|
22092
|
+
this.clearMessages();
|
|
22093
|
+
}, 3000);
|
|
22083
22094
|
}
|
|
22084
22095
|
}
|
|
22085
22096
|
|
|
@@ -22130,6 +22141,9 @@ export class SfIEvents extends LitElement {
|
|
|
22130
22141
|
} else {
|
|
22131
22142
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22132
22143
|
this.setError(jsonRespose.message);
|
|
22144
|
+
setTimeout(() => {
|
|
22145
|
+
this.clearMessages();
|
|
22146
|
+
}, 3000);
|
|
22133
22147
|
}
|
|
22134
22148
|
}
|
|
22135
22149
|
|
|
@@ -22152,6 +22166,9 @@ export class SfIEvents extends LitElement {
|
|
|
22152
22166
|
} else {
|
|
22153
22167
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22154
22168
|
this.setError(jsonRespose.message);
|
|
22169
|
+
setTimeout(() => {
|
|
22170
|
+
this.clearMessages();
|
|
22171
|
+
}, 3000);
|
|
22155
22172
|
}
|
|
22156
22173
|
}
|
|
22157
22174
|
|
|
@@ -23930,7 +23947,7 @@ export class SfIEvents extends LitElement {
|
|
|
23930
23947
|
}
|
|
23931
23948
|
|
|
23932
23949
|
//console.log('urlbody', urlBody);
|
|
23933
|
-
|
|
23950
|
+
this.getallcountryevetsParams = JSON.stringify(urlBody);
|
|
23934
23951
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23935
23952
|
const xhr : any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
23936
23953
|
this._SfLoader.innerHTML = '';
|
|
@@ -23938,12 +23955,16 @@ export class SfIEvents extends LitElement {
|
|
|
23938
23955
|
|
|
23939
23956
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23940
23957
|
console.log('jsonRespose', jsonRespose);
|
|
23941
|
-
|
|
23958
|
+
if(JSON.stringify(urlBody) == this.getallcountryevetsParams){
|
|
23959
|
+
this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
23960
|
+
}
|
|
23942
23961
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
23943
|
-
|
|
23944
|
-
|
|
23962
|
+
if(JSON.stringify(urlBody) == this.getallcountryevetsParams){
|
|
23963
|
+
this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
|
|
23964
|
+
console.log('rendering appropriate string', list);
|
|
23945
23965
|
this.renderAppropriateStream(startDate, endDate, true);
|
|
23946
23966
|
this.fetchBulkReportingData();
|
|
23967
|
+
}
|
|
23947
23968
|
// if(this.selectedFeatures.indexOf('notices') >= 0){
|
|
23948
23969
|
// this.fetchAndRenderNotices(startDate, endDate);
|
|
23949
23970
|
// }
|
|
@@ -24148,11 +24169,11 @@ export class SfIEvents extends LitElement {
|
|
|
24148
24169
|
}
|
|
24149
24170
|
|
|
24150
24171
|
console.log('urlbody', urlBody);
|
|
24151
|
-
|
|
24172
|
+
this.getallcountryevetsParams = JSON.stringify(urlBody);
|
|
24152
24173
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24153
24174
|
const xhr : any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
24154
24175
|
this._SfLoader.innerHTML = '';
|
|
24155
|
-
if(xhr.status == 200) {
|
|
24176
|
+
if(xhr.status == 200 && this.getallcountryevetsParams == JSON.stringify(urlBody)) {
|
|
24156
24177
|
|
|
24157
24178
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24158
24179
|
console.log('jsonRespose Statistics', jsonRespose);
|