sf-i-events 1.0.503 → 1.0.504
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 +9 -9
- package/sf-i-events.js.map +1 -1
- package/src/sf-i-events.ts +9 -9
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -11716,7 +11716,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11716
11716
|
}
|
|
11717
11717
|
};
|
|
11718
11718
|
this.fetchUpdateUsermap = async (usermap) => {
|
|
11719
|
-
let url = "https://" + this.apiIdUsers + "
|
|
11719
|
+
let url = "https://" + this.apiIdUsers + "/updatefield";
|
|
11720
11720
|
this.setSuccess('Updating usermaps, please wait...');
|
|
11721
11721
|
console.log('updating usermap', usermap);
|
|
11722
11722
|
const arrUserIds = Object.keys(usermap);
|
|
@@ -11752,7 +11752,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11752
11752
|
}
|
|
11753
11753
|
};
|
|
11754
11754
|
this.fetchDetailProject = async (projectId) => {
|
|
11755
|
-
let url = "https://" + this.apiIdProjects + "
|
|
11755
|
+
let url = "https://" + this.apiIdProjects + "/detail";
|
|
11756
11756
|
let authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
11757
11757
|
let xhr = (await this.prepareXhr({ "id": projectId }, url, this._SfLoader, authorization));
|
|
11758
11758
|
this._SfLoader.innerHTML = '';
|
|
@@ -11782,7 +11782,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11782
11782
|
}
|
|
11783
11783
|
};
|
|
11784
11784
|
this.fetchSearchStatutes = async (searchString, cursor = "") => {
|
|
11785
|
-
let url = "https://" + this.apiIdStatutes + "
|
|
11785
|
+
let url = "https://" + this.apiIdStatutes + "/listlarge";
|
|
11786
11786
|
let authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
11787
11787
|
let xhr = (await this.prepareXhr({ "searchstring": searchString, "cursor": cursor }, url, this._SfLoader, authorization));
|
|
11788
11788
|
this._SfLoader.innerHTML = '';
|
|
@@ -11792,7 +11792,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11792
11792
|
let newCursor = jsonRespose.cursor;
|
|
11793
11793
|
let i = 0;
|
|
11794
11794
|
while (true) {
|
|
11795
|
-
url = "https://" + this.apiIdStatutes + "
|
|
11795
|
+
url = "https://" + this.apiIdStatutes + "/listlarge";
|
|
11796
11796
|
authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
11797
11797
|
xhr = (await this.prepareXhr({ "searchstring": searchString, "cursor": newCursor }, url, this._SfLoader, authorization, "" + parseInt(((i) * 100 / jsonRespose.found) + "") + "%"));
|
|
11798
11798
|
this._SfLoader.innerHTML = '';
|
|
@@ -11819,7 +11819,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11819
11819
|
}
|
|
11820
11820
|
};
|
|
11821
11821
|
this.fetchSearchCompliances = async (searchString, cursor = "", count, length) => {
|
|
11822
|
-
let url = "https://" + this.apiIdCompliances + "
|
|
11822
|
+
let url = "https://" + this.apiIdCompliances + "/listlarge";
|
|
11823
11823
|
let authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
11824
11824
|
let xhr = (await this.prepareXhr({ "searchstring": searchString, "cursor": cursor }, url, this._SfLoader, authorization));
|
|
11825
11825
|
this._SfLoader.innerHTML = '';
|
|
@@ -11829,7 +11829,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11829
11829
|
let newCursor = jsonRespose.cursor;
|
|
11830
11830
|
//console.log('newcursor', newCursor);
|
|
11831
11831
|
while (true) {
|
|
11832
|
-
url = "https://" + this.apiIdCompliances + "
|
|
11832
|
+
url = "https://" + this.apiIdCompliances + "/listlarge";
|
|
11833
11833
|
authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
11834
11834
|
xhr = (await this.prepareXhr({ "searchstring": searchString, "cursor": newCursor }, url, this._SfLoader, authorization, "" + parseInt(((count) * 100 / length) + "") + "%"));
|
|
11835
11835
|
this._SfLoader.innerHTML = '';
|
|
@@ -12136,7 +12136,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12136
12136
|
}
|
|
12137
12137
|
};
|
|
12138
12138
|
this.fetchUpdatedCompliances = async (nextBackwardToken = "") => {
|
|
12139
|
-
let url = "https://" + this.apiIdCompliances + "
|
|
12139
|
+
let url = "https://" + this.apiIdCompliances + "/logs";
|
|
12140
12140
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
12141
12141
|
const xhr = (await this.prepareXhr({ "nextBackwardToken": nextBackwardToken }, url, this._SfLoader, authorization));
|
|
12142
12142
|
this._SfLoader.innerHTML = '';
|
|
@@ -12474,7 +12474,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12474
12474
|
const body = this.getApiBodyList();
|
|
12475
12475
|
body.id = value;
|
|
12476
12476
|
console.log('detail', value, body);
|
|
12477
|
-
let url = "https://" + this.apiIdDetail + "
|
|
12477
|
+
let url = "https://" + this.apiIdDetail + "/" + this.apiMethodDetail;
|
|
12478
12478
|
console.log('fetch events detail url', url);
|
|
12479
12479
|
console.log('fetch events detail body', body);
|
|
12480
12480
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
@@ -12825,7 +12825,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12825
12825
|
const body = this.getApiBodyList();
|
|
12826
12826
|
if (this.apiIdList != null) {
|
|
12827
12827
|
body.id = this._SfProject[0].querySelector('#sf-i-project').selectedValues()[0];
|
|
12828
|
-
let url = "https://" + this.apiIdList + "
|
|
12828
|
+
let url = "https://" + this.apiIdList + "/" + this.apiMethodList;
|
|
12829
12829
|
console.log('fetch events url', url);
|
|
12830
12830
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
12831
12831
|
const xhr = (await this.prepareXhr(body, url, this._SfLoader, authorization));
|