@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SourcePropsNoListTitle, SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps'; ///ISourceProps';
|
|
2
2
|
import { check4This } from "../../../logic/Links/CheckSearch";
|
|
3
|
-
import {
|
|
3
|
+
import { doSpHttpFetchOrPostAndCheck } from "../../../components/molecules/SpHttp/Sp/doSpHttpFetch";
|
|
4
4
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
5
5
|
import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
|
|
6
6
|
export async function postSourceItemsAPI(sourceProps, saveItem, alertMe, consoleLog) {
|
|
@@ -25,7 +25,7 @@ export async function postSourceItemsAPI(sourceProps, saveItem, alertMe, console
|
|
|
25
25
|
alert(`${''} ${SourcePropsNoListTitle}`);
|
|
26
26
|
return createErrorFpsListReturn(useUrl, listTitle);
|
|
27
27
|
}
|
|
28
|
-
const result = await
|
|
28
|
+
const result = await doSpHttpFetchOrPostAndCheck(postAPI, 'POST', sourceProps.fpsSpService, '', alertMe, consoleLog, 'item', saveItem);
|
|
29
29
|
// Add any required custom logic here
|
|
30
30
|
// if ( resultHubSites.ok ) {
|
|
31
31
|
// resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postSourceItemsAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/postSourceItemsAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC,CAAC,iBAAiB;AAEtJ,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"postSourceItemsAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/postSourceItemsAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC,CAAC,iBAAiB;AAEtJ,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,6EAA6E,CAAC;AACvH,OAAO,EAAE,gCAAgC,EAAE,MAAM,0DAA0D,CAAC;AAE5G,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAE,WAAyB,EAAE,QAAc,EAAE,OAA4B,EAAE,UAA+B;IAEhJ,MAAM,EAAE,SAAS,GAAG,GAAG,WAAW,CAAC;IAEnC,sIAAsI;IACtI,MAAM,MAAM,GAAW,gCAAgC,CAAE,WAAW,CAAE,CAAC;IAEvE;;;;MAIE;IAEA,IAAI,OAAO,GAAW,GAAG,MAAM,+BAA+B,SAAS,UAAU,CAAC;IAEpF,IAAK,CAAC,MAAM,EAAG;QACb,2BAA2B;QAC3B,IAAK,OAAO,KAAK,IAAI;YAAG,KAAK,CAAC,GAAG,SAAS,IAAI,mBAAmB,EAAE,CAAC,CAAC;QACrE,OAAO,wBAAwB,CAAE,MAAM,EAAE,SAAS,CAAE,CAAC;KACtD;IAED,IAAK,CAAC,SAAS,EAAG;QAChB,2BAA2B;QAC3B,IAAK,OAAO,KAAK,IAAI;YAAG,KAAK,CAAC,GAAG,EAAE,IAAI,sBAAsB,EAAE,CAAC,CAAC;QACjE,OAAO,wBAAwB,CAAE,MAAM,EAAE,SAAS,CAAE,CAAC;KACtD;IAGD,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAE,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAE,CAAC;IAEzI,sCAAsC;IACtC,+BAA+B;IAC/B,wEAAwE;IACxE,MAAM;IAEN,iGAAiG;IAEjG,+FAA+F;IAC/F,4FAA4F;IAC5F,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,KAAK,GAAG,QAAQ,SAAS,EAAE,CAAC;IAC/D,4CAA4C;IAC5C,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC;IAEnD,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,4CAA4C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEjI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SourcePropsNoListTitle, SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps'; ///ISourceProps';
|
|
2
2
|
import { check4This } from "../../../logic/Links/CheckSearch";
|
|
3
|
-
import {
|
|
3
|
+
import { doSpHttpFetchOrPostAndCheck } from "../../../components/molecules/SpHttp/Sp/doSpHttpFetch";
|
|
4
4
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
5
5
|
import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
|
|
6
6
|
/**
|
|
@@ -51,7 +51,7 @@ export async function updateAnyItemAPI(sourceProps, saveItem, itemId, alertMe, c
|
|
|
51
51
|
*
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
|
-
const result = await
|
|
54
|
+
const result = await doSpHttpFetchOrPostAndCheck(postAPI, 'MERGE', sourceProps.fpsSpService, '', alertMe, consoleLog, 'item', saveItem);
|
|
55
55
|
// Add any required custom logic here
|
|
56
56
|
// if ( resultHubSites.ok ) {
|
|
57
57
|
// resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateAnyItemAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/updateAnyItemAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC,CAAC,iBAAiB;AAEtJ,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"updateAnyItemAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/updateAnyItemAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC,CAAC,iBAAiB;AAEtJ,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,6EAA6E,CAAC;AACvH,OAAO,EAAE,g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CAAC;IAEnD,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,4CAA4C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEjI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Update:: import { IFpsErrorObject } to '@mikezimm/fps-core-v7/lib/types/fps-returns/common/IFpsErrorObject;'
|
|
6
6
|
|
|
7
7
|
*/
|
|
8
|
+
import { IFpsSpHttpServiceMIN } from '../../../components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN';
|
|
8
9
|
import { IFpsErrorObject } from '../../../types/fps-returns/common/IFpsErrorObject';
|
|
9
10
|
import { IMinUpdateProps } from '../../../types/fps-returns/sites/update/IMinUpdateProps';
|
|
10
11
|
import { IJsxElement } from '../../../types/react/IFPSJSX_Element';
|
|
@@ -20,6 +21,7 @@ import { IJsxElement } from '../../../types/react/IFPSJSX_Element';
|
|
|
20
21
|
export interface IUpdateCommandItemProps extends IMinUpdateProps {
|
|
21
22
|
alertMe: string;
|
|
22
23
|
consoleLog: string;
|
|
24
|
+
fpsSpService: IFpsSpHttpServiceMIN;
|
|
23
25
|
}
|
|
24
26
|
export interface IUpdateCommandItemReturn extends IFpsErrorObject {
|
|
25
27
|
response: any;
|
|
@@ -37,8 +39,8 @@ export interface IUpdateCommandItemReturn extends IFpsErrorObject {
|
|
|
37
39
|
* Currently untested, but use this fetch:
|
|
38
40
|
* import { IUpdateCommandItemProps, IUpdateCommandItemReturn, updateCommandItemAPI, } from '@mikezimm/fps-core-v7/lib/restAPIS/lists/items/updateCommandItemAPI';
|
|
39
41
|
*
|
|
40
|
-
* @param
|
|
42
|
+
* @param commandItemProps
|
|
41
43
|
* @returns
|
|
42
44
|
*/
|
|
43
|
-
export declare function updateCommandItemAPI(
|
|
45
|
+
export declare function updateCommandItemAPI(commandItemProps: IUpdateCommandItemProps): Promise<IUpdateCommandItemReturn>;
|
|
44
46
|
//# sourceMappingURL=updateCommandItemAPI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCommandItemAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/updateCommandItemAPI.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"updateCommandItemAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/updateCommandItemAPI.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmBH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAC;AAGpG,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,yDAAyD,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAInE;;;;;;;;GAQG;AAEH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,oBAAoB,CAAC;CACpC;AAED,MAAM,WAAW,wBAAyB,SAAQ,eAAe;IAC/D,QAAQ,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CAAE,gBAAgB,EAAE,uBAAuB,GAAM,OAAO,CAAC,wBAAwB,CAAC,CAiD3H"}
|
|
@@ -26,24 +26,24 @@ import { updateAnyItemAPI } from './updateAnyItemAPI';
|
|
|
26
26
|
* Currently untested, but use this fetch:
|
|
27
27
|
* import { IUpdateCommandItemProps, IUpdateCommandItemReturn, updateCommandItemAPI, } from '@mikezimm/fps-core-v7/lib/restAPIS/lists/items/updateCommandItemAPI';
|
|
28
28
|
*
|
|
29
|
-
* @param
|
|
29
|
+
* @param commandItemProps
|
|
30
30
|
* @returns
|
|
31
31
|
*/
|
|
32
|
-
export async function updateCommandItemAPI(
|
|
32
|
+
export async function updateCommandItemAPI(commandItemProps) {
|
|
33
33
|
/**
|
|
34
34
|
* 2024-12-14: REMOVE THIS after testing since
|
|
35
|
-
* updateAnyItemAPI calls
|
|
35
|
+
* updateAnyItemAPI calls doSpHttpFetchOrPostAndCheck which includes performance out of the box
|
|
36
36
|
*/
|
|
37
37
|
const performanceSettings = {
|
|
38
38
|
label: `updateItem ~ saveOp`,
|
|
39
39
|
includeMsStr: true,
|
|
40
40
|
};
|
|
41
41
|
const saveOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
42
|
-
const { itemUpdate, Id, alertMe, consoleLog } =
|
|
43
|
-
const finalResult = await updateAnyItemAPI(
|
|
44
|
-
finalResult.webUrl =
|
|
45
|
-
finalResult.listTitle =
|
|
46
|
-
finalResult.Id =
|
|
42
|
+
const { itemUpdate, Id, alertMe, consoleLog } = commandItemProps;
|
|
43
|
+
const finalResult = await updateAnyItemAPI(commandItemProps, itemUpdate, Id, false, false);
|
|
44
|
+
finalResult.webUrl = commandItemProps.webUrl;
|
|
45
|
+
finalResult.listTitle = commandItemProps.listTitle;
|
|
46
|
+
finalResult.Id = commandItemProps.Id;
|
|
47
47
|
if (finalResult.status === 'Success') {
|
|
48
48
|
if (alertMe) {
|
|
49
49
|
alert('Success!\n' + alertMe);
|
|
@@ -54,7 +54,7 @@ export async function updateCommandItemAPI(commandItem) {
|
|
|
54
54
|
}
|
|
55
55
|
else if (finalResult.status === 'Error') {
|
|
56
56
|
// 2024-12-09: This saveErrorToLog may be executed twice because checkItemsResults executes the save if it's not a standard error from FPSResultCommonErrors
|
|
57
|
-
saveErrorToLog(finalResult.errorInfo, finalResult.errorInput);
|
|
57
|
+
saveErrorToLog(finalResult.errorInfo, finalResult.errorInput, commandItemProps.fpsSpService);
|
|
58
58
|
let errMessage = `${CommandUpdateFailedMessage} - ${finalResult.errorInfo ? finalResult.errorInfo.friendly : ''}`;
|
|
59
59
|
if (alertMe) {
|
|
60
60
|
alert(`${CommandUpdateFailedMessage}\n${alertMe}\n${errMessage}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCommandItemAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/updateCommandItemAPI.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"updateCommandItemAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/updateCommandItemAPI.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAK/G,OAAO,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AAKjH,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AA8BtD;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAE,gBAAyC;IAEnF;;;OAGG;IACH,MAAM,mBAAmB,GAAoB;QAC3C,KAAK,EAAE,qBAAqB;QAC5B,YAAY,EAAE,IAAI;KACZ,CAAC;IACT,MAAM,MAAM,GAAG,mBAAmB,CAAC,CAAC,CAAC,gBAAgB,CAAE,mBAAmB,CAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAEpF,MAAM,EAAE,UAAU,EAAE,EAAE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G,EAAE,CAAC;IACjF,WAAW,CAAC,qBAAqB,CAAC,IAAI,GAAG,sBAAsB,CAAE,EAAE,EAAE,EAAE,MAAwB,EAAE,iBAAiB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAmB,CAAC;IAGxJ,iHAAiH;IACjH,WAAW,CAAC,MAAM,GAAG,WAAW,CAAC,qBAAqB,CAAC,IAAI,CAAC;IAE5D,OAAO,WAAW,CAAC;AAErB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSourceListsAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/lists/lists/getSourceListsAPI.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSourceListsAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/lists/lists/getSourceListsAPI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA+C,MAAM,yDAAyD,CAAC;AACpI,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAQhG,wBAAsB,oBAAoB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CAGhK;AAED,wBAAsB,iBAAiB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CA0D7J"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
|
|
2
2
|
import { SourcePropsNoListTitle, SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
3
3
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
4
4
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
@@ -38,7 +38,7 @@ export async function getSourceListsAPI(sourceProps, alertMe, consoleLog) {
|
|
|
38
38
|
const orderBys = [];
|
|
39
39
|
if (orderBy)
|
|
40
40
|
orderBys.push(`${orderBy.prop} ${orderBy.order}`);
|
|
41
|
-
const result = await
|
|
41
|
+
const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, 'list', null);
|
|
42
42
|
// Add any required custom logic here
|
|
43
43
|
// if ( resultHubSites.ok ) {
|
|
44
44
|
// resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSourceListsAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/lists/getSourceListsAPI.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"getSourceListsAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/lists/getSourceListsAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAgB,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAEpI,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6EAA6E,CAAC;AACvH,OAAO,EAAE,gCAAgC,EAAE,MAAM,0DAA0D,CAAC;AAI5G,+DAA+D;AAC/D,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAE,WAAyB,EAAE,OAA4B,EAAE,UAA+B;IAClI,MAAM,OAAO,GAAG,MAAM,iBAAiB,CAAE,WAAW,EAAE,OAAO,EAAE,UAAU,CAAG,CAAC;IAC7E,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAE,WAAyB,EAAE,OAA4B,EAAE,UAA+B;IAE/H,+CAA+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I,iGAAiG;IAEjG,+FAA+F;IAC/F,4FAA4F;IAE5F,6DAA6D;IAC7D,4IAA4I;IAE5I,uDAAuD;IAEvD,sHAAsH;IAEtH,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,gDAAgD,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAErI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IHelpfullInput, IHelpfullOutput } from "../../logic/Errors/friendly";
|
|
2
|
+
import { IFpsSpHttpServiceMIN } from "../../components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN";
|
|
2
3
|
/**
|
|
3
4
|
* 2024-12-09: Migrated this function from it's original location here: \components\molecules\process-results\Logging.ts
|
|
4
5
|
*
|
|
@@ -6,5 +7,5 @@ import { IHelpfullInput, IHelpfullOutput } from "../../logic/Errors/friendly";
|
|
|
6
7
|
* @param errorInput
|
|
7
8
|
* @returns
|
|
8
9
|
*/
|
|
9
|
-
export declare function saveErrorToLog(errorInfo: IHelpfullOutput, errorInput: IHelpfullInput): Promise<void>;
|
|
10
|
+
export declare function saveErrorToLog(errorInfo: IHelpfullOutput, errorInput: IHelpfullInput, fpsSpService: IFpsSpHttpServiceMIN): Promise<void>;
|
|
10
11
|
//# sourceMappingURL=saveErrorToLog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saveErrorToLog.d.ts","sourceRoot":"","sources":["../../../src/restAPIs/logging/saveErrorToLog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"saveErrorToLog.d.ts","sourceRoot":"","sources":["../../../src/restAPIs/logging/saveErrorToLog.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAC;AAEjG;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,oBAAoB,GAAM,OAAO,CAAC,IAAI,CAAC,CA0DjJ"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { doSpJsFetchOrPost } from "../../components/molecules/SpHttp/doSpJsFetch";
|
|
3
|
-
import { createMinHeaders } from "../../components/molecules/SpHttp/headerInitUtilities";
|
|
1
|
+
import { doSpHttpFetchOrPostAndCheck } from "../../components/molecules/SpHttp/Sp/doSpHttpFetch";
|
|
4
2
|
import { getCurrentPageLink, getUrlVarsAsStrings } from "../../logic/Links/UrlFunctions";
|
|
5
3
|
import { SecureCDNalyticsWebAbsolute } from "../../restAPIs/logging/interfaces/constants";
|
|
6
4
|
/**
|
|
@@ -10,7 +8,7 @@ import { SecureCDNalyticsWebAbsolute } from "../../restAPIs/logging/interfaces/c
|
|
|
10
8
|
* @param errorInput
|
|
11
9
|
* @returns
|
|
12
10
|
*/
|
|
13
|
-
export async function saveErrorToLog(errorInfo, errorInput) {
|
|
11
|
+
export async function saveErrorToLog(errorInfo, errorInput, fpsSpService) {
|
|
14
12
|
//Return if you are not supposed to log an error
|
|
15
13
|
if (errorInput.logErrors !== true) {
|
|
16
14
|
return;
|
|
@@ -48,9 +46,10 @@ export async function saveErrorToLog(errorInfo, errorInput) {
|
|
|
48
46
|
// Required for non-PnpJS POST operations
|
|
49
47
|
saveItem.__metadata = { type: `SP.Data.${list}ListItem` };
|
|
50
48
|
// https://github.com/fps-solutions/HubCon/issues/103
|
|
51
|
-
const formDigestValue = await getThisFPSDigestValueFromUrl(absoluteWebUrl);
|
|
49
|
+
// const formDigestValue: string = await getThisFPSDigestValueFromUrl( absoluteWebUrl );
|
|
52
50
|
let postAPI = `${absoluteWebUrl}/_api/web/lists/getbytitle('${list}')/items`;
|
|
53
|
-
|
|
51
|
+
// 2024-12-21: Not sure if this will work passing in '' for headerContentType
|
|
52
|
+
doSpHttpFetchOrPostAndCheck(postAPI, 'POST', fpsSpService, 'application/json;odata=nometadata', false, true, 'item', saveItem);
|
|
54
53
|
// const TEMPAlert = `saveErrorToLog Alert:\n\nerrorInfo\n${JSON.stringify(errorInfo)}\n\nerrorInput:\n\nerrorInput\n${errorInput}`
|
|
55
54
|
// alert(TEMPAlert);
|
|
56
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saveErrorToLog.js","sourceRoot":"","sources":["../../../src/restAPIs/logging/saveErrorToLog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"saveErrorToLog.js","sourceRoot":"","sources":["../../../src/restAPIs/logging/saveErrorToLog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AAEjG,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAG1F;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,SAA0B,EAAE,UAA0B,EAAE,YAAkC;IAE7H,gDAAgD;IAChD,IAAK,UAAU,CAAC,SAAS,KAAK,IAAI,EAAG;QAAE,OAAQ;KAAE;IAEjD,uDAAuD;IACvD,IAAK,CAAC,SAAS,EAAG;QAAE,OAAQ;KAAE;IAE9B,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,GAAG,GAAG,UAAU,CAAC;IAEzD,IAAI,KAAK,GAAa,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhE,IAAI,SAAS,GAAW,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAC9D,IAAI,aAAa,GAAG,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,wBAA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CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAW;QAE7C,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,kBAAkB,EAAE;QAC9B,YAAY,EAAE,YAAY;QAC1B,YAAY,EAAE,YAAY;KAC3B,CAAC;IAGF,IAAI,cAAc,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,2BAA2B,EAAE,CAAC;IAC5E,IAAI,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAEnD,qDAAqD;IACrD,yCAAyC;IACzC,QAAQ,CAAC,UAAU,GAAG,EAAE,IAAI,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;IAE1D,qDAAqD;IACrD,wFAAwF;IAExF,IAAI,OAAO,GAAW,GAAG,cAAc,+BAA+B,IAAI,UAAU,CAAC;IAErF,8EAA8E;IAC9E,2BAA2B,CAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,mCAAmC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAG,CAAC;IAElI,mIAAmI;IACnI,oBAAoB;AACtB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IHelpfullInput, IHelpfullOutput } from "../../logic/Errors/friendly";
|
|
2
|
+
/**
|
|
3
|
+
* 2024-12-09: Migrated this function from it's original location here: \components\molecules\process-results\Logging.ts
|
|
4
|
+
*
|
|
5
|
+
* @param errorInfo
|
|
6
|
+
* @param errorInput
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function saveErrorToLogWDigest(errorInfo: IHelpfullOutput, errorInput: IHelpfullInput): Promise<void>;
|
|
10
|
+
//# sourceMappingURL=saveErrorToLogWDigest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saveErrorToLogWDigest.d.ts","sourceRoot":"","sources":["../../../src/restAPIs/logging/saveErrorToLogWDigest.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAK9E;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,GAAI,OAAO,CAAC,IAAI,CAAC,CA0DlH"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { getThisFPSDigestValueFromUrl } from "../../components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl";
|
|
2
|
+
import { doSpJsFetchOrPost } from "../../components/molecules/SpHttp/Js/doSpJsFetch";
|
|
3
|
+
import { createMinHeaders } from "../../components/molecules/SpHttp/headerInitUtilities";
|
|
4
|
+
import { getCurrentPageLink, getUrlVarsAsStrings } from "../../logic/Links/UrlFunctions";
|
|
5
|
+
import { SecureCDNalyticsWebAbsolute } from "../../restAPIs/logging/interfaces/constants";
|
|
6
|
+
/**
|
|
7
|
+
* 2024-12-09: Migrated this function from it's original location here: \components\molecules\process-results\Logging.ts
|
|
8
|
+
*
|
|
9
|
+
* @param errorInfo
|
|
10
|
+
* @param errorInput
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export async function saveErrorToLogWDigest(errorInfo, errorInput) {
|
|
14
|
+
//Return if you are not supposed to log an error
|
|
15
|
+
if (errorInput.logErrors !== true) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
// https://github.com/mikezimm/fps-library-v2/issues/15
|
|
19
|
+
if (!errorInfo) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const { traceString, alertMe, consoleLog, } = errorInput;
|
|
23
|
+
let trace = traceString ? traceString.split('|') : [];
|
|
24
|
+
let getParams = JSON.stringify(getUrlVarsAsStrings());
|
|
25
|
+
let parsedMessage = errorInfo.returnMess.split('-- FULL ERROR MESSAGE:');
|
|
26
|
+
let zzzRichText1 = parsedMessage.length > 0 ? parsedMessage[0] : 'No friendly error';
|
|
27
|
+
let zzzRichText2 = parsedMessage.length > 0 ? parsedMessage[1] : errorInfo.returnMess;
|
|
28
|
+
let saveItem = {
|
|
29
|
+
// https://github.com/fps-solutions/HubCon/issues/103
|
|
30
|
+
__metadata: { type: `` },
|
|
31
|
+
Title: trace[0],
|
|
32
|
+
Result: trace[3] ? trace[3] : null,
|
|
33
|
+
zzzText1: trace[4] ? trace[4] : null,
|
|
34
|
+
zzzText2: trace[5] ? trace[5] : null,
|
|
35
|
+
zzzText3: trace[6] ? trace[6] : null,
|
|
36
|
+
zzzText6: typeof alertMe === 'string' ? alertMe : `${alertMe}`,
|
|
37
|
+
zzzText7: typeof consoleLog === 'string' ? consoleLog : `${consoleLog}`,
|
|
38
|
+
zzzNumber1: trace[7] ? trace[7] : null,
|
|
39
|
+
zzzNumber2: trace[8] ? trace[8] : null,
|
|
40
|
+
getParams: getParams,
|
|
41
|
+
PageLink: getCurrentPageLink(),
|
|
42
|
+
zzzRichText1: zzzRichText1,
|
|
43
|
+
zzzRichText2: zzzRichText2,
|
|
44
|
+
};
|
|
45
|
+
let absoluteWebUrl = trace[1] ? trace[1] : `${SecureCDNalyticsWebAbsolute}`;
|
|
46
|
+
let list = trace[2] ? trace[2] : 'GeneralErrorLog';
|
|
47
|
+
// https://github.com/fps-solutions/HubCon/issues/103
|
|
48
|
+
// Required for non-PnpJS POST operations
|
|
49
|
+
saveItem.__metadata = { type: `SP.Data.${list}ListItem` };
|
|
50
|
+
// https://github.com/fps-solutions/HubCon/issues/103
|
|
51
|
+
const formDigestValue = await getThisFPSDigestValueFromUrl(absoluteWebUrl);
|
|
52
|
+
let postAPI = `${absoluteWebUrl}/_api/web/lists/getbytitle('${list}')/items`;
|
|
53
|
+
doSpJsFetchOrPost(postAPI, 'POST', createMinHeaders(formDigestValue, ''), saveItem);
|
|
54
|
+
// const TEMPAlert = `saveErrorToLog Alert:\n\nerrorInfo\n${JSON.stringify(errorInfo)}\n\nerrorInput:\n\nerrorInput\n${errorInput}`
|
|
55
|
+
// alert(TEMPAlert);
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=saveErrorToLogWDigest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saveErrorToLogWDigest.js","sourceRoot":"","sources":["../../../src/restAPIs/logging/saveErrorToLogWDigest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,qFAAqF,CAAC;AACnI,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAEzF,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAG1F;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,SAA0B,EAAE,UAA0B;IAEhG,gDAAgD;IAChD,IAAK,UAAU,CAAC,SAAS,KAAK,IAAI,EAAG;QAAE,OAAQ;KAAE;IAEjD,uDAAuD;IACvD,IAAK,CAAC,SAAS,EAAG;QAAE,OAAQ;KAAE;IAE9B,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,GAAG,GAAG,UAAU,CAAC;IAEzD,IAAI,KAAK,GAAa,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhE,IAAI,SAAS,GAAW,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAC9D,IAAI,aAAa,GAAG,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACzE,IAAI,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,a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Q,EAAE,kBAAkB,EAAE;QAC9B,YAAY,EAAE,YAAY;QAC1B,YAAY,EAAE,YAAY;KAC3B,CAAC;IAGF,IAAI,cAAc,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,2BAA2B,EAAE,CAAC;IAC5E,IAAI,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAEnD,qDAAqD;IACrD,yCAAyC;IACzC,QAAQ,CAAC,UAAU,GAAG,EAAE,IAAI,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;IAE1D,qDAAqD;IACrD,MAAM,eAAe,GAAW,MAAM,4BAA4B,CAAE,cAAc,CAAE,CAAC;IAErF,IAAI,OAAO,GAAW,GAAG,cAAc,+BAA+B,IAAI,UAAU,CAAC;IAErF,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,CAAE,eAAe,EAAE,EAAE,CAAE,EAAE,QAAQ,CAAG,CAAC;IAGxF,mIAAmI;IACnI,oBAAoB;AACtB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
|
|
2
2
|
// import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/molecules/Performance/functions';
|
|
3
3
|
// import { checkItemsResults } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
4
4
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
@@ -20,7 +20,7 @@ export async function getAllUsersInGroup(sourceProps, GroupName) {
|
|
|
20
20
|
return results;
|
|
21
21
|
}
|
|
22
22
|
export async function getGroupMembersAPI(sourceProps, GroupName, alertMe, consoleLog) {
|
|
23
|
-
const { restFilter,
|
|
23
|
+
const { restFilter, selectThese = UserSelectsFull } = sourceProps;
|
|
24
24
|
const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
|
|
25
25
|
if (!useUrl) {
|
|
26
26
|
// NO WebURL... Throw Alert
|
|
@@ -54,7 +54,7 @@ export async function getGroupMembersAPI(sourceProps, GroupName, alertMe, consol
|
|
|
54
54
|
fetchAPI += `$orderby=Title asc`;
|
|
55
55
|
if (restFilter)
|
|
56
56
|
fetchAPI += `&$filter=${restFilter}&`;
|
|
57
|
-
const result = await
|
|
57
|
+
const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, 'user', null);
|
|
58
58
|
// result.users = result.items ? result.items : [];
|
|
59
59
|
// result.fpsContentType = [ 'user' ];
|
|
60
60
|
result.unifiedPerformanceOps.fetch.label = `${GroupName} Users`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGroupMembersAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getGroupMembersAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getGroupMembersAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getGroupMembersAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,kHAAkH;AAClH,uGAAuG;AACvG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,yGAAyG;AACzG,OAAO,EAAE,wBAAwB,EAAE,MAAM,6EAA6E,CAAC;AACvH,2FAA2F;AAC3F,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,gCAAgC,GAAG,MAAM,0DAA0D,CAAC;AAC7G,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAE,WAAyB,EAAE,SAAiB,EAAE,SAAiB;IAC5G,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2BAA2B;AAE3B,OAAO;AAEP,6FAA6F;AAC7F,qDAAqD;AACrD,sCAAsC;AAEtC,qFAAqF;AACrF,8DAA8D;AAE9D,4IAA4I;AAC5I,0EAA0E;AAC1E,2CAA2C;AAC3C,oCAAoC;AACpC,6EAA6E;AAC7E,WAAW;AACX,wCAAwC;AAExC,yJAAyJ;AAEzJ,+DAA+D;AAC/D,0KAA0K;AAC1K,2EAA2E;AAE3E,yDAAyD;AAEzD,yIAAyI;AAEzI,mBAAmB;AAEnB,IAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
|
|
2
2
|
import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/molecules/Performance/functions';
|
|
3
3
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
4
4
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
@@ -37,7 +37,7 @@ export async function getWebAssociatedGroupAPI(sourceProps, group, digestValue,
|
|
|
37
37
|
const { selectThese, } = sourceProps;
|
|
38
38
|
let fetchAPI = `${useUrl}/_api/web/associated${group}group?`;
|
|
39
39
|
fetchAPI += `$select=${selectThese && selectThese.length > 0 ? selectThese.join(',') : 'Title,Id'}&`;
|
|
40
|
-
const result = await
|
|
40
|
+
const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, 'group', null);
|
|
41
41
|
// Add any required custom logic here
|
|
42
42
|
// if ( resultHubSites.ok ) {
|
|
43
43
|
// resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWebAssociatedGroupAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebAssociatedGroupAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3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AC;IAEtG,MAAM,MAAM,GAAqB,MAAM,2BAA2B,CAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAqB,CAAC;IAE3K,sCAAsC;IACtC,+BAA+B;IAC/B,wEAAwE;IACxE,MAAM;IAEN,mFAAmF;IACnF,wBAAwB;IACxB,uCAAuC;IACvC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,KAAK,GAAG,gBAAgB,KAAK,EAAE,CAAC;IACnE,4CAA4C;IAE5C,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,qDAAqD,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAE1I,OAAO,MAAM,CAAC;AAEhB,CAAC;AAID,6NAA6N;AAE7N,0IAA0I;AAC1I,qJAAqJ;AAErJ,2IAA2I;AAC3I,4EAA4E;AAE5E,qBAAqB;AACrB,kCAAkC;AAClC,yFAAyF;AACzF,kGAAkG;AAClG,sBAAsB;AACtB,MAAM;AAEN,QAAQ;AACR,8CAA8C;AAC9C,+CAA+C;AAC/C,uCAAuC;AACvC,2BAA2B;AAC3B,OAAO;AACP,0CAA0C;AAE1C,0EAA0E;AAC1E,2GAA2G;AAE3G,6FAA6F;AAE7F,2CAA2C;AAC3C,oCAAoC;AACpC,6EAA6E;AAC7E,WAAW;AAEX,kLAAkL;AAClL,yCAAyC;AAEzC,mHAAmH;AACnH,qFAAqF;AACrF,0BAA0B;AAE1B,2EAA2E;AAE3E,+DAA+D;AAC/D,wKAAwK;AAExK,yDAAyD;AAEzD,+IAA+I;AAE/I,mBAAmB;AAEnB,IAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
|
|
2
2
|
import { IFpsGroupsReturn } from '../../../types/fps-returns/sites/groups/IGroupReturns';
|
|
3
|
-
export declare function getWebGroupInfoAPI(sourceProps: ISourceProps,
|
|
3
|
+
export declare function getWebGroupInfoAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsGroupsReturn>;
|
|
4
4
|
//# sourceMappingURL=getWebGroupInfoAPI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWebGroupInfoAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebGroupInfoAPI.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getWebGroupInfoAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebGroupInfoAPI.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAI5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAIzF,wBAAsB,kBAAkB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,gBAAgB,CAAC,CAgD/J"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { startPerformOpV2, } from '../../../components/molecules/Performance/functions';
|
|
1
|
+
import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
|
|
3
2
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
4
3
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
5
4
|
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
@@ -7,10 +6,10 @@ import { getAbsoluteWebUrlFromSourceProps, } from '../../../logic/Strings/getAbs
|
|
|
7
6
|
import { getExpandColumns } from '../../../components/molecules/source-props/Lists/getVX/getExpandV2';
|
|
8
7
|
import { GroupSelectsWithOwner } from './GroupSelects';
|
|
9
8
|
import { getCollectionUrl } from '../../../logic/Links/getSPOUrl';
|
|
10
|
-
export async function getWebGroupInfoAPI(sourceProps,
|
|
9
|
+
export async function getWebGroupInfoAPI(sourceProps, alertMe, consoleLog) {
|
|
11
10
|
const { restFilter, selectThese = GroupSelectsWithOwner, } = sourceProps;
|
|
12
|
-
const performanceSettings = { label: `SiteGroups`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
13
|
-
const fetchOp = startPerformOpV2(performanceSettings);
|
|
11
|
+
// const performanceSettings: IPerformanceSettings = { label: `SiteGroups`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
12
|
+
// const fetchOp: IPerformanceOp = startPerformOpV2( performanceSettings ) as IPerformanceOp; // 2024-09-29: set null as any to pass build error.
|
|
14
13
|
const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
|
|
15
14
|
if (!useUrl) {
|
|
16
15
|
// NO WebURL... Throw Alert
|
|
@@ -34,7 +33,7 @@ export async function getWebGroupInfoAPI(sourceProps, digestValue = '', alertMe,
|
|
|
34
33
|
fetchAPI += `$expand=${expandThese.join(',')}&`;
|
|
35
34
|
if (restFilter)
|
|
36
35
|
fetchAPI += `$filter=${restFilter}`;
|
|
37
|
-
const result = await
|
|
36
|
+
const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, 'group', null);
|
|
38
37
|
// result.groups = result.items ? result.items : [];
|
|
39
38
|
// result.fpsContentType = [ 'group' ];
|
|
40
39
|
result.unifiedPerformanceOps.fetch.label = `${getCollectionUrl(useUrl)} Groups`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWebGroupInfoAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebGroupInfoAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getWebGroupInfoAPI.js","sourceRoot":"","sources":["../../../../src/rest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AAE,WAAW,CAAE,CAAC;IAC9D,IAAK,WAAW,CAAC,MAAM,GAAG,CAAC;QAAG,QAAQ,IAAG,WAAY,WAAW,CAAC,IAAI,CAAC,GAAG,CAAE,GAAG,CAAC;IAC/E,IAAK,UAAU;QAAG,QAAQ,IAAG,WAAY,UAAW,EAAE,CAAC;IAEvD,MAAM,MAAM,GAAoB,MAAM,2BAA2B,CAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAC,IAAI,CAAiC,CAAC;IAErL,oDAAoD;IACpD,uCAAuC;IACvC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC;IAChF,+DAA+D;IAE/D,sCAAsC;IACtC,+BAA+B;IAC/B,wEAAwE;IACxE,MAAM;IAGN,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,+CAA+C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEpI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWebGroupInfoBatchAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebGroupInfoBatchAPI.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAG,MAAM,yDAAyD,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"getWebGroupInfoBatchAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebGroupInfoBatchAPI.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAG,MAAM,yDAAyD,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAIzF,wBAAsB,uBAAuB,CAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,gBAAgB,CAAC,CA+B7L"}
|
|
@@ -2,20 +2,19 @@ import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/mo
|
|
|
2
2
|
import { checkItemsResults, } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
3
3
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
4
4
|
import { getWebGroupInfoAPI } from './getWebGroupInfoAPI';
|
|
5
|
-
import { addFPSDigestToSourceProps } from '../../../components/molecules/SpHttp/digestValues/fromUrl/addFPSDigestToSourceProps';
|
|
6
5
|
export async function getWebGroupInfoBatchAPI(sourceProps, filterBatches, alertMe, consoleLog) {
|
|
7
6
|
const performanceSettings = { label: `SiteGroupsBatch`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
8
7
|
const fetchOp = startPerformOpV2(performanceSettings); // 2024-09-29: set null as any to pass build error.
|
|
9
8
|
// 2024-12-06: WARNING -- Avoid reassigning source props... use new variable to avoid race condition
|
|
10
|
-
const updatedSourceProps = await addFPSDigestToSourceProps(sourceProps);
|
|
9
|
+
// const updatedSourceProps = await addFPSDigestToSourceProps( sourceProps );
|
|
11
10
|
const allReturns = await Promise.all(filterBatches.map((filter, idx) => {
|
|
12
|
-
return getWebGroupInfoAPI({ ...
|
|
11
|
+
return getWebGroupInfoAPI({ ...sourceProps, restFilter: filter }, alertMe, consoleLog);
|
|
13
12
|
}));
|
|
14
13
|
const allGroups = [];
|
|
15
14
|
allReturns.map(returnX => { allGroups.push(...returnX.groups); });
|
|
16
15
|
const initialResult = JSON.parse(JSON.stringify(allReturns[0]));
|
|
17
16
|
initialResult.groups = allGroups;
|
|
18
|
-
const result = checkItemsResults(initialResult, `fps-core-v7: getWebGroupInfoBatchAPI ~ 33`, alertMe, consoleLog);
|
|
17
|
+
const result = checkItemsResults(sourceProps.fpsSpService, initialResult, `fps-core-v7: getWebGroupInfoBatchAPI ~ 33`, alertMe, consoleLog);
|
|
19
18
|
if (!result.unifiedPerformanceOps)
|
|
20
19
|
result.unifiedPerformanceOps = { fetch: {} };
|
|
21
20
|
result.unifiedPerformanceOps.fetch = updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWebGroupInfoBatchAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebGroupInfoBatchAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,GAAG,MAAM,iEAAiE,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAK9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"getWebGroupInfoBatchAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebGroupInfoBatchAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,GAAG,MAAM,iEAAiE,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAK9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAE,WAAyB,EAAE,aAAuB,EAAE,OAA4B,EAAE,UAA+B;IAE9J,MAAM,mBAAmB,GAAyB,EAAE,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE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,qBAAqB,CAAC,KAAK,CAAC;IAEpD,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,oDAAoD,EAAE,MAAM,CAAE,CAAA;KAAE;IAExI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSiteAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/sites/getSiteAPI.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSiteAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/sites/getSiteAPI.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAI5G,OAAO,EAAgB,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAG9H,wBAAgB,wBAAwB,IAAI,cAAc,CAMzD;AAED,wBAAsB,cAAc,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,cAAc,CAAC,CAGzJ;AAED,wBAAsB,SAAS,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,aAAa,CAAC,CAGnJ;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAC;AAE1D,wBAAsB,UAAU,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,6BAA0B,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,cAAc,CAAC,CAyDxL"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { startPerformOpV2 } from '../../../components/molecules/Performance/functions';
|
|
1
|
+
import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
|
|
3
2
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
4
3
|
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
5
4
|
import { getCollectionUrl } from '../../../logic/Links/getSPOUrl';
|
|
@@ -34,8 +33,8 @@ export async function getSiteAPI(sourceProps, apiType = 'site', alertMe, console
|
|
|
34
33
|
results.status = 'NoWeb';
|
|
35
34
|
return results;
|
|
36
35
|
}
|
|
37
|
-
const performanceSettings = { label: `${apiType}-${collectionName}`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
38
|
-
const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
36
|
+
// const performanceSettings: IPerformanceSettings = { label: `${apiType}-${collectionName}`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
37
|
+
// const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null;
|
|
39
38
|
/**
|
|
40
39
|
SAMPLE Full SharePoint Items Rest call:
|
|
41
40
|
https://example.sharepoint.com/sites/MySite/_api/[ site | web | web/webs ]?
|
|
@@ -44,7 +43,7 @@ export async function getSiteAPI(sourceProps, apiType = 'site', alertMe, console
|
|
|
44
43
|
let fetchAPI = `${useUrl}/_api/${apiType === 'subsites' ? `web/webs` : apiType}?}`;
|
|
45
44
|
fetchAPI += `$select=${selectThese && selectThese.length > 0 ? selectThese.join(',') : MinUserSelect.join(',')}&`;
|
|
46
45
|
// const result: IFpsSiteReturn = await doSpJsFetchOrPost(fetchAPI, 'GET', sourceProps.digestValue as '', '', null ) as unknown as IFpsSiteReturn;
|
|
47
|
-
const result = await
|
|
46
|
+
const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, apiType, null);
|
|
48
47
|
let count = 0;
|
|
49
48
|
if (apiType === 'site') {
|
|
50
49
|
result.site = result.item ? result.item : {};
|
|
@@ -58,13 +57,14 @@ export async function getSiteAPI(sourceProps, apiType = 'site', alertMe, console
|
|
|
58
57
|
result[`webs`] = result.items ? result.items : [];
|
|
59
58
|
count = result.status === 'Success' && result.items ? result.items.length : 0;
|
|
60
59
|
}
|
|
60
|
+
result.unifiedPerformanceOps.fetch.label = `site-${collectionName}`;
|
|
61
61
|
// initialResult.users.map( user => {
|
|
62
62
|
// if (!user.LoginName && user.Name) { user.LoginName = user.Name; }
|
|
63
63
|
// if (!user.Email && user.EMail) { user.Email = user.EMail; }
|
|
64
64
|
// });
|
|
65
65
|
// result.fpsContentType = [ `${ apiType === 'subsites' ? 'web' : apiType.toLowerCase()}` as 'web' ];
|
|
66
66
|
// result.unifiedPerformanceOps.fetch.label = `getSiteAPI: ${apiType}`;
|
|
67
|
-
result.unifiedPerformanceOps.fetch.c = count;
|
|
67
|
+
// result.unifiedPerformanceOps.fetch.c = count;
|
|
68
68
|
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
69
69
|
console.log(`fps-core-v7 COMPLETE: getSiteAPI ~ 53`, result);
|
|
70
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSiteAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/sites/getSiteAPI.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"getSiteAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/sites/getSiteAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,gCAAgC,EAAE,MAAM,0DAA0D,CAAC;AAC5G,OAAO,EAAE,aAAa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