gd-sprest-def 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom.js +9 -0
- package/lib/SP/Publishing/entitytypes.d.ts +2 -1
- package/main.js +0 -1
- package/package.json +1 -1
package/custom.js
CHANGED
|
@@ -402,6 +402,15 @@ module.exports = {
|
|
|
402
402
|
}
|
|
403
403
|
],
|
|
404
404
|
|
|
405
|
+
// Site Pages
|
|
406
|
+
"Collection(SP.Publishing.SitePage)": [
|
|
407
|
+
{
|
|
408
|
+
name: "createAppPage",
|
|
409
|
+
returnType: "SP.Publishing.SitePage",
|
|
410
|
+
params: [{ $: { Name: "webPartDataAsJson", Type: "SP.Publishing.SitePageMetadata" } }]
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
|
|
405
414
|
// Tenant App Catalog
|
|
406
415
|
"Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TenantCorporateCatalogAccessor": [
|
|
407
416
|
{
|
|
@@ -438,7 +438,7 @@ export interface SitePageCollections extends SitePagePropMethods {
|
|
|
438
438
|
* SitePageCollectionMethods
|
|
439
439
|
**********************************************/
|
|
440
440
|
export interface SitePageCollectionMethods {
|
|
441
|
-
createAppPage(webPartDataAsJson?: string): Base.IBaseExecution<string>;
|
|
441
|
+
// createAppPage(webPartDataAsJson?: string): Base.IBaseExecution<string>;
|
|
442
442
|
ensureTitleResource(): Base.IBaseExecution<any>;
|
|
443
443
|
feed(promotedState?: number, published?: boolean, metadataFilter?: string, languageOverride?: string): Base.IBaseExecution<Array<SP.Publishing.SitePageMetadata>>;
|
|
444
444
|
feedTargeted(promotedState?: number, published?: boolean, metadataFilter?: string, languageOverride?: string): Base.IBaseExecution<Array<SP.Publishing.SitePageMetadata>>;
|
|
@@ -451,6 +451,7 @@ export interface SitePageCollectionMethods {
|
|
|
451
451
|
templates(): Base.IBaseExecution<Array<SP.Publishing.SitePageMetadata>>;
|
|
452
452
|
updateAppPage(pageId?: number, webPartDataAsJson?: string, title?: string, includeInNavigation?: boolean): Base.IBaseExecution<string>;
|
|
453
453
|
updateFullPageApp(serverRelativeUrl?: string, webPartDataAsJson?: string): Base.IBaseExecution<any>;
|
|
454
|
+
createAppPage(webPartDataAsJson?: SP.Publishing.SitePageMetadata): Base.IBaseExecution<SP.Publishing.SitePage>;
|
|
454
455
|
}
|
|
455
456
|
|
|
456
457
|
/*********************************************
|
package/main.js
CHANGED
|
@@ -363,7 +363,6 @@ fs.readFile("metadata.xml", "utf8", (err, xml) => {
|
|
|
363
363
|
// Validate the collection
|
|
364
364
|
let name = interface.$ ? interface.$.Name : null;
|
|
365
365
|
if (name) {
|
|
366
|
-
if(name == "comment") { debugger; }
|
|
367
366
|
// Add the interface
|
|
368
367
|
directories[ns][collection][name] = {};
|
|
369
368
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-sprest-def",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "TypeScript definition files generated from the $metadata REST endpoint in SharePoint.",
|
|
5
5
|
"author": "Gunjan Datta <me@dattabase.com> (https://gunjandatta.github.io)",
|
|
6
6
|
"license": "MIT",
|