@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
24 lines • 1.07 kB
TypeScript
/**
* 2024-12-07: MOVE THIS TO fps-core-v7 ???
* MIGRATION CANDIDATE
*/
import { IFpsSpHttpServiceMIN } from "../../../components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN";
/**
* This is standard fetch to get preConfigItems, initially in Drilldown.
* These provide the user with a list of property mappings they can pick from to quickly and easily set up the web part.
* The return result is an array of key - value objects like so:
*
* result: [
* { webUrl: "https:tenant.sharepoint.com/sites/collection" }
* { listTitle: "Documents" }
* ];
*
* usage: returns newMap and you need to set this.propserties.newMap = newMap;
* @param listTitle
* @param thisProps
* @param restFilter --- matches webPartScenario eq 'thisWPProps.webPartScenario' where webPartScenario might be Dev or Teams or Corp
* @param webUrl
* @returns
*/
export declare function getPreConfigItems(fpsSpService: IFpsSpHttpServiceMIN, thisWPProps: any, listTitle: string, webUrl?: string): Promise<any[]>;
//# sourceMappingURL=getPreConfig.d.ts.map