gd-sprest 6.9.2 → 6.9.5

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.
@@ -216,7 +216,10 @@ exports.ListForm = {
216
216
  }, _reject);
217
217
  }, _reject);
218
218
  }
219
+ // Else, this is a new item
219
220
  else {
221
+ // Default the attachments
222
+ _info.attachments = _props.loadAttachments ? [] : _info.attachments;
220
223
  // Resolve the promise
221
224
  _resolve(_info);
222
225
  }
@@ -26,8 +26,8 @@ exports.loadSPCore = function () {
26
26
  // Log
27
27
  console.debug("[gd-sprest] Core library already loaded: " + libName);
28
28
  }
29
- // Resolve the request
30
- resolve();
31
29
  }
30
+ // Resolve the request
31
+ resolve();
32
32
  });
33
33
  };
@@ -6191,26 +6191,32 @@ exports.Mapper = {
6191
6191
  getFileByGuestUrl: {
6192
6192
  argNames: ["guestUrl"],
6193
6193
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6194
+ returnType: "SP.File"
6194
6195
  },
6195
6196
  getFileByGuestUrlEnsureAccess: {
6196
6197
  argNames: ["guestUrl", "ensureAccess"],
6197
6198
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6199
+ returnType: "SP.File"
6198
6200
  },
6199
6201
  getFileByGuestUrlExtended: {
6200
6202
  argNames: ["guestUrl", "requestSettings"],
6201
6203
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6204
+ returnType: "SP.File"
6202
6205
  },
6203
6206
  getFileById: {
6204
6207
  argNames: ["uniqueId"],
6205
6208
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6209
+ returnType: "SP.File"
6206
6210
  },
6207
6211
  getFileByLinkingUrl: {
6208
6212
  argNames: ["linkingUrl"],
6209
6213
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6214
+ returnType: "SP.File"
6210
6215
  },
6211
6216
  getFileByServerRelativePath: {
6212
6217
  argNames: ["DecodedUrl"],
6213
6218
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6219
+ returnType: "SP.File"
6214
6220
  },
6215
6221
  getFileByServerRelativeUrl: {
6216
6222
  argNames: ["serverRelativeUrl"],
@@ -6220,26 +6226,32 @@ exports.Mapper = {
6220
6226
  getFileByUrl: {
6221
6227
  argNames: ["fileUrl"],
6222
6228
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6229
+ returnType: "SP.File"
6223
6230
  },
6224
6231
  getFileByWOPIFrameUrl: {
6225
6232
  argNames: ["wopiFrameUrl"],
6226
6233
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6234
+ returnType: "SP.File"
6227
6235
  },
6228
6236
  getFolderByGuestUrl: {
6229
6237
  argNames: ["guestUrl", "ensureAccess"],
6230
6238
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6239
+ returnType: "SP.Folder"
6231
6240
  },
6232
6241
  getFolderByGuestUrlExtended: {
6233
6242
  argNames: ["guestUrl", "requestSettings"],
6234
6243
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6244
+ returnType: "SP.Folder"
6235
6245
  },
6236
6246
  getFolderById: {
6237
6247
  argNames: ["uniqueId"],
6238
6248
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6249
+ returnType: "SP.Folder"
6239
6250
  },
6240
6251
  getFolderByServerRelativePath: {
6241
6252
  argNames: ["DecodedUrl"],
6242
6253
  requestType: utils_1.RequestType.GetWithArgsValueOnly,
6254
+ returnType: "SP.Folder"
6243
6255
  },
6244
6256
  getFolderByServerRelativeUrl: {
6245
6257
  argNames: ["serverRelativeUrl"],
package/build/rest.js CHANGED
@@ -8,7 +8,7 @@ var sptypes_1 = require("./sptypes");
8
8
  * SharePoint REST Library
9
9
  */
10
10
  exports.$REST = {
11
- __ver: 6.92,
11
+ __ver: 6.95,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,