gd-sprest 7.5.9 → 7.6.0
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/spCfg.d.ts +6 -0
- package/build/helper/fieldSchemaXML.js +6 -0
- package/build/rest.js +1 -1
- package/dist/gd-sprest.d.ts +6 -0
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
package/@types/helper/spCfg.d.ts
CHANGED
|
@@ -42,6 +42,9 @@ export interface IFieldInfo {
|
|
|
42
42
|
/** True, to allow deletion of the field. */
|
|
43
43
|
allowDeletion?: boolean;
|
|
44
44
|
|
|
45
|
+
/** The JSON property for applying a custom format to the field. */
|
|
46
|
+
customFormatter?: string;
|
|
47
|
+
|
|
45
48
|
/** The default value of the field. */
|
|
46
49
|
defaultValue?: string;
|
|
47
50
|
|
|
@@ -223,6 +226,9 @@ export interface IFieldInfoNote extends IFieldInfoText {
|
|
|
223
226
|
|
|
224
227
|
/** The number of lines */
|
|
225
228
|
numberOfLines?: number;
|
|
229
|
+
|
|
230
|
+
/** Allow unlimited length for document libraries. */
|
|
231
|
+
unlimited?: boolean;
|
|
226
232
|
}
|
|
227
233
|
|
|
228
234
|
/**
|
|
@@ -303,6 +303,9 @@ exports.FieldSchemaXML = function (fieldInfo, targetWebUrl) {
|
|
|
303
303
|
if (fieldInfo.numberOfLines > 0) {
|
|
304
304
|
props["NumLines"] = fieldInfo.numberOfLines;
|
|
305
305
|
}
|
|
306
|
+
if (fieldInfo.unlimited) {
|
|
307
|
+
props["UnlimitedLengthInDocumentLibrary"] = "TRUE";
|
|
308
|
+
}
|
|
306
309
|
// Generate the schema
|
|
307
310
|
schemaXml = "<Field " + toString(props) + " />";
|
|
308
311
|
// Resolve the request
|
|
@@ -423,6 +426,9 @@ exports.FieldSchemaXML = function (fieldInfo, targetWebUrl) {
|
|
|
423
426
|
if (typeof (fieldInfo.allowDeletion) !== "undefined") {
|
|
424
427
|
props["AllowDeletion"] = fieldInfo.allowDeletion ? "TRUE" : "FALSE";
|
|
425
428
|
}
|
|
429
|
+
if (typeof (fieldInfo.customFormatter) !== "undefined") {
|
|
430
|
+
props["CustomFormatter"] = fieldInfo.customFormatter;
|
|
431
|
+
}
|
|
426
432
|
if (typeof (fieldInfo.description) !== "undefined") {
|
|
427
433
|
props["Description"] = fieldInfo.description;
|
|
428
434
|
}
|
package/build/rest.js
CHANGED
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -3420,6 +3420,9 @@ declare module 'gd-sprest/helper/spCfg' {
|
|
|
3420
3420
|
/** True, to allow deletion of the field. */
|
|
3421
3421
|
allowDeletion?: boolean;
|
|
3422
3422
|
|
|
3423
|
+
/** The JSON property for applying a custom format to the field. */
|
|
3424
|
+
customFormatter?: string;
|
|
3425
|
+
|
|
3423
3426
|
/** The default value of the field. */
|
|
3424
3427
|
defaultValue?: string;
|
|
3425
3428
|
|
|
@@ -3601,6 +3604,9 @@ declare module 'gd-sprest/helper/spCfg' {
|
|
|
3601
3604
|
|
|
3602
3605
|
/** The number of lines */
|
|
3603
3606
|
numberOfLines?: number;
|
|
3607
|
+
|
|
3608
|
+
/** Allow unlimited length for document libraries. */
|
|
3609
|
+
unlimited?: boolean;
|
|
3604
3610
|
}
|
|
3605
3611
|
|
|
3606
3612
|
/**
|