sf-i-events 1.0.971 → 1.0.973
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/dev/index.html +4 -4
- package/package.json +1 -1
- package/sf-i-events.js +15 -15
- package/src/sf-i-events.ts +15 -15
package/dev/index.html
CHANGED
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
</div>
|
|
1000
1000
|
|
|
1001
1001
|
</sf-i-events> -->
|
|
1002
|
-
|
|
1002
|
+
<sf-i-events name="Calendar" apiid="api2.flagggrc.tech/event-api" mode="consumer"
|
|
1003
1003
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
1004
1004
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
1005
1005
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -1028,7 +1028,7 @@
|
|
|
1028
1028
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
1029
1029
|
</div>
|
|
1030
1030
|
|
|
1031
|
-
</sf-i-events>
|
|
1031
|
+
</sf-i-events>
|
|
1032
1032
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
1033
1033
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
1034
1034
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -1231,7 +1231,7 @@
|
|
|
1231
1231
|
</div>
|
|
1232
1232
|
|
|
1233
1233
|
</sf-i-events> -->
|
|
1234
|
-
<sf-i-events name="Calendar" apiid="api2.flagggrc.tech/event-api" mode="consumer"
|
|
1234
|
+
<!-- <sf-i-events name="Calendar" apiid="api2.flagggrc.tech/event-api" mode="consumer"
|
|
1235
1235
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
1236
1236
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
1237
1237
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -1259,7 +1259,7 @@
|
|
|
1259
1259
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
1260
1260
|
</div>
|
|
1261
1261
|
|
|
1262
|
-
</sf-i-events>
|
|
1262
|
+
</sf-i-events> -->
|
|
1263
1263
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiIdUserProfiles="dnytrdlrmxgsy.cloudfront.net/userprofile" mode="reports" fill="pattern"
|
|
1264
1264
|
username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410"
|
|
1265
1265
|
projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" calendarstartyyyy="2025"
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -22620,7 +22620,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22620
22620
|
}
|
|
22621
22621
|
};
|
|
22622
22622
|
this.uploadTriggerMyEvent = async (complianceid, message, countryname, entityname, locationname, statute, subcategory, suspenseVal = {}) => {
|
|
22623
|
-
let url = "https://" + this.apiId + "/
|
|
22623
|
+
let url = "https://" + this.apiId + "/triggermyevent";
|
|
22624
22624
|
const body = {
|
|
22625
22625
|
"projectid": this.projectId,
|
|
22626
22626
|
"complianceid": complianceid,
|
|
@@ -22659,7 +22659,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22659
22659
|
}
|
|
22660
22660
|
};
|
|
22661
22661
|
this.uploadTriggerEvent = async (triggeredCompliances) => {
|
|
22662
|
-
let url = "https://" + this.apiId + "/
|
|
22662
|
+
let url = "https://" + this.apiId + "/triggerevent";
|
|
22663
22663
|
const body = {
|
|
22664
22664
|
"projectid": this.projectId,
|
|
22665
22665
|
"triggers": triggeredCompliances
|
|
@@ -22754,10 +22754,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22754
22754
|
}
|
|
22755
22755
|
};
|
|
22756
22756
|
this.uploadReview = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "compliance") => {
|
|
22757
|
-
let url = "https://" + this.apiId + "/
|
|
22758
|
-
if
|
|
22759
|
-
|
|
22760
|
-
}
|
|
22757
|
+
let url = "https://" + this.apiId + "/uploadreview";
|
|
22758
|
+
// if(module == "rcmresource" && this.apiId2 != null) {
|
|
22759
|
+
// url = "https://" + this.apiId2 + "/uploadreview1";
|
|
22760
|
+
// }
|
|
22761
22761
|
const body = {
|
|
22762
22762
|
"mmddyyyy": mmddyyyy,
|
|
22763
22763
|
"projectid": this.projectId,
|
|
@@ -22852,10 +22852,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22852
22852
|
}
|
|
22853
22853
|
};
|
|
22854
22854
|
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "compliance", percentage = "100", makercheckers, reportedlocations = "") => {
|
|
22855
|
-
let url = "https://" + this.apiId + "/
|
|
22856
|
-
if
|
|
22857
|
-
|
|
22858
|
-
}
|
|
22855
|
+
let url = "https://" + this.apiId + "/uploadreport";
|
|
22856
|
+
// if(module == "rcmresource" && this.apiId2 != null) {
|
|
22857
|
+
// url = "https://" + this.apiId2 + "/uploadreport";
|
|
22858
|
+
// }
|
|
22859
22859
|
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
22860
22860
|
let body = {
|
|
22861
22861
|
"mmddyyyy": mmddyyyy,
|
|
@@ -24072,7 +24072,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24072
24072
|
}
|
|
24073
24073
|
};
|
|
24074
24074
|
this.fetchSuspenseList = async (year = "") => {
|
|
24075
|
-
let url = "https://" + this.apiId + "/
|
|
24075
|
+
let url = "https://" + this.apiId + "/getsuspenselist";
|
|
24076
24076
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24077
24077
|
if (year == "") {
|
|
24078
24078
|
year = this.getCurrentYearGeneric();
|
|
@@ -24244,7 +24244,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24244
24244
|
else {
|
|
24245
24245
|
view = "entity";
|
|
24246
24246
|
}
|
|
24247
|
-
path = "
|
|
24247
|
+
path = "getallcountryevents";
|
|
24248
24248
|
let sDate = "";
|
|
24249
24249
|
let eDate = "";
|
|
24250
24250
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -24354,7 +24354,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24354
24354
|
else {
|
|
24355
24355
|
view = "entity";
|
|
24356
24356
|
}
|
|
24357
|
-
path = "
|
|
24357
|
+
path = "getallcountryevents";
|
|
24358
24358
|
let url = "https://" + this.apiId + "/" + path;
|
|
24359
24359
|
let temptagid = tagid;
|
|
24360
24360
|
if (temptagid == "" && locationid != "") {
|
|
@@ -24683,7 +24683,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24683
24683
|
let path = "";
|
|
24684
24684
|
this.sdate = startDate;
|
|
24685
24685
|
this.edate = endDate;
|
|
24686
|
-
path = "
|
|
24686
|
+
path = "getstatistics";
|
|
24687
24687
|
let sDate = "";
|
|
24688
24688
|
let eDate = "";
|
|
24689
24689
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -25874,7 +25874,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
25874
25874
|
day = '0' + day;
|
|
25875
25875
|
let eDate = month + "/" + day + "/" + year;
|
|
25876
25876
|
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 };
|
|
25877
|
-
let url = "https://" + this.apiId + "/
|
|
25877
|
+
let url = "https://" + this.apiId + "/getallcountryevents";
|
|
25878
25878
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
25879
25879
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
25880
25880
|
this._SfLoader.innerHTML = '';
|
package/src/sf-i-events.ts
CHANGED
|
@@ -28490,7 +28490,7 @@ export class SfIEvents extends LitElement {
|
|
|
28490
28490
|
|
|
28491
28491
|
uploadTriggerMyEvent = async (complianceid: string, message: string, countryname: string, entityname: string, locationname: string, statute: string, subcategory: string, suspenseVal: any = {}) => {
|
|
28492
28492
|
|
|
28493
|
-
let url = "https://" + this.apiId + "/
|
|
28493
|
+
let url = "https://" + this.apiId + "/triggermyevent";
|
|
28494
28494
|
|
|
28495
28495
|
const body = {
|
|
28496
28496
|
"projectid": this.projectId,
|
|
@@ -28536,7 +28536,7 @@ export class SfIEvents extends LitElement {
|
|
|
28536
28536
|
|
|
28537
28537
|
uploadTriggerEvent = async (triggeredCompliances: any) => {
|
|
28538
28538
|
|
|
28539
|
-
let url = "https://" + this.apiId + "/
|
|
28539
|
+
let url = "https://" + this.apiId + "/triggerevent";
|
|
28540
28540
|
|
|
28541
28541
|
const body = {
|
|
28542
28542
|
"projectid": this.projectId,
|
|
@@ -28642,10 +28642,10 @@ export class SfIEvents extends LitElement {
|
|
|
28642
28642
|
}
|
|
28643
28643
|
|
|
28644
28644
|
uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "compliance") => {
|
|
28645
|
-
let url = "https://" + this.apiId + "/
|
|
28646
|
-
if(module == "rcmresource" && this.apiId2 != null) {
|
|
28647
|
-
|
|
28648
|
-
}
|
|
28645
|
+
let url = "https://" + this.apiId + "/uploadreview";
|
|
28646
|
+
// if(module == "rcmresource" && this.apiId2 != null) {
|
|
28647
|
+
// url = "https://" + this.apiId2 + "/uploadreview1";
|
|
28648
|
+
// }
|
|
28649
28649
|
const body = {
|
|
28650
28650
|
"mmddyyyy": mmddyyyy,
|
|
28651
28651
|
"projectid": this.projectId,
|
|
@@ -28744,10 +28744,10 @@ export class SfIEvents extends LitElement {
|
|
|
28744
28744
|
}
|
|
28745
28745
|
|
|
28746
28746
|
uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "compliance", percentage: string = "100", makercheckers: any, reportedlocations: string = "") => {
|
|
28747
|
-
let url = "https://" + this.apiId + "/
|
|
28748
|
-
if(module == "rcmresource" && this.apiId2 != null) {
|
|
28749
|
-
|
|
28750
|
-
}
|
|
28747
|
+
let url = "https://" + this.apiId + "/uploadreport";
|
|
28748
|
+
// if(module == "rcmresource" && this.apiId2 != null) {
|
|
28749
|
+
// url = "https://" + this.apiId2 + "/uploadreport";
|
|
28750
|
+
// }
|
|
28751
28751
|
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
28752
28752
|
let body = {
|
|
28753
28753
|
"mmddyyyy": mmddyyyy,
|
|
@@ -30341,7 +30341,7 @@ export class SfIEvents extends LitElement {
|
|
|
30341
30341
|
|
|
30342
30342
|
fetchSuspenseList = async (year: string = "") => {
|
|
30343
30343
|
|
|
30344
|
-
let url = "https://" + this.apiId + "/
|
|
30344
|
+
let url = "https://" + this.apiId + "/getsuspenselist";
|
|
30345
30345
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
30346
30346
|
if (year == "") {
|
|
30347
30347
|
year = this.getCurrentYearGeneric();
|
|
@@ -30536,7 +30536,7 @@ export class SfIEvents extends LitElement {
|
|
|
30536
30536
|
view = "entity";
|
|
30537
30537
|
}
|
|
30538
30538
|
|
|
30539
|
-
path = "
|
|
30539
|
+
path = "getallcountryevents";
|
|
30540
30540
|
|
|
30541
30541
|
let sDate = "";
|
|
30542
30542
|
let eDate = "";
|
|
@@ -30678,7 +30678,7 @@ export class SfIEvents extends LitElement {
|
|
|
30678
30678
|
view = "entity";
|
|
30679
30679
|
}
|
|
30680
30680
|
|
|
30681
|
-
path = "
|
|
30681
|
+
path = "getallcountryevents";
|
|
30682
30682
|
|
|
30683
30683
|
let url = "https://" + this.apiId + "/" + path;
|
|
30684
30684
|
let temptagid = tagid;
|
|
@@ -31055,7 +31055,7 @@ export class SfIEvents extends LitElement {
|
|
|
31055
31055
|
this.edate = endDate;
|
|
31056
31056
|
|
|
31057
31057
|
|
|
31058
|
-
path = "
|
|
31058
|
+
path = "getstatistics";
|
|
31059
31059
|
|
|
31060
31060
|
let sDate = "";
|
|
31061
31061
|
let eDate = "";
|
|
@@ -32443,7 +32443,7 @@ export class SfIEvents extends LitElement {
|
|
|
32443
32443
|
day = '0' + day;
|
|
32444
32444
|
let eDate = month + "/" + day + "/" + year
|
|
32445
32445
|
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 };
|
|
32446
|
-
let url = "https://" + this.apiId + "/
|
|
32446
|
+
let url = "https://" + this.apiId + "/getallcountryevents";
|
|
32447
32447
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
32448
32448
|
const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
32449
32449
|
this._SfLoader.innerHTML = '';
|