@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
24 lines (21 loc) • 1.34 kB
TypeScript
import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
import { IPnpNavType } from '../../../types/fps-returns/sites/nav/IPnpNavType';
import { IFpsNavLinksReturn, INavigationLink } from '../../../types/fps-returns/sites/nav/INavigationLink';
import { IJSFetchMethodNoPUT } from '../../../components/molecules/SpHttp/interfaces/IJSFetchReturn';
/**
* To get a parent node, this is the filter structure you want to include (without including the $filter=)
$filter= `ParentNodeId eq ${ParentNodeId}`
To create a childNavigationNode, just pass in the parentNodeId as a parameter (not in the body)
NOTE: This api currently needs to use Odata V3. At least I think it does based on pnpjs v2
* 2024-12-29: Has been moved to fps-core-v7
* import { getOrAddWebNavAPI, } from "@mikezimm/fps-core-v7/lib/restAPIs/sites/nav/getOrAddWebNavAPI";
*
* @param sourceProps
* @param location
* @param alertMe
* @param consoleLog
* @param body
* @returns
*/
export declare function getOrAddWebNavAPI(sourceProps: ISourceProps, method: IJSFetchMethodNoPUT, location: IPnpNavType, alertMe: boolean | undefined, consoleLog: boolean | undefined, body: INavigationLink | null, parentNodeId?: number): Promise<IFpsNavLinksReturn>;
//# sourceMappingURL=getOrAddWebNavAPI.d.ts.map