@mikezimm/fps-library-v2 2.0.0 → 2.0.2
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/EasyPages/Analytics/components/analyticsPage.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/Analytics/components/analyticsPage.js +1 -0
- package/lib/banner/components/EasyPages/Analytics/components/analyticsPage.js.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.d.ts +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.d.ts +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.js +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.js.map +1 -1
- package/lib/banner/components/WebPartLinks/WebPartLinks.d.ts.map +1 -1
- package/lib/banner/components/WebPartLinks/WebPartLinks.js +4 -3
- package/lib/banner/components/WebPartLinks/WebPartLinks.js.map +1 -1
- package/lib/components/atoms/Links/RepoLinks/LinksCommon.d.ts +1 -0
- package/lib/components/atoms/Links/RepoLinks/LinksCommon.d.ts.map +1 -1
- package/lib/components/atoms/Links/RepoLinks/LinksCommon.js +1 -0
- package/lib/components/atoms/Links/RepoLinks/LinksCommon.js.map +1 -1
- package/lib/components/atoms/Links/RepoLinks/LinksCore.d.ts +1 -0
- package/lib/components/atoms/Links/RepoLinks/LinksCore.d.ts.map +1 -1
- package/lib/components/atoms/Links/RepoLinks/LinksCore.js +1 -0
- package/lib/components/atoms/Links/RepoLinks/LinksCore.js.map +1 -1
- package/lib/components/atoms/Links/RepoLinks/gitHierarchyExplorer.d.ts.map +1 -1
- package/lib/components/atoms/Links/RepoLinks/gitHierarchyExplorer.js +1 -1
- package/lib/components/atoms/Links/RepoLinks/gitHierarchyExplorer.js.map +1 -1
- package/lib/components/atoms/Links/RepoLinks/gitPCSEULA.d.ts +3 -0
- package/lib/components/atoms/Links/RepoLinks/gitPCSEULA.d.ts.map +1 -0
- package/lib/components/atoms/Links/RepoLinks/gitPCSEULA.js +4 -0
- package/lib/components/atoms/Links/RepoLinks/gitPCSEULA.js.map +1 -0
- package/lib/components/atoms/Links/RepoLinks/gitSiteEULA.d.ts +3 -0
- package/lib/components/atoms/Links/RepoLinks/gitSiteEULA.d.ts.map +1 -0
- package/lib/components/atoms/Links/RepoLinks/gitSiteEULA.js +4 -0
- package/lib/components/atoms/Links/RepoLinks/gitSiteEULA.js.map +1 -0
- package/lib/components/molecules/HTTP/HttpFetch/functions.d.ts +1 -1
- package/lib/components/molecules/HTTP/HttpFetch/functions.d.ts.map +1 -1
- package/lib/components/molecules/HTTP/HttpFetch/functions.js +2 -1
- package/lib/components/molecules/HTTP/HttpFetch/functions.js.map +1 -1
- package/lib/components/molecules/ReactListV1/functions/updateReactListItem.d.ts.map +1 -1
- package/lib/components/molecules/ReactListV1/functions/updateReactListItem.js +1 -0
- package/lib/components/molecules/ReactListV1/functions/updateReactListItem.js.map +1 -1
- package/lib/components/molecules/RelatedItems/RelatedItems.js +1 -1
- package/lib/components/molecules/RelatedItems/RelatedItems.js.map +1 -1
- package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.d.ts +4 -2
- package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.js +41 -39
- package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.d.ts +1 -1
- package/lib/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.js +2 -2
- package/lib/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.d.ts +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.d.ts +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.js +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.js.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.d.ts +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.js +1 -1
- package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.js.map +1 -1
- package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.d.ts +4 -3
- package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.js +45 -48
- package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.js.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts +2 -29
- package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch.js +97 -75
- package/lib/components/molecules/SpHttp/doSpJsFetch.js.map +1 -1
- package/lib/components/molecules/SpHttp/interfaces/IFPSSearchAPIResultsData.d.ts +8 -0
- package/lib/components/molecules/SpHttp/interfaces/IFPSSearchAPIResultsData.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/interfaces/IFPSSearchAPIResultsData.js +30 -0
- package/lib/components/molecules/SpHttp/interfaces/IFPSSearchAPIResultsData.js.map +1 -0
- package/lib/pnpjs/Attachments/fetchAttachments.d.ts.map +1 -1
- package/lib/pnpjs/Attachments/fetchAttachments.js +1 -1
- package/lib/pnpjs/Attachments/fetchAttachments.js.map +1 -1
- package/lib/pnpjs/CommandItems/updateItem.d.ts +1 -1
- package/lib/pnpjs/CommandItems/updateItem.d.ts.map +1 -1
- package/lib/pnpjs/CommandItems/updateItem.js +2 -0
- package/lib/pnpjs/CommandItems/updateItem.js.map +1 -1
- package/lib/pnpjs/FieldAsSpecial/FetchItem.js.map +1 -1
- package/lib/pnpjs/FieldAsXML/FetchItem.js.map +1 -1
- package/lib/pnpjs/Fields/getByField.js.map +1 -1
- package/lib/pnpjs/Fields/getFields.d.ts +1 -1
- package/lib/pnpjs/Fields/getFields.d.ts.map +1 -1
- package/lib/pnpjs/Fields/getFields.js.map +1 -1
- package/lib/pnpjs/Groups/IFpsAssociatedGroupsReturn.d.ts +1 -1
- package/lib/pnpjs/Groups/IFpsAssociatedGroupsReturn.d.ts.map +1 -1
- package/lib/pnpjs/Groups/getAllSiteGroups.js.map +1 -1
- package/lib/pnpjs/Groups/getAssocMemberGroup.js.map +1 -1
- package/lib/pnpjs/Groups/getAssocOwnerGroup.js.map +1 -1
- package/lib/pnpjs/Groups/getAssocVisitorGroup.js.map +1 -1
- package/lib/pnpjs/Groups/getUsersFromGroup.js.map +1 -1
- package/lib/pnpjs/Groups/getUsersFromGroupId.js.map +1 -1
- package/lib/pnpjs/Groups/getUsersFromGroupName.js.map +1 -1
- package/lib/pnpjs/Lists/createItems/createSingleListItem.d.ts +1 -1
- package/lib/pnpjs/Lists/createItems/createSingleListItem.d.ts.map +1 -1
- package/lib/pnpjs/Lists/createItems/createSingleListItem.js +1 -1
- package/lib/pnpjs/Lists/createItems/createSingleListItem.js.map +1 -1
- package/lib/pnpjs/Lists/getList/getSourceList.d.ts +1 -1
- package/lib/pnpjs/Lists/getList/getSourceList.d.ts.map +1 -1
- package/lib/pnpjs/Lists/getList/getSourceList.js +1 -1
- package/lib/pnpjs/Lists/getList/getSourceList.js.map +1 -1
- package/lib/pnpjs/Lists/getList/getWebLists.d.ts +1 -1
- package/lib/pnpjs/Lists/getList/getWebLists.d.ts.map +1 -1
- package/lib/pnpjs/Navigation/addWebNav.d.ts +1 -1
- package/lib/pnpjs/Navigation/addWebNav.d.ts.map +1 -1
- package/lib/pnpjs/Navigation/addWebNav.js.map +1 -1
- package/lib/pnpjs/Navigation/getWebNav.d.ts +2 -2
- package/lib/pnpjs/Navigation/getWebNav.d.ts.map +1 -1
- package/lib/pnpjs/Navigation/getWebNav.js.map +1 -1
- package/lib/pnpjs/PreConfigItems/getPreConfig.d.ts.map +1 -1
- package/lib/pnpjs/PreConfigItems/getPreConfig.js +1 -1
- package/lib/pnpjs/PreConfigItems/getPreConfig.js.map +1 -1
- package/lib/pnpjs/Users/calls/getUserPermissions.d.ts.map +1 -1
- package/lib/pnpjs/Users/calls/getUserPermissions.js +1 -2
- package/lib/pnpjs/Users/calls/getUserPermissions.js.map +1 -1
- package/lib/pnpjs/Users/logic/createIEnsureUserInfo.d.ts.map +1 -1
- package/lib/pnpjs/Users/logic/createIEnsureUserInfo.js +1 -2
- package/lib/pnpjs/Users/logic/createIEnsureUserInfo.js.map +1 -1
- package/lib/pnpjs/Users/logic/createISiteUsersInfoObject.d.ts.map +1 -1
- package/lib/pnpjs/Users/logic/createISiteUsersInfoObject.js +1 -3
- package/lib/pnpjs/Users/logic/createISiteUsersInfoObject.js.map +1 -1
- package/lib/pnpjs/Views/getViews.d.ts +1 -1
- package/lib/pnpjs/Views/getViews.d.ts.map +1 -1
- package/lib/pnpjs/Views/getViews.js.map +1 -1
- package/package.json +3 -3
- package/lib/components/molecules/SpHttp/IFPSSearchAPIResultsData.d.ts +0 -26
- package/lib/components/molecules/SpHttp/IFPSSearchAPIResultsData.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/IFPSSearchAPIResultsData.js +0 -5
- package/lib/components/molecules/SpHttp/IFPSSearchAPIResultsData.js.map +0 -1
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 2024-09-15: Migrated to SAME FOLDER in fps-core-v7/lib/components/molecules/SpHttp/Groups...
|
|
3
|
+
* export { fetchWebGroupInfoAPI, } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/Groups'
|
|
4
|
+
*/
|
|
5
|
+
// import { doSpJsFetch } from '../doSpJsFetch';
|
|
6
|
+
// import { startPerformOpV2, unifiedPerformanceEnd, updatePerformanceEndV2 } from '../../Performance/functions';
|
|
7
|
+
// import { IFpsItemsReturn, checkItemsResults } from '../../../../pnpjs/Common/CheckItemsResults';
|
|
8
|
+
// import { ISourceProps } from '@mikezimm/fps-core-v7/lib/components/molecules/source-props/ISourceProps'; //./../../../pnpjs/SourceItems/ISourceProps';
|
|
9
|
+
// import { check4This } from '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch';
|
|
10
|
+
// import { IPerformanceSettings } from '../../Performance/IPerformanceSettings';
|
|
11
|
+
// export async function fetchWebGroupInfoAPI( absoluteWebUrl: string, selects: string[], restFilter: string, alertMe: boolean | undefined, consoleLog: boolean | undefined, ): Promise<IFpsItemsReturn> {
|
|
12
|
+
// const performanceSettings: IPerformanceSettings = { label: `SiteGroups`, includeMsStr: true, updateMiliseconds: true, op: 'fetch' };
|
|
13
|
+
// const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null;
|
|
14
|
+
// if ( !absoluteWebUrl ) {
|
|
15
|
+
// // NO WebURL... Throw Alert
|
|
16
|
+
// alert(`getGroupInfoAPI: SourceProps does NOT have an absoluteWebUrl`);
|
|
17
|
+
// return;
|
|
18
|
+
// }
|
|
19
|
+
// /**
|
|
20
|
+
// SAMPLE Full SharePoint Items Rest call:
|
|
21
|
+
// ``${this.props.SettingsSource.absoluteWebUrl}/
|
|
22
|
+
// _api/web/sitegroups?
|
|
23
|
+
// $filter=startswith(Title,'EULA')&
|
|
24
|
+
// $select=Title,Id`;
|
|
25
|
+
// */
|
|
26
|
+
// let fetchAPI: string = `${absoluteWebUrl}/_api/web/sitegroups?`;
|
|
27
|
+
// fetchAPI+= `$select=${ selects.length > 0 ? selects.join(',') : 'Title,Id'}&`;
|
|
28
|
+
// if ( restFilter ) fetchAPI+= `$filter=${ restFilter }`;
|
|
29
|
+
// const initialResult = await doSpJsFetch( fetchAPI );
|
|
30
|
+
// // Add any required custom logic here
|
|
31
|
+
// // if ( resultHubSites.ok ) {
|
|
32
|
+
// // resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
33
|
+
// // }
|
|
34
|
+
// const result : IFpsItemsReturn = checkItemsResults( initialResult, `fps-library-v2: getGroupInfoAPI ~ 39`, alertMe, consoleLog );
|
|
35
|
+
// result.fpsContentType = [ 'group' ];
|
|
36
|
+
// result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
37
|
+
// updatePerformanceEndV2( { op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items.length }) : null;
|
|
38
|
+
// result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
39
|
+
// if ( check4This( `fpsShowFetchResults=true` ) === true ) { console.log( `fps-library-v2 COMPLETE: getGroupInfoAPI ~ 47`, result ) };
|
|
40
|
+
// return result;
|
|
41
|
+
// }
|
|
40
42
|
//# sourceMappingURL=fetchWebGroupInfoAPI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchWebGroupInfoAPI.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchWebGroupInfoAPI.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,gDAAgD;AAChD,iHAAiH;AACjH,mGAAmG;AACnG,yJAAyJ;AACzJ,kFAAkF;AAClF,iFAAiF;AAEjF,2MAA2M;AAE3M,yIAAyI;AACzI,0FAA0F;AAE1F,6BAA6B;AAC7B,kCAAkC;AAClC,6EAA6E;AAC7E,cAAc;AACd,MAAM;AAEN,QAAQ;AACR,8CAA8C;AAC9C,uDAAuD;AACvD,6BAA6B;AAC7B,0CAA0C;AAC1C,2BAA2B;AAC3B,OAAO;AAEP,qEAAqE;AACrE,mFAAmF;AACnF,4DAA4D;AAE5D,yDAAyD;AAEzD,2CAA2C;AAC3C,oCAAoC;AACpC,6EAA6E;AAC7E,WAAW;AAEX,sIAAsI;AACtI,yCAAyC;AAEzC,+DAA+D;AAC/D,8IAA8I;AAE9I,yDAAyD;AAEzD,yIAAyI;AAEzI,mBAAmB;AAEnB,IAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IJSFetchReturn } from '
|
|
1
|
+
import { IJSFetchReturn } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/doSpJsFetch';
|
|
2
2
|
import { IFPSHubNavigationItem, IHubSiteDataResultAPI } from './interface';
|
|
3
3
|
export interface IFPSHubNav extends IJSFetchReturn {
|
|
4
4
|
'nav.navigation': IFPSHubNavigationItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMyHubNav.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"fetchMyHubNav.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAe,MAAM,mEAAmE,CAAC;AAChH,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAI3E,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD,gBAAgB,EAAE,qBAAqB,EAAE,CAAC;IAC1C,GAAG,EAAE,qBAAqB,CAAC;IAC3B,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAE,MAAM,EAAE,MAAM,GAAK,OAAO,CAAC,UAAU,CAAC,CAwC1E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { checkItemsResults } from '../../../../pnpjs/Common/CheckItemsResults';
|
|
2
2
|
import { startPerformOpV2, unifiedPerformanceEnd } from '../../Performance/functions';
|
|
3
|
-
import { doSpJsFetch } from '
|
|
3
|
+
import { doSpJsFetch } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/doSpJsFetch';
|
|
4
4
|
/**
|
|
5
5
|
* fetchMyHubNav should be given the Url of a Hub Site and it should return that hubsite's navigation.
|
|
6
6
|
* - useful in Hub Connections or where you want to get navigation elements of a site.
|
|
@@ -30,7 +30,7 @@ export async function fetchMyHubNav(webUrl) {
|
|
|
30
30
|
resultHubNav.itemsN = [];
|
|
31
31
|
resultHubNav.metaN = [];
|
|
32
32
|
let result = unifiedPerformanceEnd(resultHubNav, performanceSettings, fetchOp, 'fetch', 'nav.navigation');
|
|
33
|
-
// Have to do this to get the count of nav nodes...
|
|
33
|
+
// Have to do this to get the count of nav nodes...
|
|
34
34
|
// although since the return result is just 1 string, maybe just c = 1 is more accurate representation.
|
|
35
35
|
result.fetchOp.c = countNavNodes(result.nav.navigation);
|
|
36
36
|
result.fetchOp.a = Math.round((result.fetchOp.ms / result.fetchOp.c) * 10) / 10;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMyHubNav.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAGhG,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAkB,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fetchMyHubNav.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAGhG,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAkB,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAYhH;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAE,MAAc;IAEjD,IAAI,mBAAmB,GAAyB,EAAG,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;IAC/H,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,CAAC,gBAAgB,CAAE,mBAAmB,CAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAErF,mBAAmB;IACnB,gGAAgG;I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AA;IACnC,OAAO,YAAY,CAAC;AAEtB,CAAC;AAED,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMyHubsSubs.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fetchMyHubsSubs.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mEAAmE,CAAC;AAGnG,OAAO,EAAE,cAAc,EAAmB,MAAM,mBAAmB,CAAC;AAIpE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,cAAc,CAAC;CAEtB;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,GAAI,OAAO,CAAC,YAAY,CAAC,CAiCzH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IJSFetchReturn } from '
|
|
1
|
+
import { IJSFetchReturn } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/doSpJsFetch';
|
|
2
2
|
import { IFPSWebsWithLogo } from '../interfaces/IFPSHubSiteDataDocsApi';
|
|
3
3
|
export type IFetchHubDepth = 'site' | 'web';
|
|
4
4
|
export type IHubFilterType = 'Associated' | 'Hubs' | 'Teams' | 'HubAndAssoc';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMyHubsites.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"fetchMyHubsites.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAe,MAAM,mEAAmE,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAc,MAAM,sCAAsC,CAAC;AAqCpF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,CAAE;AAE9E,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED;;;;;;;GAOG;AAEH,wBAAsB,eAAe,CAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAI,OAAO,CAAC,gBAAgB,CAAC,CAyCtJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cleanSearchedWebs } from '../functions/cleanSearchedWebs';
|
|
2
|
-
import { doSpJsFetch } from '
|
|
2
|
+
import { doSpJsFetch } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/doSpJsFetch';
|
|
3
3
|
import { hubSelects } from '../interfaces/IFPSHubSiteDataDocsApi';
|
|
4
4
|
import { startPerformOpV2, unifiedPerformanceEnd } from '../../../Performance/functions';
|
|
5
5
|
import { checkItemsResults } from '../../../../../pnpjs/Common/CheckItemsResults';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMyHubsites.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAkB,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fetchMyHubsites.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAkB,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAChH,OAAO,EAAoB,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEzF,OAAO,EAAmB,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAEnG;;;;;GAKG;AAEH,+CAA+C;AAE/C,kIAAkI;AAElI,sIAAsI;AACtI,0FAA0F;AAE1F,6PAA6P;AAE7P,wFAAwF;AAExF,+FAA+F;AAE/F,iKAAiK;AACjK,uCAAuC;AAEvC,oIAAoI;AAEpI,2BAA2B;AAE3B,IAAI;AAEJ,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAUpE;;;;;;;GAOG;AAEH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAE,MAAc,EAAE,KAAqB,EAAE,YAAoB,EAAE,MAAsB;IAExH,MAAM,mBAAmB,GAA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AED,kOAAkO;IAClO,2LAA2L;IAG3L,MAAM,cAAc,GAAqB,MAAM,WAAW,CAAE,WAAW,CAAE,CAAC;IAE1E,IAAK,cAAc,CAAC,EAAE,EAAG;QACvB,cAAc,CAAC,KAAK,GAAG,iBAAiB,CAAE,cAAc,CAAC,KAAK,CAAE,CAAC;KAClE;IAED,IAAK,MAAM,KAAK,MAAM,EAAG;QACvB,cAAc,CAAC,OAAO,GAAG,cAAc,CAAC,KAAK,CAAC,MAAM,CAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAE,IAAI,CAAC,MAAM,CAAE,KAAK,CAAC,CAAE,CAAC;QAC/G,mDAAmD;QACnD,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;KACvE;IAED,IAAI,MAAM,GAAoB,qBAAqB,CAAE,cAAiC,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAqB,CAAC;IAC5J,MAAM,CAAC,cAAc,GAAG,CAAE,KAAK,CAAE,CAAC;IAElC,MAAM,GAAG,iBAAiB,CAAE,MAAyB,EAAE,sCAAsC,EAAE,KAAK,EAAE,IAAI,CAAoB,CAAC;IAE/H,OAAO,cAAc,CAAC;AAExB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IJSFetchReturn } from '
|
|
1
|
+
import { IJSFetchReturn } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/doSpJsFetch';
|
|
2
2
|
/**
|
|
3
3
|
* This will fetch Subsites and their site logos, be sure to run EasyIcons after
|
|
4
4
|
* It does two fetches at the same time syncronosly.... needed due to SPO rest limiations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMySubsites.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"fetchMySubsites.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAe,MAAM,mEAAmE,CAAC;AAOhH;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAE,MAAM,EAAE,MAAM,GAAK,OAAO,CAAC,cAAc,CAAC,CAgDhF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cleanSearchedWebs } from '../functions/cleanSearchedWebs';
|
|
2
|
-
import { doSpJsFetch } from '
|
|
2
|
+
import { doSpJsFetch } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/doSpJsFetch';
|
|
3
3
|
import { hubSelects } from '../interfaces/IFPSHubSiteDataDocsApi';
|
|
4
4
|
import { startPerformOpV2, unifiedPerformanceEnd } from '../../../Performance/functions';
|
|
5
5
|
import { checkItemsResults } from '../../../../../pnpjs/Common/CheckItemsResults';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMySubsites.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAkB,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fetchMySubsites.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAkB,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAChH,OAAO,EAAoB,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO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imm/fps-core-v7/lib/components/molecules/SpHttp/Lists'
|
|
4
|
+
*/
|
|
4
5
|
//# sourceMappingURL=fetchSourceListsAPI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchSourceListsAPI.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/Lists/fetchSourceListsAPI.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchSourceListsAPI.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/Lists/fetchSourceListsAPI.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -1,49 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
;
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 2024-09-15: Migrated to SAME FOLDER in from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/Lists...
|
|
3
|
+
* export { fetchSourceListsAPI, } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/Lists'
|
|
4
|
+
*/
|
|
5
|
+
// import { doSpJsFetch } from '../doSpJsFetch';
|
|
6
|
+
// import { startPerformOpV2, unifiedPerformanceEnd, updatePerformanceEndV2 } from '../../Performance/functions';
|
|
7
|
+
// import { IFpsItemsReturn, checkItemsResults } from '../../../../pnpjs/Common/CheckItemsResults';
|
|
8
|
+
// import { ISourceProps } from '@mikezimm/fps-core-v7/lib/components/molecules/source-props/ISourceProps'; //./../../../pnpjs/SourceItems/ISourceProps';
|
|
9
|
+
// import { check4This } from '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch';
|
|
10
|
+
// export async function fetchSourceListsAPI( sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined, ): Promise<IFpsItemsReturn> {
|
|
11
|
+
// const { performanceSettings } = sourceProps;
|
|
12
|
+
// const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null;
|
|
13
|
+
// const { absoluteWebUrl, listTitle, orderBy, restFilter, selectThese, } = sourceProps;
|
|
14
|
+
// if ( !absoluteWebUrl ) {
|
|
15
|
+
// // NO WebURL... Throw Alert
|
|
16
|
+
// alert(`${listTitle} SourceProps does NOT have an absoluteWebUrl`);
|
|
17
|
+
// return;
|
|
18
|
+
// }
|
|
19
|
+
// /**
|
|
20
|
+
// SAMPLE Full SharePoint Items Rest call:
|
|
21
|
+
// `${this.props.SettingsSource.absoluteWebUrl}/
|
|
22
|
+
// _api/web/lists?
|
|
23
|
+
// $filter=startswith(Title,'EULA')&
|
|
24
|
+
// $select=Title,Id`;
|
|
25
|
+
// */
|
|
26
|
+
// let fetchAPI: string = `${absoluteWebUrl}/_api/web/lists?`;
|
|
27
|
+
// if ( selectThese && selectThese.length > 0 ) fetchAPI+= `$select=${ selectThese && selectThese.length > 0 ? selectThese.join(',') : 'Title,Id' }&`;
|
|
28
|
+
// if ( restFilter ) fetchAPI+= `$filter=${ restFilter }&`;
|
|
29
|
+
// const orderBys: string[] = [];
|
|
30
|
+
// if ( orderBy ) orderBys.push( `${ orderBy.prop } ${ orderBy.order }` ) ;
|
|
31
|
+
// const initialResult = await doSpJsFetch( fetchAPI );
|
|
32
|
+
// // Add any required custom logic here
|
|
33
|
+
// // if ( resultHubSites.ok ) {
|
|
34
|
+
// // resultHubSites.items = cleanSearchedWebs( resultHubSites.items );
|
|
35
|
+
// // }
|
|
36
|
+
// let result : IFpsItemsReturn = checkItemsResults( initialResult, `fps-library-v2: fetchSourceListsAPI ~ 43`, alertMe, consoleLog );
|
|
37
|
+
// result.fpsContentType = !sourceProps.fpsContentType ? [ 'list' ] : sourceProps.fpsContentType;
|
|
38
|
+
// if ( sourceProps.fpsContentType.indexOf( 'list' ) < 0 ) result.fpsContentType.push( 'list' );
|
|
39
|
+
// // result.unifiedPerformanceOps.fetch = performanceSettings ?
|
|
40
|
+
// // updatePerformanceEndV2( { op: fetchOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items.length }) : null;
|
|
41
|
+
// // result.fetchOp = result.unifiedPerformanceOps.fetch;
|
|
42
|
+
// result = unifiedPerformanceEnd( result, performanceSettings, fetchOp, 'fetch', 'list' );
|
|
43
|
+
// if ( check4This( `fpsShowFetchResults=true` ) === true ) { console.log( `fps-library-v2 COMPLETE: fetchSourceListsAPI ~ 52`, result ) };
|
|
44
|
+
// return result;
|
|
45
|
+
// }
|
|
49
46
|
//# sourceMappingURL=fetchSourceListsAPI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchSourceListsAPI.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/Lists/fetchSourceListsAPI.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchSourceListsAPI.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/Lists/fetchSourceListsAPI.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,gDAAgD;AAChD,iHAAiH;AACjH,mGAAmG;AACnG,yJAAyJ;AACzJ,kFAAkF;AAElF,sKAAsK;AAEtK,iDAAiD;AACjD,0FAA0F;AAE1F,0FAA0F;AAE1F,6BAA6B;AAC7B,kCAAkC;AAClC,yEAAyE;AACzE,cAAc;AACd,MAAM;AAEN,QAAQ;AACR,8CAA8C;AAC9C,sDAAsD;AACtD,wBAAwB;AACxB,0CAA0C;AAC1C,2BAA2B;AAE3B,OAAO;AAEP,gEAAgE;AAChE,wJAAwJ;AACxJ,6DAA6D;AAC7D,mCAAmC;AACnC,6EAA6E;AAE7E,yDAAyD;AAEzD,2CAA2C;AAC3C,oCAAoC;AACpC,6EAA6E;AAC7E,WAAW;AAEX,wIAAwI;AACxI,mGAAmG;AACnG,mGAAmG;AAEnG,kEAAkE;AAClE,iJAAiJ;AAEjJ,4DAA4D;AAE5D,8FAA8F;AAE9F,6IAA6I;AAE7I,mBAAmB;AAEnB,IAAI"}
|
|
@@ -1,32 +1,5 @@
|
|
|
1
|
-
import { IFPSResultStatus } from "@mikezimm/fps-pnp2/lib/services/sp/IFPSResultStatus";
|
|
2
|
-
import { IFpsErrorObject } from "@mikezimm/fps-core-v7/lib/types/fps-returns/common/IFpsErrorObject";
|
|
3
|
-
import { IFPSSearchAPIResultsData } from "./IFPSSearchAPIResultsData";
|
|
4
|
-
export interface IJSFetchReturn extends IFpsErrorObject {
|
|
5
|
-
status: IFPSResultStatus;
|
|
6
|
-
ok: boolean;
|
|
7
|
-
items: any[];
|
|
8
|
-
e: any;
|
|
9
|
-
rawSearchResults?: IFPSSearchAPIResultsData;
|
|
10
|
-
fetchAPI: string;
|
|
11
|
-
meta0?: string[];
|
|
12
|
-
meta1?: string[];
|
|
13
|
-
meta2?: string[];
|
|
14
|
-
meta3?: string[];
|
|
15
|
-
meta4?: string[];
|
|
16
|
-
metaA?: string[];
|
|
17
|
-
metaB?: string[];
|
|
18
|
-
metaC?: string[];
|
|
19
|
-
metaD?: string[];
|
|
20
|
-
metaS?: string[];
|
|
21
|
-
metaW?: string[];
|
|
22
|
-
metaL?: string[];
|
|
23
|
-
metaF?: string[];
|
|
24
|
-
}
|
|
25
|
-
export declare function createEmptyFetchReturn(fetchAPI: string): IJSFetchReturn;
|
|
26
1
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @
|
|
29
|
-
* @returns
|
|
2
|
+
* 2024-09-15: Migrated to SAME FOLDER in @mikezimm/fps-core-v7/lib/components/molecules/SpHttp...
|
|
3
|
+
* export { IJSFetchReturn, createEmptyFetchReturn, doSpJsFetch } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/Lists'
|
|
30
4
|
*/
|
|
31
|
-
export declare function doSpJsFetch(fetchAPI: string): Promise<IJSFetchReturn>;
|
|
32
5
|
//# sourceMappingURL=doSpJsFetch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doSpJsFetch.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsFetch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doSpJsFetch.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsFetch.ts"],"names":[],"mappings":"AACA;;;GAGG"}
|
|
@@ -1,78 +1,100 @@
|
|
|
1
|
-
import { check4This } from "@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch";
|
|
2
|
-
import { checkDeepProperty } from "../../../logic/Objects/deep";
|
|
3
|
-
export function createEmptyFetchReturn(fetchAPI) {
|
|
4
|
-
const emptyObject = {
|
|
5
|
-
items: [],
|
|
6
|
-
ok: null,
|
|
7
|
-
e: null,
|
|
8
|
-
status: 'Unknown',
|
|
9
|
-
fetchAPI: fetchAPI,
|
|
10
|
-
};
|
|
11
|
-
return emptyObject;
|
|
12
|
-
}
|
|
13
1
|
/**
|
|
14
|
-
*
|
|
15
|
-
* @
|
|
16
|
-
* @returns
|
|
2
|
+
* 2024-09-15: Migrated to SAME FOLDER in @mikezimm/fps-core-v7/lib/components/molecules/SpHttp...
|
|
3
|
+
* export { IJSFetchReturn, createEmptyFetchReturn, doSpJsFetch } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/Lists'
|
|
17
4
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
5
|
+
// import { check4This } from "@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch";
|
|
6
|
+
// import { IFPSResultStatus } from "@mikezimm/fps-pnp2/lib/services/sp/IFPSResultStatus";
|
|
7
|
+
// import { IFpsErrorObject } from "@mikezimm/fps-core-v7/lib/types/fps-returns/common/IFpsErrorObject"; //./../../pnpjs/Common/IFpsErrorObject";
|
|
8
|
+
// import { checkDeepProperty } from "../../../logic/Objects/deep";
|
|
9
|
+
// import { IFPSSearchAPIResultsData } from "./interfaces/IFPSSearchAPIResultsData";
|
|
10
|
+
// export interface IJSFetchReturn extends IFpsErrorObject {
|
|
11
|
+
// status: IFPSResultStatus;
|
|
12
|
+
// ok: boolean;
|
|
13
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
|
+
// items: any[];
|
|
15
|
+
// e: any;
|
|
16
|
+
// rawSearchResults?: IFPSSearchAPIResultsData;
|
|
17
|
+
// fetchAPI: string;
|
|
18
|
+
// // These match the meta columns on IStateSource and IFPSItemSearch
|
|
19
|
+
// meta0?: string[]; // Used for quick filtering - aka buttons or Pivots - meta0 is used for things like Type
|
|
20
|
+
// meta1?: string[]; // Optional meta keys that can be added to state source
|
|
21
|
+
// meta2?: string[]; // Optional meta keys that can be added to state source
|
|
22
|
+
// meta3?: string[]; // Optional meta keys that can be added to state source
|
|
23
|
+
// meta4?: string[]; // Optional meta keys that can be added to state source
|
|
24
|
+
// metaA?: string[]; // Optional meta keys that can be added to state source
|
|
25
|
+
// metaB?: string[]; // Optional meta keys that can be added to state source
|
|
26
|
+
// metaC?: string[]; // Optional meta keys that can be added to state source
|
|
27
|
+
// // These specific keys were added for PagePal but can be reused as needed
|
|
28
|
+
// metaD?: string[]; // Optional meta keys that can be added to state source - PagePal 'DocIds'
|
|
29
|
+
// metaS?: string[]; // Optional meta keys that can be added to state source - PagePal 'Sites'
|
|
30
|
+
// metaW?: string[]; // Optional meta keys that can be added to state source - PagePal 'Webs'
|
|
31
|
+
// metaL?: string[]; // Optional meta keys that can be added to state source - AnyWebP 'Lists'
|
|
32
|
+
// metaF?: string[]; // Optional meta keys that can be added to state source - PagePal 'Files'
|
|
33
|
+
// }
|
|
34
|
+
// export function createEmptyFetchReturn( fetchAPI: string ): IJSFetchReturn {
|
|
35
|
+
// const emptyObject: IJSFetchReturn = {
|
|
36
|
+
// items: [],
|
|
37
|
+
// ok: null,
|
|
38
|
+
// e: null,
|
|
39
|
+
// status: 'Unknown',
|
|
40
|
+
// fetchAPI: fetchAPI,
|
|
41
|
+
// }
|
|
42
|
+
// return emptyObject;
|
|
43
|
+
// }
|
|
44
|
+
// /**
|
|
45
|
+
// * Pass in any SharePoint rest api url and it should return a result or a standard error return object
|
|
46
|
+
// * @param fetchAPI
|
|
47
|
+
// * @returns
|
|
48
|
+
// */
|
|
49
|
+
// export async function doSpJsFetch(fetchAPI: string): Promise<IJSFetchReturn> {
|
|
50
|
+
// // Automatically added this because API's usually need full url.
|
|
51
|
+
// if ( fetchAPI.indexOf( window.location.hostname ) === 0 ) fetchAPI = `https://${fetchAPI}`;
|
|
52
|
+
// const results: IJSFetchReturn = createEmptyFetchReturn( fetchAPI );
|
|
53
|
+
// try {
|
|
54
|
+
// const response = await fetch(fetchAPI, {
|
|
55
|
+
// headers: {
|
|
56
|
+
// Accept: "application/json;odata=nometadata",
|
|
57
|
+
// },
|
|
58
|
+
// });
|
|
59
|
+
// // check if the response is OK
|
|
60
|
+
// if (response.ok) {
|
|
61
|
+
// const data = await response.json();
|
|
62
|
+
// const usesSearch: boolean = fetchAPI.indexOf(`_api/search`) > -1 ? true : false;
|
|
63
|
+
// if ( usesSearch ) results.rawSearchResults = data;
|
|
64
|
+
// const deepPropValue = usesSearch === true ? checkDeepProperty( data, [ 'PrimaryQueryResult', 'RelevantResults', 'Table', 'Rows'], 'Actual' ) : undefined;
|
|
65
|
+
// // added logic to solve this: https://github.com/mikezimm/pivottiles7/issues/292
|
|
66
|
+
// if ( deepPropValue !== undefined && deepPropValue !== null ) {
|
|
67
|
+
// results.items = data.PrimaryQueryResult.RelevantResults.Table.Rows;
|
|
68
|
+
// } else {
|
|
69
|
+
// if ( usesSearch === true && data.ElapsedTime && !data.PrimaryQueryResult ) {
|
|
70
|
+
// // Seems like query did not fail, so do nothing because array of items is already [].
|
|
71
|
+
// // This is what happened when using fetchMySubsites and not having any subsites to return.
|
|
72
|
+
// } else {
|
|
73
|
+
// results.items = data.value ? data.value : data;
|
|
74
|
+
// }
|
|
75
|
+
// }
|
|
76
|
+
// results.ok = true;
|
|
77
|
+
// results.statusText = response.statusText;
|
|
78
|
+
// results.statusNo = response.status;
|
|
79
|
+
// results.status = 'Success';
|
|
80
|
+
// if ( check4This( 'fpsShowFetchResults=true' ) === true ) console.log( `fps-library-v2 Success: doSpJsFetch ~ 34 results`, results );
|
|
81
|
+
// } else {
|
|
82
|
+
// // throw an error with the status code and message
|
|
83
|
+
// // throw new Error(`${response.status}: ${response.statusText}`);
|
|
84
|
+
// results.ok = response.ok;
|
|
85
|
+
// results.statusText = response.statusText;
|
|
86
|
+
// results.statusNo = response.status;
|
|
87
|
+
// results.status = 'Error';
|
|
88
|
+
// if ( check4This( 'fpsShowFetchResults=true' ) === true ) console.log( `fps-library-v2 Api Error: doSpJsFetch ~ 42 results`, results );
|
|
89
|
+
// }
|
|
90
|
+
// return results;
|
|
91
|
+
// } catch (e) {
|
|
92
|
+
// if ( check4This( 'fpsShowFetchResults=true' ) === true ) console.log( `fps-library-v2 Logic Error: doSpJsFetch ~ 50 fetchAPI`, fetchAPI );
|
|
93
|
+
// results.ok = false;
|
|
94
|
+
// results.statusText = `Error TryCatch`;
|
|
95
|
+
// results.statusNo = 667;
|
|
96
|
+
// results.status = 'Error';
|
|
97
|
+
// return results;
|
|
98
|
+
// }
|
|
99
|
+
// }
|
|
78
100
|
//# sourceMappingURL=doSpJsFetch.js.map
|