gd-sprest-def 1.1.0 → 1.1.3

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/base.d.ts CHANGED
@@ -12,17 +12,17 @@ export interface IBaseExecution<Type = any, Result = Type> {
12
12
  /**
13
13
  * Method to execute the request as a batch.
14
14
  * Currently available in SharePoint Online only.
15
- * @param appendFl - Flag to execute the request as part of a change set.
15
+ * @param createFl - Flag to execute the request as part of a new change set.
16
16
  */
17
- batch(appendFl?: boolean): Type;
17
+ batch(createFl?: boolean): Type;
18
18
 
19
19
  /**
20
20
  * Method to execute the request as a batch.
21
21
  * Currently available in SharePoint Online only.
22
22
  * @param resolve - The method to be executed after the request completes.
23
- * @param appendFl - Flag to execute the request as part of a change set.
23
+ * @param createFl - Flag to execute the request as part of a new change set.
24
24
  */
25
- batch(resolve: (value?: Result) => void, appendFl?: boolean): Type;
25
+ batch(createFl: (value?: Result) => void, appendFl?: boolean): Type;
26
26
 
27
27
  /**
28
28
  * Method to execute the request.
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/lib/base.d.ts CHANGED
@@ -12,17 +12,17 @@ export interface IBaseExecution<Type = any, Result = Type> {
12
12
  /**
13
13
  * Method to execute the request as a batch.
14
14
  * Currently available in SharePoint Online only.
15
- * @param appendFl - Flag to execute the request as part of a change set.
15
+ * @param createFl - Flag to execute the request as part of a new change set.
16
16
  */
17
- batch(appendFl?: boolean): Type;
17
+ batch(createFl?: boolean): Type;
18
18
 
19
19
  /**
20
20
  * Method to execute the request as a batch.
21
21
  * Currently available in SharePoint Online only.
22
22
  * @param resolve - The method to be executed after the request completes.
23
- * @param appendFl - Flag to execute the request as part of a change set.
23
+ * @param createFl - Flag to execute the request as part of a new change set.
24
24
  */
25
- batch(resolve: (value?: Result) => void, appendFl?: boolean): Type;
25
+ batch(createFl: (value?: Result) => void, appendFl?: boolean): Type;
26
26
 
27
27
  /**
28
28
  * Method to execute the request.
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.0",
3
+ "version": "1.1.3",
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",