@mikezimm/fps-core-v7 1.0.63 → 1.0.65
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/components/molecules/ModernPages/functions/getDocWikiAPI.d.ts +22 -0
- package/lib/components/molecules/ModernPages/functions/getDocWikiAPI.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/functions/getDocWikiAPI.js +67 -0
- package/lib/components/molecules/ModernPages/functions/getDocWikiAPI.js.map +1 -0
- package/lib/components/molecules/ModernPages/functions/processModernContent.d.ts +35 -0
- package/lib/components/molecules/ModernPages/functions/processModernContent.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/functions/processModernContent.js +208 -0
- package/lib/components/molecules/ModernPages/functions/processModernContent.js.map +1 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFetch.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFetch.js +2 -0
- package/lib/components/molecules/SpHttp/Sp/doSpHttpFetch.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/createEmptyFpsErrorReturn.js +7 -2
- package/lib/components/molecules/process-results/createEmptyFpsErrorReturn.js.map +1 -1
- package/lib/components/molecules/process-results/createEmptyFpsUsersReturn.js +2 -2
- package/lib/components/molecules/process-results/createEmptyFpsUsersReturn.js.map +1 -1
- package/lib/components/molecules/process-results/createErrorFpsFileReturn.js +2 -2
- package/lib/components/molecules/process-results/createErrorFpsFileReturn.js.map +1 -1
- package/lib/components/molecules/process-results/createErrorFpsListItemsReturn.d.ts.map +1 -1
- package/lib/components/molecules/process-results/createErrorFpsListItemsReturn.js +2 -2
- package/lib/components/molecules/process-results/createErrorFpsListItemsReturn.js.map +1 -1
- package/lib/restAPIs/lists/items/getFpsPageAsXmlAPI.d.ts +34 -0
- package/lib/restAPIs/lists/items/getFpsPageAsXmlAPI.d.ts.map +1 -0
- package/lib/restAPIs/lists/items/getFpsPageAsXmlAPI.js +76 -0
- package/lib/restAPIs/lists/items/getFpsPageAsXmlAPI.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMyHubsSubs.d.ts +28 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMyHubsSubs.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMyHubsSubs.js +48 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMyHubsSubs.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMyHubsites.d.ts +27 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMyHubsites.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMyHubsites.js +94 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMyHubsites.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMySubsites.d.ts +25 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMySubsites.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMySubsites.js +79 -0
- package/lib/restAPIs/sites/HubsSubs/fetches/fetchMySubsites.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/functions/cleanSearchedWebs.d.ts +9 -0
- package/lib/restAPIs/sites/HubsSubs/functions/cleanSearchedWebs.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/functions/cleanSearchedWebs.js +41 -0
- package/lib/restAPIs/sites/HubsSubs/functions/cleanSearchedWebs.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/functions/createHubSubSourceProps.d.ts +10 -0
- package/lib/restAPIs/sites/HubsSubs/functions/createHubSubSourceProps.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/functions/createHubSubSourceProps.js +48 -0
- package/lib/restAPIs/sites/HubsSubs/functions/createHubSubSourceProps.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/functions/processHubSubResults.d.ts +23 -0
- package/lib/restAPIs/sites/HubsSubs/functions/processHubSubResults.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/functions/processHubSubResults.js +103 -0
- package/lib/restAPIs/sites/HubsSubs/functions/processHubSubResults.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/getHubAssocSites.d.ts +33 -0
- package/lib/restAPIs/sites/HubsSubs/getHubAssocSites.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/getHubAssocSites.js +22 -0
- package/lib/restAPIs/sites/HubsSubs/getHubAssocSites.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.d.ts +20 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.js +27 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSHubSitesApi.d.ts +24 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSHubSitesApi.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSHubSitesApi.js +7 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSHubSitesApi.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSSubsFilteredItem.d.ts +19 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSSubsFilteredItem.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSSubsFilteredItem.js +2 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSSubsFilteredItem.js.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSSubsSearchCleanItem.d.ts +27 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSSubsSearchCleanItem.d.ts.map +1 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSSubsSearchCleanItem.js +2 -0
- package/lib/restAPIs/sites/HubsSubs/interfaces/IFPSSubsSearchCleanItem.js.map +1 -0
- package/lib/restAPIs/sites/nav/functions/findNavNodes.d.ts +24 -0
- package/lib/restAPIs/sites/nav/functions/findNavNodes.d.ts.map +1 -0
- package/lib/restAPIs/sites/nav/functions/findNavNodes.js +132 -0
- package/lib/restAPIs/sites/nav/functions/findNavNodes.js.map +1 -0
- package/lib/restAPIs/sites/nav/getHubSiteDataAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/nav/getHubSiteDataAPI.js +49 -7
- package/lib/restAPIs/sites/nav/getHubSiteDataAPI.js.map +1 -1
- package/lib/types/fps-returns/sites/nav/INavErrorObj.d.ts +1 -1
- package/lib/types/fps-returns/sites/nav/INavErrorObj.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/nav/INavigationLink.d.ts +39 -6
- package/lib/types/fps-returns/sites/nav/INavigationLink.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeAnalizerComment: Updated 3 imports on 2024-09-22 14:49:52
|
|
3
|
+
* Update:: import { addPopularityToItems } to '@mikezimm/fps-core-v7/lib/components/molecules/SearchPage/functions/markPopular;'
|
|
4
|
+
* Update:: import { addSearchMeta1 } to '@mikezimm/fps-core-v7/lib/components/molecules/SearchPage/functions/addSearchMeta1;'
|
|
5
|
+
* Update:: import { addItemIsA } to '@mikezimm/fps-core-v7/lib/components/molecules/SearchPage/functions/addItemIsA;'
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* CodeAnalizerComment: Updated 12 imports on 2024-09-21 23:07:24
|
|
10
|
+
* Update:: import { check4This } to '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch;'
|
|
11
|
+
* Update:: import { addPopularityToItems } to '@mikezimm/fps-core-v7/lib/components/molecules/SearchPage/functions/markPopular;'
|
|
12
|
+
* Update:: import { ISourceProps } to '@mikezimm/fps-core-v7/lib/components/molecules/source-props/ISourceProps;'
|
|
13
|
+
* Update:: import { ISourceSearch } to '@mikezimm/fps-core-v7/lib/components/molecules/SearchPage/Interfaces/ISourceSearch;'
|
|
14
|
+
* Update:: import { addSearchMeta1 } to '@mikezimm/fps-core-v7/lib/components/molecules/SearchPage/functions/addSearchMeta1;'
|
|
15
|
+
* Update:: import { filterObjArrayByUniqueKey } to '@mikezimm/fps-core-v7/lib/logic/Arrays/searching/filterObjArrayByUniqueKey;'
|
|
16
|
+
* Update:: import { addItemIsA } to '@mikezimm/fps-core-v7/lib/components/molecules/SearchPage/functions/addItemIsA;'
|
|
17
|
+
* Update:: import { IItemIsAKeys } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IsA/IFPSItemIsA;'
|
|
18
|
+
* Update:: import { ItemHasMinimalDownload } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IsA/IFPSItemIsA;'
|
|
19
|
+
* Update:: import { ItemIsASite } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IsA/IFPSItemIsA;'
|
|
20
|
+
* Update:: import { ItemIsATeam } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IsA/IFPSItemIsA;'
|
|
21
|
+
* Update:: import { ItemIsAWeb } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IsA/IFPSItemIsA;'
|
|
22
|
+
|
|
23
|
+
*/
|
|
24
|
+
import { check4This } from '../../../../logic/Links/CheckSearch';
|
|
25
|
+
import { addPopularityToItems } from '../../../../components/molecules/SearchPage/functions/markPopular';
|
|
26
|
+
import { addSearchMeta1 } from '../../../../components/molecules/SearchPage/functions/addSearchMeta1';
|
|
27
|
+
import { filterObjArrayByUniqueKey } from '../../../../logic/Arrays/searching/filterObjArrayByUniqueKey';
|
|
28
|
+
import { addItemIsA } from '../../../../components/molecules/SearchPage/functions/addItemIsA';
|
|
29
|
+
import { ItemHasMinimalDownload, ItemIsASite, ItemIsATeam, ItemIsAWeb } from '../../../../components/molecules/AnyContent/IsA/IFPSItemIsA';
|
|
30
|
+
// import { createErrorFPSTileItem } from '../../../FPSTiles/functions/ErrorMessages';
|
|
31
|
+
export const NonGroupGroupID = `00000000-0000-0000-0000-000000000000`;
|
|
32
|
+
/**
|
|
33
|
+
* processHubSubResults adds addSearchMeta1, Popularity and IsA keys to sub, hubs
|
|
34
|
+
* @param results
|
|
35
|
+
* @param sourceProps - used in addSearchMeta1
|
|
36
|
+
* @param search - used in addSearchMeta1
|
|
37
|
+
* @param departmentId
|
|
38
|
+
* @param siteIsAKeys
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
export function processHubSubResults(results, sourceProps, search, departmentId, siteIsAKeys = []) {
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
43
|
+
// let finalItems: any[] = results.items as any[];
|
|
44
|
+
if (results.status !== 'Success') {
|
|
45
|
+
results.itemsY = results.items;
|
|
46
|
+
// finalItems.push( createErrorTile(props.fetchInfo.hubs.hubsCategory, 'HubSiteFunctions: DID NOT FIND ANY ASSOCIATED SITES!', results.errorInfo.friendly, props ));
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
results.itemsY = filterObjArrayByUniqueKey(results.items, 'ServerRelativeUrl');
|
|
50
|
+
results.itemsY = addSearchMeta1(results.itemsY, sourceProps, search);
|
|
51
|
+
results.itemsY = addPopularityToItems(results.itemsY, 0.2);
|
|
52
|
+
const doIsASite = siteIsAKeys.indexOf('STSSite') > -1 ? true : false;
|
|
53
|
+
const doIsAWeb = siteIsAKeys.indexOf('STSWeb') > -1 ? true : false;
|
|
54
|
+
const doIsAGroup = siteIsAKeys.indexOf('MSTeam') > -1 ? true : false;
|
|
55
|
+
results.itemsY = results.itemsY.map(item => {
|
|
56
|
+
// Add Group/Teams icon https://github.com/fps-solutions/HubCon/issues/13
|
|
57
|
+
const url = item.ServerRelativeUrl;
|
|
58
|
+
const IsASite = url && url.replace('/sites/', '').indexOf('/') > 0 ? false : true;
|
|
59
|
+
if (doIsASite === true && IsASite === true)
|
|
60
|
+
item = addItemIsA(item, ItemIsASite);
|
|
61
|
+
// Opting to NOT id IsASite or IsAWeb because in most cases, this may be obvious.
|
|
62
|
+
if (doIsAWeb === true && IsASite === false)
|
|
63
|
+
item = addItemIsA(item, ItemIsAWeb);
|
|
64
|
+
// Added from PivotTiles processWebsResults
|
|
65
|
+
if (item.EnableMinimalDownload === true) {
|
|
66
|
+
item = addItemIsA(item, ItemHasMinimalDownload);
|
|
67
|
+
}
|
|
68
|
+
// Adds only for Top Level Sites, Not Subs and if it is a group
|
|
69
|
+
if (doIsAGroup === true && IsASite === true && item[`GroupId`] && item[`GroupId`] !== NonGroupGroupID)
|
|
70
|
+
item = addItemIsA(item, ItemIsATeam);
|
|
71
|
+
return item;
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* 2024-12-31: Had this line before but was giving warning: "'a.Title' is possibly 'undefined'.ts(18048)" in this line?
|
|
75
|
+
* results.itemsY.sort((a, b) => a.Title.localeCompare(b.Title));
|
|
76
|
+
*/
|
|
77
|
+
results.itemsY.sort((a, b) => a.Title.localeCompare(b.Title));
|
|
78
|
+
// Move current hub to top of the list: https://github.com/fps-solutions/HubCon/issues/9
|
|
79
|
+
if (departmentId) {
|
|
80
|
+
const originalSites = results.itemsY;
|
|
81
|
+
const CurrentHubSite = [];
|
|
82
|
+
const AssocHubSites = [];
|
|
83
|
+
originalSites.map(item => {
|
|
84
|
+
// Must add the { } because it comes with it in the object
|
|
85
|
+
if (item[`SiteId`] === `${departmentId}`) {
|
|
86
|
+
CurrentHubSite.push(item);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
AssocHubSites.push(item);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
results.itemsY = [...CurrentHubSite, ...AssocHubSites];
|
|
93
|
+
}
|
|
94
|
+
// results.itemsY = addSearchMeta1(results.items, sourceProps, search);
|
|
95
|
+
// results.itemsY = addPopularityToItems(results.items, 0.2);
|
|
96
|
+
// results.itemsY.sort((a, b) => a.Title.localeCompare(b.Title));
|
|
97
|
+
}
|
|
98
|
+
if (check4This('fpsShowFetchResults=true') === true) {
|
|
99
|
+
console.log(`processHubResults: ~ 54`, results);
|
|
100
|
+
}
|
|
101
|
+
return results;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=processHubSubResults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processHubSubResults.js","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/HubsSubs/functions/processHubSubResults.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mEAAmE,CAAC;AAGzG,OAAO,EAAE,cAAc,EAAE,MAAM,sEAAsE,CAAC;AAEtG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAC;AAC9F,OAAO,EAAgB,sBAAsB,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAEzJ,sFAAsF;AAEtF,MAAM,CAAC,MAAM,eAAe,GAAW,sCAAsC,CAAC;AAE9E;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAAE,OAA4B,EAAE,WAAyB,EAAE,MAAqB,EAAE,YAAoB,EAAE,cAA8B,EAAE;IAC1K,8DAA8D;IAC9D,kDAAkD;IAElD,IAAK,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE;QACjC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;QAE/B,oKAAoK;KACrK;SAAM;QACL,OAAO,CAAC,MAAM,GAAG,yBAA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AAC;KAAE;IACzG,OAAO,OAAO,CAAC;AAEjB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeAnalizerComment: Updated 2 imports on 2024-09-22 14:49:52
|
|
3
|
+
* Update:: import { IStateSource } to '@mikezimm/fps-core-v7/lib/components/molecules/state-source/IStateSource;'
|
|
4
|
+
* Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;'
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* CodeAnalizerComment: Updated 3 imports on 2024-09-21 23:07:24
|
|
9
|
+
* Update:: import { IStateSource } to '@mikezimm/fps-core-v7/lib/components/molecules/state-source/IStateSource;'
|
|
10
|
+
* Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;'
|
|
11
|
+
* Update:: import { ISourceProps } to '@mikezimm/fps-core-v7/lib/components/molecules/source-props/ISourceProps;'
|
|
12
|
+
|
|
13
|
+
*/
|
|
14
|
+
import { IStateSource } from '../../../components/molecules/state-source/IStateSource';
|
|
15
|
+
import { IAnySourceItem } from '../../../components/molecules/AnyContent/IAnyContent';
|
|
16
|
+
import { IFetchHubDepth } from './fetches/fetchMyHubsites';
|
|
17
|
+
import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
|
|
18
|
+
/**
|
|
19
|
+
* This just makes itemsY required since it is the return value (for initial build)
|
|
20
|
+
*/
|
|
21
|
+
export interface IStateSourceHubSubs extends IStateSource {
|
|
22
|
+
itemsY: IAnySourceItem[];
|
|
23
|
+
allHubs?: IAnySourceItem[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* This MAY NOT BE NEEDED. but IStateSourceHubSubs should be moved to fetchMyHubsites?
|
|
27
|
+
* @param departmentId
|
|
28
|
+
* @param sourceProps
|
|
29
|
+
* @param depth: IFetchHubDepth 'site' or 'web'
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export declare function getHubAssocSites(departmentId: string, sourceProps: ISourceProps, depth?: IFetchHubDepth): Promise<IStateSource>;
|
|
33
|
+
//# sourceMappingURL=getHubAssocSites.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHubAssocSites.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/HubsSubs/getHubAssocSites.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;GAMG;AAcH,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AACvF,OAAO,EAAE,cAAc,EAAG,MAAM,sDAAsD,CAAC;AACvF,OAAO,EAAE,cAAc,EAAmB,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAEvF;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,GAAE,cAAuB,GAAI,OAAO,CAAC,YAAY,CAAC,CAW/I"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeAnalizerComment: Updated 2 imports on 2024-09-22 14:49:52
|
|
3
|
+
* Update:: import { IStateSource } to '@mikezimm/fps-core-v7/lib/components/molecules/state-source/IStateSource;'
|
|
4
|
+
* Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;'
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
import { fetchMyHubsites } from './fetches/fetchMyHubsites';
|
|
8
|
+
/**
|
|
9
|
+
* This MAY NOT BE NEEDED. but IStateSourceHubSubs should be moved to fetchMyHubsites?
|
|
10
|
+
* @param departmentId
|
|
11
|
+
* @param sourceProps
|
|
12
|
+
* @param depth: IFetchHubDepth 'site' or 'web'
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export async function getHubAssocSites(departmentId, sourceProps, depth = 'site') {
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
|
+
let results = await fetchMyHubsites(sourceProps.fpsSpService, sourceProps.absoluteWebUrl, depth, departmentId, 'HubAndAssoc');
|
|
18
|
+
return results;
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
|
+
// return { ...EmptyStateSource as any, ...{ status: 'Unknown' } }
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=getHubAssocSites.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHubAssocSites.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/HubsSubs/getHubAssocSites.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH,OAAO,EAAkB,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAW5E;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAE,YAAoB,EAAE,WAAyB,EAAE,QAAwB,MAAM;IAErH,8DAA8D;IAC9D,IAAI,OAAO,GAAwB,MAAM,eAAe,CAAE,WAAW,CAAC,YAAY,EAAE,WAAW,CAAC,cAAwB,EAAE,KAAK,EAAE,YAAY,EAAE,aAAa,CAAS,CAAC;IAEtK,OAAO,OAAO,CAAC;IAEf,8DAA8D;IAC9D,kEAAkE;AAGpE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IFPSSubsFilteredItem } from "./IFPSSubsFilteredItem";
|
|
2
|
+
import { IFPSSubsSearchCleanItem } from "./IFPSSubsSearchCleanItem";
|
|
3
|
+
/**
|
|
4
|
+
* hubSelects are common select paramters used when using search api on Subsites and a hub's Associated sites
|
|
5
|
+
*/
|
|
6
|
+
export declare const hubSelects: string[];
|
|
7
|
+
export interface IFPSWebsWithLogo extends IFPSSubsFilteredItem, IFPSSubsSearchCleanItem {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Generated from
|
|
11
|
+
* https://learn.microsoft.com/en-us/sharepoint/dev/features/hub-site/rest-hubsitedata-method
|
|
12
|
+
* https://contoso.sharepoint.com/sites/marketing/_api/web/HubSiteData(true)
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* 2024-12-31: DEPRECATED... use
|
|
16
|
+
*
|
|
17
|
+
* import { IHubSiteDataAPIReturn } from '@mikezimm/fps-core-v7/lib/types/fps-returns/sites/nav/INavigationLink';
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
//# sourceMappingURL=IFPSHubSiteDataDocsApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSHubSiteDataDocsApi.d.ts","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,UAAU,UAG4B,CAAC;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB,EAAE,uBAAuB;CAAI;AAE3F;;;;GAIG;AAEH;;;;;GAKG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* hubSelects are common select paramters used when using search api on Subsites and a hub's Associated sites
|
|
3
|
+
*/
|
|
4
|
+
export const hubSelects = ['GroupId', 'Title', 'SiteId', 'WebId', 'DepartmentId', 'Path', 'Description',
|
|
5
|
+
'PictureThumbnailURL', 'SiteLogoUrl', 'SiteLogo', 'WebTemplate',
|
|
6
|
+
'ViewLastMonths3', 'ViewsLifeTime', 'ViewsRecent', 'contentclass', 'ParentLink',
|
|
7
|
+
'Created', 'Modified', 'LastItemUserModifiedDate'];
|
|
8
|
+
/**
|
|
9
|
+
* Generated from
|
|
10
|
+
* https://learn.microsoft.com/en-us/sharepoint/dev/features/hub-site/rest-hubsitedata-method
|
|
11
|
+
* https://contoso.sharepoint.com/sites/marketing/_api/web/HubSiteData(true)
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* 2024-12-31: DEPRECATED... use
|
|
15
|
+
*
|
|
16
|
+
* import { IHubSiteDataAPIReturn } from '@mikezimm/fps-core-v7/lib/types/fps-returns/sites/nav/INavigationLink';
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
// export interface IFPSHubSiteDataDocsApiD {
|
|
20
|
+
// themeKey: string | null;
|
|
21
|
+
// name: string;
|
|
22
|
+
// url: string;
|
|
23
|
+
// logoUrl: string;
|
|
24
|
+
// usesMetadataNavigation: boolean;
|
|
25
|
+
// navigation: IFPSHubNavigationItem[];
|
|
26
|
+
// }
|
|
27
|
+
//# sourceMappingURL=IFPSHubSiteDataDocsApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSHubSiteDataDocsApi.js","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa;IACxG,qBAAqB,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa;IAC/D,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY;IAC/E,SAAS,EAAE,UAAU,EAAE,0BAA0B,CAAE,CAAC;AAIpD;;;;GAIG;AAEH;;;;;GAKG;AACH,6CAA6C;AAC7C,6BAA6B;AAC7B,kBAAkB;AAClB,iBAAiB;AACjB,qBAAqB;AACrB,qCAAqC;AACrC,yCAAyC;AACzC,IAAI"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the return interface for the value array when fetching this api
|
|
3
|
+
* https://learn.microsoft.com/en-us/sharepoint/dev/features/hub-site/rest-hubsites-method
|
|
4
|
+
* https://contoso.sharepoint.com/_api/HubSites
|
|
5
|
+
*/
|
|
6
|
+
export interface IFPSHubSitesApi {
|
|
7
|
+
"@odata.context": string;
|
|
8
|
+
value: IFPSHubSiteApi[];
|
|
9
|
+
}
|
|
10
|
+
export interface IFPSHubSiteApi {
|
|
11
|
+
"@odata.type": string;
|
|
12
|
+
"@odata.id": string;
|
|
13
|
+
"@odata.etag": string;
|
|
14
|
+
"@odata.editLink": string;
|
|
15
|
+
Description: string | undefined;
|
|
16
|
+
ID: string;
|
|
17
|
+
LogoUrl: string;
|
|
18
|
+
SiteId: string;
|
|
19
|
+
SiteUrl: string;
|
|
20
|
+
Targets: any[] | undefined;
|
|
21
|
+
TenantInstanceId: string;
|
|
22
|
+
Title: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=IFPSHubSitesApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSHubSitesApi.d.ts","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/HubsSubs/interfaces/IFPSHubSitesApi.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the return interface for the value array when fetching this api
|
|
3
|
+
* https://learn.microsoft.com/en-us/sharepoint/dev/features/hub-site/rest-hubsites-method
|
|
4
|
+
* https://contoso.sharepoint.com/_api/HubSites
|
|
5
|
+
*/
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=IFPSHubSitesApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSHubSitesApi.js","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/HubsSubs/interfaces/IFPSHubSitesApi.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IFPSSubsFilteredItem is used in IFPSWebsWithLogo which is in turn used by fetchMySubsites
|
|
3
|
+
* const apiSearchWebs: string = `${webUrl}/_api/search/query?querytext='ParentLink=${webUrl} contentclass:STS_Web'&selectproperties='${hubSelects.join(',')}'&rowlimit=50`;// 9 Works
|
|
4
|
+
const apiFilteredWebs: string = `${webUrl}/_api/web/getsubwebsfilteredforcurrentuser(nwebtemplatefilter=-1,nconfigurationfilter=0)`; // 12 Works! Finally from chatGPT
|
|
5
|
+
*/
|
|
6
|
+
export interface IFPSSubsFilteredItem {
|
|
7
|
+
Configuration: number;
|
|
8
|
+
Created: string;
|
|
9
|
+
Description: string;
|
|
10
|
+
Id: string;
|
|
11
|
+
Language: number;
|
|
12
|
+
LastItemModifiedDate: string;
|
|
13
|
+
LastItemUserModifiedDate: string;
|
|
14
|
+
ServerRelativeUrl: string;
|
|
15
|
+
Title: string;
|
|
16
|
+
WebTemplate: string;
|
|
17
|
+
WebTemplateId: number;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=IFPSSubsFilteredItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSSubsFilteredItem.d.ts","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/HubsSubs/interfaces/IFPSSubsFilteredItem.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,wBAAwB,EAAE,MAAM,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSSubsFilteredItem.js","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/HubsSubs/interfaces/IFPSSubsFilteredItem.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IFPSSubsSearchCleanItem is used in IFPSWebsWithLogo which is the type of object to be return with typical link info like Title, Desc, Path, Logo
|
|
3
|
+
* - Also includes some commonly used properties which are duplicates but standard for some web parts like PivotTiles and Hub Connections
|
|
4
|
+
*/
|
|
5
|
+
export interface IFPSSubsSearchCleanItem {
|
|
6
|
+
GroupId: string;
|
|
7
|
+
Title: string;
|
|
8
|
+
SiteId: string;
|
|
9
|
+
WebId: string;
|
|
10
|
+
DepartmentId: string;
|
|
11
|
+
Path: string;
|
|
12
|
+
Description: string;
|
|
13
|
+
PictureThumbnailURL: string;
|
|
14
|
+
SiteLogo: string;
|
|
15
|
+
WebTemplate: string;
|
|
16
|
+
ViewsLifeTime: string;
|
|
17
|
+
ViewsRecent: string;
|
|
18
|
+
contentclass: string;
|
|
19
|
+
ParentLink: undefined | string;
|
|
20
|
+
ServerRelativeUrl: string;
|
|
21
|
+
imageUrl: string;
|
|
22
|
+
title: string;
|
|
23
|
+
href: string;
|
|
24
|
+
description: string;
|
|
25
|
+
sourceType: string;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=IFPSSubsSearchCleanItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSSubsSearchCleanItem.d.ts","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/HubsSubs/interfaces/IFPSSubsSearchCleanItem.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,SAAS,GAAG,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAG1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CAEpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSSubsSearchCleanItem.js","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/HubsSubs/interfaces/IFPSSubsSearchCleanItem.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeAnalizerComment: Updated 1 imports on 2024-09-21 23:07:24
|
|
3
|
+
* Update:: import { check4This } to '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch;'
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
import { IFpsHubSiteDataReturn } from '../../../../types/fps-returns/sites/nav/INavigationLink';
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param hubNav
|
|
10
|
+
* @param prop 'Title' or 'Url' are valid properties to compare
|
|
11
|
+
* @param value Title or Url will be the value you are looking to find
|
|
12
|
+
* @param level 0, 1, or 2 defines a specific children level. 0 is visible lables/links
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare function findSimilarNavNodes(hubNav: IFpsHubSiteDataReturn, prop: `Title` | `Url`, value: string, level?: number): number[][];
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param hubNav
|
|
19
|
+
* @param prop
|
|
20
|
+
* @param parentNodeTree
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare function findSpecificNavNodes(hubNav: IFpsHubSiteDataReturn, prop: `Title`, parentNodeTree: string[]): number[][];
|
|
24
|
+
//# sourceMappingURL=findNavNodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findNavNodes.d.ts","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/nav/functions/findNavNodes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAyB,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEvH;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,GAAI,MAAM,EAAE,EAAE,CAyCzI;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,GAAI,MAAM,EAAE,EAAE,CAwEzH"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeAnalizerComment: Updated 1 imports on 2024-09-21 23:07:24
|
|
3
|
+
* Update:: import { check4This } to '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch;'
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
// import { IFPSHubNav } from '../HubSiteData/fetchMyHubNav';
|
|
7
|
+
import { check4This } from '../../../../logic/Links/CheckSearch';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param hubNav
|
|
11
|
+
* @param prop 'Title' or 'Url' are valid properties to compare
|
|
12
|
+
* @param value Title or Url will be the value you are looking to find
|
|
13
|
+
* @param level 0, 1, or 2 defines a specific children level. 0 is visible lables/links
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export function findSimilarNavNodes(hubNav, prop, value, level = 79) {
|
|
17
|
+
var _a;
|
|
18
|
+
const NavFound = [];
|
|
19
|
+
if (hubNav.status !== 'Success') {
|
|
20
|
+
// There was an error
|
|
21
|
+
if (check4This('checkResults=true') === true)
|
|
22
|
+
console.log(`fps-library-v2 Error: findSimilarNavNodes ~ 19`, hubNav);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
// const topNav: IFPSHubNavigationItem[] = hubNav.nav.navigation;
|
|
26
|
+
/**
|
|
27
|
+
* 2024-12-31: Was this but gave typescript warning in fps-core-v7. Going to use ChatGPT suggestion since I know it already works as designed
|
|
28
|
+
*
|
|
29
|
+
* const topNav: IFPSHubNavigationItem[] = hubNav[ 'nav.navigation' ] ?? hubNav.items;
|
|
30
|
+
*/
|
|
31
|
+
const topNav = (_a = hubNav['nav.navigation']) !== null && _a !== void 0 ? _a : hubNav.items;
|
|
32
|
+
topNav.map(navItem0 => {
|
|
33
|
+
navItem0.IdTree = [navItem0.Id];
|
|
34
|
+
if (navItem0[prop] === value && (level === 79 || level === 0))
|
|
35
|
+
NavFound.push(navItem0.IdTree);
|
|
36
|
+
if (navItem0.Children && navItem0.Children.length > 0) {
|
|
37
|
+
navItem0.Children.map(navItem1 => {
|
|
38
|
+
navItem1.IdTree = [...navItem0.IdTree, navItem1.Id];
|
|
39
|
+
if (navItem1[prop] === value && (level === 79 || level === 1))
|
|
40
|
+
NavFound.push(navItem1.IdTree);
|
|
41
|
+
if (navItem1.Children && navItem1.Children.length > 0) {
|
|
42
|
+
navItem1.Children.map(navItem2 => {
|
|
43
|
+
navItem2.IdTree = [...navItem1.IdTree, navItem2.Id];
|
|
44
|
+
if (navItem2[prop] === value && (level === 79 || level === 2))
|
|
45
|
+
NavFound.push(navItem2.IdTree);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (check4This('checkResults=true') === true)
|
|
53
|
+
console.log(`fps-library-v2 Success: findSimilarNavNodes ~ 42`, NavFound, prop, value, level, hubNav);
|
|
54
|
+
return NavFound;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param hubNav
|
|
59
|
+
* @param prop
|
|
60
|
+
* @param parentNodeTree
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
export function findSpecificNavNodes(hubNav, prop, parentNodeTree) {
|
|
64
|
+
const NavFound = [];
|
|
65
|
+
if (hubNav.ok !== true) {
|
|
66
|
+
// There was an error
|
|
67
|
+
console.log(`getNavNode error: hubNav =`, hubNav);
|
|
68
|
+
if (check4This('checkResults=true') === true)
|
|
69
|
+
console.log(`fps-library-v2 Error: findSpecificNavNodes ~ 61`, parentNodeTree, hubNav);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const topNav = hubNav['nav.navigation'];
|
|
73
|
+
// use filter to see if value is found in first layer of children
|
|
74
|
+
const layer0 = topNav.filter(nav => { return nav[prop] === parentNodeTree[0]; });
|
|
75
|
+
layer0.map(layer => { layer.IdTree = [layer.Id]; });
|
|
76
|
+
if (parentNodeTree.length === 1) { // Should only be in first layer
|
|
77
|
+
// Found in first layer
|
|
78
|
+
if (layer0.length > 0)
|
|
79
|
+
layer0.map(layer => NavFound.push(layer.IdTree));
|
|
80
|
+
}
|
|
81
|
+
else if (parentNodeTree.length > 1) {
|
|
82
|
+
// matched first layer and will now look into children
|
|
83
|
+
// const layer1 = layer0[0].Children.filter( nav => { return nav[prop] === parentNodeTree[1] });
|
|
84
|
+
const layer1 = [];
|
|
85
|
+
layer0.map(layer => {
|
|
86
|
+
layer.Children.map(nav => {
|
|
87
|
+
nav.IdTree = [...layer.IdTree, nav.Id];
|
|
88
|
+
if (nav[prop] === parentNodeTree[1])
|
|
89
|
+
layer1.push(nav);
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
// console.log( `findSpecificNavNodes layer1`, layer1 );
|
|
93
|
+
if (parentNodeTree.length === 2) { // Should only be in second layer
|
|
94
|
+
// Found in second layer and should only be in second layer
|
|
95
|
+
if (layer1.length > 0)
|
|
96
|
+
layer1.map(layer => NavFound.push(layer.IdTree));
|
|
97
|
+
}
|
|
98
|
+
else if (layer1.length > 0 && parentNodeTree.length > 2) {
|
|
99
|
+
// matched second layer and will now look into children
|
|
100
|
+
const layer2 = [];
|
|
101
|
+
layer1.map(layer => {
|
|
102
|
+
layer.Children.map(nav => {
|
|
103
|
+
nav.IdTree = [...layer.IdTree, nav.Id];
|
|
104
|
+
if (nav[prop] === parentNodeTree[2])
|
|
105
|
+
layer2.push(nav);
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
// console.log( `findSpecificNavNodes layer2`, layer2 );
|
|
109
|
+
if (parentNodeTree.length === 3) { // Should only be in third layer
|
|
110
|
+
// Found in third layer and should only be in third layer
|
|
111
|
+
if (layer2.length > 0)
|
|
112
|
+
layer2.map(layer => {
|
|
113
|
+
NavFound.push(layer.IdTree);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
// Did not find in third layer, return nothing
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
// Did not find in second layer, return nothing
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
// Did not find in first layer, return nothing
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (check4This('checkResults=true') === true)
|
|
129
|
+
console.log(`fps-library-v2 Success: findSpecificNavNodes ~ 123`, NavFound, prop, parentNodeTree, hubNav);
|
|
130
|
+
return NavFound;
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=findNavNodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findNavNodes.js","sourceRoot":"","sources":["../../../../../src/restAPIs/sites/nav/functions/findNavNodes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,6DAA6D;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAGjE;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAE,MAA6B,EAAE,IAAqB,EAAE,KAAa,EAAE,QAAgB,EAAE;;IAE1H,MAAM,QAAQ,GAAe,EAAE,CAAC;IAEhC,IAAK,MAAM,CAAC,MAAM,KAAK,SAAS,EAAG;QACjC,qBAAqB;QACrB,IAAK,UAAU,CAAE,mBAAmB,CAAE,KAAK,IAAI;YAAG,OAAO,CAAC,GAAG,CAAE,gDAAgD,EAAE,MAAM,CAAE,CAAC;KAE3H;SAAM;QACL,iEAAiE;QAEjE;;;;WAIG;QAEH,MAAM,MAAM,GAA4B,MAAC,MAAM,CAAC,gBAAgB,CAA6B,mCAAI,MAAM,CAAC,KAAK,CAAC;QAE9G,MAAM,CAAC,GAAG,CAAE,QAAQ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D;gBAExD,IAAK,cAAc,CAAC,MAAM,KAAK,CAAC,EAAG,EAAG,gCAAgC;oBACpE,yDAAyD;oBACzD,IAAK,MAAM,CAAC,MAAM,GAAG,CAAC;wBAAG,MAAM,CAAC,GAAG,CAAE,KAAK,CAAC,EAAE;4BAC3C,QAAQ,CAAC,IAAI,CAAE,KAAK,CAAC,MAAM,CAAE,CAAC;wBAChC,CAAC,CAAC,CAAC;iBAEJ;qBAAM;oBACL,8CAA8C;iBAC/C;aAEF;iBAAM;gBACL,+CAA+C;aAChD;SACF;aAAM;YACL,8CAA8C;SAC/C;KAEF;IAED,IAAK,UAAU,CAAE,mBAAmB,CAAE,KAAK,IAAI;QAAG,OAAO,CAAC,GAAG,CAAE,oDAAoD,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,CAAE,CAAC;IAE9J,OAAO,QAAQ,CAAC;AAElB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHubSiteDataAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/nav/getHubSiteDataAPI.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAI5G,OAAO,
|
|
1
|
+
{"version":3,"file":"getHubSiteDataAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/nav/getHubSiteDataAPI.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAI5G,OAAO,EAAyB,qBAAqB,EAAyB,MAAM,sDAAsD,CAAC;AAG3I;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAK,OAAO,CAAC,qBAAqB,CAAC,CA4EnK"}
|
|
@@ -43,15 +43,40 @@ export async function getHubSiteDataAPI(sourceProps, alertMe, consoleLog) {
|
|
|
43
43
|
// if ( expandThese.length > 0 ) fetchAPI+= `$expand=${ expandThese.join(',') }&`;
|
|
44
44
|
// if ( restFilter ) fetchAPI+= `$filter=${ restFilter }`;
|
|
45
45
|
const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, 'hub', null);
|
|
46
|
-
try {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
// try {
|
|
47
|
+
// const baseData = result.items? result.items : result.item ? result.item : null;
|
|
48
|
+
// const isString: boolean = typeof baseData === 'string' ? true : false;
|
|
49
|
+
// result.hub = isString === true ? JSON.parse( baseData ) : baseData;
|
|
50
|
+
// } catch(e) {
|
|
51
|
+
// alert( `Unexpected error parsing HubSiteData ~ 63 - see console.`);
|
|
52
|
+
// console.log( `getHubSiteDataAPI: `, result );
|
|
53
|
+
// }
|
|
54
|
+
/**
|
|
55
|
+
* Migrated from fetchMyHubNav in fps-library-v2\components\molecules\SpHttp\HubSiteData\fetchMyHubNav.ts
|
|
56
|
+
*/
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
58
|
+
if (typeof result.items === 'string') {
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
60
|
+
result.hub = JSON.parse(result.items);
|
|
61
|
+
result[`nav.navigation`] = result.hub.navigation;
|
|
50
62
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
63
|
+
else {
|
|
64
|
+
// This is of unknown origin....
|
|
65
|
+
result.hub = null;
|
|
66
|
+
result.ok = false;
|
|
67
|
+
result.statusNo = 404;
|
|
68
|
+
result.statusText = 'Unknown nav object';
|
|
54
69
|
}
|
|
70
|
+
result.itemsN = [];
|
|
71
|
+
result.metaN = [];
|
|
72
|
+
// Have to do this to get the count of nav nodes...
|
|
73
|
+
// although since the return result is just 1 string, maybe just c = 1 is more accurate representation.
|
|
74
|
+
if (!result.fetchOp)
|
|
75
|
+
result.fetchOp = {};
|
|
76
|
+
if (!result.fetchOp.ms)
|
|
77
|
+
result.fetchOp.ms = 779; // Manually added this to appease TS gods
|
|
78
|
+
result.fetchOp.c = countNavNodes(result.hub.navigation);
|
|
79
|
+
result.fetchOp.a = Math.round((result.fetchOp.ms / result.fetchOp.c) * 10) / 10;
|
|
55
80
|
// Do some short post-processing work here to create an 'Item' with the object properties from the returned result
|
|
56
81
|
// Should be modeled after IHubSiteDataResponse interface
|
|
57
82
|
result.unifiedPerformanceOps.fetch.label = `${getCollectionUrl(useUrl)} HubSiteData`;
|
|
@@ -61,4 +86,21 @@ export async function getHubSiteDataAPI(sourceProps, alertMe, consoleLog) {
|
|
|
61
86
|
;
|
|
62
87
|
return result;
|
|
63
88
|
}
|
|
89
|
+
function countNavNodes(navigation) {
|
|
90
|
+
let count = 0;
|
|
91
|
+
navigation.map(child1 => {
|
|
92
|
+
count++;
|
|
93
|
+
if (child1.Children) {
|
|
94
|
+
child1.Children.map(child2 => {
|
|
95
|
+
count++;
|
|
96
|
+
if (child2.Children) {
|
|
97
|
+
child2.Children.map(child3 => {
|
|
98
|
+
count++;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
return count;
|
|
105
|
+
}
|
|
64
106
|
//# sourceMappingURL=getHubSiteDataAPI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHubSiteDataAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/nav/getHubSiteDataAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6EAA6E,CAAC;AACvH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,gCAAgC,GAAG,M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AG,GAAG,gBAAgB,CAAC,MAAM,CAAC,cAAc,CAAC;IAErF,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,8CAA8C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEnI,OAAO,MAAM,CAAC;AAEhB,CAAC;AAGD,SAAS,aAAa,CAAE,UAAoC;IAC1D,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,UAAU,CAAC,GAAG,CAAE,MAAM,CAAC,EAAE;QACvB,KAAK,EAAG,CAAC;QACT,IAAK,MAAM,CAAC,QAAQ,EAAG;YACrB,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAE,MAAM,CAAC,EAAE;gBAC5B,KAAK,EAAG,CAAC;gBACT,IAAK,MAAM,CAAC,QAAQ,EAAG;oBACrB,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAE,MAAM,CAAC,EAAE;wBAC5B,KAAK,EAAG,CAAC;oBACX,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -3,9 +3,9 @@ import { IPnpNavItem } from "./IPnpCreateNavItem";
|
|
|
3
3
|
/**
|
|
4
4
|
* This is legacy for the older Pnp calls.
|
|
5
5
|
* USE src\types\fps-returns\sites\nav\INavigationLink.ts for core-v7 api calls
|
|
6
|
+
* 2024-12-31: removed nav? because it had conflict with IStateSourceNav in fps-library-v2
|
|
6
7
|
*/
|
|
7
8
|
export interface INavErrorObj extends IItemsErrorObj {
|
|
8
9
|
items: IPnpNavItem[];
|
|
9
|
-
nav?: IPnpNavItem[];
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=INavErrorObj.d.ts.map
|