gd-sprest 7.2.3 → 7.2.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.
@@ -195,7 +195,7 @@ export interface IListFormField {
195
195
  create(props: IListFormFieldInfo): PromiseLike<IListFormFieldInfo>;
196
196
 
197
197
  /** Method to get or create the associated folder for a list's image field. */
198
- getOrCreateImageFolder(info: IListFormImageFieldInfo): PromiseLike<SP.Folder>;
198
+ getOrCreateImageFolder(info: IListFormResult): PromiseLike<SP.Folder>;
199
199
 
200
200
  /** Method to load the lookup data */
201
201
  loadLookupData(info: IListFormLookupFieldInfo, queryTop?: number): PromiseLike<Array<IListItemQuery>>;
@@ -157,7 +157,7 @@ exports.ListFormField = {
157
157
  });
158
158
  })().then(function (siteAssets) {
159
159
  // Get the list id folder
160
- siteAssets.RootFolder().Folders(info.listId).execute(
160
+ siteAssets.RootFolder().Folders(info.list.Id).execute(
161
161
  // Exists
162
162
  function (folder) {
163
163
  // Resolve the request
@@ -166,7 +166,7 @@ exports.ListFormField = {
166
166
  // Doesn't Exist
167
167
  function () {
168
168
  // Create the folder
169
- siteAssets.RootFolder().Folders().add(info.listId).execute(function (folder) {
169
+ siteAssets.RootFolder().Folders().add(info.list.Id).execute(function (folder) {
170
170
  // Resolve the request
171
171
  resolve(folder);
172
172
  }, reject);
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.23,
11
+ __ver: 7.24,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,
@@ -2435,7 +2435,7 @@ declare module 'gd-sprest/helper/listFormField' {
2435
2435
  create(props: IListFormFieldInfo): PromiseLike<IListFormFieldInfo>;
2436
2436
 
2437
2437
  /** Method to get or create the associated folder for a list's image field. */
2438
- getOrCreateImageFolder(info: IListFormImageFieldInfo): PromiseLike<SP.Folder>;
2438
+ getOrCreateImageFolder(info: IListFormResult): PromiseLike<SP.Folder>;
2439
2439
 
2440
2440
  /** Method to load the lookup data */
2441
2441
  loadLookupData(info: IListFormLookupFieldInfo, queryTop?: number): PromiseLike<Array<IListItemQuery>>;