import { TypedHash } from '@pnp/common'; import { Web } from '@pnp/sp'; import { Schema } from 'sp-js-provisioning'; import { ProjectTemplate } from './ProjectTemplate'; import { UserSelectableObject } from './UserSelectableObject'; export interface IProjectExtensionSPItem { Id: number; FieldValuesAsText?: TypedHash; GtExtensionDefault?: boolean; GtExtensionHidden?: boolean; GtExtensionLocked?: boolean; File?: { UniqueId: string; Name: string; Title: string; ServerRelativeUrl: string; }; } /** * @model ProjectExtension */ export declare class ProjectExtension extends UserSelectableObject { web: Web; serverRelativeUrl: string; constructor(spItem: IProjectExtensionSPItem, web: Web); /** * Checks if the project extension is mandatory for the specified template. It's either * locked and default on the project extension element itself, or it's connected to the * template and `isDefaultExtensionsLocked` is set to true. * * @param template Project template */ isMandatoryForTemplate(template: ProjectTemplate): boolean; /** * Checks if the project extension is default for the specified template. It's either * default on the project extension element itself, or it's connected to the template. * * @param template Project template */ isDefaultForTemplate(template?: ProjectTemplate): boolean; getSchema(): Promise; } //# sourceMappingURL=ProjectExtension.d.ts.map