gd-sprest 7.5.5 → 7.5.7

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.
@@ -55,8 +55,9 @@ export interface IListForm {
55
55
 
56
56
  /**
57
57
  * Method to show the file dialog.
58
+ * @param accept - The acceptable file extensions to allow.
58
59
  */
59
- showFileDialog(): PromiseLike<IListFormAttachmentInfo>;
60
+ showFileDialog(accept?: string[]): PromiseLike<IListFormAttachmentInfo>;
60
61
 
61
62
  /**
62
63
  * Method to show the file dialog.
@@ -17,7 +17,7 @@ export interface IHubSites {
17
17
  * Creates an instance of the user profile library.
18
18
  * @param targetInfo - (Optional) The target information.
19
19
  */
20
- (targetInfo?: ITargetInfoProps): IHubSiteCollection;
20
+ (targetInfo?: ITargetInfoProps): IBaseExecution<IHubSiteCollection>;
21
21
 
22
22
  /**
23
23
  * A static method to see if the current user can create a hub site.
@@ -577,7 +577,6 @@ exports.ListForm = {
577
577
  var reader = new FileReader();
578
578
  // Set the file loaded event
579
579
  reader.onloadend = function (ev) {
580
- var attachment = null;
581
580
  var ext = srcFile.name.split(".");
582
581
  ext = ext[ext.length - 1].toLowerCase();
583
582
  // See if the info exists
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: 7.55,
11
+ __ver: 7.57,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,
@@ -1313,7 +1313,7 @@ declare module 'gd-sprest/lib/hubSites' {
1313
1313
  * Creates an instance of the user profile library.
1314
1314
  * @param targetInfo - (Optional) The target information.
1315
1315
  */
1316
- (targetInfo?: ITargetInfoProps): IHubSiteCollection;
1316
+ (targetInfo?: ITargetInfoProps): IBaseExecution<IHubSiteCollection>;
1317
1317
 
1318
1318
  /**
1319
1319
  * A static method to see if the current user can create a hub site.
@@ -2329,8 +2329,9 @@ declare module 'gd-sprest/helper/listForm' {
2329
2329
 
2330
2330
  /**
2331
2331
  * Method to show the file dialog.
2332
+ * @param accept - The acceptable file extensions to allow.
2332
2333
  */
2333
- showFileDialog(): PromiseLike<IListFormAttachmentInfo>;
2334
+ showFileDialog(accept?: string[]): PromiseLike<IListFormAttachmentInfo>;
2334
2335
 
2335
2336
  /**
2336
2337
  * Method to show the file dialog.