import { TypedHash } from '@pnp/common'; import { FileAddResult, Folder, Web } from '@pnp/sp'; import { IFileTypeIconOptions } from '@uifabric/file-type-icons'; import { IIconProps } from '@fluentui/react/lib/Icon'; export interface ITemplateSPItem { Folder?: { UniqueId: string; ItemCount: number; Name: string; ServerRelativeUrl: string; TimeLastModified: string; }; File?: { UniqueId: string; Name: string; Title: string; ServerRelativeUrl: string; TimeLastModified: string; }; FieldValuesAsText?: TypedHash; } /** * @model TemplateItem */ export declare class TemplateItem { private _item; web: Web; /** * Item id */ id: string; /** * Name */ name: string; /** * Title */ title: string; /** * The template description */ description: string; /** * The project phase */ phase: string; /** * The new name */ newName: string; /** * The new title */ newTitle: string; /** * Server relative URL for the template file */ serverRelativeUrl: string; /** * Modified time */ modified: string; /** * Error message for the input field for name */ errorMessage: string; constructor(_item: ITemplateSPItem, web: Web); /** * Copy item to folder * * @param folder Folder * @param shouldOverwrite Should overwrite * * @returns {true} if the operation is successful */ copyTo(folder: Folder, shouldOverwrite?: boolean): Promise; /** * On input changed * * @param properties Updated properties */ update(properties: TypedHash): void; /** * Name without extension */ get nameWithoutExtension(): string; /** * File extension */ get fileExtension(): string; /** * Parent folder URL */ get parentFolderUrl(): string; /** * Is folder */ get isFolder(): boolean; /** * Folder level * * Root level returns 1 etc */ get level(): number; /** * Get icon props */ getIconProps(options?: IFileTypeIconOptions): IIconProps; } //# sourceMappingURL=TemplateItem.d.ts.map