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.
- package/build/helper/listForm.js +2 -2
- package/build/mapper/def.js +2 -2
- package/build/rest.js +1 -1
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +2 -2
package/build/helper/listForm.js
CHANGED
|
@@ -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
|
package/build/mapper/def.js
CHANGED
|
@@ -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: ["
|
|
1810
|
-
requestType: utils_1.RequestType.
|
|
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