sf-i-events 1.0.972 → 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 CHANGED
@@ -999,7 +999,7 @@
999
999
  </div>
1000
1000
 
1001
1001
  </sf-i-events> -->
1002
- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
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"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.972",
4
+ "version": "1.0.973",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.js CHANGED
@@ -14308,7 +14308,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14308
14308
  };
14309
14309
  this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, previousId = "", nextId = "", flagUploadGuidance = false, listEventContainer = null, reportercomments = null, approvercomments = null, inputReportingPercentage = null, selectReportedLocation = null, documents = null, dateOfCompletion = null, fromDrilldown = false) => {
14310
14310
  console.log('listEvent', listEvent, listEvent.id);
14311
- let url = "https://" + this.apiId + "/getalleventdetails1";
14311
+ let url = "https://" + this.apiId + "/getalleventdetails";
14312
14312
  //console.log('fetch calendar url', url);
14313
14313
  let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.getFinancialYear(mmddyyyy) };
14314
14314
  //console.log('urlbody', urlBody);
@@ -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 + "/triggermyevent2";
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 + "/triggerevent1";
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 + "/uploadreview1";
22758
- if (module == "rcmresource" && this.apiId2 != null) {
22759
- url = "https://" + this.apiId2 + "/uploadreview1";
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 + "/uploadreport3";
22856
- if (module == "rcmresource" && this.apiId2 != null) {
22857
- url = "https://" + this.apiId2 + "/uploadreport3";
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 + "/getsuspenselist1";
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 = "getallcountryevents5";
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 = "getallcountryevents5";
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 = "getstatistics1";
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 + "/getallcountryevents5";
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 = '';
@@ -18255,7 +18255,7 @@ export class SfIEvents extends LitElement {
18255
18255
 
18256
18256
  fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId: string = "", nextId: string = "", flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null, reportercomments: string | null = null, approvercomments: string | null = null, inputReportingPercentage: string | null = null, selectReportedLocation: string | null = null, documents: any | null = null, dateOfCompletion: string | null = null, fromDrilldown: boolean = false) => {
18257
18257
  console.log('listEvent', listEvent, listEvent.id)
18258
- let url = "https://" + this.apiId + "/getalleventdetails1";
18258
+ let url = "https://" + this.apiId + "/getalleventdetails";
18259
18259
 
18260
18260
  //console.log('fetch calendar url', url);
18261
18261
  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.getFinancialYear(mmddyyyy) };
@@ -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 + "/triggermyevent2";
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 + "/triggerevent1";
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 + "/uploadreview1";
28646
- if(module == "rcmresource" && this.apiId2 != null) {
28647
- url = "https://" + this.apiId2 + "/uploadreview1";
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 + "/uploadreport3";
28748
- if(module == "rcmresource" && this.apiId2 != null) {
28749
- url = "https://" + this.apiId2 + "/uploadreport3";
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 + "/getsuspenselist1";
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 = "getallcountryevents5";
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 = "getallcountryevents5";
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 = "getstatistics1";
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 + "/getallcountryevents5";
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 = '';