sf-i-events 1.0.970 → 1.0.971

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.970",
4
+ "version": "1.0.971",
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
@@ -141,6 +141,7 @@ export declare class SfIEvents extends LitElement {
141
141
  disableclientresponse: string;
142
142
  disablesignoff: string;
143
143
  apiId: string;
144
+ apiId2: string;
144
145
  apiIdStatutes: string;
145
146
  apiIdDefinitions: string;
146
147
  apiidReportformats: string;
package/sf-i-events.js CHANGED
@@ -22755,6 +22755,9 @@ let SfIEvents = class SfIEvents extends LitElement {
22755
22755
  };
22756
22756
  this.uploadReview = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "compliance") => {
22757
22757
  let url = "https://" + this.apiId + "/uploadreview1";
22758
+ if (module == "rcmresource" && this.apiId2 != null) {
22759
+ url = "https://" + this.apiId2 + "/uploadreview1";
22760
+ }
22758
22761
  const body = {
22759
22762
  "mmddyyyy": mmddyyyy,
22760
22763
  "projectid": this.projectId,
@@ -22850,6 +22853,9 @@ let SfIEvents = class SfIEvents extends LitElement {
22850
22853
  };
22851
22854
  this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "compliance", percentage = "100", makercheckers, reportedlocations = "") => {
22852
22855
  let url = "https://" + this.apiId + "/uploadreport2";
22856
+ if (module == "rcmresource" && this.apiId2 != null) {
22857
+ url = "https://" + this.apiId2 + "/uploadreport2";
22858
+ }
22853
22859
  let yearStr = this.getFinancialYear(mmddyyyy);
22854
22860
  let body = {
22855
22861
  "mmddyyyy": mmddyyyy,
@@ -27973,6 +27979,9 @@ __decorate([
27973
27979
  __decorate([
27974
27980
  property()
27975
27981
  ], SfIEvents.prototype, "apiId", void 0);
27982
+ __decorate([
27983
+ property()
27984
+ ], SfIEvents.prototype, "apiId2", void 0);
27976
27985
  __decorate([
27977
27986
  property()
27978
27987
  ], SfIEvents.prototype, "apiIdStatutes", void 0);
@@ -1234,6 +1234,9 @@ export class SfIEvents extends LitElement {
1234
1234
  @property()
1235
1235
  apiId!: string;
1236
1236
 
1237
+ @property()
1238
+ apiId2!: string;
1239
+
1237
1240
  @property()
1238
1241
  apiIdStatutes!: string;
1239
1242
 
@@ -28640,7 +28643,9 @@ export class SfIEvents extends LitElement {
28640
28643
 
28641
28644
  uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "compliance") => {
28642
28645
  let url = "https://" + this.apiId + "/uploadreview1";
28643
-
28646
+ if(module == "rcmresource" && this.apiId2 != null) {
28647
+ url = "https://" + this.apiId2 + "/uploadreview1";
28648
+ }
28644
28649
  const body = {
28645
28650
  "mmddyyyy": mmddyyyy,
28646
28651
  "projectid": this.projectId,
@@ -28740,6 +28745,9 @@ export class SfIEvents extends LitElement {
28740
28745
 
28741
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 = "") => {
28742
28747
  let url = "https://" + this.apiId + "/uploadreport2";
28748
+ if(module == "rcmresource" && this.apiId2 != null) {
28749
+ url = "https://" + this.apiId2 + "/uploadreport2";
28750
+ }
28743
28751
  let yearStr = this.getFinancialYear(mmddyyyy)
28744
28752
  let body = {
28745
28753
  "mmddyyyy": mmddyyyy,