-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from gunjandatta/gdatta
Added Web Template Extensions REST API EndPoint
- Loading branch information
Showing
16 changed files
with
323 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from "gd-sprest-def"; | ||
//export * from "./graph"; | ||
export * from "./peoplePicker"; | ||
export * from "./utility"; | ||
export * from "./utility"; | ||
export * from "./webTemplateExtensions"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { | ||
|
||
} from "gd-sprest-def/lib/Microsoft/SharePoint/Utilities/WebTemplateExtensions"; | ||
import { IBaseExecution } from "gd-sprest-def/lib/base"; | ||
import { WebTemplateExtensions } from "gd-sprest-def/lib/Microsoft/SharePoint/Utilities"; | ||
|
||
/** | ||
* Web Template Extensions Results | ||
*/ | ||
export interface IResult extends IBaseExecution { } | ||
|
||
/** | ||
* Web Template Extensions Methods | ||
*/ | ||
export interface IWebTemplateExtensionsMethods { | ||
applySiteDesign(siteDesignId: string, webUrl: string): IBaseExecution; | ||
addSiteDesignTaskToCurrentWeb(siteDesignId: string): IBaseExecution; | ||
createSiteDesign(info: WebTemplateExtensions.SiteDesignCreationInfo) | ||
createSiteScript(title: string, content: any): IBaseExecution; | ||
deleteSiteDesign(id: string): IBaseExecution; | ||
deleteSiteScript(id: string): IBaseExecution; | ||
getSiteDesigns(): IBaseExecution; | ||
getSiteDesignMetadata(id: string): IBaseExecution; | ||
getSiteScripts(): IBaseExecution; | ||
getSiteScriptFromWeb(webUrl: string, info: WebTemplateExtensions.SiteScriptSerializationInfo): IBaseExecution; | ||
getSiteScriptFromList(listUrl: string): IBaseExecution; | ||
getSiteScriptMetadata(id: string): IBaseExecution; | ||
getSiteDesignRights(id: string): IBaseExecution; | ||
grantSiteDesignRights(id: string, principalNames: string[], grantedRights: number): IBaseExecution; | ||
revokeSiteDesignRights(id: string, principalNames: string[]): IBaseExecution; | ||
updateSiteDesign(updateInfo: WebTemplateExtensions.SiteDesignCreationInfo & WebTemplateExtensions.SiteDesignMetadata): IBaseExecution; | ||
updateSiteScript(updateInfo: WebTemplateExtensions.SiteScriptCreationInfo & WebTemplateExtensions.SiteScriptMetadata): IBaseExecution; | ||
} | ||
|
||
/** | ||
* Web Template Extensions | ||
*/ | ||
export interface IWebTemplateExtensions extends IWebTemplateExtensionsMethods, IBaseExecution<IWebTemplateExtensions> { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as SP from "../intellisense/webTemplateExtensions"; | ||
import { ITargetInfoProps } from "../utils"; | ||
|
||
/** | ||
* #### REST API | ||
* _api/Microsoft.SharePoint.Utilities.WebTemplateExtensions | ||
*/ | ||
export const WebTemplateExtensions: IWebTemplateExtensions; | ||
|
||
/** | ||
* Web Template Extensions | ||
* @category WebTemplateExtensions | ||
*/ | ||
export interface IWebTemplateExtensions { | ||
/** | ||
* Creates an instance of the utility library. | ||
* @param url - (Optional) The web url. | ||
* @param targetInfo - (Optional) The target information. | ||
*/ | ||
(url?: string, targetInfo?: ITargetInfoProps): SP.IWebTemplateExtensions; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.