gd-sprest 7.2.4 → 7.2.6
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/index.d.ts +2 -0
- package/@types/sptypes/sptypes.d.ts +19 -0
- package/build/rest.js +1 -1
- package/build/sptypes/sptypes.js +27 -1
- package/dist/gd-sprest.d.ts +23 -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: IListFormResult): PromiseLike<
|
|
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>>;
|
|
@@ -18,6 +18,7 @@ export interface ISPTypes {
|
|
|
18
18
|
DraftVisibilityType: Types.IDraftVisibilityType;
|
|
19
19
|
EventReceiverType: Types.IEventReceiverType;
|
|
20
20
|
EventReceiverSynchronizationType: Types.IEventReceiverSynchronizationType;
|
|
21
|
+
EnvironmentType: Types.IEnvironmentType;
|
|
21
22
|
FieldIndexStatus: Types.IFieldIndexStatus;
|
|
22
23
|
FieldNoteType: Types.IFieldNoteType;
|
|
23
24
|
FieldNumberType: Types.IFieldNumberType;
|
|
@@ -26,6 +27,7 @@ export interface ISPTypes {
|
|
|
26
27
|
FieldUserSelectionType: Types.IFieldUserSelectionType;
|
|
27
28
|
FileLevelType: Types.IFileLevelType;
|
|
28
29
|
FileTemplateType: Types.IFileTemplateType;
|
|
30
|
+
FormDisplayMode: Types.IFormDisplayMode;
|
|
29
31
|
FriendlyDateFormat: Types.IFriendlyDateFormat;
|
|
30
32
|
GetUserEffectivePermissionsResult: Types.IGetUserEffectivePermissionsResult;
|
|
31
33
|
ListExperienceOptions: Types.IListExperienceOptions;
|
|
@@ -446,6 +446,16 @@ export type IEventReceiverSynchronizationType = {
|
|
|
446
446
|
Synchronization: number
|
|
447
447
|
};
|
|
448
448
|
|
|
449
|
+
/**
|
|
450
|
+
* Environment Type
|
|
451
|
+
*/
|
|
452
|
+
export type IEnvironmentType = {
|
|
453
|
+
ClassicSharePoint: number,
|
|
454
|
+
Local: number,
|
|
455
|
+
SharePoint: number,
|
|
456
|
+
Test: number
|
|
457
|
+
}
|
|
458
|
+
|
|
449
459
|
/**
|
|
450
460
|
* Field Index Status
|
|
451
461
|
*/
|
|
@@ -653,6 +663,15 @@ export type IFileTemplateType = {
|
|
|
653
663
|
WikiPage: number
|
|
654
664
|
};
|
|
655
665
|
|
|
666
|
+
/**
|
|
667
|
+
* Form Display Mode
|
|
668
|
+
*/
|
|
669
|
+
export type IFormDisplayMode = {
|
|
670
|
+
Display: number,
|
|
671
|
+
Edit: number,
|
|
672
|
+
New: number
|
|
673
|
+
}
|
|
674
|
+
|
|
656
675
|
/**
|
|
657
676
|
* Friendly Date Format
|
|
658
677
|
*/
|
package/build/rest.js
CHANGED
package/build/sptypes/sptypes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebTemplateType = exports.ViewType = exports.UserCustomActionRegistrationType = exports.URLZones = exports.UrlFormatType = exports.StatusPriColor = exports.RoleType = exports.ReorderingRuleMatchType = exports.RenderListDataOptions = exports.RelationshipDeleteBehaviorType = exports.PrincipalTypes = exports.PrincipalSources = exports.PersonalSiteCapabilities = exports.PersonalizationScope = exports.PageType = exports.ModalDialogResult = exports.LocaleLCIDType = exports.ListTemplateType = exports.ListExperienceOptions = exports.FriendlyDateFormat = exports.FileTemplateType = exports.FileLevelType = exports.FieldUserSelectionType = exports.FieldType = exports.FieldResultType = exports.FieldNumberType = exports.FieldNoteType = exports.EventReceiverType = exports.EventReceiverSynchronizationType = exports.DraftVisibilityType = exports.DateFormat = exports.ControlMode = exports.CloudEnvironment = exports.ClientSidePageLayout = exports.ClientTemplatesUtility = exports.ChoiceFormatType = exports.CheckOutType = exports.CheckInType = exports.CalendarTypes = exports.BasePermissionTypes = void 0;
|
|
3
|
+
exports.WebTemplateType = exports.ViewType = exports.UserCustomActionRegistrationType = exports.URLZones = exports.UrlFormatType = exports.StatusPriColor = exports.RoleType = exports.ReorderingRuleMatchType = exports.RenderListDataOptions = exports.RelationshipDeleteBehaviorType = exports.PrincipalTypes = exports.PrincipalSources = exports.PersonalSiteCapabilities = exports.PersonalizationScope = exports.PageType = exports.ModalDialogResult = exports.LocaleLCIDType = exports.ListTemplateType = exports.ListExperienceOptions = exports.FriendlyDateFormat = exports.IFormDisplayMode = exports.FileTemplateType = exports.FileLevelType = exports.FieldUserSelectionType = exports.FieldType = exports.FieldResultType = exports.FieldNumberType = exports.FieldNoteType = exports.FieldIndexStatus = exports.EnvironmentType = exports.EventReceiverType = exports.EventReceiverSynchronizationType = exports.DraftVisibilityType = exports.DateFormat = exports.ControlMode = exports.CloudEnvironment = exports.ClientSidePageLayout = exports.ClientTemplatesUtility = exports.ChoiceFormatType = exports.CheckOutType = exports.CheckInType = exports.CalendarTypes = exports.BasePermissionTypes = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Base Permission Types
|
|
6
6
|
*/
|
|
@@ -201,6 +201,24 @@ exports.EventReceiverType = {
|
|
|
201
201
|
EmailReceived: 20000,
|
|
202
202
|
ContextEvent: 32766
|
|
203
203
|
};
|
|
204
|
+
/**
|
|
205
|
+
* Environment Type
|
|
206
|
+
*/
|
|
207
|
+
exports.EnvironmentType = {
|
|
208
|
+
ClassicSharePoint: 3,
|
|
209
|
+
Local: 1,
|
|
210
|
+
SharePoint: 2,
|
|
211
|
+
Test: 0
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Field Index Status
|
|
215
|
+
*/
|
|
216
|
+
exports.FieldIndexStatus = {
|
|
217
|
+
None: 0,
|
|
218
|
+
Indexed: 1,
|
|
219
|
+
Enabling: 2,
|
|
220
|
+
Disabling: 3
|
|
221
|
+
};
|
|
204
222
|
/**
|
|
205
223
|
* Field Note Types
|
|
206
224
|
*/
|
|
@@ -291,6 +309,14 @@ exports.FileLevelType = { Published: 1, Draft: 2, Checkout: 3 };
|
|
|
291
309
|
* File Template Types
|
|
292
310
|
*/
|
|
293
311
|
exports.FileTemplateType = { StandardPage: 0, WikiPage: 1, FormPage: 2 };
|
|
312
|
+
/**
|
|
313
|
+
* Form Display Mode
|
|
314
|
+
*/
|
|
315
|
+
exports.IFormDisplayMode = {
|
|
316
|
+
Display: 4,
|
|
317
|
+
Edit: 6,
|
|
318
|
+
New: 8
|
|
319
|
+
};
|
|
294
320
|
/**
|
|
295
321
|
* Friendly Date Format
|
|
296
322
|
*/
|
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -391,6 +391,7 @@ declare module 'gd-sprest/sptypes' {
|
|
|
391
391
|
DraftVisibilityType: Types.IDraftVisibilityType;
|
|
392
392
|
EventReceiverType: Types.IEventReceiverType;
|
|
393
393
|
EventReceiverSynchronizationType: Types.IEventReceiverSynchronizationType;
|
|
394
|
+
EnvironmentType: Types.IEnvironmentType;
|
|
394
395
|
FieldIndexStatus: Types.IFieldIndexStatus;
|
|
395
396
|
FieldNoteType: Types.IFieldNoteType;
|
|
396
397
|
FieldNumberType: Types.IFieldNumberType;
|
|
@@ -399,6 +400,7 @@ declare module 'gd-sprest/sptypes' {
|
|
|
399
400
|
FieldUserSelectionType: Types.IFieldUserSelectionType;
|
|
400
401
|
FileLevelType: Types.IFileLevelType;
|
|
401
402
|
FileTemplateType: Types.IFileTemplateType;
|
|
403
|
+
FormDisplayMode: Types.IFormDisplayMode;
|
|
402
404
|
FriendlyDateFormat: Types.IFriendlyDateFormat;
|
|
403
405
|
GetUserEffectivePermissionsResult: Types.IGetUserEffectivePermissionsResult;
|
|
404
406
|
ListExperienceOptions: Types.IListExperienceOptions;
|
|
@@ -2239,7 +2241,7 @@ declare module 'gd-sprest/helper/listForm' {
|
|
|
2239
2241
|
|
|
2240
2242
|
declare module 'gd-sprest/helper/listFormField' {
|
|
2241
2243
|
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";
|
|
2244
|
+
import { Field, FieldChoice, FieldCurrency, FieldDateTime, FieldLookup, FieldMultiChoice, FieldMultiLineText, FieldNumber, FieldOData, FieldText, FieldUrl, FieldUser, Folder, IListItemQuery } from "gd-sprest-def/lib/SP/entitytypes";
|
|
2243
2245
|
import { ITaxonomyField, TaxonomyField } from "gd-sprest-def/lib/SP/Taxonomy/entitytypes";
|
|
2244
2246
|
import { ITermInfo } from "gd-sprest/helper/taxonomy";
|
|
2245
2247
|
|
|
@@ -2435,7 +2437,7 @@ declare module 'gd-sprest/helper/listFormField' {
|
|
|
2435
2437
|
create(props: IListFormFieldInfo): PromiseLike<IListFormFieldInfo>;
|
|
2436
2438
|
|
|
2437
2439
|
/** Method to get or create the associated folder for a list's image field. */
|
|
2438
|
-
getOrCreateImageFolder(info: IListFormResult): PromiseLike<
|
|
2440
|
+
getOrCreateImageFolder(info: IListFormResult): PromiseLike<Folder>;
|
|
2439
2441
|
|
|
2440
2442
|
/** Method to load the lookup data */
|
|
2441
2443
|
loadLookupData(info: IListFormLookupFieldInfo, queryTop?: number): PromiseLike<Array<IListItemQuery>>;
|
|
@@ -4453,6 +4455,16 @@ declare module 'gd-sprest/sptypes/sptypes' {
|
|
|
4453
4455
|
Synchronization: number
|
|
4454
4456
|
};
|
|
4455
4457
|
|
|
4458
|
+
/**
|
|
4459
|
+
* Environment Type
|
|
4460
|
+
*/
|
|
4461
|
+
export type IEnvironmentType = {
|
|
4462
|
+
ClassicSharePoint: number,
|
|
4463
|
+
Local: number,
|
|
4464
|
+
SharePoint: number,
|
|
4465
|
+
Test: number
|
|
4466
|
+
}
|
|
4467
|
+
|
|
4456
4468
|
/**
|
|
4457
4469
|
* Field Index Status
|
|
4458
4470
|
*/
|
|
@@ -4660,6 +4672,15 @@ declare module 'gd-sprest/sptypes/sptypes' {
|
|
|
4660
4672
|
WikiPage: number
|
|
4661
4673
|
};
|
|
4662
4674
|
|
|
4675
|
+
/**
|
|
4676
|
+
* Form Display Mode
|
|
4677
|
+
*/
|
|
4678
|
+
export type IFormDisplayMode = {
|
|
4679
|
+
Display: number,
|
|
4680
|
+
Edit: number,
|
|
4681
|
+
New: number
|
|
4682
|
+
}
|
|
4683
|
+
|
|
4663
4684
|
/**
|
|
4664
4685
|
* Friendly Date Format
|
|
4665
4686
|
*/
|