@pnp/spfx-property-controls
Version:
Reusable property pane controls for SharePoint Framework solutions
44 lines • 1.85 kB
TypeScript
import { ServiceKey, ServiceScope } from "@microsoft/sp-core-library";
import { IFolderExplorerService } from "./IFolderExplorerService";
import { IFolder } from "./IFolderExplorerService";
export declare class FolderExplorerService implements IFolderExplorerService {
static readonly serviceKey: ServiceKey<IFolderExplorerService>;
constructor(serviceScope: ServiceScope);
/**
* Get libraries within a given site
* @param webAbsoluteUrl - the url of the target site
*/
getDocumentLibraries: (webAbsoluteUrl: string) => Promise<IFolder[]>;
/**
* Get libraries within a given site
* @param webAbsoluteUrl - the url of the target site
*/
private _getDocumentLibraries;
/**
* Get folders within a given library or sub folder
* @param webAbsoluteUrl - the url of the target site
* @param folderRelativeUrl - the relative url of the folder
*/
getFolders: (webAbsoluteUrl: string, folderRelativeUrl: string) => Promise<IFolder[]>;
/**
* Get folders within a given library or sub folder
* @param webAbsoluteUrl - the url of the target site
* @param folderRelativeUrl - the relative url of the folder
*/
private _getFolders;
/**
* Create a new folder
* @param webAbsoluteUrl - the url of the target site
* @param folderRelativeUrl - the relative url of the base folder
* @param name - the name of the folder to be created
*/
addFolder: (webAbsoluteUrl: string, folderRelativeUrl: string, name: string) => Promise<IFolder>;
/**
* Create a new folder
* @param webAbsoluteUrl - the url of the target site
* @param folderRelativeUrl - the relative url of the base folder
* @param name - the name of the folder to be created
*/
private _addFolder;
}
//# sourceMappingURL=FolderExplorerService.d.ts.map