sf-i-events 1.0.842 → 1.0.843
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.js +14 -14
- package/src/sf-i-events.ts +14 -14
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -9689,7 +9689,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9689
9689
|
};
|
|
9690
9690
|
this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, flagUploadGuidance = false, listEventContainer = null) => {
|
|
9691
9691
|
console.log('listEvent', listEvent, listEvent.id);
|
|
9692
|
-
let url = "https://" + this.apiId + "/
|
|
9692
|
+
let url = "https://" + this.apiId + "/getalleventdetails";
|
|
9693
9693
|
//console.log('fetch calendar url', url);
|
|
9694
9694
|
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.calendarStartYYYY };
|
|
9695
9695
|
//console.log('urlbody', urlBody);
|
|
@@ -17046,7 +17046,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17046
17046
|
}
|
|
17047
17047
|
};
|
|
17048
17048
|
this.uploadAudit = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "events") => {
|
|
17049
|
-
let url = "https://" + this.apiId + "/
|
|
17049
|
+
let url = "https://" + this.apiId + "/uploadaudit";
|
|
17050
17050
|
const body = {
|
|
17051
17051
|
"mmddyyyy": mmddyyyy,
|
|
17052
17052
|
"projectid": this.projectId,
|
|
@@ -17091,7 +17091,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17091
17091
|
return retValue;
|
|
17092
17092
|
};
|
|
17093
17093
|
this.uploadAuditsBulk = async (bulkBody) => {
|
|
17094
|
-
let url = "https://" + this.apiId + "/
|
|
17094
|
+
let url = "https://" + this.apiId + "/uploadauditsbulk";
|
|
17095
17095
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17096
17096
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17097
17097
|
this._SfLoader.innerHTML = '';
|
|
@@ -17111,7 +17111,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17111
17111
|
}
|
|
17112
17112
|
};
|
|
17113
17113
|
this.uploadReview = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "events") => {
|
|
17114
|
-
let url = "https://" + this.apiId + "/
|
|
17114
|
+
let url = "https://" + this.apiId + "/uploadreview";
|
|
17115
17115
|
const body = {
|
|
17116
17116
|
"mmddyyyy": mmddyyyy,
|
|
17117
17117
|
"projectid": this.projectId,
|
|
@@ -17183,7 +17183,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17183
17183
|
}
|
|
17184
17184
|
};
|
|
17185
17185
|
this.uploadReviewsBulk = async (bulkBody) => {
|
|
17186
|
-
let url = "https://" + this.apiId + "/
|
|
17186
|
+
let url = "https://" + this.apiId + "/uploadreviewsbulk";
|
|
17187
17187
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17188
17188
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17189
17189
|
this._SfLoader.innerHTML = '';
|
|
@@ -17206,7 +17206,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17206
17206
|
}
|
|
17207
17207
|
};
|
|
17208
17208
|
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events", percentage = "100", makercheckers) => {
|
|
17209
|
-
let url = "https://" + this.apiId + "/
|
|
17209
|
+
let url = "https://" + this.apiId + "/uploadreport";
|
|
17210
17210
|
let body = {
|
|
17211
17211
|
"mmddyyyy": mmddyyyy,
|
|
17212
17212
|
"projectid": this.projectId,
|
|
@@ -17264,7 +17264,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17264
17264
|
return retValue;
|
|
17265
17265
|
};
|
|
17266
17266
|
this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
|
|
17267
|
-
let url = "https://" + this.apiId + "/
|
|
17267
|
+
let url = "https://" + this.apiId + "/uploadreportsbulk";
|
|
17268
17268
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17269
17269
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17270
17270
|
if (showSuccess) {
|
|
@@ -17566,7 +17566,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17566
17566
|
}
|
|
17567
17567
|
};
|
|
17568
17568
|
this.fetchDeleteReview = async (eventId, mmddyyyy, entityId, locationId) => {
|
|
17569
|
-
let url = "https://" + this.apiId + "/
|
|
17569
|
+
let url = "https://" + this.apiId + "/deletereview";
|
|
17570
17570
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17571
17571
|
const xhr = (await this.prepareXhr({ "projectid": this.projectId, "entityid": entityId, "locationid": locationId, "mmddyyyy": mmddyyyy, "eventid": eventId, }, url, this._SfLoader, authorization));
|
|
17572
17572
|
this._SfLoader.innerHTML = '';
|
|
@@ -18427,7 +18427,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18427
18427
|
else {
|
|
18428
18428
|
view = "entity";
|
|
18429
18429
|
}
|
|
18430
|
-
path = "
|
|
18430
|
+
path = "getallcountryevents";
|
|
18431
18431
|
let sDate = "";
|
|
18432
18432
|
let eDate = "";
|
|
18433
18433
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -18591,7 +18591,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18591
18591
|
let path = "";
|
|
18592
18592
|
this.sdate = startDate;
|
|
18593
18593
|
this.edate = endDate;
|
|
18594
|
-
path = "
|
|
18594
|
+
path = "getstatistics";
|
|
18595
18595
|
let sDate = "";
|
|
18596
18596
|
let eDate = "";
|
|
18597
18597
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -18803,7 +18803,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18803
18803
|
}
|
|
18804
18804
|
};
|
|
18805
18805
|
this.fetchAdhoc = async () => {
|
|
18806
|
-
let path = "
|
|
18806
|
+
let path = "getallmyevents", view = "";
|
|
18807
18807
|
if (this.tagId != null && this.tagId != "") {
|
|
18808
18808
|
view = "tag";
|
|
18809
18809
|
}
|
|
@@ -19137,7 +19137,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19137
19137
|
this.fetchNext = async (page, role, status) => {
|
|
19138
19138
|
//this.apiBodyList = '{"id": "' +(this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedValues()[0]+ '"}'
|
|
19139
19139
|
this.nextPage = page;
|
|
19140
|
-
let url = "https://" + this.apiId + "/
|
|
19140
|
+
let url = "https://" + this.apiId + "/getnextuserevents";
|
|
19141
19141
|
let statusArr = [];
|
|
19142
19142
|
if (status == this.TAB_ALL) {
|
|
19143
19143
|
statusArr = [this.STATUS_NOT_STARTED, this.STATUS_PENDING_APPROVAL, this.STATUS_REJECTED, this.STATUS_APPROVED];
|
|
@@ -19709,7 +19709,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19709
19709
|
day = '0' + day;
|
|
19710
19710
|
let eDate = month + "/" + day + "/" + year;
|
|
19711
19711
|
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY };
|
|
19712
|
-
let url = "https://" + this.apiId + "/
|
|
19712
|
+
let url = "https://" + this.apiId + "/getallcountryevents";
|
|
19713
19713
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
19714
19714
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
19715
19715
|
this._SfLoader.innerHTML = '';
|
|
@@ -19794,7 +19794,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19794
19794
|
console.log('fetching compliances', sortid);
|
|
19795
19795
|
let complianceEntityId = sortid.split(';')[1];
|
|
19796
19796
|
let complianceLocationId = sortid.split(';')[2];
|
|
19797
|
-
let url = "https://" + this.apiId + "/
|
|
19797
|
+
let url = "https://" + this.apiId + "/getallcountryevents";
|
|
19798
19798
|
let sDateObj = selectedDate;
|
|
19799
19799
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
19800
19800
|
let day = '' + sDateObj.getDate();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -13300,7 +13300,7 @@ export class SfIEvents extends LitElement {
|
|
|
13300
13300
|
|
|
13301
13301
|
fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null) => {
|
|
13302
13302
|
console.log('listEvent', listEvent, listEvent.id)
|
|
13303
|
-
let url = "https://"+this.apiId+"/
|
|
13303
|
+
let url = "https://"+this.apiId+"/getalleventdetails";
|
|
13304
13304
|
|
|
13305
13305
|
//console.log('fetch calendar url', url);
|
|
13306
13306
|
let urlBody :any = {"projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.calendarStartYYYY};
|
|
@@ -22545,7 +22545,7 @@ export class SfIEvents extends LitElement {
|
|
|
22545
22545
|
}
|
|
22546
22546
|
|
|
22547
22547
|
uploadAudit = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
|
|
22548
|
-
let url = "https://"+this.apiId+"/
|
|
22548
|
+
let url = "https://"+this.apiId+"/uploadaudit";
|
|
22549
22549
|
|
|
22550
22550
|
const body = {
|
|
22551
22551
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22592,7 +22592,7 @@ export class SfIEvents extends LitElement {
|
|
|
22592
22592
|
return retValue;
|
|
22593
22593
|
}
|
|
22594
22594
|
uploadAuditsBulk = async (bulkBody: any) => {
|
|
22595
|
-
let url = "https://"+this.apiId+"/
|
|
22595
|
+
let url = "https://"+this.apiId+"/uploadauditsbulk";
|
|
22596
22596
|
|
|
22597
22597
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22598
22598
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -22615,7 +22615,7 @@ export class SfIEvents extends LitElement {
|
|
|
22615
22615
|
}
|
|
22616
22616
|
|
|
22617
22617
|
uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
|
|
22618
|
-
let url = "https://"+this.apiId+"/
|
|
22618
|
+
let url = "https://"+this.apiId+"/uploadreview";
|
|
22619
22619
|
|
|
22620
22620
|
const body = {
|
|
22621
22621
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22690,7 +22690,7 @@ export class SfIEvents extends LitElement {
|
|
|
22690
22690
|
}
|
|
22691
22691
|
}
|
|
22692
22692
|
uploadReviewsBulk = async (bulkBody: any) => {
|
|
22693
|
-
let url = "https://"+this.apiId+"/
|
|
22693
|
+
let url = "https://"+this.apiId+"/uploadreviewsbulk";
|
|
22694
22694
|
|
|
22695
22695
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22696
22696
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -22715,7 +22715,7 @@ export class SfIEvents extends LitElement {
|
|
|
22715
22715
|
}
|
|
22716
22716
|
|
|
22717
22717
|
uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "events", percentage: string = "100", makercheckers: any) => {
|
|
22718
|
-
let url = "https://"+this.apiId+"/
|
|
22718
|
+
let url = "https://"+this.apiId+"/uploadreport";
|
|
22719
22719
|
|
|
22720
22720
|
let body = {
|
|
22721
22721
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22777,7 +22777,7 @@ export class SfIEvents extends LitElement {
|
|
|
22777
22777
|
}
|
|
22778
22778
|
|
|
22779
22779
|
uploadReportsBulk = async (bulkBody: any, showSuccess: boolean = true) => {
|
|
22780
|
-
let url = "https://"+this.apiId+"/
|
|
22780
|
+
let url = "https://"+this.apiId+"/uploadreportsbulk"
|
|
22781
22781
|
|
|
22782
22782
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22783
22783
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -23173,7 +23173,7 @@ export class SfIEvents extends LitElement {
|
|
|
23173
23173
|
|
|
23174
23174
|
fetchDeleteReview = async (eventId: string, mmddyyyy: string, entityId: string, locationId: string) => {
|
|
23175
23175
|
|
|
23176
|
-
let url = "https://"+this.apiId+"/
|
|
23176
|
+
let url = "https://"+this.apiId+"/deletereview";
|
|
23177
23177
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23178
23178
|
const xhr : any = (await this.prepareXhr({"projectid": this.projectId, "entityid": entityId, "locationid": locationId, "mmddyyyy": mmddyyyy, "eventid": eventId, }, url, this._SfLoader, authorization)) as any;
|
|
23179
23179
|
this._SfLoader.innerHTML = '';
|
|
@@ -24316,7 +24316,7 @@ export class SfIEvents extends LitElement {
|
|
|
24316
24316
|
view = "entity";
|
|
24317
24317
|
}
|
|
24318
24318
|
|
|
24319
|
-
path = "
|
|
24319
|
+
path = "getallcountryevents";
|
|
24320
24320
|
|
|
24321
24321
|
let sDate = "";
|
|
24322
24322
|
let eDate = "";
|
|
@@ -24527,7 +24527,7 @@ export class SfIEvents extends LitElement {
|
|
|
24527
24527
|
this.edate = endDate;
|
|
24528
24528
|
|
|
24529
24529
|
|
|
24530
|
-
path = "
|
|
24530
|
+
path = "getstatistics";
|
|
24531
24531
|
|
|
24532
24532
|
let sDate = "";
|
|
24533
24533
|
let eDate = "";
|
|
@@ -24766,7 +24766,7 @@ export class SfIEvents extends LitElement {
|
|
|
24766
24766
|
|
|
24767
24767
|
fetchAdhoc = async () => {
|
|
24768
24768
|
|
|
24769
|
-
let path = "
|
|
24769
|
+
let path = "getallmyevents", view = "";
|
|
24770
24770
|
|
|
24771
24771
|
if(this.tagId != null && this.tagId != "") {
|
|
24772
24772
|
view = "tag";
|
|
@@ -25175,7 +25175,7 @@ export class SfIEvents extends LitElement {
|
|
|
25175
25175
|
|
|
25176
25176
|
//this.apiBodyList = '{"id": "' +(this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedValues()[0]+ '"}'
|
|
25177
25177
|
this.nextPage = page;
|
|
25178
|
-
let url = "https://"+this.apiId+"/
|
|
25178
|
+
let url = "https://"+this.apiId+"/getnextuserevents";
|
|
25179
25179
|
let statusArr: string[] = []
|
|
25180
25180
|
if(status == this.TAB_ALL){
|
|
25181
25181
|
statusArr = [this.STATUS_NOT_STARTED, this.STATUS_PENDING_APPROVAL, this.STATUS_REJECTED, this.STATUS_APPROVED]
|
|
@@ -25848,7 +25848,7 @@ export class SfIEvents extends LitElement {
|
|
|
25848
25848
|
day = '0' + day;
|
|
25849
25849
|
let eDate = month + "/" + day + "/" + year
|
|
25850
25850
|
let urlBody :any = {"projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY};
|
|
25851
|
-
let url = "https://"+this.apiId+"/
|
|
25851
|
+
let url = "https://"+this.apiId+"/getallcountryevents";
|
|
25852
25852
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
25853
25853
|
const xhr : any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
25854
25854
|
this._SfLoader.innerHTML = '';
|
|
@@ -25941,7 +25941,7 @@ export class SfIEvents extends LitElement {
|
|
|
25941
25941
|
console.log('fetching compliances', sortid)
|
|
25942
25942
|
let complianceEntityId = sortid.split(';')[1]
|
|
25943
25943
|
let complianceLocationId = sortid.split(';')[2]
|
|
25944
|
-
let url = "https://"+this.apiId+"/
|
|
25944
|
+
let url = "https://"+this.apiId+"/getallcountryevents";
|
|
25945
25945
|
let sDateObj = selectedDate
|
|
25946
25946
|
sDateObj.setDate(selectedDate.getDate() - 60)
|
|
25947
25947
|
let day = '' + sDateObj.getDate();
|