gd-sprest 6.7.2 → 6.7.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/sptypes/index.d.ts +4 -0
- package/@types/sptypes/sptypes.d.ts +3 -0
- package/build/helper/spCfg.js +12 -9
- package/build/mapper/custom/old.js +2 -1
- package/build/mapper/def.js +4 -3
- package/build/rest.js +1 -1
- package/dist/gd-sprest.d.ts +7 -0
- package/dist/gd-sprest.js +4 -4
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export const SPTypes: ISPTypes;
|
|
|
8
8
|
export interface ISPTypes {
|
|
9
9
|
BasePermissionTypes: Types.IBasePermissionTypes;
|
|
10
10
|
CalendarType: Types.ICalendarType;
|
|
11
|
+
CheckInType: Types.ICheckInType;
|
|
11
12
|
CheckOutType: Types.ICheckOutType;
|
|
12
13
|
ChoiceFormatType: Types.IChoiceFormatType;
|
|
13
14
|
ClientTemplateUtility: Types.IClientTemplateUtility;
|
|
@@ -16,6 +17,7 @@ export interface ISPTypes {
|
|
|
16
17
|
DraftVisibilityType: Types.IDraftVisibilityType;
|
|
17
18
|
EventReceiverType: Types.IEventReceiverType;
|
|
18
19
|
EventReceiverSynchronizationType: Types.IEventReceiverSynchronizationType;
|
|
20
|
+
FieldIndexStatus: Types.IFieldIndexStatus;
|
|
19
21
|
FieldNoteType: Types.IFieldNoteType;
|
|
20
22
|
FieldNumberType: Types.IFieldNumberType;
|
|
21
23
|
FieldResultType: Types.IFieldResultType;
|
|
@@ -24,6 +26,8 @@ export interface ISPTypes {
|
|
|
24
26
|
FileLevelType: Types.IFileLevelType;
|
|
25
27
|
FileTemplateType: Types.IFileTemplateType;
|
|
26
28
|
FriendlyDateFormat: Types.IFriendlyDateFormat;
|
|
29
|
+
GetUserEffectivePermissionsResult: Types.IGetUserEffectivePermissionsResult;
|
|
30
|
+
ListExperienceOptions: Types.IListExperienceOptions;
|
|
27
31
|
ListTemplateType: Types.IListTemplateType;
|
|
28
32
|
LocaleLCIDType: Types.ILocaleLCIDType;
|
|
29
33
|
ModalDialogResult: Types.ModalDialogResult,
|
|
@@ -651,6 +651,9 @@ export interface IGetUserEffectivePermissionsResult {
|
|
|
651
651
|
GetUserEffectivePermissions: BasePermissions
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
+
/**
|
|
655
|
+
* List Experience Options
|
|
656
|
+
*/
|
|
654
657
|
export type IListExperienceOptions = {
|
|
655
658
|
/** Default set by the tenant */
|
|
656
659
|
Auto: number,
|
package/build/helper/spCfg.js
CHANGED
|
@@ -599,15 +599,18 @@ exports.SPConfig = function (cfg, webUrl) {
|
|
|
599
599
|
};
|
|
600
600
|
// Method to see if an object exists in a collection
|
|
601
601
|
var isInCollection = function (key, value, collection) {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
//
|
|
610
|
-
|
|
602
|
+
// Ensure a value exists
|
|
603
|
+
if (value) {
|
|
604
|
+
var valueLower = value ? value.toLowerCase() : "";
|
|
605
|
+
// Parse the collection
|
|
606
|
+
for (var i = 0; i < collection.length; i++) {
|
|
607
|
+
var keyValue = collection[i][key];
|
|
608
|
+
keyValue = keyValue ? keyValue.toLowerCase() : "";
|
|
609
|
+
// See if the item exists
|
|
610
|
+
if (valueLower == keyValue) {
|
|
611
|
+
// Return true
|
|
612
|
+
return collection[i];
|
|
613
|
+
}
|
|
611
614
|
}
|
|
612
615
|
}
|
|
613
616
|
// Not in the collection
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webinfos = exports.webs = exports.web = exports.viewfieldcollection = exports.views = exports.view = exports.versions = exports.usercustomactions = exports.usercustomaction = exports.users = exports.user = exports.tenantappcatalog = exports.tenantapps = exports.tenantapp = exports.site = exports.search = exports.roledefinitions = exports.roledefinition = exports.roleassignments = exports.roleassignment = exports.items = exports.listitem = exports.lists = exports.list = exports.limitedwebpartmanager = exports.sitegroups = exports.group = exports.folders = exports.folder = exports.fileversions = exports.fileversion = exports.files = exports.file = exports.fieldlinks = exports.fields = exports.field = exports.features = exports.eventreceivers = exports.eventreceiver = exports.attachmentfiles = void 0;
|
|
3
|
+
exports.webinfos = exports.webs = exports.web = exports.viewfieldcollection = exports.views = exports.view = exports.versions = exports.usercustomactions = exports.usercustomaction = exports.users = exports.user = exports.tenantappcatalog = exports.tenantapps = exports.tenantapp = exports.sitecollectionappcatalog = exports.site = exports.search = exports.roledefinitions = exports.roledefinition = exports.roleassignments = exports.roleassignment = exports.items = exports.listitem = exports.lists = exports.list = exports.limitedwebpartmanager = exports.sitegroups = exports.group = exports.folders = exports.folder = exports.fileversions = exports.fileversion = exports.files = exports.file = exports.fieldlinks = exports.fields = exports.field = exports.features = exports.eventreceivers = exports.eventreceiver = exports.attachmentfiles = void 0;
|
|
4
4
|
var def_1 = require("../def");
|
|
5
5
|
/**
|
|
6
6
|
* This is required for dynamic metadata types
|
|
@@ -31,6 +31,7 @@ exports.roledefinition = def_1.Mapper["SP.RoleDefinition"];
|
|
|
31
31
|
exports.roledefinitions = def_1.Mapper["SP.RoleDefinition.Collection"];
|
|
32
32
|
exports.search = def_1.Mapper["Microsoft.Office.Server.Search.REST.SearchService"];
|
|
33
33
|
exports.site = def_1.Mapper["SP.Site"];
|
|
34
|
+
exports.sitecollectionappcatalog = def_1.Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionCorporateCatalogAccessor"];
|
|
34
35
|
exports.tenantapp = def_1.Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata"];
|
|
35
36
|
exports.tenantapps = def_1.Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata.Collection"];
|
|
36
37
|
exports.tenantappcatalog = def_1.Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionCorporateCatalogAccessor"];
|
package/build/mapper/def.js
CHANGED
|
@@ -6020,9 +6020,10 @@ exports.Mapper = {
|
|
|
6020
6020
|
"ListTemplates|SP.ListTemplate.Collection|('[Name]')|SP.ListTemplate", "Navigation|SP.Navigation", "ParentWeb",
|
|
6021
6021
|
"PushNotificationSubscribers", "RecycleBin", "RegionalSettings", "RoleAssignments|SP.RoleAssignment.Collection|([Name])|SP.RoleAssignment",
|
|
6022
6022
|
"RoleDefinitions|SP.RoleDefinition.Collection|/getByName('[Name]')|SP.RoleDefinition", "RootFolder|SP.Folder|/getByUrl('[Name]')|SP.File",
|
|
6023
|
-
"SiteGroups|SP.Group.Collection|/getByName('[Name]')|SP.Group", "SiteUserInfoList",
|
|
6024
|
-
"TenantAppCatalog|tenantappcatalog", "ThemeInfo", "TitleResource",
|
|
6025
|
-
"
|
|
6023
|
+
"SiteCollectionAppCatalog|sitecollectionappcatalog", "SiteGroups|SP.Group.Collection|/getByName('[Name]')|SP.Group", "SiteUserInfoList",
|
|
6024
|
+
"SiteUsers|SP.User.Collection|/getById([Name])|SP.User", "TenantAppCatalog|tenantappcatalog", "ThemeInfo", "TitleResource",
|
|
6025
|
+
"UserCustomActions|SP.UserCustomAction.Collection|('[Name]')|SP.UserCustomAction", "WebInfos|SP.WebInformation.Collection",
|
|
6026
|
+
"Webs|SP.Web.Collection", "WorkflowAssociations", "WorkflowTemplates"
|
|
6026
6027
|
],
|
|
6027
6028
|
addCrossFarmMessage: {
|
|
6028
6029
|
argNames: ["messagePayloadBase64"],
|
package/build/rest.js
CHANGED
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -360,6 +360,7 @@ declare module 'gd-sprest/sptypes' {
|
|
|
360
360
|
export interface ISPTypes {
|
|
361
361
|
BasePermissionTypes: Types.IBasePermissionTypes;
|
|
362
362
|
CalendarType: Types.ICalendarType;
|
|
363
|
+
CheckInType: Types.ICheckInType;
|
|
363
364
|
CheckOutType: Types.ICheckOutType;
|
|
364
365
|
ChoiceFormatType: Types.IChoiceFormatType;
|
|
365
366
|
ClientTemplateUtility: Types.IClientTemplateUtility;
|
|
@@ -368,6 +369,7 @@ declare module 'gd-sprest/sptypes' {
|
|
|
368
369
|
DraftVisibilityType: Types.IDraftVisibilityType;
|
|
369
370
|
EventReceiverType: Types.IEventReceiverType;
|
|
370
371
|
EventReceiverSynchronizationType: Types.IEventReceiverSynchronizationType;
|
|
372
|
+
FieldIndexStatus: Types.IFieldIndexStatus;
|
|
371
373
|
FieldNoteType: Types.IFieldNoteType;
|
|
372
374
|
FieldNumberType: Types.IFieldNumberType;
|
|
373
375
|
FieldResultType: Types.IFieldResultType;
|
|
@@ -376,6 +378,8 @@ declare module 'gd-sprest/sptypes' {
|
|
|
376
378
|
FileLevelType: Types.IFileLevelType;
|
|
377
379
|
FileTemplateType: Types.IFileTemplateType;
|
|
378
380
|
FriendlyDateFormat: Types.IFriendlyDateFormat;
|
|
381
|
+
GetUserEffectivePermissionsResult: Types.IGetUserEffectivePermissionsResult;
|
|
382
|
+
ListExperienceOptions: Types.IListExperienceOptions;
|
|
379
383
|
ListTemplateType: Types.IListTemplateType;
|
|
380
384
|
LocaleLCIDType: Types.ILocaleLCIDType;
|
|
381
385
|
ModalDialogResult: Types.ModalDialogResult,
|
|
@@ -4466,6 +4470,9 @@ declare module 'gd-sprest/sptypes/sptypes' {
|
|
|
4466
4470
|
GetUserEffectivePermissions: BasePermissions
|
|
4467
4471
|
}
|
|
4468
4472
|
|
|
4473
|
+
/**
|
|
4474
|
+
* List Experience Options
|
|
4475
|
+
*/
|
|
4469
4476
|
export type IListExperienceOptions = {
|
|
4470
4477
|
/** Default set by the tenant */
|
|
4471
4478
|
Auto: number,
|