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.
- package/@types/helper/listFormField.d.ts +2 -2
- package/@types/sptypes/sptypes.d.ts +3 -0
- package/build/helper/listFormField.js +2 -2
- package/build/rest.js +1 -1
- package/build/sptypes/sptypes.js +1 -0
- package/dist/gd-sprest.d.ts +5 -2
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
|
@@ -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:
|
|
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.
|
|
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.
|
|
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
package/build/sptypes/sptypes.js
CHANGED
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -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:
|
|
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
|
|