@mikezimm/fps-core-v7 1.0.44 → 1.0.46
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.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.js.map +1 -1
- package/lib/banner/components/SingleHelpPage/interfaces/ITrickRow.d.ts.map +1 -1
- package/lib/banner/components/SingleHelpPage/interfaces/ITrickRow.js +1 -0
- package/lib/banner/components/SingleHelpPage/interfaces/ITrickRow.js.map +1 -1
- package/lib/components/atoms/easy-pages/interfaces/IEasyPagesPageHookProps.d.ts +1 -1
- package/lib/components/atoms/easy-pages/interfaces/IEasyPagesPageHookProps.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/IJSFetchReturn.d.ts +4 -3
- package/lib/components/molecules/SpHttp/IJSFetchReturn.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/IJSFetchReturn.js +1 -1
- package/lib/components/molecules/SpHttp/IJSFetchReturn.js.map +1 -1
- package/lib/components/molecules/SpHttp/SpFetchCommon.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/SpFetchCommon.js +19 -2
- package/lib/components/molecules/SpHttp/SpFetchCommon.js.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch copy.d.ts +1 -0
- package/lib/components/molecules/SpHttp/doSpJsFetch copy.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/doSpJsFetch copy.js +163 -0
- package/lib/components/molecules/SpHttp/doSpJsFetch copy.js.map +1 -0
- package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts +61 -2
- package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch.js +271 -39
- package/lib/components/molecules/SpHttp/doSpJsFetch.js.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFileFetch.d.ts +3 -1
- package/lib/components/molecules/SpHttp/doSpJsFileFetch.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFileFetch.js +7 -8
- package/lib/components/molecules/SpHttp/doSpJsFileFetch.js.map +1 -1
- package/lib/components/molecules/SpHttp/headerInitUtilities.d.ts +21 -0
- package/lib/components/molecules/SpHttp/headerInitUtilities.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/headerInitUtilities.js +45 -0
- package/lib/components/molecules/SpHttp/headerInitUtilities.js.map +1 -0
- package/lib/components/molecules/process-results/CheckAnyResults.js +1 -1
- package/lib/components/molecules/process-results/CheckAnyResults.js.map +1 -1
- package/lib/components/molecules/process-results/CheckFpsTypesResults.d.ts +1 -0
- package/lib/components/molecules/process-results/CheckFpsTypesResults.d.ts.map +1 -0
- package/lib/components/molecules/process-results/CheckFpsTypesResults.js +45 -0
- package/lib/components/molecules/process-results/CheckFpsTypesResults.js.map +1 -0
- package/lib/components/molecules/process-results/CheckItemsResults.d.ts +1 -10
- package/lib/components/molecules/process-results/CheckItemsResults.d.ts.map +1 -1
- package/lib/components/molecules/process-results/CheckItemsResults.js +7 -6
- package/lib/components/molecules/process-results/CheckItemsResults.js.map +1 -1
- package/lib/components/molecules/process-results/IFpsItemsReturn.d.ts +14 -0
- package/lib/components/molecules/process-results/IFpsItemsReturn.d.ts.map +1 -0
- package/lib/components/molecules/process-results/IFpsItemsReturn.js +2 -0
- package/lib/components/molecules/process-results/IFpsItemsReturn.js.map +1 -0
- package/lib/components/molecules/process-results/Logging.d.ts +0 -2
- package/lib/components/molecules/process-results/Logging.d.ts.map +1 -1
- package/lib/components/molecules/process-results/Logging.js +47 -49
- package/lib/components/molecules/process-results/Logging.js.map +1 -1
- package/lib/components/molecules/process-results/createEmptyFpsErrorReturn.d.ts +1 -1
- package/lib/components/molecules/process-results/createEmptyFpsErrorReturn.d.ts.map +1 -1
- package/lib/components/molecules/process-results/createEmptyFpsItemsReturn.d.ts +1 -1
- package/lib/components/molecules/process-results/createEmptyFpsItemsReturn.d.ts.map +1 -1
- package/lib/components/molecules/process-results/createEmptyFpsItemsReturn.js +3 -1
- package/lib/components/molecules/process-results/createEmptyFpsItemsReturn.js.map +1 -1
- package/lib/components/molecules/process-results/createErrorFpsFileReturn.js +1 -1
- package/lib/components/molecules/process-results/createErrorFpsFileReturn.js.map +1 -1
- package/lib/components/molecules/process-results/createErrorFpsListItemsReturn.d.ts +1 -1
- package/lib/components/molecules/process-results/createErrorFpsListItemsReturn.d.ts.map +1 -1
- package/lib/components/molecules/state-source/IStateSource.d.ts +1 -1
- package/lib/components/molecules/state-source/IStateSource.d.ts.map +1 -1
- package/lib/components/molecules/state-source/IStateSource.js +3 -1
- package/lib/components/molecules/state-source/IStateSource.js.map +1 -1
- package/lib/restAPIs/lists/files/getFileEmbedUrl.d.ts +2 -3
- package/lib/restAPIs/lists/files/getFileEmbedUrl.d.ts.map +1 -1
- package/lib/restAPIs/lists/files/getFileEmbedUrl.js +10 -11
- package/lib/restAPIs/lists/files/getFileEmbedUrl.js.map +1 -1
- package/lib/restAPIs/lists/files/postSourceFilesAPI.d.ts +1 -1
- package/lib/restAPIs/lists/files/postSourceFilesAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/files/postSourceFilesAPI.js.map +1 -1
- package/lib/restAPIs/lists/items/getSourceItemsAPI.d.ts +1 -1
- package/lib/restAPIs/lists/items/getSourceItemsAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/items/getSourceItemsAPI.js +57 -14
- package/lib/restAPIs/lists/items/getSourceItemsAPI.js.map +1 -1
- package/lib/restAPIs/lists/items/postSourceItemsAPI.d.ts +1 -1
- package/lib/restAPIs/lists/items/postSourceItemsAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/items/postSourceItemsAPI.js +7 -14
- package/lib/restAPIs/lists/items/postSourceItemsAPI.js.map +1 -1
- package/lib/restAPIs/lists/items/updateAnyItemAPI.d.ts +19 -0
- package/lib/restAPIs/lists/items/updateAnyItemAPI.d.ts.map +1 -0
- package/lib/restAPIs/lists/items/updateAnyItemAPI.js +71 -0
- package/lib/restAPIs/lists/items/updateAnyItemAPI.js.map +1 -0
- package/lib/restAPIs/lists/items/updateCommandItemAPI.d.ts +44 -0
- package/lib/restAPIs/lists/items/updateCommandItemAPI.d.ts.map +1 -0
- package/lib/restAPIs/lists/items/updateCommandItemAPI.js +75 -0
- package/lib/restAPIs/lists/items/updateCommandItemAPI.js.map +1 -0
- package/lib/restAPIs/lists/lists/getSourceListsAPI.d.ts +2 -2
- package/lib/restAPIs/lists/lists/getSourceListsAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/lists/getSourceListsAPI.js +10 -13
- package/lib/restAPIs/lists/lists/getSourceListsAPI.js.map +1 -1
- package/lib/restAPIs/logging/saveErrorToLog.d.ts +2 -0
- package/lib/restAPIs/logging/saveErrorToLog.d.ts.map +1 -1
- package/lib/restAPIs/logging/saveErrorToLog.js +18 -9
- package/lib/restAPIs/logging/saveErrorToLog.js.map +1 -1
- package/lib/restAPIs/logging/saveErrorToLogOriginal.d.ts +1 -0
- package/lib/restAPIs/logging/saveErrorToLogOriginal.d.ts.map +1 -0
- package/lib/restAPIs/logging/saveErrorToLogOriginal.js +45 -0
- package/lib/restAPIs/logging/saveErrorToLogOriginal.js.map +1 -0
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.d.ts +3 -0
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js +61 -14
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.js +44 -17
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.js +8 -12
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoBatchAPI.js +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoBatchAPI.js.map +1 -1
- package/lib/restAPIs/sites/sites/getSiteAPI.d.ts +1 -1
- package/lib/restAPIs/sites/sites/getSiteAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/sites/getSiteAPI.js +20 -23
- package/lib/restAPIs/sites/sites/getSiteAPI.js.map +1 -1
- package/lib/restAPIs/sites/users/getSiteUsersAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/users/getSiteUsersAPI.js +7 -13
- 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 +5 -11
- package/lib/restAPIs/sites/users/getSiteUsersBatchAPI.js.map +1 -1
- package/lib/types/fps-returns/common/IFPSBaseContentType.d.ts +8 -0
- package/lib/types/fps-returns/common/IFPSBaseContentType.d.ts.map +1 -1
- package/lib/types/fps-returns/common/IFpsErrorObject.d.ts +8 -2
- package/lib/types/fps-returns/common/IFpsErrorObject.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/IFpsSiteReturn.d.ts +1 -1
- package/lib/types/fps-returns/sites/IFpsSiteReturn.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/groups/IGroupReturns.d.ts +1 -1
- package/lib/types/fps-returns/sites/groups/IGroupReturns.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/update/IFPSItemUpdateResultObj.d.ts +2 -1
- package/lib/types/fps-returns/sites/update/IFPSItemUpdateResultObj.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/users/IFpsUsersReturn.d.ts +1 -1
- package/lib/types/fps-returns/sites/users/IFpsUsersReturn.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/users/ISiteUserResults.d.ts +1 -1
- package/lib/types/fps-returns/sites/users/ISiteUserResults.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saveErrorToLogOriginal.d.ts","sourceRoot":"","sources":["../../../src/restAPIs/logging/saveErrorToLogOriginal.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// // import { IHelpfullOutput, IHelpfullInput } from '@mikezimm/fps-core-v7/lib/logic/Errors/friendly';
|
|
2
|
+
// // import { getUrlVarsAsStrings, getCurrentPageLink } from '@mikezimm/fps-core-v7/lib/logic/Links/UrlFunctions';
|
|
3
|
+
// // import { saveThisLogItem } from '@mikezimm/fps-pnp2/lib/services/sp/logging/saveThisLogItem';
|
|
4
|
+
// import { getThisFPSDigestValueFromUrl } from "../../components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl";
|
|
5
|
+
// import { doSpJsFetchOrPost } from "../../components/molecules/SpHttp/doSpJsFetch";
|
|
6
|
+
// import { IHelpfullInput, IHelpfullOutput } from "../../logic/Errors/friendly";
|
|
7
|
+
// import { getCurrentPageLink, getUrlVarsAsStrings } from "../../logic/Links/UrlFunctions";
|
|
8
|
+
// import { AnalyticsWebAbsolute, ErrorLog } from "./interfaces/constants";
|
|
9
|
+
// /**
|
|
10
|
+
// *
|
|
11
|
+
// * @param errorInfo
|
|
12
|
+
// * @param errorInput
|
|
13
|
+
// */
|
|
14
|
+
// export async function saveErrorToLogX(errorInfo: IHelpfullOutput, errorInput: IHelpfullInput) : Promise<void> {
|
|
15
|
+
// //Return if you are not supposed to log an error
|
|
16
|
+
// if ( errorInput.logErrors !== true ) { return ; }
|
|
17
|
+
// // https://github.com/mikezimm/fps-library-v2/issues/15
|
|
18
|
+
// if ( !errorInfo ) { return ; }
|
|
19
|
+
// const muteConsole = true;
|
|
20
|
+
// const { traceString, e, alertMe, consoleLog, logErrors } = errorInput;
|
|
21
|
+
// let trace: string[] = traceString ? traceString.split('|') : [];
|
|
22
|
+
// let getParams = JSON.stringify(getUrlVarsAsStrings());
|
|
23
|
+
// let parsedMessage = errorInfo.returnMess.split('-- FULL ERROR MESSAGE:');
|
|
24
|
+
// let zzzRichText1 = parsedMessage.length > 0 ? parsedMessage[0] : 'No friendly error';
|
|
25
|
+
// let zzzRichText2 = parsedMessage.length > 0 ? parsedMessage[1] : errorInfo.returnMess;
|
|
26
|
+
// let saveItem: any = {
|
|
27
|
+
// Title: trace[0],
|
|
28
|
+
// Result: trace[3] ? trace[3] : null,
|
|
29
|
+
// zzzText1: trace[4] ? trace[4] : null,
|
|
30
|
+
// zzzText2: trace[5] ? trace[5] : null,
|
|
31
|
+
// zzzText3: trace[6] ? trace[6] : null,
|
|
32
|
+
// zzzText6: typeof alertMe === 'string' ? alertMe : `${alertMe}`,
|
|
33
|
+
// zzzText7: typeof consoleLog === 'string' ? consoleLog : `${consoleLog}`,
|
|
34
|
+
// zzzNumber1: trace[7] ? trace[7] : null,
|
|
35
|
+
// zzzNumber2: trace[8] ? trace[8] : null,
|
|
36
|
+
// getParams: getParams,
|
|
37
|
+
// PageLink: getCurrentPageLink(),
|
|
38
|
+
// zzzRichText1: zzzRichText1,
|
|
39
|
+
// zzzRichText2: zzzRichText2,
|
|
40
|
+
// };
|
|
41
|
+
// let postAPI: string = `${AnalyticsWebAbsolute}/_api/web/lists/getbytitle('${ErrorLog}')/items`;
|
|
42
|
+
// const digestValue = await getThisFPSDigestValueFromUrl( AnalyticsWebAbsolute );
|
|
43
|
+
// const initialResult = await doSpJsFetchOrPost( postAPI, 'POST', digestValue, '', saveItem );
|
|
44
|
+
// }
|
|
45
|
+
//# sourceMappingURL=saveErrorToLogOriginal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saveErrorToLogOriginal.js","sourceRoot":"","sources":["../../../src/restAPIs/logging/saveErrorToLogOriginal.ts"],"names":[],"mappings":"AACA,wGAAwG;AACxG,mHAAmH;AACnH,mGAAmG;AAEnG,sIAAsI;AACtI,qFAAqF;AACrF,iFAAiF;AACjF,4FAA4F;AAC5F,2EAA2E;AAE3E,MAAM;AACN,KAAK;AACL,sBAAsB;AACtB,uBAAuB;AACvB,MAAM;AAEN,kHAAkH;AAElH,qDAAqD;AACrD,sDAAsD;AAEtD,4DAA4D;AAC5D,mCAAmC;AAEnC,8BAA8B;AAC9B,2EAA2E;AAE3E,qEAAqE;AAErE,2DAA2D;AAC3D,8EAA8E;AAC9E,0FAA0F;AAC1F,2FAA2F;AAE3F,0BAA0B;AAC1B,uBAAuB;AAEvB,0CAA0C;AAE1C,4CAA4C;AAC5C,4CAA4C;AAC5C,4CAA4C;AAE5C,sEAAsE;AACtE,+EAA+E;AAE/E,8CAA8C;AAC9C,8CAA8C;AAE9C,4BAA4B;AAC5B,sCAAsC;AACtC,kCAAkC;AAClC,kCAAkC;AAClC,OAAO;AAEP,oGAAoG;AAEpG,oFAAoF;AACpF,iGAAiG;AAEjG,IAAI"}
|
|
@@ -3,4 +3,7 @@ import { IFpsUsersReturn } from '../../../types/fps-returns/sites/users/IFpsUser
|
|
|
3
3
|
export declare function checkCurrentUserInGroup(sourceProps: ISourceProps, GroupName: string, LoginName: string): Promise<IFpsUsersReturn>;
|
|
4
4
|
export declare function getAllUsersInGroup(sourceProps: ISourceProps, GroupName: string): Promise<IFpsUsersReturn>;
|
|
5
5
|
export declare function getGroupMembersAPI(sourceProps: ISourceProps, GroupName: string, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsUsersReturn>;
|
|
6
|
+
/**
|
|
7
|
+
* Original kept for now until this has been tested
|
|
8
|
+
*/
|
|
6
9
|
//# sourceMappingURL=getGroupMembersAPI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGroupMembersAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getGroupMembersAPI.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAG5G,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AAEzF,wBAAsB,uBAAuB,CAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAI,OAAO,CAAC,eAAe,CAAC,CAKzI;AAED,wBAAsB,kBAAkB,CAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAK,OAAO,CAAC,eAAe,CAAC,CAIlH;AAED,wBAAsB,kBAAkB,CAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"getGroupMembersAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getGroupMembersAPI.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAG5G,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AAEzF,wBAAsB,uBAAuB,CAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAI,OAAO,CAAC,eAAe,CAAC,CAKzI;AAED,wBAAsB,kBAAkB,CAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAK,OAAO,CAAC,eAAe,CAAC,CAIlH;AAED,wBAAsB,kBAAkB,CAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CAyDjL;AAED;;GAEG"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/molecules/Performance/functions';
|
|
3
|
-
import { checkItemsResults } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
1
|
+
import { doSpJsFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/doSpJsFetch';
|
|
2
|
+
// import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/molecules/Performance/functions';
|
|
3
|
+
// import { checkItemsResults } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
4
4
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
5
|
+
// import { IPerformanceSettings } from '../../../components/molecules/Performance/IPerformanceSettings';
|
|
5
6
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
7
|
+
// import { IPerformanceOp } from '../../../components/molecules/Performance/IPerformance';
|
|
6
8
|
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
7
9
|
import { getAbsoluteWebUrlFromSourceProps, } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
|
|
8
10
|
import { UserSelectsFull } from '../users/UserSelects';
|
|
@@ -19,8 +21,6 @@ export async function getAllUsersInGroup(sourceProps, GroupName) {
|
|
|
19
21
|
}
|
|
20
22
|
export async function getGroupMembersAPI(sourceProps, GroupName, alertMe, consoleLog) {
|
|
21
23
|
const { restFilter, digestValue = '', selectThese = UserSelectsFull } = sourceProps;
|
|
22
|
-
const performanceSettings = { label: GroupName, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
23
|
-
const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
24
24
|
const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
|
|
25
25
|
if (!useUrl) {
|
|
26
26
|
// NO WebURL... Throw Alert
|
|
@@ -52,25 +52,72 @@ export async function getGroupMembersAPI(sourceProps, GroupName, alertMe, consol
|
|
|
52
52
|
let fetchAPI = `${useUrl}/_api/web/sitegroups/getbyname('${GroupName}')/users?`;
|
|
53
53
|
fetchAPI += `$select=${selectThese.join(',')}&`;
|
|
54
54
|
fetchAPI += `$orderby=Title asc`;
|
|
55
|
-
// if ( restFilter ) fetchAPI+= `&$filter=${ encodeURIComponent(restFilter) }&`;
|
|
56
55
|
if (restFilter)
|
|
57
56
|
fetchAPI += `&$filter=${restFilter}&`;
|
|
58
|
-
const
|
|
59
|
-
|
|
57
|
+
const result = await doSpJsFetchOrPostAndCheck(fetchAPI, 'GET', digestValue, '', alertMe, consoleLog, 'user', null);
|
|
58
|
+
// result.users = result.items ? result.items : [];
|
|
59
|
+
// result.fpsContentType = [ 'user' ];
|
|
60
|
+
result.unifiedPerformanceOps.fetch.label = `${GroupName} Users`;
|
|
61
|
+
// result.unifiedPerformanceOps.fetch.c = result.users.length;
|
|
60
62
|
// Add any required custom logic here
|
|
61
63
|
// if ( resultHubSites.ok ) {
|
|
62
64
|
// resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
63
65
|
// }
|
|
64
|
-
const result = checkItemsResults(initialResult, `fps-core-v7: getGroupMembersAPI ~ 78`, alertMe, consoleLog);
|
|
65
|
-
result.fpsContentType = ['user'];
|
|
66
|
-
result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
67
|
-
updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 })
|
|
68
|
-
: null; // 2024-09-29: set null as any to pass build error.
|
|
69
|
-
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
70
66
|
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
71
67
|
console.log(`fps-core-v7 COMPLETE: getGroupMembersAPI ~ 87`, result);
|
|
72
68
|
}
|
|
73
69
|
;
|
|
74
70
|
return result;
|
|
75
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Original kept for now until this has been tested
|
|
74
|
+
*/
|
|
75
|
+
// export async function getGroupMembersAPI( sourceProps: ISourceProps, GroupName: string, alertMe: boolean | undefined, consoleLog: boolean | undefined, ): Promise<IFpsUsersReturn> {
|
|
76
|
+
// const { restFilter, digestValue = '', selectThese = UserSelectsFull } = sourceProps;
|
|
77
|
+
// const performanceSettings: IPerformanceSettings = { label: GroupName, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
78
|
+
// const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null;
|
|
79
|
+
// const useUrl: string = getAbsoluteWebUrlFromSourceProps( sourceProps );
|
|
80
|
+
// if ( !useUrl ) {
|
|
81
|
+
// // NO WebURL... Throw Alert
|
|
82
|
+
// if ( alertMe === true ) alert(`getGroupInfoAPI: ${SourcePropsNoWebUrl}`);
|
|
83
|
+
// const results: IFpsUsersReturn = createErrorFpsListReturn( useUrl, '' ) as IFpsUsersReturn;
|
|
84
|
+
// results.status = 'NoWeb';
|
|
85
|
+
// return results;
|
|
86
|
+
// }
|
|
87
|
+
// if ( !GroupName ) {
|
|
88
|
+
// // NO WebURL... Throw Alert
|
|
89
|
+
// if ( alertMe === true ) alert(`${''} SourceProps does NOT have an GroupName`);
|
|
90
|
+
// const results: IFpsUsersReturn = createErrorFpsListReturn( useUrl, '' ) as IFpsUsersReturn;
|
|
91
|
+
// results.statusText = 'No GroupName';
|
|
92
|
+
// results.status = 'NoGroup';
|
|
93
|
+
// return results;
|
|
94
|
+
// }
|
|
95
|
+
// /**
|
|
96
|
+
// SAMPLE Full SharePoint Items Rest call:
|
|
97
|
+
// https://example.sharepoint.com/sites/MySite/_api/web/sitegroups/getbyname('GroupName')/users?
|
|
98
|
+
// $select=Id,Title,EULAText,ExpandedField1/Id,ExpandedField1/Title,ExpandedField2/Id,ExpandedField2/Title&
|
|
99
|
+
// $expand=ExpandedField1,ExpandedField2&
|
|
100
|
+
// $filter=Title eq 'SomeTitle'&
|
|
101
|
+
// $orderby=Id desc
|
|
102
|
+
// */
|
|
103
|
+
// let fetchAPI: string = `${useUrl}/_api/web/sitegroups/getbyname('${GroupName}')/users?`;
|
|
104
|
+
// fetchAPI += `$select=${selectThese.join(',')}&`;
|
|
105
|
+
// fetchAPI += `$orderby=Title asc`;
|
|
106
|
+
// // if ( restFilter ) fetchAPI+= `&$filter=${ encodeURIComponent(restFilter) }&`;
|
|
107
|
+
// if ( restFilter ) fetchAPI+= `&$filter=${ restFilter }&`;
|
|
108
|
+
// const initialResult: IFpsUsersReturn = await doSpJsFetchOrPost( fetchAPI, 'GET', digestValue, '', null ) as unknown as IFpsUsersReturn;
|
|
109
|
+
// initialResult.users = initialResult.items ? initialResult.items : [];
|
|
110
|
+
// // Add any required custom logic here
|
|
111
|
+
// // if ( resultHubSites.ok ) {
|
|
112
|
+
// // resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
113
|
+
// // }
|
|
114
|
+
// result.fpsContentType = [ 'user' ];
|
|
115
|
+
// const result : IFpsUsersReturn = checkItemsResults( initialResult, `fps-core-v7: getGroupMembersAPI ~ 78`, alertMe, consoleLog ) as IFpsUsersReturn;
|
|
116
|
+
// result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
117
|
+
// updatePerformanceEndV2( { op: fetchOp as IPerformanceOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 })
|
|
118
|
+
// : null as any; // 2024-09-29: set null as any to pass build error.
|
|
119
|
+
// result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
120
|
+
// if ( check4This( `fpsShowFetchResults=true` ) === true ) { console.log( `fps-core-v7 COMPLETE: getGroupMembersAPI ~ 87`, result ) };
|
|
121
|
+
// return result;
|
|
122
|
+
// }
|
|
76
123
|
//# sourceMappingURL=getGroupMembersAPI.js.map
|
|
@@ -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"],"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G,CAAE,+CAA+C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEpI,OAAO,MAAM,CAAC;AAEhB,CAAC;AAED;;GAEG;AACH,wLAAwL;AAExL,yFAAyF;AACzF,sIAAsI;AACtI,0FAA0F;AAE1F,4EAA4E;AAE5E,qBAAqB;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWebAssociatedGroupAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebAssociatedGroupAPI.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getWebAssociatedGroupAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebAssociatedGroupAPI.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAE5G,OAAO,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAE7F,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAC;AAEpH,wBAAsB,4BAA4B,CAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,0BAA0B,CAAC,CAqBxM;AAED,wBAAsB,wBAAwB,CAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CAwCtN"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { doSpJsFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/doSpJsFetch';
|
|
2
2
|
import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/molecules/Performance/functions';
|
|
3
|
-
import { checkItemsResults } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
4
3
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
5
4
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
6
5
|
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
@@ -15,15 +14,11 @@ export async function getWebAllAssociatedGroupsAPI(sourceProps, digestValue, ale
|
|
|
15
14
|
result.owners = allReturns[0];
|
|
16
15
|
result.members = allReturns[1];
|
|
17
16
|
result.visitors = allReturns[2];
|
|
18
|
-
if (!result.unifiedPerformanceOps)
|
|
19
|
-
result.unifiedPerformanceOps = {};
|
|
20
17
|
result.unifiedPerformanceOps.fetch = updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 });
|
|
21
18
|
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
22
19
|
return result;
|
|
23
20
|
}
|
|
24
21
|
export async function getWebAssociatedGroupAPI(sourceProps, group, digestValue, alertMe, consoleLog) {
|
|
25
|
-
const performanceSettings = { label: `AssocGroups`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
26
|
-
const fetchOp = startPerformOpV2(performanceSettings); // 2024-09-29: set null as any to pass build error.
|
|
27
22
|
// 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
|
|
28
23
|
const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
|
|
29
24
|
if (!useUrl) {
|
|
@@ -42,25 +37,57 @@ export async function getWebAssociatedGroupAPI(sourceProps, group, digestValue,
|
|
|
42
37
|
const { selectThese, } = sourceProps;
|
|
43
38
|
let fetchAPI = `${useUrl}/_api/web/associated${group}group?`;
|
|
44
39
|
fetchAPI += `$select=${selectThese && selectThese.length > 0 ? selectThese.join(',') : 'Title,Id'}&`;
|
|
45
|
-
const
|
|
40
|
+
const result = await doSpJsFetchOrPostAndCheck(fetchAPI, 'GET', digestValue, '', alertMe, consoleLog, 'group', null);
|
|
46
41
|
// Add any required custom logic here
|
|
47
42
|
// if ( resultHubSites.ok ) {
|
|
48
43
|
// resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
49
44
|
// }
|
|
50
|
-
|
|
51
|
-
result.
|
|
52
|
-
//
|
|
53
|
-
|
|
54
|
-
result.
|
|
55
|
-
if (!result.unifiedPerformanceOps)
|
|
56
|
-
result.unifiedPerformanceOps = {};
|
|
57
|
-
result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
58
|
-
updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 }) : null;
|
|
59
|
-
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
45
|
+
// let itemX = result.item ? result.item : result.items ? result.items : undefined;
|
|
46
|
+
// result.group = itemX;
|
|
47
|
+
// result.fpsContentType = [ 'group' ];
|
|
48
|
+
result.unifiedPerformanceOps.fetch.label = `AssocGroups: ${group}`;
|
|
49
|
+
// result.unifiedPerformanceOps.fetch.c = 1;
|
|
60
50
|
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
61
51
|
console.log(`fps-core-v7 COMPLETE: getWebAssociatedGroupAPI ~ 86`, result);
|
|
62
52
|
}
|
|
63
53
|
;
|
|
64
54
|
return result;
|
|
65
55
|
}
|
|
56
|
+
// export async function getWebAssociatedGroupAPI( sourceProps: ISourceProps, group: IAssociatedGroupType, digestValue: string, alertMe: boolean | undefined, consoleLog: boolean | undefined, ): Promise<IFpsGroupReturn> {
|
|
57
|
+
// const performanceSettings: IPerformanceSettings = { label: `AssocGroups`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
58
|
+
// const fetchOp: IPerformanceOp = startPerformOpV2( performanceSettings ) as IPerformanceOp; // 2024-09-29: set null as any to pass build error.
|
|
59
|
+
// // 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
|
|
60
|
+
// const useUrl: string = getAbsoluteWebUrlFromSourceProps( sourceProps );
|
|
61
|
+
// if ( !useUrl ) {
|
|
62
|
+
// // NO WebURL... Throw Alert
|
|
63
|
+
// if ( alertMe === true ) alert(`getWebAssociatedGroupAPI: ${SourcePropsNoWebUrl}`);
|
|
64
|
+
// const results: IFpsGroupReturn = createErrorFpsListReturn( useUrl, '' ) as IFpsGroupReturn;
|
|
65
|
+
// return results;
|
|
66
|
+
// }
|
|
67
|
+
// /**
|
|
68
|
+
// SAMPLE Full SharePoint Items Rest call:
|
|
69
|
+
// ``${this.props.SettingsSource.useUrl}/
|
|
70
|
+
// _api/web/associatedownergroup?
|
|
71
|
+
// $select=Title,Id`;
|
|
72
|
+
// */
|
|
73
|
+
// const { selectThese, } = sourceProps;
|
|
74
|
+
// let fetchAPI: string = `${useUrl}/_api/web/associated${group}group?`;
|
|
75
|
+
// fetchAPI+= `$select=${ selectThese && selectThese.length > 0 ? selectThese.join(',') : 'Title,Id' }&`;
|
|
76
|
+
// const initialResult = await doSpJsFetchOrPost( fetchAPI, 'GET', digestValue, '', null );
|
|
77
|
+
// // Add any required custom logic here
|
|
78
|
+
// // if ( resultHubSites.ok ) {
|
|
79
|
+
// // resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
80
|
+
// // }
|
|
81
|
+
// const result : IFpsGroupReturn = checkItemsResults( initialResult as IFpsItemsReturn, `fps-core-v7: getWebAssociatedGroupAPI ~ 72`, alertMe, consoleLog ) as IFpsGroupReturn;
|
|
82
|
+
// result.fpsContentType = [ 'group' ];
|
|
83
|
+
// // 2024-12-06: As of now, the Group is returned on the 'items' property here but it's actually a single item.
|
|
84
|
+
// let itemX = result.item ? result.item : result.items ? result.items : undefined;
|
|
85
|
+
// result.group = itemX;
|
|
86
|
+
// if ( !result.unifiedPerformanceOps ) result.unifiedPerformanceOps = {}
|
|
87
|
+
// result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
88
|
+
// updatePerformanceEndV2( { op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 }) : null as any;
|
|
89
|
+
// result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
90
|
+
// if ( check4This( `fpsShowFetchResults=true` ) === true ) { console.log( `fps-core-v7 COMPLETE: getWebAssociatedGroupAPI ~ 86`, result ) };
|
|
91
|
+
// return result;
|
|
92
|
+
// }
|
|
66
93
|
//# sourceMappingURL=getWebAssociatedGroupAPI.js.map
|
|
@@ -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,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;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AC;IAE5J,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 +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":"AAMA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAI5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAIzF,wBAAsB,kBAAkB,CAAE,WAAW,EAAE,YAAY,EAAE,WAAW,oBAAK,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,gBAAgB,CAAC,CAgDjL"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { startPerformOpV2,
|
|
3
|
-
import { checkItemsResults, } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
1
|
+
import { doSpJsFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/doSpJsFetch';
|
|
2
|
+
import { startPerformOpV2, } from '../../../components/molecules/Performance/functions';
|
|
4
3
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
5
4
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
6
5
|
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
7
6
|
import { getAbsoluteWebUrlFromSourceProps, } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
|
|
8
7
|
import { getExpandColumns } from '../../../components/molecules/source-props/Lists/getVX/getExpandV2';
|
|
9
8
|
import { GroupSelectsWithOwner } from './GroupSelects';
|
|
9
|
+
import { getCollectionUrl } from '../../../logic/Links/getSPOUrl';
|
|
10
10
|
export async function getWebGroupInfoAPI(sourceProps, digestValue = '', alertMe, consoleLog) {
|
|
11
11
|
const { restFilter, selectThese = GroupSelectsWithOwner, } = sourceProps;
|
|
12
12
|
const performanceSettings = { label: `SiteGroups`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
@@ -34,19 +34,15 @@ export async function getWebGroupInfoAPI(sourceProps, digestValue = '', alertMe,
|
|
|
34
34
|
fetchAPI += `$expand=${expandThese.join(',')}&`;
|
|
35
35
|
if (restFilter)
|
|
36
36
|
fetchAPI += `$filter=${restFilter}`;
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
const result = await doSpJsFetchOrPostAndCheck(fetchAPI, 'GET', digestValue, '', alertMe, consoleLog, 'group', null);
|
|
38
|
+
// result.groups = result.items ? result.items : [];
|
|
39
|
+
// result.fpsContentType = [ 'group' ];
|
|
40
|
+
result.unifiedPerformanceOps.fetch.label = `${getCollectionUrl(useUrl)} Groups`;
|
|
41
|
+
// result.unifiedPerformanceOps.fetch.c = result.groups.length;
|
|
39
42
|
// Add any required custom logic here
|
|
40
43
|
// if ( resultHubSites.ok ) {
|
|
41
44
|
// resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
42
45
|
// }
|
|
43
|
-
const result = checkItemsResults(initialResult, `fps-core-v7: getWebGroupInfoAPI ~ 53`, alertMe, consoleLog);
|
|
44
|
-
result.fpsContentType = ['group'];
|
|
45
|
-
if (!result.unifiedPerformanceOps)
|
|
46
|
-
result.unifiedPerformanceOps = {};
|
|
47
|
-
result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
48
|
-
updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 }) : null;
|
|
49
|
-
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
50
46
|
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
51
47
|
console.log(`fps-core-v7 COMPLETE: getWebGroupInfoAPI ~ 61`, result);
|
|
52
48
|
}
|
|
@@ -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/restAPIs/sites/groups/getWebGroupInfoAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO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,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,yBAAyB,GAAG,CAAC;IAErG,MAAM,WAAW,GAAa,gBAAgB,CAAE,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,yBAAyB,CAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAC,IAAI,CAAiC,CAAC;IAEtK,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"}
|
|
@@ -17,7 +17,7 @@ export async function getWebGroupInfoBatchAPI(sourceProps, filterBatches, alertM
|
|
|
17
17
|
initialResult.groups = allGroups;
|
|
18
18
|
const result = checkItemsResults(initialResult, `fps-core-v7: getWebGroupInfoBatchAPI ~ 33`, alertMe, consoleLog);
|
|
19
19
|
if (!result.unifiedPerformanceOps)
|
|
20
|
-
result.unifiedPerformanceOps = {};
|
|
20
|
+
result.unifiedPerformanceOps = { fetch: {} };
|
|
21
21
|
result.unifiedPerformanceOps.fetch = updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 });
|
|
22
22
|
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
23
23
|
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
@@ -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;AAE1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qFAAqF,CAAC;AAEhI,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,CAAC;IACzI,MAAM,OAAO,GAAmB,gBAAgB,CAAE,mBAAmB,CAAoB,CAAC,CAAE,oDAAoD;IAEhJ,qGAAqG;IACrG,MAAM,kBAAkB,GAAG,MAAM,yBAAyB,CAAE,WAAW,CAAE,CAAC;IAE1E,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,GAAG,CAClC,aAAa,CAAC,GAAG,CAAE,CAAE,MAAc,EAAE,GAAW,EAAG,EAAE;QACnD,OAAO,kBAAkB,CAAE,EAAE,GAAG,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,kBAAkB,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,CAAE,CAAA;IAAC,CAAC,CAClI,CACF,C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;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"}
|
|
@@ -3,6 +3,6 @@ import { IFpsSiteReturn, IFpsWebReturn, IFpsWebsReturn } from '../../../types/fp
|
|
|
3
3
|
export declare function createEmptyFpsSiteReturn(): IFpsSiteReturn;
|
|
4
4
|
export declare function getSubsitesAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsWebsReturn>;
|
|
5
5
|
export declare function getWebAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsWebReturn>;
|
|
6
|
-
export type IGetSiteAPIType = '
|
|
6
|
+
export type IGetSiteAPIType = 'site' | 'web' | 'subsites';
|
|
7
7
|
export declare function getSiteAPI(sourceProps: ISourceProps, apiType: IGetSiteAPIType | undefined, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsSiteReturn>;
|
|
8
8
|
//# sourceMappingURL=getSiteAPI.d.ts.map
|
|
@@ -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":"AAKA,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,CAuDxL"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { startPerformOpV2
|
|
3
|
-
import { checkItemsResults } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
1
|
+
import { doSpJsFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/doSpJsFetch';
|
|
2
|
+
import { startPerformOpV2 } from '../../../components/molecules/Performance/functions';
|
|
4
3
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
5
4
|
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
6
5
|
import { getCollectionUrl } from '../../../logic/Links/getSPOUrl';
|
|
@@ -15,14 +14,14 @@ export function createEmptyFpsSiteReturn() {
|
|
|
15
14
|
return results;
|
|
16
15
|
}
|
|
17
16
|
export async function getSubsitesAPI(sourceProps, alertMe, consoleLog) {
|
|
18
|
-
const results = await getSiteAPI(sourceProps, '
|
|
17
|
+
const results = await getSiteAPI(sourceProps, 'subsites', alertMe, consoleLog);
|
|
19
18
|
return results;
|
|
20
19
|
}
|
|
21
20
|
export async function getWebAPI(sourceProps, alertMe, consoleLog) {
|
|
22
|
-
const results = await getSiteAPI(sourceProps, '
|
|
21
|
+
const results = await getSiteAPI(sourceProps, 'web', alertMe, consoleLog);
|
|
23
22
|
return results;
|
|
24
23
|
}
|
|
25
|
-
export async function getSiteAPI(sourceProps, apiType = '
|
|
24
|
+
export async function getSiteAPI(sourceProps, apiType = 'site', alertMe, consoleLog) {
|
|
26
25
|
const { selectThese, } = sourceProps;
|
|
27
26
|
// 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
|
|
28
27
|
const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
|
|
@@ -42,32 +41,30 @@ export async function getSiteAPI(sourceProps, apiType = 'Site', alertMe, console
|
|
|
42
41
|
https://example.sharepoint.com/sites/MySite/_api/[ site | web | web/webs ]?
|
|
43
42
|
$select=Id,Title
|
|
44
43
|
*/
|
|
45
|
-
let fetchAPI = `${useUrl}/_api/${apiType === '
|
|
44
|
+
let fetchAPI = `${useUrl}/_api/${apiType === 'subsites' ? `web/webs` : apiType}?}`;
|
|
46
45
|
fetchAPI += `$select=${selectThese && selectThese.length > 0 ? selectThese.join(',') : MinUserSelect.join(',')}&`;
|
|
47
|
-
const
|
|
46
|
+
// const result: IFpsSiteReturn = await doSpJsFetchOrPost(fetchAPI, 'GET', sourceProps.digestValue as '', '', null ) as unknown as IFpsSiteReturn;
|
|
47
|
+
const result = await doSpJsFetchOrPostAndCheck(fetchAPI, 'GET', '', '', alertMe, consoleLog, apiType, null);
|
|
48
48
|
let count = 0;
|
|
49
|
-
if (apiType === '
|
|
50
|
-
|
|
51
|
-
count =
|
|
49
|
+
if (apiType === 'site') {
|
|
50
|
+
result.site = result.item ? result.item : {};
|
|
51
|
+
count = result.status === 'Success' ? 1 : 0;
|
|
52
52
|
}
|
|
53
|
-
else if (apiType === '
|
|
54
|
-
|
|
55
|
-
count =
|
|
53
|
+
else if (apiType === 'web') {
|
|
54
|
+
result[`web`] = result.item ? result.item : {};
|
|
55
|
+
count = result.status === 'Success' ? 1 : 0;
|
|
56
56
|
}
|
|
57
|
-
else if (apiType === '
|
|
58
|
-
|
|
59
|
-
count =
|
|
57
|
+
else if (apiType === 'subsites') {
|
|
58
|
+
result[`webs`] = result.items ? result.items : [];
|
|
59
|
+
count = result.status === 'Success' && result.items ? result.items.length : 0;
|
|
60
60
|
}
|
|
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
|
-
|
|
66
|
-
result.
|
|
67
|
-
result.unifiedPerformanceOps.fetch =
|
|
68
|
-
updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: count })
|
|
69
|
-
: null; // 2024-09-29: set null as any to pass build error.
|
|
70
|
-
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
65
|
+
// result.fpsContentType = [ `${ apiType === 'subsites' ? 'web' : apiType.toLowerCase()}` as 'web' ];
|
|
66
|
+
// result.unifiedPerformanceOps.fetch.label = `getSiteAPI: ${apiType}`;
|
|
67
|
+
result.unifiedPerformanceOps.fetch.c = count;
|
|
71
68
|
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
72
69
|
console.log(`fps-core-v7 COMPLETE: getSiteAPI ~ 53`, result);
|
|
73
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,EAAqB,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EA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,OAAO,KAAK,KAAK,EAAG;QAC9B,MAAM,CAAG,KAAe,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3D,KAAK,GAAG,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7C;SAAM,IAAK,OAAO,KAAK,UAAU,EAAG;QACnC,MAAM,CAAG,MAAiB,CAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAChE,KAAK,GAAG,MAAM,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/E;IAED,qCAAqC;IACrC,sEAAsE;IACtE,gEAAgE;IAChE,MAAM;IAEN,sGAAsG;IACtG,uEAAuE;IACvE,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC;IAE7C,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,uCAAuC,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAE5H,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSiteUsersAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/getSiteUsersAPI.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSiteUsersAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/getSiteUsersAPI.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAG5G,OAAO,EAAE,eAAe,EAAG,MAAM,wDAAwD,CAAC;AAI1F,wBAAsB,gBAAgB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CAK5J;AAED,wBAAsB,eAAe,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CAqD3J"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/molecules/Performance/functions';
|
|
3
|
-
import { checkItemsResults } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
1
|
+
import { doSpJsFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/doSpJsFetch';
|
|
4
2
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
5
3
|
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
6
4
|
import { getCollectionUrl } from '../../../logic/Links/getSPOUrl';
|
|
@@ -10,6 +8,7 @@ import { MinUserSelect } from '../../../types/fps-returns/sites/users/UserSelect
|
|
|
10
8
|
export async function getSiteAdminsAPI(sourceProps, alertMe, consoleLog) {
|
|
11
9
|
const restFilter = 'IsSiteAdmin eq true';
|
|
12
10
|
const results = await getSiteUsersAPI({ ...sourceProps, ...{ restFilter: restFilter } }, alertMe, consoleLog);
|
|
11
|
+
results.unifiedPerformanceOps.fetch.label.replace('users', 'admins');
|
|
13
12
|
return results;
|
|
14
13
|
}
|
|
15
14
|
export async function getSiteUsersAPI(sourceProps, alertMe, consoleLog) {
|
|
@@ -25,8 +24,6 @@ export async function getSiteUsersAPI(sourceProps, alertMe, consoleLog) {
|
|
|
25
24
|
results.status = 'NoWeb';
|
|
26
25
|
return results;
|
|
27
26
|
}
|
|
28
|
-
const performanceSettings = { label: `users-${collectionName}`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
29
|
-
const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
30
27
|
/**
|
|
31
28
|
SAMPLE Full SharePoint Items Rest call:
|
|
32
29
|
|
|
@@ -46,18 +43,15 @@ export async function getSiteUsersAPI(sourceProps, alertMe, consoleLog) {
|
|
|
46
43
|
*/
|
|
47
44
|
if (restFilter)
|
|
48
45
|
fetchAPI += `$filter=${restFilter}&`;
|
|
49
|
-
const
|
|
50
|
-
|
|
46
|
+
const result = await doSpJsFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.digestValue, '', alertMe, consoleLog, 'user', null);
|
|
47
|
+
// result.users = result.items ? result.items : [];
|
|
48
|
+
// result.fpsContentType = [ 'user' ];
|
|
49
|
+
result.unifiedPerformanceOps.fetch.label = `users-${collectionName}`;
|
|
50
|
+
// result.unifiedPerformanceOps.fetch.c = result.users.length;
|
|
51
51
|
// initialResult.users.map( user => {
|
|
52
52
|
// if (!user.LoginName && user.Name) { user.LoginName = user.Name; }
|
|
53
53
|
// if (!user.Email && user.EMail) { user.Email = user.EMail; }
|
|
54
54
|
// });
|
|
55
|
-
const result = checkItemsResults(initialResult, `fps-core-v7: getSiteUsersAPI ~ 71`, alertMe, consoleLog);
|
|
56
|
-
result.fpsContentType = ['user'];
|
|
57
|
-
result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
58
|
-
updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 })
|
|
59
|
-
: null; // 2024-09-29: set null as any to pass build error.
|
|
60
|
-
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
61
55
|
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
62
56
|
console.log(`fps-core-v7 COMPLETE: getSiteUsersAPI ~ 80`, result);
|
|
63
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSiteUsersAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/getSiteUsersAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getSiteUsersAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/getSiteUsersAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,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;AAE5G,OAAO,EAAE,yBAAyB,EAAE,MAAM,yEAAyE,CAAC;AACpH,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAElF,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAE,WAAyB,EAAE,OAA4B,EAAE,UAA+B;IAC9H,MAAM,UAAU,GAAG,qBAAqB,CAAC;IACzC,MAAM,OAAO,GAAG,MAAM,eAAe,CAAE,EAAE,GAAG,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,EAAC,EAAE,OAAO,EAAE,UAAU,CAAE,CAAC;IAC/G,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACrE,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAE,WAAyB,EAAE,OAA4B,EAAE,UAA+B;IAE7H,MAAM,EAAE,UAAU,EAAE,WAAW,GAAG,GAAG,WAAW,CAAC;IAEjD,sIAAsI;IACtI,MAAM,MAAM,GAAW,gCAAgC,CAAE,WAAW,CAAE,CAAC;IACvE,MAAM,cAAc,GAAW,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAExD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