UNPKG

1.42 kBTypeScriptView Raw
1import { _SPInstance, _SPCollection } from "../spqueryable.js";
2export declare class _Features extends _SPCollection<IFeatureInfo[]> {
3 /**
4 * Adds (activates) the specified feature
5 *
6 * @param id The Id of the feature (GUID)
7 * @param force If true the feature activation will be forced
8 */
9 add(featureId: string, force?: boolean): Promise<IFeatureAddResult>;
10 /**
11 * Gets a feature from the collection with the specified guid
12 *
13 * @param id The Id of the feature (GUID)
14 */
15 getById(id: string): IFeature;
16 /**
17 * Removes (deactivates) a feature from the collection
18 *
19 * @param id The Id of the feature (GUID)
20 * @param force If true the feature deactivation will be forced
21 */
22 remove(featureId: string, force?: boolean): Promise<any>;
23}
24export interface IFeatures extends _Features {
25}
26export declare const Features: import("../spqueryable.js").ISPInvokableFactory<IFeatures>;
27export declare class _Feature extends _SPInstance<IFeatureInfo> {
28}
29export interface IFeature extends _Feature {
30}
31export declare const Feature: import("../spqueryable.js").ISPInvokableFactory<IFeature>;
32/**
33 * Result from adding (activating) a feature to the collection
34 */
35export interface IFeatureAddResult {
36 data: IFeatureInfo;
37 feature: IFeature;
38}
39export interface IFeatureInfo {
40 DefinitionId: string;
41}
42//# sourceMappingURL=types.d.ts.map
\No newline at end of file