sf-i-events 1.0.458 → 1.0.459
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 +43 -46
- package/sf-i-events.js.map +1 -1
- package/src/sf-i-events.ts +42 -42
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -9572,7 +9572,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9572
9572
|
// console.log('checking',mapped);
|
|
9573
9573
|
jsonData.push({ id: resultCompliances.values[i].id, mapped: mapped, data: resultCompliances.values[i].fields, cols: ["country", "jurisdiction", "state", "category", "subcategory", "statute", "applicability", "obligation", "risk", "riskarea", "frequency", "penalty"], extraFields: extraFields });
|
|
9574
9574
|
}
|
|
9575
|
-
this.renderMappingTable(this._SfOnboardingCompliancesListContainer, jsonData, [{ prev: initCursor, next: resultCompliances.cursor }], this.fetchSearchCompliances, searchString, mappedCompliances, resultCompliances.values.length, this.uploadCompliancesMapping, this.loadOnboardingCompliances, ["Client remarks", "FlaggGRC response"],
|
|
9575
|
+
this.renderMappingTable(this._SfOnboardingCompliancesListContainer, jsonData, [{ prev: initCursor, next: resultCompliances.cursor }], this.fetchSearchCompliances, searchString, mappedCompliances, resultCompliances.values.length, this.uploadCompliancesMapping, this.loadOnboardingCompliances, ["Client remarks", "FlaggGRC response"], -1, 0, "compliances", "", "statute", ["optional", "optional"]);
|
|
9576
9576
|
}
|
|
9577
9577
|
}
|
|
9578
9578
|
});
|
|
@@ -9608,7 +9608,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9608
9608
|
// }
|
|
9609
9609
|
// }
|
|
9610
9610
|
// mappedCountries.data.mappings.mappings = arr2;
|
|
9611
|
-
this.renderTaggingTable(this._SfOnboardingCountriesListContainer, mappedCompliances, mappedCountries, ["firstlineofdefence", "obligation", "country", "statute", "state", "subcategory"], this.uploadCountriesMapping, this.
|
|
9611
|
+
this.renderTaggingTable(this._SfOnboardingCountriesListContainer, mappedCompliances, mappedCountries, ["firstlineofdefence", "obligation", "country", "statute", "state", "subcategory"], this.uploadCountriesMapping, this.loadOnboardingCountries, "countries", ["id"], this.apiIdTags, "-Country", ["countries"], countriesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
9612
9612
|
};
|
|
9613
9613
|
this.renderOnboardingStatutes = (mappedStatutes) => {
|
|
9614
9614
|
var initCursor = "";
|
|
@@ -13421,50 +13421,47 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13421
13421
|
}
|
|
13422
13422
|
};
|
|
13423
13423
|
this.fetchMappedCompliances = async () => {
|
|
13424
|
-
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13434
|
-
|
|
13435
|
-
|
|
13436
|
-
|
|
13437
|
-
let
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
}
|
|
13466
|
-
} while (true);
|
|
13467
|
-
return jsonResponse;
|
|
13424
|
+
let url = "https://" + this.apiId + "/getmappedcompliances";
|
|
13425
|
+
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
13426
|
+
const xhr = (await this.prepareXhr({ "projectid": this.projectId }, url, this._SfLoader, authorization));
|
|
13427
|
+
this._SfLoader.innerHTML = '';
|
|
13428
|
+
if (xhr.status == 200) {
|
|
13429
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
13430
|
+
console.log(jsonRespose);
|
|
13431
|
+
return jsonRespose;
|
|
13432
|
+
}
|
|
13433
|
+
else {
|
|
13434
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
13435
|
+
this.setError(jsonRespose.error);
|
|
13436
|
+
}
|
|
13437
|
+
// let jsonResponse : any = null;
|
|
13438
|
+
// let lastEvaluatedKey : any = 0;
|
|
13439
|
+
// do {
|
|
13440
|
+
// console.log(lastEvaluatedKey);
|
|
13441
|
+
// let url = "https://"+this.apiId+"/getmappedcompliances";
|
|
13442
|
+
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
13443
|
+
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId, "lastevaluatedkey": lastEvaluatedKey}, url, this._SfLoader, authorization)) as any;
|
|
13444
|
+
// this._SfLoader.innerHTML = '';
|
|
13445
|
+
// if(xhr.status == 200) {
|
|
13446
|
+
// const jsRespose = JSON.parse(xhr.responseText);
|
|
13447
|
+
// console.log(jsRespose);
|
|
13448
|
+
// if(jsRespose == null) return;
|
|
13449
|
+
// if(lastEvaluatedKey === 0) {
|
|
13450
|
+
// jsonResponse = {};
|
|
13451
|
+
// jsonResponse.data = {}
|
|
13452
|
+
// jsonResponse.data = jsRespose.data;
|
|
13453
|
+
// } else {
|
|
13454
|
+
// jsonResponse.data.mappings.mappings.push(...jsRespose.data.mappings.mappings);
|
|
13455
|
+
// }
|
|
13456
|
+
// if(jsRespose.lastEvaluatedKey < 0) break;
|
|
13457
|
+
// lastEvaluatedKey = jsRespose.lastEvaluatedKey;
|
|
13458
|
+
// } else {
|
|
13459
|
+
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
13460
|
+
// this.setError(jsonRespose.error);
|
|
13461
|
+
// break;
|
|
13462
|
+
// }
|
|
13463
|
+
// } while(true);
|
|
13464
|
+
// return jsonResponse;
|
|
13468
13465
|
};
|
|
13469
13466
|
this.fetchMappedSerializedAlertSchedules = async () => {
|
|
13470
13467
|
return (await this.fetchSerializedPartByPart("https://" + this.apiId + "/getmappedserializedalertschedules"));
|