gd-sprest 7.3.2 → 7.3.4

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.
@@ -358,6 +358,9 @@ export interface ISPCfgListInfo {
358
358
  /** The list creation information. */
359
359
  ListInformation: ListProps;
360
360
 
361
+ /** The list url name. */
362
+ ListUrlName?: string;
363
+
361
364
  /** The title default value. */
362
365
  TitleFieldDefaultValue?: string;
363
366
 
@@ -339,7 +339,7 @@ exports.SPConfig = function (cfg, webUrl) {
339
339
  // Update the list name and remove spaces
340
340
  var listInfo = cfgList.ListInformation;
341
341
  var listName = listInfo.Title;
342
- listInfo.Title = listName.replace(/ /g, "");
342
+ listInfo.Title = cfgList.ListUrlName || listName.replace(/ /g, "");
343
343
  // Add the list
344
344
  lists.add(listInfo)
345
345
  // Execute the request
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.32,
11
+ __ver: 7.34,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,
@@ -3500,6 +3500,9 @@ declare module 'gd-sprest/helper/spCfg' {
3500
3500
  /** The list creation information. */
3501
3501
  ListInformation: ListProps;
3502
3502
 
3503
+ /** The list url name. */
3504
+ ListUrlName?: string;
3505
+
3503
3506
  /** The title default value. */
3504
3507
  TitleFieldDefaultValue?: string;
3505
3508