gd-sprest 7.2.2 → 7.2.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.
@@ -1,5 +1,5 @@
1
1
  import { IODataQuery } from "gd-sprest-def/base";
2
- import { Field, FieldChoice, FieldCurrency, FieldDateTime, FieldLookup, FieldMultiChoice, FieldMultiLineText, FieldNumber, FieldOData, FieldText, FieldUrl, FieldUser, IListItemQuery } from "gd-sprest-def/lib/SP/entitytypes";
2
+ import { Field, FieldChoice, FieldCurrency, FieldDateTime, FieldLookup, FieldMultiChoice, FieldMultiLineText, FieldNumber, FieldOData, FieldText, FieldUrl, FieldUser, Folder, IListItemQuery } from "gd-sprest-def/lib/SP/entitytypes";
3
3
  import { ITaxonomyField, TaxonomyField } from "gd-sprest-def/lib/SP/Taxonomy/entitytypes";
4
4
  import { ITermInfo } from "./taxonomy";
5
5
 
@@ -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<Folder>;
199
199
 
200
200
  /** Method to load the lookup data */
201
201
  loadLookupData(info: IListFormLookupFieldInfo, queryTop?: number): PromiseLike<Array<IListItemQuery>>;
@@ -559,6 +559,9 @@ export type IFieldType = {
559
559
  /** Specifies that the field contains a GUID value. */
560
560
  Guid: number,
561
561
 
562
+ /** Specifies that the field is an image. */
563
+ Image: number,
564
+
562
565
  /** Specifies that the field contains an integer value. */
563
566
  Integer: number,
564
567
 
@@ -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.21,
11
+ __ver: 7.25,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,
@@ -260,6 +260,7 @@ exports.FieldType = {
260
260
  Geolocation: 31,
261
261
  GridChoice: 16,
262
262
  Guid: 14,
263
+ Image: 34,
263
264
  Integer: 1,
264
265
  Invalid: 0,
265
266
  Lookup: 7,
@@ -2239,7 +2239,7 @@ declare module 'gd-sprest/helper/listForm' {
2239
2239
 
2240
2240
  declare module 'gd-sprest/helper/listFormField' {
2241
2241
  import { IODataQuery } from "gd-sprest-def/base";
2242
- import { Field, FieldChoice, FieldCurrency, FieldDateTime, FieldLookup, FieldMultiChoice, FieldMultiLineText, FieldNumber, FieldOData, FieldText, FieldUrl, FieldUser, IListItemQuery } from "gd-sprest-def/lib/SP/entitytypes";
2242
+ import { Field, FieldChoice, FieldCurrency, FieldDateTime, FieldLookup, FieldMultiChoice, FieldMultiLineText, FieldNumber, FieldOData, FieldText, FieldUrl, FieldUser, Folder, IListItemQuery } from "gd-sprest-def/lib/SP/entitytypes";
2243
2243
  import { ITaxonomyField, TaxonomyField } from "gd-sprest-def/lib/SP/Taxonomy/entitytypes";
2244
2244
  import { ITermInfo } from "gd-sprest/helper/taxonomy";
2245
2245
 
@@ -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<Folder>;
2439
2439
 
2440
2440
  /** Method to load the lookup data */
2441
2441
  loadLookupData(info: IListFormLookupFieldInfo, queryTop?: number): PromiseLike<Array<IListItemQuery>>;
@@ -4566,6 +4566,9 @@ declare module 'gd-sprest/sptypes/sptypes' {
4566
4566
  /** Specifies that the field contains a GUID value. */
4567
4567
  Guid: number,
4568
4568
 
4569
+ /** Specifies that the field is an image. */
4570
+ Image: number,
4571
+
4569
4572
  /** Specifies that the field contains an integer value. */
4570
4573
  Integer: number,
4571
4574