import { List, Web } from '@pnp/sp'; import { IListProperties } from './IListProperties'; import { ProjectTemplate } from './ProjectTemplate'; import { UserSelectableObject } from './UserSelectableObject'; export interface IContentConfigSPItem { ContentTypeId: string; Id: number; Title: string; GtDescription: string; GtLccDestinationList: string; GtLccFields: string; GtLccDefault: boolean; GtLccSourceList: string; GtLccHidden: boolean; GtLccLocked: boolean; GtPlannerName: string; } export declare enum ContentConfigType { List = 0, Planner = 1 } /** * @model ContentConfig */ export declare class ContentConfig extends UserSelectableObject { private _spItem; web: Web; plannerTitle: string; sourceListProps: IListProperties; destListProps: IListProperties; private _sourceList; private _destinationList; constructor(_spItem: IContentConfigSPItem, web: Web); /** * Checks if the content config is mandatory for the specified template. It's either * locked and default on the content configuration element itself, or it's connected to the * template and `isDefaultContentConfigLocked` is set to true. * * @param template Project template */ isMandatoryForTemplate(template: ProjectTemplate): boolean; /** * Checks if the content config is default for the specified template. It's either * default on the content configuration element itself, or it's connected to the template. * * @param template Project template */ isDefaultForTemplate(template?: ProjectTemplate): boolean; get type(): ContentConfigType; get fields(): string[]; get sourceList(): List; get destList(): List; load(): Promise; } //# sourceMappingURL=ContentConfig.d.ts.map