gd-sprest 9.3.0 → 9.3.2

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.
@@ -528,6 +528,8 @@ exports.ListForm = {
528
528
  if (formValues === void 0) { formValues = {}; }
529
529
  // Return a promise
530
530
  return new Promise(function (resolve, reject) {
531
+ // Set the metadata type
532
+ formValues["__metadata"] = formValues["__metadata"] || { type: info.list.ListItemEntityTypeFullName };
531
533
  // See if this is an existing item
532
534
  if (info.item && info.item.update) {
533
535
  // Set the request properties if we are checking the item version
@@ -549,8 +551,6 @@ exports.ListForm = {
549
551
  }, reject);
550
552
  }
551
553
  else {
552
- // Set the metadata type
553
- formValues["__metadata"] = { type: info.list.ListItemEntityTypeFullName };
554
554
  // Add the item
555
555
  info.list.Items().add(formValues).execute(function (item) {
556
556
  // Update the info
@@ -1806,8 +1806,8 @@ exports.Mapper = {
1806
1806
  "AvailableApps|Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata.Collection|/getById('[Name]')|Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata"
1807
1807
  ],
1808
1808
  add: {
1809
- argNames: ["Title", "Url", "Description"],
1810
- requestType: utils_1.RequestType.PostWithArgsInBody
1809
+ argNames: ["Url", "Overwrite", "Content"],
1810
+ requestType: utils_1.RequestType.PostWithArgsAndData
1811
1811
  },
1812
1812
  query: { argNames: ["oData"], requestType: utils_1.RequestType.OData },
1813
1813
  },
package/build/rest.js CHANGED
@@ -9,7 +9,7 @@ var sptypes_1 = require("./sptypes");
9
9
  * SharePoint REST Library
10
10
  */
11
11
  exports.$REST = {
12
- __ver: 9.30,
12
+ __ver: 9.32,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,