@mikezimm/fps-core-v7 1.0.46 → 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/AnyContent/IFPSFileObject.d.ts +10 -0
- package/lib/components/molecules/AnyContent/IFPSFileObject.d.ts.map +1 -1
- package/lib/components/molecules/AnyContent/IFPSFileObject.js +10 -0
- package/lib/components/molecules/AnyContent/IFPSFileObject.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/digestValues/fromUrl/getThisFPSDigestValueFromUrl.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js +5 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js.map +1 -1
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.js +8 -4
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.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 +4 -5
- 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 +20 -0
- package/lib/restAPIs/lists/items/getOnlySharedItems.d.ts.map +1 -0
- package/lib/restAPIs/lists/items/getOnlySharedItems.js +90 -0
- package/lib/restAPIs/lists/items/getOnlySharedItems.js.map +1 -0
- package/lib/restAPIs/lists/items/getSourceItemsAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/items/getSourceItemsAPI.js +5 -3
- 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,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeAnalizerComment: Updated 2 imports on 2024-09-22 14:49:52
|
|
3
|
+
* Update:: import { IFpsItemsReturn } to '@mikezimm/fps-core-v7/lib/components/molecules/process-results/CheckItemsResults;'
|
|
4
|
+
* Update:: import { processSharedItems } to '@mikezimm/fps-core-v7/lib/components/atoms/SharedItems/processSharedItems;'
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
import { processSharedItems } from "../../../components/atoms/SharedItems/processSharedItems";
|
|
8
|
+
import { filterSharedItems, SharedWithExpand, SharedWithItemsSelect } from "../../../components/molecules/AnyContent/IFPSFileObject";
|
|
9
|
+
import { CurrentTenant } from "../../../components/molecules/source-props/WindowLocationConstants";
|
|
10
|
+
import { makeid } from "../../../logic/Strings/guids";
|
|
11
|
+
import { getSourceItemsAPI } from "./getSourceItemsAPI";
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
|
+
/**
|
|
14
|
+
* 2024-12-15: Migrated from fps-library-v2: src\components\atoms\SharedItems\getOnlySharedItems.ts
|
|
15
|
+
* As of now, not tested, but might be used for PivotTiles where it was originally based from
|
|
16
|
+
*
|
|
17
|
+
* @param doThis
|
|
18
|
+
* @param webURL
|
|
19
|
+
* @param listTitle
|
|
20
|
+
* @param addTheseItemsToState
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export async function getOnlySharedItems(doThis, webURL, listTitle, addTheseItemsToState, fpsSpService) {
|
|
24
|
+
const SourceProps = {
|
|
25
|
+
tenant: CurrentTenant,
|
|
26
|
+
refreshId: makeid(5),
|
|
27
|
+
webUrl: webURL,
|
|
28
|
+
listTitle: listTitle,
|
|
29
|
+
fetchCount: null,
|
|
30
|
+
selectThese: SharedWithItemsSelect,
|
|
31
|
+
expandThese: SharedWithExpand,
|
|
32
|
+
restFilter: filterSharedItems,
|
|
33
|
+
fpsSpService: fpsSpService,
|
|
34
|
+
orderBy: {
|
|
35
|
+
prop: 'Id',
|
|
36
|
+
order: 'desc',
|
|
37
|
+
asc: false,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
const getItems = await getSourceItemsAPI(SourceProps, false, true);
|
|
41
|
+
// let items: IItemWithSharingInfo[] = getItems.items;
|
|
42
|
+
getItems.items = processSharedItems(getItems.items);
|
|
43
|
+
// if ( doThis.tab8 === sharedHistory.tab8 ) {
|
|
44
|
+
// elements = buildSharingRows( items, width );
|
|
45
|
+
// } else {
|
|
46
|
+
// elements = buildWasSharedRows( items, width );
|
|
47
|
+
// }
|
|
48
|
+
// try {
|
|
49
|
+
// const getItems: IFpsItemsReturn = await getSourceItems( SourceProps as ISourceProps, false, true );
|
|
50
|
+
// if ( doThis.tab8 === sharedHistory.tab8 ) {
|
|
51
|
+
// try {
|
|
52
|
+
// items = await thisListObject.items.select(thisSelect).expand(thisExpand).filter('SharedWithUsersId ne null').get();
|
|
53
|
+
// items = processSharedItems( items );
|
|
54
|
+
// elements = buildSharingRows( items, width );
|
|
55
|
+
// } catch( e ) {
|
|
56
|
+
// const helpfulErrorEnd = [ webURL, listTitle, null, null ].join('|');
|
|
57
|
+
// errMessage = getHelpfullErrorV2(e, false, true, [ BaseErrorTrace , 'Failed', 'Sharing ~ 303', helpfulErrorEnd ].join('|') ).friendly;
|
|
58
|
+
// }
|
|
59
|
+
// } else {
|
|
60
|
+
// try {
|
|
61
|
+
// items = await thisListObject.items.select(thisSelect).expand(thisExpand).filter('SharedWithUsersId ne null').get();
|
|
62
|
+
// items = processSharedItems( items );
|
|
63
|
+
// elements = buildWasSharedRows( items, width );
|
|
64
|
+
// } catch( e ) {
|
|
65
|
+
// const helpfulErrorEnd = [ webURL, listTitle, null, null ].join('|');
|
|
66
|
+
// errMessage = getHelpfullErrorV2(e, false, true, [ BaseErrorTrace , 'Failed', 'Sharing ~ 303', helpfulErrorEnd ].join('|') ).friendly;
|
|
67
|
+
// }
|
|
68
|
+
// }
|
|
69
|
+
// items = processSharedItems( items );
|
|
70
|
+
// elements = buildSharingRows( items, width );
|
|
71
|
+
// } catch (e) {
|
|
72
|
+
// const helpfulErrorEnd = [ webURL, listTitle, null, null ].join('|');
|
|
73
|
+
// errMessage = getHelpfullErrorV2(e, false, true, [ BaseErrorTrace , 'Failed', 'Sharing ~ 254', helpfulErrorEnd ].join('|') ).friendly;
|
|
74
|
+
// }
|
|
75
|
+
// const thisSet : IMySharingInfoSet = {
|
|
76
|
+
// items: items,
|
|
77
|
+
// elements: elements,
|
|
78
|
+
// isLoaded: isLoaded,
|
|
79
|
+
// errMessage: getItems.status === 'Success' ? '' : getItems.errorInfo.friendly,
|
|
80
|
+
// };
|
|
81
|
+
// const mySharing : IMySharingInfo = {
|
|
82
|
+
// history: doThis.tab8 === sharedHistory.tab8 ? thisSet : null ,
|
|
83
|
+
// details: doThis.tab8 === sharedDetails.tab8 ? thisSet : null ,
|
|
84
|
+
// };
|
|
85
|
+
if (addTheseItemsToState)
|
|
86
|
+
addTheseItemsToState(getItems, doThis);
|
|
87
|
+
// console.log('mySharing:', mySharing );
|
|
88
|
+
return getItems;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=getOnlySharedItems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOnlySharedItems.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/getOnlySharedItems.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAIrI,OAAO,EAAE,aAAa,EAAE,MAAM,oEAAoE,CAAC;AAEnG,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAA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IAClF,KAAK;IAEL,uCAAuC;IACvC,mEAAmE;IACnE,mEAAmE;IACnE,KAAK;IAEL,IAAK,oBAAoB;QAAG,oBAAoB,CAAE,QAAQ,EAAE,MAAM,CAAE,CAAC;IACrE,yCAAyC;IACzC,OAAO,QAAQ,CAAE;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSourceItemsAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/getSourceItemsAPI.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAA+C,MAAM,yDAAyD,CAAC;AACpI,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"getSourceItemsAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/getSourceItemsAPI.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAA+C,MAAM,yDAAyD,CAAC;AACpI,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAQhG,eAAO,MAAM,iBAAiB,qCAAqC,CAAC;AACpE,eAAO,MAAM,uBAAuB,QAAgD,CAAC;AAErF,wBAAsB,kCAAkC,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CAM9K;AAED;;;;;;;;;;GAUG;AAEH,wBAAsB,iBAAiB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CAmE7J"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { SourcePropsNoListTitle, SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps'; ///ISourceProps';
|
|
5
5
|
import { check4This } from "../../../logic/Links/CheckSearch";
|
|
6
|
-
import {
|
|
6
|
+
import { doSpHttpFetchOrPostAndCheck } from "../../../components/molecules/SpHttp/Sp/doSpHttpFetch";
|
|
7
7
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
8
8
|
import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
|
|
9
9
|
import { getTodayRestFilter } from './getTodayRestFilter';
|
|
@@ -44,6 +44,8 @@ export async function getSourceItemsAPI(sourceProps, alertMe, consoleLog) {
|
|
|
44
44
|
alert(`${''} ${SourcePropsNoListTitle}`);
|
|
45
45
|
return createErrorFpsListReturn(useUrl, listTitle);
|
|
46
46
|
}
|
|
47
|
+
// Added just so it's always here for cases like getOnlySharedItems
|
|
48
|
+
// sourceProps = await addFPSDigestToSourceProps( sourceProps );
|
|
47
49
|
/**
|
|
48
50
|
SAMPLE Full SharePoint Items Rest call:
|
|
49
51
|
|
|
@@ -73,7 +75,7 @@ export async function getSourceItemsAPI(sourceProps, alertMe, consoleLog) {
|
|
|
73
75
|
fetchAPI += `$top=${fetchCount}&`;
|
|
74
76
|
if (skip)
|
|
75
77
|
fetchAPI += `$skip=${skip}&`;
|
|
76
|
-
const result = await
|
|
78
|
+
const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, 'item', null);
|
|
77
79
|
// Add any required custom logic here
|
|
78
80
|
// if ( resultHubSites.ok ) {
|
|
79
81
|
// resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
@@ -124,7 +126,7 @@ export async function getSourceItemsAPI(sourceProps, alertMe, consoleLog) {
|
|
|
124
126
|
// // 2024-12-05: changed to fetchCount > 0 because it was doing top=null which caused an error
|
|
125
127
|
// if ( fetchCount > 0 ) fetchAPI+= `$top=${ fetchCount }&`;
|
|
126
128
|
// if ( skip ) fetchAPI+= `$skip=${ skip }&`;
|
|
127
|
-
// const initialResult = await doSpJsFetchOrPost( fetchAPI, 'GET', sourceProps.
|
|
129
|
+
// const initialResult = await doSpJsFetchOrPost( fetchAPI, 'GET', sourceProps.fpsSpService '', null );
|
|
128
130
|
// // Add any required custom logic here
|
|
129
131
|
// // if ( resultHubSites.ok ) {
|
|
130
132
|
// // resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSourceItemsAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/getSourceItemsAPI.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,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":"getSourceItemsAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/items/getSourceItemsAPI.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,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;AAC5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,kCAAkC,CAAC;AACpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAI,iBAAkB,uBAAuB,CAAC;AAErF,MAAM,CAAC,KAAK,UAAU,kCAAkC,CAAE,WAAyB,EAAE,OAA4B,EAAE,UAA+B;IAChJ,MAAM,cAAc,GAAiB,IA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CAAC;IAC/D,iGAAiG;IAEjG,+FAA+F;IAC/F,4FAA4F;IAE5F,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,8CAA8C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEnI,OAAO,MAAM,CAAC;AAEhB,CAAC;AAED,oKAAoK;AAEpK,iDAAiD;AACjD,0FAA0F;AAE1F,kHAAkH;AAElH,2IAA2I;AAC3I,4EAA4E;AAC5E,yFAAyF;AAEzF,qBAAqB;AACrB,kCAAkC;AAClC,4EAA4E;AAC5E,2DAA2D;AAC3D,MAAM;AAEN,wBAAwB;AACxB,kCAAkC;AAClC,wEAAwE;AACxE,2DAA2D;AAC3D,MAAM;AAEN,QAAQ;AACR,8CAA8C;AAE9C,6FAA6F;AAC7F,mHAAmH;AACnH,iDAAiD;AACjD,wCAAwC;AACxC,2BAA2B;AAE3B,OAAO;AAEP,kGAAkG;AAClG,kGAAkG;AAElG,yEAAyE;AACzE,iFAAiF;AAEjF,mCAAmC;AACnC,6EAA6E;AAC7E,+EAA+E;AAC/E,+EAA+E;AAE/E,kGAAkG;AAClG,8DAA8D;AAC9D,+CAA+C;AAE/C,yGAAyG;AAEzG,2CAA2C;AAC3C,oCAAoC;AACpC,6EAA6E;AAC7E,WAAW;AAEX,qIAAqI;AACrI,mGAAmG;AAEnG,oGAAoG;AACpG,8FAA8F;AAE9F,+DAA+D;AAC/D,0KAA0K;AAC1K,2EAA2E;AAE3E,yDAAyD;AAEzD,wIAAwI;AAExI,mBAAmB;AAEnB,IAAI"}
|
|
@@ -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;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AAG;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/update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,EAAE,QAAQ,CAAE,CAAC;IAE1I,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,UAAU,SAAS,EAAE,CAAC;IACjE,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"}
|
|
@@ -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,CA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AAO,KAAK,UAAU,EAAE,CAAC,CAAC;SACnE;QACD,OAAO,CAAC,GAAG,CAAC,GAAG,0BAA0B,KAAK,UAAU,KAAK,UAAU,EAAE,CAAC,CAAC;KAE5E;SAAM;QACL,KAAK,CAAG,6CAA8C,WAAW,CAAC,MAAO,EAAE,CAAC,CAAC;KAC9E;IAED,uDAAuD;IACvD,IAAK,CAAC,WAAW,CAAC,qBAAqB;QAAG,WAAW,CAAC,qBAAqB,GAAG,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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,CAAC,IAAK,IAAK,OAAO,CAAC,KAAM,EAAE,CAAE,CAAE;IAExE,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAE,CAAC;IAErI,sCAAsC;IACtC,+BAA+B;IAC/B,wEAAwE;IACxE,MAAM;IAEN,mIAAmI;IACnI,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,EAA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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,C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CAAC,CAAC,CAAC,GAAG,UAAU,EAAE;QAEvE,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAW;QAC7C,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,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,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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AACrB,kCAAkC;AAClC,gFAAgF;AAChF,kGAAkG;AAClG,gCAAgC;AAChC,sBAAsB;AACtB,MAAM;AAEN,wBAAwB;AACxB,kCAAkC;AAClC,qFAAqF;AACrF,kGAAkG;AAClG,2CAA2C;AAC3C,kCAAkC;AAElC,sBAAsB;AACtB,MAAM;AAEN,QAAQ;AACR,8CAA8C;AAE9C,oGAAoG;AACpG,mHAAmH;AACnH,iDAAiD;AACjD,wCAAwC;AACxC,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,"file":"getWebAssociatedGroupAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebAssociatedGroupAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC/G,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6EAA6E,CAAC;AAEvH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,gCAAgC,EAAE,MAAM,0DAA0D,CAAC;AAE5G,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAG7F,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAE,WAAyB,EAAE,WAAmB,EAAE,OAA4B,EAAE,UAA+B;IAE/J,MAAM,mBAAmB,GAAyB,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;IACrI,MAAM,OAAO,GAAmB,gBAAgB,CAAE,mBAAmB,CAAoB,CAAC,CAAE,oDAAoD;IAEhJ,MAAM,UAAU,GAAsB,MAAM,OAAO,CAAC,GAAG,CACrD,CAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAE,CAAC,GAAG,CAAE,CAAE,KAA2B,EAAE,GAAW,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zC,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"}
|