@mikezimm/fps-core-v7 1.0.47 → 1.0.48
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/lib/banner/components/ItemPicker/functions/fetchFileList.d.ts +3 -2
- package/lib/banner/components/ItemPicker/functions/fetchFileList.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js +11 -13
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.d.ts +3 -9
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.js +2 -2
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.js.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts +4 -3
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.js +13 -14
- package/lib/banner/components/ItemPicker/functions/fetchListList.js.map +1 -1
- package/lib/banner/features/FPSDOM/IFPSDigestValues.d.ts +2 -0
- package/lib/banner/features/FPSDOM/IFPSDigestValues.d.ts.map +1 -1
- package/lib/banner/mainReact/IWebpartBannerProps.d.ts +2 -0
- package/lib/banner/mainReact/IWebpartBannerProps.d.ts.map +1 -1
- package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.d.ts +2 -1
- package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.d.ts.map +1 -1
- package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.js +2 -1
- package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.js.map +1 -1
- package/lib/components/molecules/SpHttp/{doSpJsBatchFetch.d.ts → Js/doSpJsBatchFetch.d.ts} +1 -1
- package/lib/components/molecules/SpHttp/Js/doSpJsBatchFetch.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/{doSpJsBatchFetch.js → Js/doSpJsBatchFetch.js} +6 -6
- package/lib/components/molecules/SpHttp/Js/doSpJsBatchFetch.js.map +1 -0
- package/lib/components/molecules/SpHttp/Js/doSpJsFetch copy.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/Js/doSpJsFetch copy.js.map +1 -0
- package/lib/components/molecules/SpHttp/{doSpJsFetch.d.ts → Js/doSpJsFetch.d.ts} +3 -3
- package/lib/components/molecules/SpHttp/Js/doSpJsFetch.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/{doSpJsFetch.js → Js/doSpJsFetch.js} +19 -17
- package/lib/components/molecules/SpHttp/Js/doSpJsFetch.js.map +1 -0
- package/lib/components/molecules/SpHttp/{doSpJsFileFetch.d.ts → Js/doSpJsFileFetch.d.ts} +1 -1
- package/lib/components/molecules/SpHttp/Js/doSpJsFileFetch.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/{doSpJsFileFetch.js → Js/doSpJsFileFetch.js} +11 -11
- package/lib/components/molecules/SpHttp/Js/doSpJsFileFetch.js.map +1 -0
- package/lib/components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN.d.ts +53 -0
- package/lib/components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN.js +2 -0
- package/lib/components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN.js.map +1 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFetch.d.ts +68 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFetch.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFetch.js +339 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFetch.js.map +1 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFileFetch.d.ts +25 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFileFetch.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFileFetch.js +93 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFileFetch.js.map +1 -0
- package/lib/components/molecules/SpHttp/SpFetchCommon.d.ts +2 -1
- package/lib/components/molecules/SpHttp/SpFetchCommon.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/SpFetchCommon.js +7 -4
- package/lib/components/molecules/SpHttp/SpFetchCommon.js.map +1 -1
- package/lib/components/molecules/SpHttp/helpers/getCurrentFPSDigest.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/helpers/getCurrentFPSDigest.js +2 -1
- package/lib/components/molecules/SpHttp/helpers/getCurrentFPSDigest.js.map +1 -1
- package/lib/components/molecules/SpHttp/interfaces/IFPSSearchAPIResultsData.d.ts +1 -1
- package/lib/components/molecules/process-results/CheckAnyResults.d.ts +2 -1
- package/lib/components/molecules/process-results/CheckAnyResults.d.ts.map +1 -1
- package/lib/components/molecules/process-results/CheckAnyResults.js +2 -2
- package/lib/components/molecules/process-results/CheckAnyResults.js.map +1 -1
- package/lib/components/molecules/process-results/CheckItemsResults.d.ts +2 -1
- package/lib/components/molecules/process-results/CheckItemsResults.d.ts.map +1 -1
- package/lib/components/molecules/process-results/CheckItemsResults.js +2 -2
- package/lib/components/molecules/process-results/CheckItemsResults.js.map +1 -1
- package/lib/components/molecules/process-results/CheckItemsResultsWDigest.d.ts +3 -0
- package/lib/components/molecules/process-results/CheckItemsResultsWDigest.d.ts.map +1 -0
- package/lib/components/molecules/process-results/CheckItemsResultsWDigest.js +48 -0
- package/lib/components/molecules/process-results/CheckItemsResultsWDigest.js.map +1 -0
- package/lib/components/molecules/process-results/IFpsItemsReturn.d.ts +2 -0
- package/lib/components/molecules/process-results/IFpsItemsReturn.d.ts.map +1 -1
- package/lib/components/molecules/source-props/IMinSourceFetchProps.d.ts +2 -0
- package/lib/components/molecules/source-props/IMinSourceFetchProps.d.ts.map +1 -1
- package/lib/components/molecules/source-props/ISourceProps.d.ts +2 -0
- package/lib/components/molecules/source-props/ISourceProps.d.ts.map +1 -1
- package/lib/components/molecules/source-props/ISourceProps.js.map +1 -1
- package/lib/components/molecules/source-props/Lists/createListSource.d.ts +6 -2
- package/lib/components/molecules/source-props/Lists/createListSource.d.ts.map +1 -1
- package/lib/components/molecules/source-props/Lists/createListSource.js +8 -3
- package/lib/components/molecules/source-props/Lists/createListSource.js.map +1 -1
- package/lib/components/molecules/source-props/SitePages/NewsLinksSource.d.ts +3 -0
- package/lib/components/molecules/source-props/SitePages/NewsLinksSource.d.ts.map +1 -1
- package/lib/components/molecules/source-props/SitePages/NewsLinksSource.js +4 -0
- package/lib/components/molecules/source-props/SitePages/NewsLinksSource.js.map +1 -1
- package/lib/components/molecules/source-props/SitePages/NewsSource.d.ts +3 -0
- package/lib/components/molecules/source-props/SitePages/NewsSource.d.ts.map +1 -1
- package/lib/components/molecules/source-props/SitePages/NewsSource.js +4 -0
- package/lib/components/molecules/source-props/SitePages/NewsSource.js.map +1 -1
- package/lib/components/molecules/source-props/SitePages/SitePagesSource.d.ts +3 -0
- package/lib/components/molecules/source-props/SitePages/SitePagesSource.d.ts.map +1 -1
- package/lib/components/molecules/source-props/SitePages/SitePagesSource.js +4 -0
- package/lib/components/molecules/source-props/SitePages/SitePagesSource.js.map +1 -1
- package/lib/components/molecules/source-props/createGroupsSource.d.ts +3 -2
- package/lib/components/molecules/source-props/createGroupsSource.d.ts.map +1 -1
- package/lib/components/molecules/source-props/createGroupsSource.js +4 -3
- package/lib/components/molecules/source-props/createGroupsSource.js.map +1 -1
- package/lib/components/molecules/source-props/createLibrarySource.d.ts +3 -2
- package/lib/components/molecules/source-props/createLibrarySource.d.ts.map +1 -1
- package/lib/components/molecules/source-props/createLibrarySource.js +5 -3
- package/lib/components/molecules/source-props/createLibrarySource.js.map +1 -1
- package/lib/components/molecules/state-source/IStateSource.d.ts.map +1 -1
- package/lib/components/molecules/state-source/IStateSource.js +1 -0
- package/lib/components/molecules/state-source/IStateSource.js.map +1 -1
- package/lib/components/webparts/PalettePal/functions/ReactComponent.d.ts +2 -1
- package/lib/components/webparts/PalettePal/functions/ReactComponent.d.ts.map +1 -1
- package/lib/components/webparts/PalettePal/functions/ReactComponent.js +3 -3
- package/lib/components/webparts/PalettePal/functions/ReactComponent.js.map +1 -1
- package/lib/logic/Errors/friendly.d.ts.map +1 -1
- package/lib/logic/Errors/friendly.js +7 -1
- package/lib/logic/Errors/friendly.js.map +1 -1
- package/lib/restAPIs/lists/files/getFileEmbedUrl.d.ts +2 -0
- package/lib/restAPIs/lists/files/getFileEmbedUrl.d.ts.map +1 -1
- package/lib/restAPIs/lists/files/getFileEmbedUrl.js +3 -3
- package/lib/restAPIs/lists/files/getFileEmbedUrl.js.map +1 -1
- package/lib/restAPIs/lists/files/postSourceFilesAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/files/postSourceFilesAPI.js +4 -5
- package/lib/restAPIs/lists/files/postSourceFilesAPI.js.map +1 -1
- package/lib/restAPIs/lists/items/getOnlySharedItems.d.ts +2 -1
- package/lib/restAPIs/lists/items/getOnlySharedItems.d.ts.map +1 -1
- package/lib/restAPIs/lists/items/getOnlySharedItems.js +2 -1
- package/lib/restAPIs/lists/items/getOnlySharedItems.js.map +1 -1
- package/lib/restAPIs/lists/items/getSourceItemsAPI.js +4 -5
- package/lib/restAPIs/lists/items/getSourceItemsAPI.js.map +1 -1
- package/lib/restAPIs/lists/items/postSourceItemsAPI.js +2 -2
- package/lib/restAPIs/lists/items/postSourceItemsAPI.js.map +1 -1
- package/lib/restAPIs/lists/items/updateAnyItemAPI.js +2 -2
- package/lib/restAPIs/lists/items/updateAnyItemAPI.js.map +1 -1
- package/lib/restAPIs/lists/items/updateCommandItemAPI.d.ts +4 -2
- package/lib/restAPIs/lists/items/updateCommandItemAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/items/updateCommandItemAPI.js +9 -9
- package/lib/restAPIs/lists/items/updateCommandItemAPI.js.map +1 -1
- package/lib/restAPIs/lists/lists/getSourceListsAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/lists/getSourceListsAPI.js +2 -2
- package/lib/restAPIs/lists/lists/getSourceListsAPI.js.map +1 -1
- package/lib/restAPIs/logging/saveErrorToLog.d.ts +2 -1
- package/lib/restAPIs/logging/saveErrorToLog.d.ts.map +1 -1
- package/lib/restAPIs/logging/saveErrorToLog.js +5 -6
- package/lib/restAPIs/logging/saveErrorToLog.js.map +1 -1
- package/lib/restAPIs/logging/saveErrorToLogWDigest.d.ts +10 -0
- package/lib/restAPIs/logging/saveErrorToLogWDigest.d.ts.map +1 -0
- package/lib/restAPIs/logging/saveErrorToLogWDigest.js +57 -0
- package/lib/restAPIs/logging/saveErrorToLogWDigest.js.map +1 -0
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js +3 -3
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.js +2 -2
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.d.ts +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.js +5 -6
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoBatchAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoBatchAPI.js +3 -4
- package/lib/restAPIs/sites/groups/getWebGroupInfoBatchAPI.js.map +1 -1
- package/lib/restAPIs/sites/sites/getSiteAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/sites/getSiteAPI.js +6 -6
- package/lib/restAPIs/sites/sites/getSiteAPI.js.map +1 -1
- package/lib/restAPIs/sites/users/getSiteUsersAPI.js +2 -2
- package/lib/restAPIs/sites/users/getSiteUsersAPI.js.map +1 -1
- package/lib/restAPIs/sites/users/getSiteUsersBatchAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/users/getSiteUsersBatchAPI.js +2 -3
- package/lib/restAPIs/sites/users/getSiteUsersBatchAPI.js.map +1 -1
- package/lib/types/fps-returns/common/IFPSBaseContentType.d.ts +1 -1
- package/lib/types/fps-returns/common/IFPSBaseContentType.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/components/molecules/SpHttp/doSpJsBatchFetch.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/doSpJsBatchFetch.js.map +0 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch copy.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch copy.js.map +0 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch.js.map +0 -1
- package/lib/components/molecules/SpHttp/doSpJsFileFetch.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/doSpJsFileFetch.js.map +0 -1
- /package/lib/components/molecules/SpHttp/{doSpJsFetch copy.d.ts → Js/doSpJsFetch copy.d.ts} +0 -0
- /package/lib/components/molecules/SpHttp/{doSpJsFetch copy.js → Js/doSpJsFetch copy.js} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 2024-09-15: Migrated to SAME FOLDER in fps-library-v2\src\components\molecules\SpHttp...
|
|
3
|
+
* export { IJSFetchReturn, createEmptyFetchReturn, doSpJsFetch }
|
|
4
|
+
*/
|
|
5
|
+
import { check4This } from "../../../../logic/Links/CheckSearch";
|
|
6
|
+
import { checkDeepProperty } from "../../../../logic/Objects/deep";
|
|
7
|
+
import { makeAbsoluteUrl } from "../../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
8
|
+
import { saveErrorToLog } from "../../../../restAPIs/logging/saveErrorToLog";
|
|
9
|
+
import { CurrentHostName } from "../../source-props/WindowLocationConstants";
|
|
10
|
+
import { createEmptyFetchReturn } from "../IJSFetchReturn";
|
|
11
|
+
import { addCatchResponseError, addUnknownFetchError } from "../SpFetchCommon";
|
|
12
|
+
/**
|
|
13
|
+
* 2024-12-10: This does NOT have 429 retry yet.
|
|
14
|
+
* See doSpJsFetch for an example of how to handle that
|
|
15
|
+
*
|
|
16
|
+
* @param fetchAPI
|
|
17
|
+
* @param digestValue - REQUIRES digestValue
|
|
18
|
+
* @param headerContentType
|
|
19
|
+
* @param blob
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export async function doSpHttpFileFetch(fetchAPI, fpsSpService, headerContentType, blob) {
|
|
23
|
+
const results = await doSpHttpFileFetchOrPost(fetchAPI, 'GET', fpsSpService, headerContentType, blob);
|
|
24
|
+
return results;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Pass in any SharePoint rest api url and it should return a result or a standard error return object
|
|
28
|
+
* @param fetchAPI
|
|
29
|
+
* @param digestValue - REQUIRES digestValue for POST operations
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export async function doSpHttpFileFetchOrPost(fetchAPI, method = `GET`, fpsSpService, headerContentType, blob) {
|
|
33
|
+
// Automatically added this because API's usually need full url.
|
|
34
|
+
if (fetchAPI.indexOf(CurrentHostName) === 0)
|
|
35
|
+
fetchAPI = `https://${fetchAPI}`;
|
|
36
|
+
// Always make sure this is an absolute url by running through this first. Note, if the previous line executes, it should be good then.
|
|
37
|
+
fetchAPI = makeAbsoluteUrl(fetchAPI);
|
|
38
|
+
let results = createEmptyFetchReturn(fetchAPI, method);
|
|
39
|
+
results.fpsContentType = ['file', 'item'];
|
|
40
|
+
// Read the Blob as an ArrayBuffer using FileReader with async/await
|
|
41
|
+
const buffer = !blob ? null : await new Promise((resolve, reject) => {
|
|
42
|
+
const fileReader = new FileReader();
|
|
43
|
+
fileReader.onloadend = () => resolve(fileReader.result);
|
|
44
|
+
fileReader.onerror = reject;
|
|
45
|
+
fileReader.readAsArrayBuffer(blob);
|
|
46
|
+
});
|
|
47
|
+
const headers = {
|
|
48
|
+
Accept: "application/json;odata=verbose",
|
|
49
|
+
// "Content-Type": headerContentType ? headerContentType : 'application/json;odata=verbose', // NOT in the original uploadImageToLibrary
|
|
50
|
+
};
|
|
51
|
+
if (buffer)
|
|
52
|
+
headers['Content-Length'] = buffer.byteLength.toString(); // Set content length for the upload
|
|
53
|
+
try {
|
|
54
|
+
const response = await fpsSpService.fpsFetch(fetchAPI, {
|
|
55
|
+
method: method,
|
|
56
|
+
headers: headers,
|
|
57
|
+
body: buffer,
|
|
58
|
+
});
|
|
59
|
+
// check if the response is OK
|
|
60
|
+
if (response.ok) {
|
|
61
|
+
const data = await response.json();
|
|
62
|
+
const deepPropValue = checkDeepProperty(data, ['d', 'ServerRelativeUrl'], "Actual");
|
|
63
|
+
if (fetchAPI.indexOf('GetFolderByServerRelativeUrl') > 0) {
|
|
64
|
+
// added logic to solve this: https://github.com/mikezimm/pivottiles7/issues/292
|
|
65
|
+
if (deepPropValue !== undefined && deepPropValue !== null) {
|
|
66
|
+
results.itemUrl = deepPropValue;
|
|
67
|
+
results.ok = true;
|
|
68
|
+
results.status = 'Success';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
results.itemUrl = `Unknown Url`;
|
|
73
|
+
results.ok = false;
|
|
74
|
+
results.status = 'Error';
|
|
75
|
+
}
|
|
76
|
+
results.statusText = response.statusText;
|
|
77
|
+
results.statusNo = response.status;
|
|
78
|
+
if (check4This('fpsShowFetchResults=true') === true)
|
|
79
|
+
console.log(`fps-core-v7 Success: doSpHttpFileFetchOrPost ~ 86 results`, results);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
results = await addCatchResponseError(results, response, fpsSpService);
|
|
83
|
+
}
|
|
84
|
+
return results;
|
|
85
|
+
}
|
|
86
|
+
catch (e) {
|
|
87
|
+
results = addUnknownFetchError(results, e);
|
|
88
|
+
// 2024-12-09: Copied this over from updateCommandItems so it will always capture the errors somewhere
|
|
89
|
+
saveErrorToLog(results.errorInfo, results.errorInput, fpsSpService);
|
|
90
|
+
return results;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=doSpHttpFileFetch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doSpHttpFileFetch.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/Sp/doSpHttpFileFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAYH,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAkB,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG/E;;;;;;;;;GASG;AAEH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAgB,EAAE,YAAkC,EAAE,iBAAyB,EAAE,IAAU;IACjI,MAAM,OAAO,GAAmB,MAAM,uBAAuB,CAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,IAAI,CAAE,CAAC;IACxH,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAE,QAAgB,EAAE,SAAyB,KAAK,EAAE,YAAkC,EAAE,iBAAyB,EAAE,IAAU;IAExK,gEAAgE;IAChE,IAAK,QAAQ,CAAC,OAAO,CAAE,eAAe,CAAE,KAAK,CAAC;QAAG,QAAQ,GAAG,WAAW,QAAQ,EAAE,CAAC;IAElF,wIAAwI;IACxI,QAAQ,GAAG,eAAe,CAAE,QAAQ,CAAG,CAAC;IAExC,IAAI,OAAO,GAAmB,sBAAsB,CAA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K,IAAI,EAAG;oBAC3D,OAAO,CAAC,OAAO,GAAG,aAAa,CAAC;oBAChC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC;oBAClB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;iBAC5B;aACF;iBAAM;gBACH,OAAO,CAAC,OAAO,GAAG,aAAa,CAAC;gBAChC,OAAO,CAAC,EAAE,GAAG,KAAK,CAAC;gBACnB,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC;aAC5B;YAED,OAAO,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;YACzC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;YACnC,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI;gBAAG,OAAO,CAAC,GAAG,CAAE,2DAA2D,EAAE,OAAO,CAAE,CAAC;SAE9I;aAAM;YACL,OAAO,GAAG,MAAM,qBAAqB,CAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,CAAE,CAAC;SAE1E;QAED,OAAO,OAAO,CAAC;KAEhB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,GAAG,oBAAoB,CAAE,OAAO,EAAE,CAAC,CAAE,CAAC;QAC7C,uGAAuG;QACvG,cAAc,CAAE,OAAO,CAAC,SAA4B,EAAE,OAAO,CAAC,UAA4B,EAAE,YAAY,CAAE,CAAC;QAE3G,OAAO,OAAO,CAAC;KAEhB;AAEH,CAAC"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { IJSFetchReturn } from "./IJSFetchReturn";
|
|
5
5
|
*/
|
|
6
6
|
import { IJSFetchReturn } from "./IJSFetchReturn";
|
|
7
|
-
|
|
7
|
+
import { IFpsSpHttpServiceMIN } from "./Sp/IFpsSpHttpServiceMIN";
|
|
8
|
+
export declare function addCatchResponseError(results: IJSFetchReturn, response: Response, fpsSpService: IFpsSpHttpServiceMIN): Promise<IJSFetchReturn>;
|
|
8
9
|
export declare function addUnknownFetchError(results: IJSFetchReturn, e: any): IJSFetchReturn;
|
|
9
10
|
//# sourceMappingURL=SpFetchCommon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpFetchCommon.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/SpFetchCommon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"SpFetchCommon.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/SpFetchCommon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,wBAAsB,qBAAqB,CAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,oBAAoB,GAAK,OAAO,CAAC,cAAc,CAAC,CA8CvJ;AAED,wBAAgB,oBAAoB,CAAE,OAAO,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,GAAG,cAAc,CAsBrF"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { check4This } from "../../../logic/Links/CheckSearch";
|
|
7
7
|
import { checkDeepProperty } from "../../../logic/Objects/deep";
|
|
8
|
-
export async function addCatchResponseError(results, response,
|
|
8
|
+
export async function addCatchResponseError(results, response, fpsSpService) {
|
|
9
9
|
results.ok = response.ok;
|
|
10
10
|
results.statusText = response.statusText;
|
|
11
11
|
results.statusNo = response.status;
|
|
@@ -15,10 +15,12 @@ export async function addCatchResponseError(results, response, digestValue) {
|
|
|
15
15
|
* https://github.com/fps-solutions/fps-core-v7/issues/6
|
|
16
16
|
*/
|
|
17
17
|
let errorDetails;
|
|
18
|
+
let responseUsed = 'unk'; //
|
|
18
19
|
// 2024-12-09: Updated to add a try response.text() in case you get that.
|
|
19
20
|
try {
|
|
20
21
|
// Attempt to parse the response as JSON
|
|
21
22
|
errorDetails = await response.json();
|
|
23
|
+
responseUsed = 'json';
|
|
22
24
|
}
|
|
23
25
|
catch (jsonError) {
|
|
24
26
|
// If parsing as JSON fails, log the error and use text instead
|
|
@@ -26,6 +28,7 @@ export async function addCatchResponseError(results, response, digestValue) {
|
|
|
26
28
|
try {
|
|
27
29
|
// Capture the response body as plain text
|
|
28
30
|
errorDetails = await response.text();
|
|
31
|
+
responseUsed = 'text';
|
|
29
32
|
}
|
|
30
33
|
catch (textError) {
|
|
31
34
|
console.error('Failed to read response body as text:', textError);
|
|
@@ -34,14 +37,14 @@ export async function addCatchResponseError(results, response, digestValue) {
|
|
|
34
37
|
}
|
|
35
38
|
const errMessage = checkDeepProperty(errorDetails, ['error', 'message',], 'FullError', true); //errorDetails['odata.error'] && errorDetails['odata.error'].message ? errorDetails['odata.error'].message : 'unknown doSpJsFileFetchOrPost error ~ 93';
|
|
36
39
|
// 2024-10-02: Had to force to this format for a known error struture ( when column is missing ) to get it to work in friendly.ms
|
|
37
|
-
results.e = { message: errMessage.value, lang: errMessage.lang, };
|
|
40
|
+
results.e = { message: typeof errMessage === 'string' ? errMessage : errMessage.value ? errMessage.value : 'Unknown ~addCatchResponse ~42', lang: errMessage.lang ? errMessage.lang : 'Unk', };
|
|
38
41
|
if (check4This('fpsShowFetchResults=true') === true)
|
|
39
42
|
console.log(`fps-core-v7 Api Error: addCatchResponseError ~ 27 results`, results);
|
|
40
43
|
if (results.e.message.indexOf('security validation') > -1) {
|
|
41
44
|
if (results.errorInfo)
|
|
42
45
|
results.errorInfo.friendly = 'Potential missing or invalid digestValue';
|
|
43
|
-
console.log('Invalid
|
|
44
|
-
results.statusText = 'Invalid security validation...
|
|
46
|
+
console.log('Invalid sfpsSpService: ', fpsSpService);
|
|
47
|
+
results.statusText = 'Invalid security validation... fpsSpService?';
|
|
45
48
|
results.status = 'Error';
|
|
46
49
|
}
|
|
47
50
|
return results;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpFetchCommon.js","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/SpFetchCommon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"SpFetchCommon.js","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/SpFetchCommon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIhE,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAE,OAAuB,EAAE,QAAkB,EAAE,YAAkC;IAE1H,OAAO,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;IACzB,OAAO,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;IACzC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;IACnC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAE3B;;;OAGG;IACH,IAAI,YAAiB,CAAC;IACtB,IAAI,YAAY,GAA4B,KAAK,CAAC,CAAC,EAAE;IACrD,0EAA0E;IAC1E,IAAI;QACF,wCAAwC;QACxC,YAAY,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACrC,YAAY,GAAG,MAAM,CAAC;KACvB;IAAC,OAAO,SAAS,EAAE;QAClB,+DAA+D;QAC/D,OAAO,CAAC,IAAI,CAAC,yDAAyD,EAAE,SAAS,CAAC,CAAC;QACnF,IAAI;YACF,0CAA0C;YAC1C,YAAY,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACrC,YAAY,GAAG,MAAM,CAAC;SACvB;QAAC,OAAO,SAAS,EAAE;YAClB,OAAO,CAAC,KA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M,IAAI,GAAG,OAAO,CAAC,QAAQ,KAAK,GAAG,CAAC,CAAC,CAAC,sCAAsC;QAC9E,CAAC,CAAC,OAAO,CAAC,QAAQ,KAAK,GAAG,CAAC,CAAC,CAAC,8BAA8B;YAC3D,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAE,+CAA+C;IAE3F,IAAK,CAAC,OAAO,CAAC,CAAC;QAAG,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,GAAG,CAAC;IAElE,IAAK,CAAC,OAAO,CAAC,UAAU;QAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,GAAG,CAAC,CAAC,CAAC,uDAAuD,CAAC,CAAC,CAAC,gBAAgB,CAAC;IACtJ,IAAK,OAAO,CAAC,QAAQ,KAAK,GAAG,IAAI,CAAE,CAAC,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,KAAK,OAAO,CAAE;QAAG,OAAO,CAAC,MAAM,GAAG,iBAAiB,CAAC;IAExH,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI;QAAG,OAAO,CAAC,GAAG,CAAE,mEAAmE,EAAE,OAAO,CAAC,QAAQ,CAAE,CAAC;IAE9J,OAAO,OAAO,CAAC;AAEjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentFPSDigest.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/getCurrentFPSDigest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"getCurrentFPSDigest.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/getCurrentFPSDigest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAOvF,wBAAgB,mBAAmB,IAAI,gBAAgB,CAmBtD"}
|
|
@@ -6,10 +6,11 @@ export function getCurrentFPSDigest() {
|
|
|
6
6
|
if (!thisWindow.FPSDigestValues) {
|
|
7
7
|
let fpsWindowProps = {
|
|
8
8
|
// DO not really need these replacements of last slash but keeping for safety
|
|
9
|
-
AnalyticsWeb: { url: AnalyticsWebAbsolute.replace(/\/$/, ''), digestValue: '', time: 0, new: 0, queries: 0 },
|
|
9
|
+
AnalyticsWeb: { url: AnalyticsWebAbsolute.replace(/\/$/, ''), digestValue: '', time: 0, new: 0, queries: 0, },
|
|
10
10
|
CurrentSite: { url: CurrentSiteAbsolute.replace(/\/$/, ''), digestValue: '', time: 0, new: 0, queries: 0 },
|
|
11
11
|
SecureCDNAlyticsWeb: { url: SecureCDNalyticsWebAbsolute.replace(/\/$/, ''), digestValue: '', time: 0, new: 0, queries: 0 },
|
|
12
12
|
sites: [],
|
|
13
|
+
performance: [],
|
|
13
14
|
};
|
|
14
15
|
thisWindow.FPSDigestValues = fpsWindowProps;
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentFPSDigest.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/getCurrentFPSDigest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"getCurrentFPSDigest.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/getCurrentFPSDigest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAEtH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,gGAAgG;AAEhG,MAAM,UAAU,mBAAmB;IAEjC,MAAM,UAAU,GAAe,MAAa,CAAC;IAC7C,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE;QAE/B,IAAI,cAAc,GAAqB;YACrC,6EAA6E;YAC7E,YAAY,EAAE,EAAE,GAAG,EAAE,oBAAoB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,GAAI;YAC9G,WAAW,EAAE,EAAE,GAAG,EAAE,mBAAmB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;YAC1G,mBAAmB,EAAE,EAAE,GAAG,EAAE,2BAA2B,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;YAC1H,KAAK,EAAE,EAAE;YACT,WAAW,EAAE,EAAE;SAChB,CAAC;QAEF,UAAU,CAAC,eAAe,GAAG,cAAc,CAAC;KAE7C;IAED,OAAO,UAAU,CAAC,eAAe,CAAC;AACpC,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* export { IFPSSearchAPIResultsData, IFPSSecondaryQueryResults, IFPSSpecialTermResults }
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Determined this return structure while testing
|
|
6
|
+
* Determined this return structure while testing doSpHttpFetchOrPostAndCheck for Subsites that did not have any subs returned
|
|
7
7
|
* NOTE: This was originally done with SPFx 1.17.3 in SPO. MAY BE DIFFERENT IN SE
|
|
8
8
|
*/
|
|
9
9
|
export interface IFPSSearchAPIResultsData {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { IFpsErrorObject } from "../../../types/fps-returns/common/IFpsErrorObject";
|
|
2
|
-
|
|
2
|
+
import { IFpsSpHttpServiceMIN } from '../SpHttp/Sp/IFpsSpHttpServiceMIN';
|
|
3
|
+
export declare function checkAnyResults(fpsSpService: IFpsSpHttpServiceMIN, anyInput: IFpsErrorObject, traceString: string, alertMe: boolean, consoleLog: boolean): IFpsErrorObject;
|
|
3
4
|
//# sourceMappingURL=CheckAnyResults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckAnyResults.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckAnyResults.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckAnyResults.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckAnyResults.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAKpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAGzE,wBAAgB,eAAe,CAAG,YAAY,EAAE,oBAAoB,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAG,UAAU,EAAE,OAAO,GAAK,eAAe,CAoC/K"}
|
|
@@ -6,7 +6,7 @@ import { check4This } from "../../../logic/Links/CheckSearch";
|
|
|
6
6
|
import { FPSResultCommonErrors } from "../../../types/fps-returns/common/IFPSResultStatus";
|
|
7
7
|
import { makeid } from "../../../logic/Strings/guids";
|
|
8
8
|
// import { check4This } from '@mikezimm/fps-pnp2/lib/services/sp/CheckSearch';
|
|
9
|
-
export function checkAnyResults(anyInput, traceString, alertMe, consoleLog) {
|
|
9
|
+
export function checkAnyResults(fpsSpService, anyInput, traceString, alertMe, consoleLog) {
|
|
10
10
|
//Clean up the raw error and return a human readable result
|
|
11
11
|
anyInput.refreshId = makeid(7);
|
|
12
12
|
anyInput.loaded = anyInput.status === 'Success' ? true : false;
|
|
@@ -30,7 +30,7 @@ export function checkAnyResults(anyInput, traceString, alertMe, consoleLog) {
|
|
|
30
30
|
if (errorInfo.friendly.toLocaleLowerCase().indexOf('access') > -1
|
|
31
31
|
|| errorInfo.friendly.toLocaleLowerCase().indexOf('unauthorized') > -1)
|
|
32
32
|
anyInput.status = 'AccessDenied';
|
|
33
|
-
saveErrorToLog(anyInput.errorInfo, errorInput);
|
|
33
|
+
saveErrorToLog(anyInput.errorInfo, errorInput, fpsSpService);
|
|
34
34
|
}
|
|
35
35
|
if (check4This(`checkResults=true`) === true) {
|
|
36
36
|
console.log(`fps-core-v7 COMPLETED: checkAnyResults ~ 21`, anyInput);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckAnyResults.js","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckAnyResults.ts"],"names":[],"mappings":"AACA,+FAA+F;AAC/F,uGAAuG;AACvG,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAmC,MAAM,gCAAgC,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckAnyResults.js","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckAnyResults.ts"],"names":[],"mappings":"AACA,+FAA+F;AAC/F,uGAAuG;AACvG,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAmC,MAAM,gCAAgC,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,+EAA+E;AAE/E,MA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AC,CAAC;eAC7D,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;YAAG,QAAQ,CAAC,MAAM,GAAG,cAAc,CAAC;QAE5G,cAAc,CAAE,QAAQ,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,CAAE,CAAC;KAEhE;IAED,IAAK,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,6CAA6C,EAAE,QAAQ,CAAE,CAAA;KAAE;IAAA,CAAC;IAE3H,OAAO,QAAQ,CAAC;AAElB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { IFpsItemsReturn } from './IFpsItemsReturn';
|
|
2
|
-
|
|
2
|
+
import { IFpsSpHttpServiceMIN } from '../SpHttp/Sp/IFpsSpHttpServiceMIN';
|
|
3
|
+
export declare function checkItemsResults(fpsSpService: IFpsSpHttpServiceMIN, itemsInput: IFpsItemsReturn, traceString: string, alertMe: boolean | undefined, consoleLog: boolean | undefined): IFpsItemsReturn;
|
|
3
4
|
//# sourceMappingURL=CheckItemsResults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckItemsResults.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckItemsResults.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckItemsResults.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckItemsResults.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,wBAAgB,iBAAiB,CAAG,YAAY,EAAE,oBAAoB,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAG,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,eAAe,CA2C3M"}
|
|
@@ -4,7 +4,7 @@ import { FPSResultCommonErrors } from '../../../types/fps-returns/common/IFPSRes
|
|
|
4
4
|
import { convertHelpfullError } from '../../../logic/Errors/friendly';
|
|
5
5
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
6
6
|
import { saveErrorToLog } from '../../../restAPIs/logging/saveErrorToLog';
|
|
7
|
-
export function checkItemsResults(itemsInput, traceString, alertMe, consoleLog) {
|
|
7
|
+
export function checkItemsResults(fpsSpService, itemsInput, traceString, alertMe, consoleLog) {
|
|
8
8
|
//Clean up the raw error and return a human readable result
|
|
9
9
|
itemsInput.refreshId = makeid(7);
|
|
10
10
|
itemsInput.loaded = itemsInput.status === 'Success' ? true : false;
|
|
@@ -28,7 +28,7 @@ export function checkItemsResults(itemsInput, traceString, alertMe, consoleLog)
|
|
|
28
28
|
if (errorInfo.friendly.toLocaleLowerCase().indexOf('access') > -1
|
|
29
29
|
|| errorInfo.friendly.toLocaleLowerCase().indexOf('unauthorized') > -1)
|
|
30
30
|
itemsInput.status = 'AccessDenied';
|
|
31
|
-
saveErrorToLog(itemsInput.errorInfo, errorInput);
|
|
31
|
+
saveErrorToLog(itemsInput.errorInfo, errorInput, fpsSpService);
|
|
32
32
|
}
|
|
33
33
|
else if (itemsInput.status === 'Error') {
|
|
34
34
|
const err = itemsInput.e ? itemsInput.e : `${itemsInput.status} ${itemsInput.statusNo} ${itemsInput.statusText}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckItemsResults.js","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckItemsResults.ts"],"names":[],"mappings":"AACA,8CAA8C;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAmC,MAAM,gCAAgC,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckItemsResults.js","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckItemsResults.ts"],"names":[],"mappings":"AACA,8CAA8C;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAmC,MAAM,gCAAgC,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAI1E,MAAM,UAAU,iBAAiB,CAAG,YAAkC,EAAE,UAA2B,EAAE,WAAmB,EAAE,OAA4B,EAAG,UAA+B;IACtL,2DAA2D;IAE3D,UAAU,CAAC,SAAS,GAAG,MAAM,CAAE,CAAC,CAAE,CAAC;IACnC,UAAU,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACnE,IAAK,CAAC,UAAU,CAAC,cAAc;QAAG,UAAU,CAAC,cAAc,GAAG,EAAE,CAAC;IAEjE,IAAK,CAAC,UAAU,CAAC,qBAAqB;QAAG,UAAU,CAAC,qBAAqB,GAAG,EAAE,KAAK,EAAE,EAAoB,EAAE,CAAC;IAE5G,IAAK,qBAAqB,CAAC,OAAO,CAAE,UAAU,CAAC,CAAC,CAAE,GAAG,CAAC,CAAC,EAAG;QACxD,UAAU,CAAC,SAAS,GAAG;YACrB,MAAM,EAAE,UAAU,CAAC,CAAC;YACpB,QAAQ,EAAE,UAAU,CAAC,CAAC;YACtB,MAAM,EAAE,UAAU,CAAC,CAAC;YACpB,UAAU,EAAE,UAAU,CAAC,C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AAE,CAAA;KAAE;IAAA,CAAC;IAEjJ,OAAO,UAAU,CAAC;AAEpB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IFpsItemsReturn } from './IFpsItemsReturn';
|
|
2
|
+
export declare function CheckItemsResultsWDigest(itemsInput: IFpsItemsReturn, traceString: string, alertMe: boolean | undefined, consoleLog: boolean | undefined): IFpsItemsReturn;
|
|
3
|
+
//# sourceMappingURL=CheckItemsResultsWDigest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckItemsResultsWDigest.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckItemsResultsWDigest.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,wBAAgB,wBAAwB,CAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAG,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,eAAe,CA2C7K"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// import { saveErrorToLog } from './Logging';
|
|
2
|
+
import { makeid } from '../../../logic/Strings/guids';
|
|
3
|
+
import { FPSResultCommonErrors } from '../../../types/fps-returns/common/IFPSResultStatus';
|
|
4
|
+
import { convertHelpfullError } from '../../../logic/Errors/friendly';
|
|
5
|
+
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
6
|
+
import { saveErrorToLogWDigest } from '../../../restAPIs/logging/saveErrorToLogWDigest';
|
|
7
|
+
export function CheckItemsResultsWDigest(itemsInput, traceString, alertMe, consoleLog) {
|
|
8
|
+
//Clean up the raw error and return a human readable result
|
|
9
|
+
itemsInput.refreshId = makeid(7);
|
|
10
|
+
itemsInput.loaded = itemsInput.status === 'Success' ? true : false;
|
|
11
|
+
if (!itemsInput.fpsContentType)
|
|
12
|
+
itemsInput.fpsContentType = [];
|
|
13
|
+
if (!itemsInput.unifiedPerformanceOps)
|
|
14
|
+
itemsInput.unifiedPerformanceOps = { fetch: {} };
|
|
15
|
+
if (FPSResultCommonErrors.indexOf(itemsInput.e) > -1) {
|
|
16
|
+
itemsInput.errorInfo = {
|
|
17
|
+
errObj: itemsInput.e,
|
|
18
|
+
friendly: itemsInput.e,
|
|
19
|
+
result: itemsInput.e,
|
|
20
|
+
returnMess: itemsInput.e,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
else if (itemsInput.e) {
|
|
24
|
+
const errorInput = { e: itemsInput.e, alertMe: alertMe, consoleLog: consoleLog, traceString: traceString ? traceString : 'fps-library-v2: checkItemsResults ~ 15', logErrors: true };
|
|
25
|
+
itemsInput.errorInput = errorInput;
|
|
26
|
+
const errorInfo = convertHelpfullError(errorInput);
|
|
27
|
+
itemsInput.errorInfo = errorInfo;
|
|
28
|
+
if (errorInfo.friendly.toLocaleLowerCase().indexOf('access') > -1
|
|
29
|
+
|| errorInfo.friendly.toLocaleLowerCase().indexOf('unauthorized') > -1)
|
|
30
|
+
itemsInput.status = 'AccessDenied';
|
|
31
|
+
saveErrorToLogWDigest(itemsInput.errorInfo, errorInput);
|
|
32
|
+
}
|
|
33
|
+
else if (itemsInput.status === 'Error') {
|
|
34
|
+
const err = itemsInput.e ? itemsInput.e : `${itemsInput.status} ${itemsInput.statusNo} ${itemsInput.statusText}`;
|
|
35
|
+
itemsInput.errorInfo = {
|
|
36
|
+
errObj: err,
|
|
37
|
+
friendly: err,
|
|
38
|
+
result: err,
|
|
39
|
+
returnMess: err,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
if (check4This(`checkResults=true`) === true) {
|
|
43
|
+
console.log(`fps-core-v7 COMPLETED: checkItemsResults ~ 25 -- ${traceString}`, itemsInput);
|
|
44
|
+
}
|
|
45
|
+
;
|
|
46
|
+
return itemsInput;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=CheckItemsResultsWDigest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckItemsResultsWDigest.js","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/CheckItemsResultsWDigest.ts"],"names":[],"mappings":"AACA,8CAA8C;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAmC,MAAM,gCAAgC,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAExF,MAAM,UAAU,wBAAwB,CAAE,UAA2B,EAAE,WAAmB,EAAE,OAA4B,EAAG,UAA+B;IACxJ,2DAA2D;IAE3D,UAAU,CAAC,SAAS,GAAG,MAAM,CAAE,CAAC,CAAE,CAAC;IACnC,UAAU,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACnE,IAAK,CAAC,UAAU,CAAC,cAAc;QAAG,UAAU,CAAC,cAAc,GAAG,EAAE,CAAC;IAEjE,IAAK,CAAC,UAAU,CAAC,qBAAqB;QAAG,UAAU,CAAC,qBAAqB,GAAG,EAAE,KAAK,EAAE,EAAoB,EAAE,CAAC;IAE5G,IAAK,qBAAqB,CAAC,OAAO,CAAE,UAAU,CAAC,CAAC,CAAE,GAAG,CAAC,CAAC,EAAG;QACxD,UAAU,CAAC,SAAS,GAAG;YACrB,MAAM,EAAE,UAAU,CAAC,CAAC;YACpB,QAAQ,EAAE,UAAU,CAAC,CAAC;YACtB,MAAM,EAAE,UAAU,CAAC,CAAC;YACpB,UAAU,EAAE,UAAU,CAAC,CAAC;SACzB,CAAA;KAEF;SAAM,IAAK,UAAU,CAAC,CAAC,EAAG;QACzB,MAAM,UAAU,GAAmB,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE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fps-returns/common/IFPSBaseContentType";
|
|
2
2
|
import { IFpsErrorObject, IUnifiedPerformanceOpsWithRequiredFetch } from "../../../types/fps-returns/common/IFpsErrorObject";
|
|
3
3
|
import { IJSFetchMethod } from "../SpHttp/IJSFetchReturn";
|
|
4
|
+
import { IFPSSearchAPIResultsData } from "../SpHttp/interfaces/IFPSSearchAPIResultsData";
|
|
4
5
|
export interface IFpsItemsReturn extends IFpsErrorObject {
|
|
5
6
|
items?: any[];
|
|
6
7
|
item?: any;
|
|
@@ -10,5 +11,6 @@ export interface IFpsItemsReturn extends IFpsErrorObject {
|
|
|
10
11
|
fpsContentType: IFPSBaseContentType[];
|
|
11
12
|
fetchAPI: string;
|
|
12
13
|
method: IJSFetchMethod;
|
|
14
|
+
rawSearchResults?: IFPSSearchAPIResultsData;
|
|
13
15
|
}
|
|
14
16
|
//# sourceMappingURL=IFpsItemsReturn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFpsItemsReturn.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/IFpsItemsReturn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,uCAAuC,EAAE,MAAM,mDAAmD,CAAC;AAC7H,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"IFpsItemsReturn.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/IFpsItemsReturn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,uCAAuC,EAAE,MAAM,mDAAmD,CAAC;AAC7H,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAEzF,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,qBAAqB,EAAE,uCAAuC,CAAC;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,cAAc,EAAE,mBAAmB,EAAE,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,CAAC;IACvB,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C"}
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { ISeriesSortObject } from "../../../logic/Arrays/sorting/Interfaces";
|
|
5
5
|
import { IPerformanceSettings } from "../Performance/IPerformanceSettings";
|
|
6
|
+
import { IFpsSpHttpServiceMIN } from "../SpHttp/Sp/IFpsSpHttpServiceMIN";
|
|
6
7
|
export interface IMinSourceFetchProps {
|
|
7
8
|
refreshId: string;
|
|
8
9
|
tenant: string;
|
|
10
|
+
fpsSpService: IFpsSpHttpServiceMIN;
|
|
9
11
|
webUrl: string;
|
|
10
12
|
listTitle: string;
|
|
11
13
|
absoluteWebUrl?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMinSourceFetchProps.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/IMinSourceFetchProps.ts"],"names":[],"mappings":"AAUA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"IMinSourceFetchProps.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/IMinSourceFetchProps.ts"],"names":[],"mappings":"AAUA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,oBAAoB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAE5B,mBAAmB,CAAC,EAAE,oBAAoB,CAAC;CAE5C"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { ISeriesSortObject } from '../../../logic/Arrays/sorting/Interfaces';
|
|
5
5
|
import { IFPSBaseContentType } from '../../../types/fps-returns/common/IFPSBaseContentType';
|
|
6
6
|
import { IEasyIcons } from '../../atoms/easy-icons/interfaces/eiTypes';
|
|
7
|
+
import { IFpsSpHttpServiceMIN } from '../SpHttp/Sp/IFpsSpHttpServiceMIN';
|
|
7
8
|
import { IMinSourceFetchProps } from "./IMinSourceFetchProps";
|
|
8
9
|
export interface IMinSourceWPProps {
|
|
9
10
|
webUrl: string;
|
|
@@ -25,6 +26,7 @@ export interface ISourceProps extends IMinSourceFetchProps {
|
|
|
25
26
|
webUrl: string;
|
|
26
27
|
sourceTenant?: string;
|
|
27
28
|
digestValue?: string;
|
|
29
|
+
fpsSpService: IFpsSpHttpServiceMIN;
|
|
28
30
|
absoluteWebUrl?: string;
|
|
29
31
|
sitesWebUrls?: string;
|
|
30
32
|
listTitle: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISourceProps.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/ISourceProps.ts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CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,mBAAmB,EAAE,CAAC;IAEtC,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAE5B;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"ISourceProps.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/ISourceProps.ts"],"names":[],"mappings":"AACA;;GAEG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,O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C,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,mBAAmB,EAAE,CAAC;IAEtC,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAE5B;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISourceProps.js","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/ISourceProps.ts"],"names":[],"mappings":"AACA;;GAEG;
|
|
1
|
+
{"version":3,"file":"ISourceProps.js","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/ISourceProps.ts"],"names":[],"mappings":"AACA;;GAEG;AAuBH,MAAM,CAAC,MAAM,qBAAqB,GAAe,CAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAC,wBAAwB,CAAE,CAAC;AAoB1I,MAAM,CAAC,MAAM,mBAAmB,GAAW,6CAA6C,CAAC;AACzF,MAAM,CAAC,MAAM,sBAAsB,GAAW,wCAAwC,CAAC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* 2024-09-06: Migrated from same folder fps-library-v2\src\pnpjs\Lists/createItems/createListSource
|
|
3
3
|
*/
|
|
4
4
|
import { ISourceProps } from "../ISourceProps";
|
|
5
|
-
|
|
5
|
+
import { IFpsSpHttpServiceMIN } from "../../SpHttp/Sp/IFpsSpHttpServiceMIN";
|
|
6
|
+
export declare function createListSourceWithDigest(fpsSpService: IFpsSpHttpServiceMIN, webUrl: string, listTitle: string, webRelativeLink: string): Promise<ISourceProps>;
|
|
6
7
|
/**
|
|
7
8
|
* NOTE: Be sure to remove List from the EntityTypeName if using the ListPicker component:
|
|
8
9
|
* this.properties.listPickerValue.replace(/List([^L]*)$/, '');
|
|
@@ -12,6 +13,9 @@ export declare function createListSourceWithDigest(webUrl: string, listTitle: st
|
|
|
12
13
|
* @param webRelativeLink
|
|
13
14
|
* @returns
|
|
14
15
|
*/
|
|
15
|
-
export declare function createListSource(webUrl: string, listTitle: string, webRelativeLink: string): ISourceProps;
|
|
16
|
+
export declare function createListSource(fpsSpService: IFpsSpHttpServiceMIN, webUrl: string, listTitle: string, webRelativeLink: string): ISourceProps;
|
|
17
|
+
/**
|
|
18
|
+
* DO NOT FORGET TO ASSIGN fpsSpService!
|
|
19
|
+
*/
|
|
16
20
|
export declare const DefaultListSource: ISourceProps;
|
|
17
21
|
//# sourceMappingURL=createListSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createListSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/Lists/createListSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"createListSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/Lists/createListSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,wBAAsB,0BAA0B,CAAC,YAAY,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAMtK;AACD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,YAAY,CAY7I;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,YA0B/B,CAAC"}
|
|
@@ -7,8 +7,8 @@ import { createSeriesSort } from "../createOrderBy";
|
|
|
7
7
|
import { updateSourcePerListPickerName } from "./updateSourcePerListPickerName";
|
|
8
8
|
import { getSiteCollectionUrlFromLink } from "../../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
9
9
|
import { CurrentTenant } from "../WindowLocationConstants";
|
|
10
|
-
export async function createListSourceWithDigest(webUrl, listTitle, webRelativeLink) {
|
|
11
|
-
const Source = createListSource(webUrl, listTitle, webRelativeLink);
|
|
10
|
+
export async function createListSourceWithDigest(fpsSpService, webUrl, listTitle, webRelativeLink) {
|
|
11
|
+
const Source = createListSource(fpsSpService, webUrl, listTitle, webRelativeLink);
|
|
12
12
|
Source.digestValue = await getThisFPSDigestValueFromUrl(this._webAbsoluteUrl);
|
|
13
13
|
// Opted against this option since it may cause other issues... just adding to FPSFetchStatus
|
|
14
14
|
// Source.webRelativeLink = webRelativeLink.indexOf('/') === 0 ? webRelativeLink : `/${webRelativeLink}`;
|
|
@@ -23,18 +23,23 @@ export async function createListSourceWithDigest(webUrl, listTitle, webRelativeL
|
|
|
23
23
|
* @param webRelativeLink
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
|
-
export function createListSource(webUrl, listTitle, webRelativeLink) {
|
|
26
|
+
export function createListSource(fpsSpService, webUrl, listTitle, webRelativeLink) {
|
|
27
27
|
const Source = DefaultListSource;
|
|
28
28
|
Source.webUrl = webUrl;
|
|
29
29
|
Source.absoluteWebUrl = getSiteCollectionUrlFromLink(webUrl);
|
|
30
30
|
Source.listTitle = listTitle;
|
|
31
31
|
Source.webRelativeLink = webRelativeLink;
|
|
32
|
+
Source.fpsSpService = fpsSpService;
|
|
32
33
|
updateSourcePerListPickerName(listTitle, webUrl, Source);
|
|
33
34
|
// Opted against this option since it may cause other issues... just adding to FPSFetchStatus
|
|
34
35
|
// Source.webRelativeLink = webRelativeLink.indexOf('/') === 0 ? webRelativeLink : `/${webRelativeLink}`;
|
|
35
36
|
return JSON.parse(JSON.stringify(Source));
|
|
36
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* DO NOT FORGET TO ASSIGN fpsSpService!
|
|
40
|
+
*/
|
|
37
41
|
export const DefaultListSource = {
|
|
42
|
+
fpsSpService: null,
|
|
38
43
|
refreshId: makeid(5),
|
|
39
44
|
key: 'items',
|
|
40
45
|
defType: 'Items',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createListSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/Lists/createListSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gEAAgE,CAAC;AAC9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"createListSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/Lists/createListSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gEAAgE,CAAC;AAC9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,YAAkC,EAAE,MAAc,EAAE,SAAiB,EAAE,eAAuB;IAC7I,MAAM,MAAM,GAAiB,gBAAgB,CAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,CAAE,CAAC;IAClG,MAAM,CAAC,WAAW,GAAG,MAAM,4BAA4B,CAAE,IAAI,CAAC,eAAe,CAAE,CAAC;IAChF,6FAA6F;IAC7F,yGAAyG;IACzG,OAAO,MAAM,CAAC;AAChB,CAAC;AACD;;;;;;;;GAQG;AACH,MAAM,UAAU,gBAAgB,CAAC,YAAkC,EAAE,MAAc,EAAE,SAAiB,EAAE,eAAuB;IAC7H,MAAM,MAAM,GAAiB,iBAAiB,CAAC;IAC/C,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,cAAc,GAAG,4BAA4B,CAAE,MAAM,CAAE,CAAC;IAC/D,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,MAAM,CAAC,e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TO ASSIGN fpsSpService!
|
|
7
|
+
*/
|
|
5
8
|
export declare const NewsLinksSource: ISourceProps;
|
|
6
9
|
//# sourceMappingURL=NewsLinksSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewsLinksSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsLinksSource.ts"],"names":[],"mappings":"AACA;;GAEG;
|
|
1
|
+
{"version":3,"file":"NewsLinksSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsLinksSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,YAsC7B,CAAC"}
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
import { makeid } from "../../../../logic/Strings/guids";
|
|
5
5
|
import { CurrentTenant } from "../WindowLocationConstants";
|
|
6
6
|
import { ModernSitePagesColumns, ModernSitePagesSearch, ExtraFetchModernPage } from "./ModernSitePagesColumns";
|
|
7
|
+
/**
|
|
8
|
+
* DO NOT FORGET TO ASSIGN fpsSpService!
|
|
9
|
+
*/
|
|
7
10
|
export const NewsLinksSource = {
|
|
11
|
+
fpsSpService: null,
|
|
8
12
|
refreshId: makeid(5),
|
|
9
13
|
key: 'news',
|
|
10
14
|
defType: 'news',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewsLinksSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsLinksSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"NewsLinksSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsLinksSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAA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: Migrated from same folder fps-library-v2\src\pnpjs\SourceItems
|
|
3
3
|
*/
|
|
4
4
|
import { ISourceProps } from "../ISourceProps";
|
|
5
|
+
/**
|
|
6
|
+
* DO NOT FORGET TO ASSIGN fpsSpService!
|
|
7
|
+
*/
|
|
5
8
|
export declare const NewsSource: ISourceProps;
|
|
6
9
|
//# sourceMappingURL=NewsSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewsSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"NewsSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,YAkCxB,CAAC"}
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
import { makeid } from "../../../../logic/Strings/guids";
|
|
5
5
|
import { CurrentTenant } from "../WindowLocationConstants";
|
|
6
6
|
import { ModernSitePagesColumns, ModernSitePagesSearch, ExtraFetchModernPage } from "./ModernSitePagesColumns";
|
|
7
|
+
/**
|
|
8
|
+
* DO NOT FORGET TO ASSIGN fpsSpService!
|
|
9
|
+
*/
|
|
7
10
|
export const NewsSource = {
|
|
11
|
+
fpsSpService: null,
|
|
8
12
|
refreshId: makeid(5),
|
|
9
13
|
key: 'news',
|
|
10
14
|
defType: 'news',
|