@mikezimm/fps-core-v7 1.0.35 → 1.0.36
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/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-icons/SystemIcons/DefaultEasyIcons.d.ts.map +1 -1
- package/lib/components/atoms/easy-icons/SystemIcons/DefaultEasyIcons.js.map +1 -1
- package/lib/components/atoms/easy-icons/interfaces/eiTypes.d.ts.map +1 -1
- package/lib/components/atoms/easy-icons/interfaces/eiTypes.js +3 -4
- package/lib/components/atoms/easy-icons/interfaces/eiTypes.js.map +1 -1
- package/lib/components/molecules/AnyContent/IAnyListLib.d.ts +8 -3
- package/lib/components/molecules/AnyContent/IAnyListLib.d.ts.map +1 -1
- package/lib/components/molecules/AnyContent/IAnyListLib.js +4 -16
- package/lib/components/molecules/AnyContent/IAnyListLib.js.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addListIsAMeta.d.ts +13 -0
- package/lib/components/molecules/SearchPage/functions/addListIsAMeta.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addListIsAMeta.js +13 -0
- package/lib/components/molecules/SearchPage/functions/addListIsAMeta.js.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.js +3 -1
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.js.map +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.js +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.js.map +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js.map +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.js +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.js.map +1 -1
- package/lib/components/molecules/process-results/createEmptyFpsUsersReturn.d.ts +4 -0
- package/lib/components/molecules/process-results/createEmptyFpsUsersReturn.d.ts.map +1 -0
- package/lib/components/molecules/process-results/createEmptyFpsUsersReturn.js +15 -0
- package/lib/components/molecules/process-results/createEmptyFpsUsersReturn.js.map +1 -0
- package/lib/logic/Math/convertFileSizeStringToNum.d.ts.map +1 -1
- package/lib/logic/Math/convertFileSizeStringToNum.js +3 -0
- package/lib/logic/Math/convertFileSizeStringToNum.js.map +1 -1
- package/lib/logic/Math/labels.d.ts +8 -0
- package/lib/logic/Math/labels.d.ts.map +1 -1
- package/lib/logic/Math/labels.js +12 -0
- package/lib/logic/Math/labels.js.map +1 -1
- package/lib/logic/Strings/getAbssoluteWebUrlFromSourceProps.d.ts +10 -0
- package/lib/logic/Strings/getAbssoluteWebUrlFromSourceProps.d.ts.map +1 -0
- package/lib/logic/Strings/getAbssoluteWebUrlFromSourceProps.js +18 -0
- package/lib/logic/Strings/getAbssoluteWebUrlFromSourceProps.js.map +1 -0
- package/lib/restAPIs/lists/files/postSourceFilesAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/files/postSourceFilesAPI.js +12 -8
- package/lib/restAPIs/lists/files/postSourceFilesAPI.js.map +1 -1
- package/lib/restAPIs/lists/items/getSourceItemsAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/items/getSourceItemsAPI.js +14 -9
- package/lib/restAPIs/lists/items/getSourceItemsAPI.js.map +1 -1
- package/lib/restAPIs/lists/items/postSourceItemsAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/items/postSourceItemsAPI.js +10 -6
- package/lib/restAPIs/lists/items/postSourceItemsAPI.js.map +1 -1
- package/lib/restAPIs/lists/lists/MinListSelects.d.ts +8 -0
- package/lib/restAPIs/lists/lists/MinListSelects.d.ts.map +1 -0
- package/lib/restAPIs/lists/lists/MinListSelects.js +26 -0
- package/lib/restAPIs/lists/lists/MinListSelects.js.map +1 -0
- package/lib/restAPIs/lists/lists/getSourceListsAPI.d.ts.map +1 -1
- package/lib/restAPIs/lists/lists/getSourceListsAPI.js +10 -6
- package/lib/restAPIs/lists/lists/getSourceListsAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/GroupSelects.d.ts +4 -0
- package/lib/restAPIs/sites/groups/GroupSelects.d.ts.map +1 -0
- package/lib/restAPIs/sites/groups/GroupSelects.js +4 -0
- package/lib/restAPIs/sites/groups/GroupSelects.js.map +1 -0
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.d.ts +4 -5
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js +17 -13
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.d.ts +6 -0
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.d.ts.map +1 -0
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.js +65 -0
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.js.map +1 -0
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.d.ts +2 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.js +15 -6
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.js.map +1 -1
- package/lib/restAPIs/sites/sites/getSiteAPI.d.ts +8 -0
- package/lib/restAPIs/sites/sites/getSiteAPI.d.ts.map +1 -0
- package/lib/restAPIs/sites/sites/getSiteAPI.js +77 -0
- package/lib/restAPIs/sites/sites/getSiteAPI.js.map +1 -0
- package/lib/restAPIs/sites/users/UserGroupSelects.d.ts +3 -0
- package/lib/restAPIs/sites/users/UserGroupSelects.d.ts.map +1 -0
- package/lib/restAPIs/sites/users/UserGroupSelects.js +3 -0
- package/lib/restAPIs/sites/users/UserGroupSelects.js.map +1 -0
- package/lib/restAPIs/sites/users/getSiteUsersAPI.d.ts +5 -0
- package/lib/restAPIs/sites/users/getSiteUsersAPI.d.ts.map +1 -0
- package/lib/restAPIs/sites/users/getSiteUsersAPI.js +62 -0
- package/lib/restAPIs/sites/users/getSiteUsersAPI.js.map +1 -0
- package/lib/types/fps-returns/sites/IFpsSiteReturn.d.ts +41 -0
- package/lib/types/fps-returns/sites/IFpsSiteReturn.d.ts.map +1 -0
- package/lib/types/fps-returns/sites/IFpsSiteReturn.js +2 -0
- package/lib/types/fps-returns/sites/IFpsSiteReturn.js.map +1 -0
- package/lib/types/fps-returns/sites/ISiteErrorObj.d.ts +3 -0
- package/lib/types/fps-returns/sites/ISiteErrorObj.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/groups/IGroupResults.d.ts +18 -12
- package/lib/types/fps-returns/sites/groups/IGroupResults.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/groups/IGroupResults.js +0 -10
- package/lib/types/fps-returns/sites/groups/IGroupResults.js.map +1 -1
- package/lib/types/fps-returns/sites/groups/IGroupsResults.d.ts +10 -12
- package/lib/types/fps-returns/sites/groups/IGroupsResults.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/groups/IGroupsResults.js +0 -10
- package/lib/types/fps-returns/sites/groups/IGroupsResults.js.map +1 -1
- package/lib/types/fps-returns/sites/users/{ISiteUsersResults.d.ts → IFpsUsersReturn.d.ts} +6 -3
- package/lib/types/fps-returns/sites/users/IFpsUsersReturn.d.ts.map +1 -0
- package/lib/types/fps-returns/sites/users/{ISiteUsersResults.js → IFpsUsersReturn.js} +1 -1
- package/lib/types/fps-returns/sites/users/IFpsUsersReturn.js.map +1 -0
- package/lib/types/fps-returns/sites/users/ISiteUserResults.d.ts +5 -2
- package/lib/types/fps-returns/sites/users/ISiteUserResults.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/webs/IWebErrorObj.d.ts +2 -2
- package/lib/types/fps-returns/sites/webs/IWebErrorObj.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/types/fps-returns/sites/users/ISiteUsersResults.d.ts.map +0 -1
- package/lib/types/fps-returns/sites/users/ISiteUsersResults.js.map +0 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { doSpJsFetchOrPost } from '../../../components/molecules/SpHttp/doSpJsFetch';
|
|
2
|
+
import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/molecules/Performance/functions';
|
|
3
|
+
import { checkItemsResults } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
4
|
+
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
5
|
+
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
6
|
+
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
7
|
+
import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
|
|
8
|
+
import { createEmptyFetchReturn } from '../../../components/molecules/SpHttp/IJSFetchReturn';
|
|
9
|
+
export async function getWebAllAssociatedGroupsAPI(sourceProps, digestValue, alertMe, consoleLog) {
|
|
10
|
+
const performanceSettings = { label: `AssocGroups`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
11
|
+
const fetchOp = startPerformOpV2(performanceSettings); // 2024-09-29: set null as any to pass build error.
|
|
12
|
+
const allReturns = await Promise.all(['Owner', 'Member', 'Visitor'].map((group, idx) => { return getWebAssociatedGroupAPI(sourceProps, group, digestValue, alertMe, consoleLog); }));
|
|
13
|
+
const result = createEmptyFetchReturn(allReturns[0][`fetchAPI`], 'GET');
|
|
14
|
+
result.items = allReturns;
|
|
15
|
+
result.owner = allReturns[0];
|
|
16
|
+
result.member = allReturns[1];
|
|
17
|
+
result.visitor = allReturns[2];
|
|
18
|
+
if (!result.unifiedPerformanceOps)
|
|
19
|
+
result.unifiedPerformanceOps = {};
|
|
20
|
+
result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
21
|
+
updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 }) : null;
|
|
22
|
+
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
25
|
+
export async function getWebAssociatedGroupAPI(sourceProps, group, digestValue, alertMe, consoleLog) {
|
|
26
|
+
const performanceSettings = { label: `AssocGroups`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
27
|
+
const fetchOp = startPerformOpV2(performanceSettings); // 2024-09-29: set null as any to pass build error.
|
|
28
|
+
// 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
|
|
29
|
+
const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
|
|
30
|
+
if (!useUrl) {
|
|
31
|
+
// NO WebURL... Throw Alert
|
|
32
|
+
if (alertMe === true)
|
|
33
|
+
alert(`getWebAssociatedGroupAPI: ${SourcePropsNoWebUrl}`);
|
|
34
|
+
const results = createErrorFpsListReturn(useUrl, '');
|
|
35
|
+
return results;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
SAMPLE Full SharePoint Items Rest call:
|
|
39
|
+
``${this.props.SettingsSource.useUrl}/
|
|
40
|
+
_api/web/associatedownergroup?
|
|
41
|
+
$select=Title,Id`;
|
|
42
|
+
*/
|
|
43
|
+
const { selectThese, } = sourceProps;
|
|
44
|
+
let fetchAPI = `${useUrl}/_api/web/associated${group}group?`;
|
|
45
|
+
fetchAPI += `$select=${selectThese && selectThese.length > 0 ? selectThese.join(',') : 'Title,Id'}&`;
|
|
46
|
+
const initialResult = await doSpJsFetchOrPost(fetchAPI, 'GET', digestValue, '');
|
|
47
|
+
// Add any required custom logic here
|
|
48
|
+
// if ( resultHubSites.ok ) {
|
|
49
|
+
// resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
50
|
+
// }
|
|
51
|
+
const result = checkItemsResults(initialResult, `fps-core-v7: getWebAssociatedGroupAPI ~ 39`, alertMe, consoleLog);
|
|
52
|
+
result.fpsContentType = ['group'];
|
|
53
|
+
result.group = result.items ? result.items[0] : undefined;
|
|
54
|
+
if (!result.unifiedPerformanceOps)
|
|
55
|
+
result.unifiedPerformanceOps = {};
|
|
56
|
+
result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
57
|
+
updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 }) : null;
|
|
58
|
+
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
59
|
+
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
60
|
+
console.log(`fps-core-v7 COMPLETE: getWebAssociatedGroupAPI ~ 47`, result);
|
|
61
|
+
}
|
|
62
|
+
;
|
|
63
|
+
return result;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=getWebAssociatedGroupAPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWebAssociatedGroupAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebAssociatedGroupAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAmB,MAAM,iEAAiE,CAAC;AACrH,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,E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C;IAElF,sCAAsC;IACtC,+BAA+B;IAC/B,wEAAwE;IACxE,MAAM;IAEN,MAAM,MAAM,GAAqB,iBAAiB,CAAE,aAAgC,EAAE,4CAA4C,EAAE,OAAO,EAAE,UAAU,CAAqB,CAAC;IAC7K,MAAM,CAAC,cAAc,GAAG,CAAE,OAAO,CAAE,CAAC;IACpC,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE1D,IAAK,CAAC,MAAM,CAAC,qBAAqB;QAAG,MAAM,CAAC,qBAAqB,GAAG,EAAE,CAAA;IAEtE,MAAM,CAAC,qBAAqB,CAAC,KAAK,GAAG,mBAAmB,CAAC,CAAC;QACxD,sBAAsB,CAAE,EAAE,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,iBAAiB,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAE,CAAC,CAAC,IAAW,CAAC;IAEnK,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC;IAEpD,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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { IFpsItemsReturn } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
2
|
-
|
|
2
|
+
import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
|
|
3
|
+
export declare function getWebGroupInfoAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsItemsReturn>;
|
|
3
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":"AAEA,OAAO,EAAqB,eAAe,EAAE,MAAM,iEAAiE,CAAC;
|
|
1
|
+
{"version":3,"file":"getWebGroupInfoAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebGroupInfoAPI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,eAAe,EAAE,MAAM,iEAAiE,CAAC;AAKrH,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAM5G,wBAAsB,kBAAkB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CAkD9J"}
|
|
@@ -4,25 +4,34 @@ import { checkItemsResults } from '../../../components/molecules/process-results
|
|
|
4
4
|
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
5
5
|
import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
|
|
6
6
|
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
7
|
-
|
|
7
|
+
import { getAbsoluteWebUrlFromSourceProps, } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
|
|
8
|
+
import { getExpandColumns } from '../../../components/molecules/source-props/Lists/getVX/getExpandV2';
|
|
9
|
+
import { GroupSelectsWithOwner } from './GroupSelects';
|
|
10
|
+
export async function getWebGroupInfoAPI(sourceProps, alertMe, consoleLog) {
|
|
11
|
+
const { restFilter, selectThese = GroupSelectsWithOwner, digestValue = '' } = sourceProps;
|
|
8
12
|
const performanceSettings = { label: `SiteGroups`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
9
13
|
const fetchOp = startPerformOpV2(performanceSettings); // 2024-09-29: set null as any to pass build error.
|
|
10
|
-
|
|
14
|
+
const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
|
|
15
|
+
if (!useUrl) {
|
|
11
16
|
// NO WebURL... Throw Alert
|
|
12
17
|
if (alertMe === true)
|
|
13
18
|
alert(`getGroupInfoAPI: ${SourcePropsNoWebUrl}`);
|
|
14
|
-
const results = createErrorFpsListReturn(
|
|
19
|
+
const results = createErrorFpsListReturn(useUrl, '');
|
|
15
20
|
return results;
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
23
|
SAMPLE Full SharePoint Items Rest call:
|
|
19
|
-
``${this.props.SettingsSource.
|
|
24
|
+
``${this.props.SettingsSource.useUrl}/
|
|
20
25
|
_api/web/sitegroups?
|
|
21
26
|
$filter=startswith(Title,'EULA')&
|
|
22
27
|
$select=Title,Id`;
|
|
23
28
|
*/
|
|
24
|
-
let fetchAPI = `${
|
|
25
|
-
fetchAPI += `$
|
|
29
|
+
let fetchAPI = `${useUrl}/_api/web/sitegroups?`;
|
|
30
|
+
fetchAPI += `$orderby=Title asc&`;
|
|
31
|
+
fetchAPI += `$select=${selectThese.length > 0 ? selectThese.join(',') : 'Title,Id,PrincipalType,'}&`;
|
|
32
|
+
const expandThese = getExpandColumns(selectThese);
|
|
33
|
+
if (expandThese.length > 0)
|
|
34
|
+
fetchAPI += `$expand=${expandThese.join(',')}&`;
|
|
26
35
|
if (restFilter)
|
|
27
36
|
fetchAPI += `$filter=${restFilter}`;
|
|
28
37
|
const initialResult = await doSpJsFetchOrPost(fetchAPI, 'GET', digestValue, '');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWebGroupInfoAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/groups/getWebGroupInfoAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,gBAAgB,E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CAAE,EAAE,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,iBAAiB,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAE,CAAC,CAAC,IAAW,CAAC;IAEnK,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC;IAEpD,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
|
|
2
|
+
import { IFpsSiteReturn, IFpsWebReturn, IFpsWebsReturn } from '../../../types/fps-returns/sites/IFpsSiteReturn';
|
|
3
|
+
export declare function createEmptyFpsSiteReturn(): IFpsSiteReturn;
|
|
4
|
+
export declare function getSubsitesAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsWebsReturn>;
|
|
5
|
+
export declare function getWebAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsWebReturn>;
|
|
6
|
+
export type IGetSiteAPIType = 'Site' | 'Web' | 'Subsites';
|
|
7
|
+
export declare function getSiteAPI(sourceProps: ISourceProps, apiType: IGetSiteAPIType | undefined, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsSiteReturn>;
|
|
8
|
+
//# sourceMappingURL=getSiteAPI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSiteAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/sites/getSiteAPI.ts"],"names":[],"mappings":"AAOA,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,CA4DxL"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { doSpJsFetchOrPost } from '../../../components/molecules/SpHttp/doSpJsFetch';
|
|
2
|
+
import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/molecules/Performance/functions';
|
|
3
|
+
import { checkItemsResults } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
4
|
+
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
5
|
+
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
6
|
+
import { getCollectionUrl } from '../../../logic/Links/getSPOUrl';
|
|
7
|
+
import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
|
|
8
|
+
import { MinUserSelect } from '../../../types/fps-returns/sites/users/UserSelect';
|
|
9
|
+
import { createEmptyFpsItemsReturn } from '../../../components/molecules/process-results/createEmptyFpsItemsReturn';
|
|
10
|
+
export function createEmptyFpsSiteReturn() {
|
|
11
|
+
const results = createEmptyFpsItemsReturn();
|
|
12
|
+
results.site = {};
|
|
13
|
+
results[`web`] = {};
|
|
14
|
+
results[`webs`] = [];
|
|
15
|
+
return results;
|
|
16
|
+
}
|
|
17
|
+
export async function getSubsitesAPI(sourceProps, alertMe, consoleLog) {
|
|
18
|
+
const results = await getSiteAPI(sourceProps, 'Subsites', alertMe, consoleLog);
|
|
19
|
+
return results;
|
|
20
|
+
}
|
|
21
|
+
export async function getWebAPI(sourceProps, alertMe, consoleLog) {
|
|
22
|
+
const results = await getSiteAPI(sourceProps, 'Web', alertMe, consoleLog);
|
|
23
|
+
return results;
|
|
24
|
+
}
|
|
25
|
+
export async function getSiteAPI(sourceProps, apiType = 'Site', alertMe, consoleLog) {
|
|
26
|
+
const { selectThese, } = sourceProps;
|
|
27
|
+
// 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
|
|
28
|
+
const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
|
|
29
|
+
const collectionName = getCollectionUrl(useUrl);
|
|
30
|
+
if (!useUrl) {
|
|
31
|
+
// NO WebURL... Throw Alert
|
|
32
|
+
if (alertMe === true)
|
|
33
|
+
alert(`getSiteAPI: ${SourcePropsNoWebUrl}`);
|
|
34
|
+
const results = createEmptyFpsSiteReturn();
|
|
35
|
+
results.status = 'NoWeb';
|
|
36
|
+
return results;
|
|
37
|
+
}
|
|
38
|
+
const performanceSettings = { label: `${apiType}-${collectionName}`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
39
|
+
const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
40
|
+
/**
|
|
41
|
+
SAMPLE Full SharePoint Items Rest call:
|
|
42
|
+
https://example.sharepoint.com/sites/MySite/_api/[ site | web | web/webs ]?
|
|
43
|
+
$select=Id,Title
|
|
44
|
+
*/
|
|
45
|
+
let fetchAPI = `${useUrl}/_api/${apiType === 'Subsites' ? `web/webs` : apiType}?}`;
|
|
46
|
+
fetchAPI += `$select=${selectThese && selectThese.length > 0 ? selectThese.join(',') : MinUserSelect.join(',')}&`;
|
|
47
|
+
const initialResult = await doSpJsFetchOrPost(fetchAPI, 'GET', sourceProps.digestValue, '');
|
|
48
|
+
let count = 0;
|
|
49
|
+
if (apiType === 'Site') {
|
|
50
|
+
initialResult.site = initialResult.item ? initialResult.item : {};
|
|
51
|
+
count = initialResult.status === 'Success' ? 1 : 0;
|
|
52
|
+
}
|
|
53
|
+
else if (apiType === 'Web') {
|
|
54
|
+
initialResult[`web`] = initialResult.item ? initialResult.item : {};
|
|
55
|
+
count = initialResult.status === 'Success' ? 1 : 0;
|
|
56
|
+
}
|
|
57
|
+
else if (apiType === 'Subsites') {
|
|
58
|
+
initialResult[`webs`] = initialResult.items ? initialResult.items : [];
|
|
59
|
+
count = initialResult.status === 'Success' && initialResult.items ? initialResult.items.length : 0;
|
|
60
|
+
}
|
|
61
|
+
// initialResult.users.map( user => {
|
|
62
|
+
// if (!user.LoginName && user.Name) { user.LoginName = user.Name; }
|
|
63
|
+
// if (!user.Email && user.EMail) { user.Email = user.EMail; }
|
|
64
|
+
// });
|
|
65
|
+
const result = checkItemsResults(initialResult, `fps-core-v7: getSiteAPI ~ 24`, alertMe, consoleLog);
|
|
66
|
+
result.fpsContentType = [`${apiType === 'Subsites' ? 'web' : apiType.toLowerCase()}`];
|
|
67
|
+
result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
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;
|
|
71
|
+
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
72
|
+
console.log(`fps-core-v7 COMPLETE: getSiteAPI ~ 53`, result);
|
|
73
|
+
}
|
|
74
|
+
;
|
|
75
|
+
return result;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=getSiteAPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSiteAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/sites/getSiteAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,gCAAgC,EAAE,MAAM,0DAA0D,CAAC;AAC5G,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAElF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yEAAyE,CAAC;AAEpH,MAAM,UAAU,wBAAwB;IACtC,MAAM,OAAO,GAAmB,yBAAyB,EAAoB,CAAC;IAC9E,OAAO,CAAC,IAAI,GAAG,EAAkB,CAAC;IAClC,OAAO,CAAE,KAAe,CAAC,GAAG,EAAkB,CAAC;IAC/C,OAAO,CAAE,MAAiB,CAAC,GAAG,EAAW,CAAC;IAC1C,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAAE,WAAyB,EAAE,OAA4B,EAAE,UAA+B;IAC5H,MAAM,OAAO,GAAmB,MAAM,UAAU,CAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAA+B,CAAC;IAC9H,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAE,WAAyB,EAAE,OA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UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAE,OAAO,CAAC,WAAW,EAAE,EAAW,CAAE,CAAC;IAGnG,MAAM,CAAC,qBAAqB,CAAC,KAAK,GAAG,mBAAmB,CAAC,CAAC;QACxD,sBAAsB,CAAE,EAAE,EAAE,EAAE,OAAyB,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,iBAAiB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;QAClI,CAAC,CAAC,IAAW,CAAC,CAAE,oDAAoD;IAEtE,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC;IAEpD,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserGroupSelects.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/UserGroupSelects.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,UAAyE,CAAC;AACvG,eAAO,MAAM,qBAAqB,UAAgH,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export const UserGroupSelects = ['Id', 'Email', 'IsSiteAdmin', 'LoginName', 'PrincipalType', 'Title',];
|
|
2
|
+
export const UserGroupExtraSelects = ['IsEmailAuthenticationGuestUser', 'IsHiddenInUI', 'IsShareByEmailGuestUser', 'UserId', 'UserPrincipalName',];
|
|
3
|
+
//# sourceMappingURL=UserGroupSelects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserGroupSelects.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/UserGroupSelects.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC;AACvG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,gCAAgC,EAAE,cAAc,EAAE,yBAAyB,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
|
|
2
|
+
import { IFpsUsersReturn } from '../../../types/fps-returns/sites/users/IFpsUsersReturn';
|
|
3
|
+
export declare function getSiteAdminsAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsUsersReturn>;
|
|
4
|
+
export declare function getSiteUsersAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsUsersReturn>;
|
|
5
|
+
//# sourceMappingURL=getSiteUsersAPI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSiteUsersAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/getSiteUsersAPI.ts"],"names":[],"mappings":"AAOA,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,CAI5J;AAED,wBAAsB,eAAe,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,eAAe,CAAC,CAwD3J"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { doSpJsFetchOrPost } from '../../../components/molecules/SpHttp/doSpJsFetch';
|
|
2
|
+
import { startPerformOpV2, updatePerformanceEndV2 } from '../../../components/molecules/Performance/functions';
|
|
3
|
+
import { checkItemsResults } from '../../../components/molecules/process-results/CheckItemsResults';
|
|
4
|
+
import { check4This } from '../../../logic/Links/CheckSearch';
|
|
5
|
+
import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
|
|
6
|
+
import { getCollectionUrl } from '../../../logic/Links/getSPOUrl';
|
|
7
|
+
import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
|
|
8
|
+
import { createErrorFpsUsersReturn } from '../../../components/molecules/process-results/createEmptyFpsUsersReturn';
|
|
9
|
+
import { MinUserSelect } from '../../../types/fps-returns/sites/users/UserSelect';
|
|
10
|
+
export async function getSiteAdminsAPI(sourceProps, alertMe, consoleLog) {
|
|
11
|
+
const restFilter = '$filter=IsSiteAdmin%20eq%20true';
|
|
12
|
+
const results = await getSiteUsersAPI({ ...sourceProps, ...{ restFilter: restFilter } }, alertMe, consoleLog);
|
|
13
|
+
return results;
|
|
14
|
+
}
|
|
15
|
+
export async function getSiteUsersAPI(sourceProps, alertMe, consoleLog) {
|
|
16
|
+
const { restFilter, selectThese, } = sourceProps;
|
|
17
|
+
// 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
|
|
18
|
+
const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
|
|
19
|
+
const collectionName = getCollectionUrl(useUrl);
|
|
20
|
+
if (!useUrl) {
|
|
21
|
+
// NO WebURL... Throw Alert
|
|
22
|
+
if (alertMe === true)
|
|
23
|
+
alert(`getSiteUsersAPI: ${SourcePropsNoWebUrl}`);
|
|
24
|
+
const results = createErrorFpsUsersReturn(useUrl);
|
|
25
|
+
results.status = 'NoWeb';
|
|
26
|
+
return results;
|
|
27
|
+
}
|
|
28
|
+
const performanceSettings = { label: `users-${collectionName}`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
29
|
+
const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
30
|
+
/**
|
|
31
|
+
SAMPLE Full SharePoint Items Rest call:
|
|
32
|
+
|
|
33
|
+
https://example.sharepoint.com/sites/MySite/_api/web/lists/getbytitle('MyList')/items?
|
|
34
|
+
$select=Id,Title,EULAText,ExpandedField1/Id,ExpandedField1/Title,ExpandedField2/Id,ExpandedField2/Title&
|
|
35
|
+
$expand=ExpandedField1,ExpandedField2&
|
|
36
|
+
$filter=Title eq 'SomeTitle'&
|
|
37
|
+
$orderby=Id desc
|
|
38
|
+
|
|
39
|
+
*/
|
|
40
|
+
let fetchAPI = `${useUrl}/_api/web/siteUsers?}`; //$select=${UserGroupSelects.join(',')
|
|
41
|
+
fetchAPI += `$select=${selectThese && selectThese.length > 0 ? selectThese.join(',') : MinUserSelect.join(',')}&`;
|
|
42
|
+
if (restFilter)
|
|
43
|
+
fetchAPI += `$filter=${encodeURIComponent(restFilter)}&`;
|
|
44
|
+
const initialResult = await doSpJsFetchOrPost(fetchAPI, 'GET', sourceProps.digestValue, '');
|
|
45
|
+
initialResult.users = initialResult.items ? initialResult.items : [];
|
|
46
|
+
// initialResult.users.map( user => {
|
|
47
|
+
// if (!user.LoginName && user.Name) { user.LoginName = user.Name; }
|
|
48
|
+
// if (!user.Email && user.EMail) { user.Email = user.EMail; }
|
|
49
|
+
// });
|
|
50
|
+
const result = checkItemsResults(initialResult, `fps-core-v7: getSiteUsersAPI ~ 24`, alertMe, consoleLog);
|
|
51
|
+
result.fpsContentType = ['user'];
|
|
52
|
+
result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
53
|
+
updatePerformanceEndV2({ op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items ? result.items.length : 0 })
|
|
54
|
+
: null; // 2024-09-29: set null as any to pass build error.
|
|
55
|
+
result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
56
|
+
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
57
|
+
console.log(`fps-core-v7 COMPLETE: getSiteUsersAPI ~ 53`, result);
|
|
58
|
+
}
|
|
59
|
+
;
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=getSiteUsersAPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSiteUsersAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/getSiteUsersAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,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,GAAU,iCAAiC,CAAC;IAC5D,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,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,gCA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AgE;IAChE,MAAM;IAGN,MAAM,MAAM,GAAoB,iBAAiB,CAAE,aAAa,EAAE,mCAAmC,EAAE,OAAO,EAAE,UAAU,CAAqB,CAAC;IAChJ,MAAM,CAAC,cAAc,GAAG,CAAE,MAAM,CAAE,CAAC;IAEnC,MAAM,CAAC,qBAAqB,CAAC,KAAK,GAAG,mBAAmB,CAAC,CAAC;QACxD,sBAAsB,CAAE,EAAE,EAAE,EAAE,OAAyB,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,iBAAiB,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnK,CAAC,CAAC,IAAW,CAAC,CAAE,oDAAoD;IAEtE,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC;IAEpD,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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IFpsItemsReturn } from "../../../components/molecules/process-results/CheckItemsResults";
|
|
2
|
+
export interface IFPSSiteInfo {
|
|
3
|
+
Id: string;
|
|
4
|
+
Url?: string;
|
|
5
|
+
Title: string;
|
|
6
|
+
Description?: string;
|
|
7
|
+
Created: string;
|
|
8
|
+
LastItemModifiedDate: string;
|
|
9
|
+
WebTemplate?: string;
|
|
10
|
+
SiteLogoUrl?: string;
|
|
11
|
+
ServerRelativeUrl: string;
|
|
12
|
+
Owner?: {
|
|
13
|
+
Title: string;
|
|
14
|
+
Email: string;
|
|
15
|
+
LoginName: string;
|
|
16
|
+
};
|
|
17
|
+
Language?: number;
|
|
18
|
+
TimeZone?: {
|
|
19
|
+
Id: number;
|
|
20
|
+
Description: string;
|
|
21
|
+
};
|
|
22
|
+
ResourcePath?: {
|
|
23
|
+
DecodedUrl: string;
|
|
24
|
+
};
|
|
25
|
+
IsHubSite?: boolean;
|
|
26
|
+
ParentSiteId?: string;
|
|
27
|
+
DepartmentId?: string;
|
|
28
|
+
GroupId?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IFPSWebInfo extends IFPSSiteInfo {
|
|
31
|
+
}
|
|
32
|
+
export interface IFpsSiteReturn extends IFpsItemsReturn {
|
|
33
|
+
site: IFPSSiteInfo;
|
|
34
|
+
}
|
|
35
|
+
export interface IFpsWebReturn extends IFpsItemsReturn {
|
|
36
|
+
web: IFPSWebInfo;
|
|
37
|
+
}
|
|
38
|
+
export interface IFpsWebsReturn extends IFpsItemsReturn {
|
|
39
|
+
webs: IFPSWebInfo[];
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=IFpsSiteReturn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFpsSiteReturn.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-returns/sites/IFpsSiteReturn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,iEAAiE,CAAC;AAElG,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAY,SAAQ,YAAY;CAEhD;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,GAAG,EAAE,WAAW,CAAC;CAClB;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,IAAI,EAAE,WAAW,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFpsSiteReturn.js","sourceRoot":"","sources":["../../../../src/types/fps-returns/sites/IFpsSiteReturn.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISiteErrorObj.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-returns/sites/ISiteErrorObj.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,IAAI,EAAE,GAAG,CAAC;CACX"}
|
|
1
|
+
{"version":3,"file":"ISiteErrorObj.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-returns/sites/ISiteErrorObj.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,IAAI,EAAE,GAAG,CAAC;CACX"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
* d88888b d8b db .d8888. db db d8888b. d88888b db db .d8888. d88888b d8888b. d888888b d8b db d88888b .d88b.
|
|
3
|
-
* 88' 888o 88 88' YP 88 88 88 `8D 88' 88 88 88' YP 88' 88 `8D `88' 888o 88 88' .8P Y8.
|
|
4
|
-
* 88ooooo 88V8o 88 `8bo. 88 88 88oobY' 88ooooo 88 88 `8bo. 88ooooo 88oobY' 88 88V8o 88 88ooo 88 88
|
|
5
|
-
* 88~~~~~ 88 V8o88 `Y8b. 88 88 88`8b 88~~~~~ 88 88 `Y8b. 88~~~~~ 88`8b 88 88 V8o88 88~~~ 88 88
|
|
6
|
-
* 88. 88 V888 db 8D 88b d88 88 `88. 88. 88b d88 db 8D 88. 88 `88. .88. 88 V888 88 `8b d8'
|
|
7
|
-
* Y88888P VP V8P `8888Y' ~Y8888P' 88 YD Y88888P ~Y8888P' `8888Y' Y88888P 88 YD Y888888P VP V8P YP `Y88P'
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
1
|
+
import { IFpsItemsReturn } from "../../../../components/molecules/process-results/CheckItemsResults";
|
|
11
2
|
import { ISiteGroupInfo } from "../../../@pnp/@2.14.0/sp/site-groups";
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
/**
|
|
4
|
+
* New Return interface for APIs
|
|
5
|
+
*/
|
|
6
|
+
export interface IFpsGroupReturn extends IFpsItemsReturn {
|
|
14
7
|
group: ISiteGroupInfo;
|
|
15
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* New Return interface for APIs
|
|
11
|
+
*/
|
|
12
|
+
export interface IFpsAssocGroupsReturn extends IFpsItemsReturn {
|
|
13
|
+
owner: IFpsGroupReturn;
|
|
14
|
+
member: IFpsGroupReturn;
|
|
15
|
+
visitor: IFpsGroupReturn;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Legacy Interface for pnp2 returns
|
|
19
|
+
*/
|
|
20
|
+
export interface IGroupResults extends IFpsGroupReturn {
|
|
21
|
+
}
|
|
16
22
|
//# sourceMappingURL=IGroupResults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGroupResults.d.ts","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/groups/IGroupResults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IGroupResults.d.ts","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/groups/IGroupResults.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAC;AACrG,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAEtE;;GAEG;AAEH,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,KAAK,EAAE,cAAc,CAAC;CACvB;AACD;;GAEG;AAEH,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAGD;;GAEG;AAEH,MAAM,WAAW,aAAc,SAAQ,eAAe;CACrD"}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
/***
|
|
2
|
-
* d88888b d8b db .d8888. db db d8888b. d88888b db db .d8888. d88888b d8888b. d888888b d8b db d88888b .d88b.
|
|
3
|
-
* 88' 888o 88 88' YP 88 88 88 `8D 88' 88 88 88' YP 88' 88 `8D `88' 888o 88 88' .8P Y8.
|
|
4
|
-
* 88ooooo 88V8o 88 `8bo. 88 88 88oobY' 88ooooo 88 88 `8bo. 88ooooo 88oobY' 88 88V8o 88 88ooo 88 88
|
|
5
|
-
* 88~~~~~ 88 V8o88 `Y8b. 88 88 88`8b 88~~~~~ 88 88 `Y8b. 88~~~~~ 88`8b 88 88 V8o88 88~~~ 88 88
|
|
6
|
-
* 88. 88 V888 db 8D 88b d88 88 `88. 88. 88b d88 db 8D 88. 88 `88. .88. 88 V888 88 `8b d8'
|
|
7
|
-
* Y88888P VP V8P `8888Y' ~Y8888P' 88 YD Y88888P ~Y8888P' `8888Y' Y88888P 88 YD Y888888P VP V8P YP `Y88P'
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
1
|
export {};
|
|
12
2
|
//# sourceMappingURL=IGroupResults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGroupResults.js","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/groups/IGroupResults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IGroupResults.js","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/groups/IGroupResults.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
* d888b d88888b d888888b .d8888. d888888b d888888b d88888b .d8b. d8888b. .88b d88. d888888b d8b db .d8888.
|
|
3
|
-
* 88' Y8b 88' `~~88~~' 88' YP `88' `~~88~~' 88' d8' `8b 88 `8D 88'YbdP`88 `88' 888o 88 88' YP
|
|
4
|
-
* 88 88ooooo 88 `8bo. 88 88 88ooooo 88ooo88 88 88 88 88 88 88 88V8o 88 `8bo.
|
|
5
|
-
* 88 ooo 88~~~~~ 88 `Y8b. 88 88 88~~~~~ 88~~~88 88 88 88 88 88 88 88 V8o88 `Y8b.
|
|
6
|
-
* 88. ~8~ 88. 88 db 8D .88. 88 88. 88 88 88 .8D 88 88 88 .88. 88 V888 db 8D
|
|
7
|
-
* Y888P Y88888P YP `8888Y' Y888888P YP Y88888P YP YP Y8888D' YP YP YP Y888888P VP V8P `8888Y'
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
1
|
+
import { IFpsItemsReturn } from "../../../../components/molecules/process-results/CheckItemsResults";
|
|
11
2
|
import { ISiteGroupInfo } from "../../../@pnp/@2.14.0/sp/site-groups";
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
/**
|
|
4
|
+
* New Return interface for APIs
|
|
5
|
+
*/
|
|
6
|
+
export interface IFpsGroupsReturn extends IFpsItemsReturn {
|
|
14
7
|
groups: ISiteGroupInfo[];
|
|
15
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Legacy Interface for pnp2 returns
|
|
11
|
+
*/
|
|
12
|
+
export interface IGroupsResults extends IFpsItemsReturn {
|
|
13
|
+
}
|
|
16
14
|
//# sourceMappingURL=IGroupsResults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGroupsResults.d.ts","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/groups/IGroupsResults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IGroupsResults.d.ts","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/groups/IGroupsResults.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAC;AACrG,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,MAAM,EAAE,cAAc,EAAE,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,eAAe;CACtD"}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
/***
|
|
2
|
-
* d888b d88888b d888888b .d8888. d888888b d888888b d88888b .d8b. d8888b. .88b d88. d888888b d8b db .d8888.
|
|
3
|
-
* 88' Y8b 88' `~~88~~' 88' YP `88' `~~88~~' 88' d8' `8b 88 `8D 88'YbdP`88 `88' 888o 88 88' YP
|
|
4
|
-
* 88 88ooooo 88 `8bo. 88 88 88ooooo 88ooo88 88 88 88 88 88 88 88V8o 88 `8bo.
|
|
5
|
-
* 88 ooo 88~~~~~ 88 `Y8b. 88 88 88~~~~~ 88~~~88 88 88 88 88 88 88 88 V8o88 `Y8b.
|
|
6
|
-
* 88. ~8~ 88. 88 db 8D .88. 88 88. 88 88 88 .8D 88 88 88 .88. 88 V888 db 8D
|
|
7
|
-
* Y888P Y88888P YP `8888Y' Y888888P YP Y88888P YP YP Y8888D' YP YP YP Y888888P VP V8P `8888Y'
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
1
|
export {};
|
|
12
2
|
//# sourceMappingURL=IGroupsResults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGroupsResults.js","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/groups/IGroupsResults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IGroupsResults.js","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/groups/IGroupsResults.ts"],"names":[],"mappings":""}
|
|
@@ -8,9 +8,12 @@
|
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
+
import { IFpsItemsReturn } from "../../../../components/molecules/process-results/CheckItemsResults";
|
|
11
12
|
import { ISiteUserInfo } from "../../../@pnp/@2.14.0/sp/site-users";
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
export interface IFpsUserReturn extends IFpsItemsReturn {
|
|
14
|
+
user: ISiteUserInfo;
|
|
15
|
+
}
|
|
16
|
+
export interface IFpsUsersReturn extends IFpsItemsReturn {
|
|
14
17
|
users: ISiteUserInfo[];
|
|
15
18
|
}
|
|
16
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=IFpsUsersReturn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFpsUsersReturn.d.ts","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/users/IFpsUsersReturn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;EASE;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAC;AACrG,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFpsUsersReturn.js","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/users/IFpsUsersReturn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;EASE"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { IFpsItemsReturn } from "../../../../components/molecules/process-results/CheckItemsResults";
|
|
1
2
|
import { ISiteUserInfo } from "../../../@pnp/@2.14.0/sp/site-users";
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* LEGACY INTERFACE.... Use IFpsUserReturn/IFpsUsersReturn for fetch API calls
|
|
5
|
+
*/
|
|
6
|
+
export interface ISiteUserResults extends IFpsItemsReturn {
|
|
4
7
|
user: ISiteUserInfo;
|
|
5
8
|
}
|
|
6
9
|
//# sourceMappingURL=ISiteUserResults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISiteUserResults.d.ts","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/users/ISiteUserResults.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ISiteUserResults.d.ts","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/users/ISiteUserResults.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAC;AACrG,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,IAAI,EAAE,aAAa,CAAC;CACrB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface IWebErrorObj extends
|
|
1
|
+
import { IItemsErrorObj } from "../../lists/items/Interface";
|
|
2
|
+
export interface IWebErrorObj extends IItemsErrorObj {
|
|
3
3
|
web: any;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=IWebErrorObj.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IWebErrorObj.d.ts","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/webs/IWebErrorObj.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IWebErrorObj.d.ts","sourceRoot":"","sources":["../../../../../src/types/fps-returns/sites/webs/IWebErrorObj.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD,GAAG,EAAE,GAAG,CAAC;CACV"}
|