@pnp/spfx-controls-react
Version:
Reusable React controls for SharePoint Framework solutions
39 lines • 1.55 kB
TypeScript
import { BaseComponentContext } from '@microsoft/sp-component-base';
import { FileBrowserService } from "./FileBrowserService";
import { FilesQueryResult } from "./FileBrowserService.types";
export declare class OneDriveService extends FileBrowserService {
protected oneDrivePersonalUrl: string;
protected oneDriveRootFolderRelativeUrl: string;
protected oneDriveRootFolderAbsoluteUrl: string;
protected oneDrivePersonalLibraryTitle: string;
constructor(context: BaseComponentContext, itemsToDownloadCount?: number);
/**
* Gets files from OneDrive personal library
*/
getListItems: (listUrl: string, folderPath?: string, acceptedFilesExtensions?: string[], nextPageQueryStringParams?: string) => Promise<FilesQueryResult>;
/**
* Downloads document content from OneDrive location.
*/
downloadSPFileContent: (absoluteFileUrl: string, fileName: string) => Promise<File>;
/**
* Gets users one drive personal documents library path
*/
getOneDriveRootFolderFullUrl: () => Promise<string>;
/**
* Gets OneDrive RootFolder server relative URL.
*/
getOneDriveRootFolderRelativeUrl: () => Promise<string>;
/**
* Gets OneDrive personal library Title
*/
getOneDrivePersonalLibraryTitle: () => Promise<string>;
/**
* Gets personal site path.
*/
private getOneDrivePersonalUrl;
/**
* Creates an absolute URL
*/
protected buildAbsoluteUrl: (relativeUrl: string) => string;
}
//# sourceMappingURL=OneDriveService.d.ts.map