gd-sprest 9.2.9 → 9.3.1
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 +1 -0
- package/@types/sptypes/sptypes.d.ts +19 -0
- package/build/lib/web.js +1 -7
- package/build/mapper/def.js +2 -2
- package/build/rest.js +1 -1
- package/build/sptypes/sptypes.js +19 -1
- package/dist/gd-sprest.d.ts +20 -0
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +2 -2
|
@@ -48,6 +48,7 @@ export interface ISPTypes {
|
|
|
48
48
|
RenderListDataOptions: Types.IRenderListDataOptions;
|
|
49
49
|
ReorderingRuleMatchType: Types.IReorderingRuleMatchType;
|
|
50
50
|
RoleType: Types.IRoleType;
|
|
51
|
+
SearchResultSource: Types.ISearchResultSource;
|
|
51
52
|
SearchScope: Types.ISearchScope;
|
|
52
53
|
StatusPriColor: Types.IStatusPriColor;
|
|
53
54
|
UrlFormatType: Types.IUrlFormatType;
|
|
@@ -1416,6 +1416,25 @@ export type IRoleType = {
|
|
|
1416
1416
|
WebDesigner: number
|
|
1417
1417
|
};
|
|
1418
1418
|
|
|
1419
|
+
/**
|
|
1420
|
+
* Search Result Source
|
|
1421
|
+
*/
|
|
1422
|
+
export interface ISearchResultSource {
|
|
1423
|
+
Conversations: string,
|
|
1424
|
+
Documents: string,
|
|
1425
|
+
LocalPeopleResults: string,
|
|
1426
|
+
LocalReportsAndDataResults: string,
|
|
1427
|
+
LocalSharePointResults: string,
|
|
1428
|
+
LocalVideoResults: string,
|
|
1429
|
+
Pages: string,
|
|
1430
|
+
Pictures: string,
|
|
1431
|
+
Popular: string,
|
|
1432
|
+
RecentlyChangedItems: string,
|
|
1433
|
+
RecommendedItems: string,
|
|
1434
|
+
SharePointGlobalSearch: string,
|
|
1435
|
+
Wiki: string
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1419
1438
|
/**
|
|
1420
1439
|
* Search Scope
|
|
1421
1440
|
*/
|
package/build/lib/web.js
CHANGED
|
@@ -30,17 +30,11 @@ exports.Web.getRemoteWeb = (function (requestUrl) {
|
|
|
30
30
|
});
|
|
31
31
|
// Static method to get the sharing settings
|
|
32
32
|
exports.Web.getSharingSettings = (function (data, query) {
|
|
33
|
-
// See if we are querying the information
|
|
34
|
-
if (query) {
|
|
35
|
-
var oData = new utils_1.OData(query);
|
|
36
|
-
// Update the url
|
|
37
|
-
data.objectUrl += "?" + oData.QueryString;
|
|
38
|
-
}
|
|
39
33
|
// Return the sharing settings
|
|
40
34
|
return new utils_1.Base({
|
|
41
35
|
data: data,
|
|
42
36
|
defaultToWebFl: true,
|
|
43
|
-
endpoint: "SP.Web.GetObjectSharingSettings",
|
|
37
|
+
endpoint: "SP.Web.GetObjectSharingSettings" + (query ? "?" + (new utils_1.OData(query)).QueryString : ""),
|
|
44
38
|
method: "POST"
|
|
45
39
|
});
|
|
46
40
|
});
|
package/build/mapper/def.js
CHANGED
|
@@ -1806,8 +1806,8 @@ exports.Mapper = {
|
|
|
1806
1806
|
"AvailableApps|Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata.Collection|/getById('[Name]')|Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata"
|
|
1807
1807
|
],
|
|
1808
1808
|
add: {
|
|
1809
|
-
argNames: ["
|
|
1810
|
-
requestType: utils_1.RequestType.
|
|
1809
|
+
argNames: ["Url", "Overwrite", "Content"],
|
|
1810
|
+
requestType: utils_1.RequestType.PostWithArgsAndData
|
|
1811
1811
|
},
|
|
1812
1812
|
query: { argNames: ["oData"], requestType: utils_1.RequestType.OData },
|
|
1813
1813
|
},
|
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.SearchScope = exports.RoleType = exports.ReorderingRuleMatchType = exports.RenderListDataOptions = exports.RelationshipDeleteBehaviorType = exports.PropertyPaneType = exports.PrincipalTypes = exports.PrincipalSources = exports.PersonalSiteCapabilities = exports.PersonalizationScope = exports.PageType = exports.ModalDialogResult = exports.LocaleLCIDType = exports.ListWriteSecurity = exports.ListTemplateType = exports.ListReadSecurity = exports.ListExperienceOptions = exports.FriendlyDateFormat = exports.FormDisplayMode = 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.DisplayMode = exports.DateFormat = exports.ControlMode = exports.CloudEnvironment = exports.ClientTemplatesUtility = exports.ClientSidePageLayout = 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.SearchSourceId = exports.SearchScope = exports.RoleType = exports.ReorderingRuleMatchType = exports.RenderListDataOptions = exports.RelationshipDeleteBehaviorType = exports.PropertyPaneType = exports.PrincipalTypes = exports.PrincipalSources = exports.PersonalSiteCapabilities = exports.PersonalizationScope = exports.PageType = exports.ModalDialogResult = exports.LocaleLCIDType = exports.ListWriteSecurity = exports.ListTemplateType = exports.ListReadSecurity = exports.ListExperienceOptions = exports.FriendlyDateFormat = exports.FormDisplayMode = 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.DisplayMode = exports.DateFormat = exports.ControlMode = exports.CloudEnvironment = exports.ClientTemplatesUtility = exports.ClientSidePageLayout = exports.ChoiceFormatType = exports.CheckOutType = exports.CheckInType = exports.CalendarTypes = exports.BasePermissionTypes = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Base Permission Types
|
|
6
6
|
*/
|
|
@@ -750,6 +750,24 @@ exports.SearchScope = {
|
|
|
750
750
|
Hub: 2,
|
|
751
751
|
Site: 3
|
|
752
752
|
};
|
|
753
|
+
/**
|
|
754
|
+
* Search Source Ids
|
|
755
|
+
*/
|
|
756
|
+
exports.SearchSourceId = {
|
|
757
|
+
Conversations: "459dd1b7-216f-4386-9709-287d5d22f568",
|
|
758
|
+
Documents: "e7ec8cee-ded8-43c9-beb5-436b54b31e84",
|
|
759
|
+
LocalPeopleResults: "b09a7990-05ea-4af9-81ef-edfab16c4e31",
|
|
760
|
+
LocalReportsAndDataResults: "203fba36-2763-4060-9931-8beafc7b6d3c",
|
|
761
|
+
LocalSharePointResults: "8413cd39-2156-4e00-b54d-11efd9abdb89",
|
|
762
|
+
LocalVideoResults: "78b793ce-7956-4669-aa3b-451fc5defebf",
|
|
763
|
+
Pages: "5e34578e-4d08-4edc-8bf3-002acf3cdbcc",
|
|
764
|
+
Pictures: "38403c8c-3975-41a8-826e-717f2d41568a",
|
|
765
|
+
Popular: "97c71db1-58ce-4891-8b64-585bc2326c12",
|
|
766
|
+
RecentlyChangedItems: "ba63bbae-fa9c-42c0-b027-9a878f16557c",
|
|
767
|
+
RecommendedItems: "ec675252-14fa-4fbe-84dd-8d098ed74181",
|
|
768
|
+
SharePointGlobalSearch: "e7ec8cee-ded8-43c9-beb5-436b54b31e84",
|
|
769
|
+
Wiki: "9479bf85-e257-4318-b5a8-81a180f5faa1"
|
|
770
|
+
};
|
|
753
771
|
/**
|
|
754
772
|
* Status Pri Color
|
|
755
773
|
*/
|
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -473,6 +473,7 @@ declare module 'gd-sprest/sptypes' {
|
|
|
473
473
|
RenderListDataOptions: Types.IRenderListDataOptions;
|
|
474
474
|
ReorderingRuleMatchType: Types.IReorderingRuleMatchType;
|
|
475
475
|
RoleType: Types.IRoleType;
|
|
476
|
+
SearchResultSource: Types.ISearchResultSource;
|
|
476
477
|
SearchScope: Types.ISearchScope;
|
|
477
478
|
StatusPriColor: Types.IStatusPriColor;
|
|
478
479
|
UrlFormatType: Types.IUrlFormatType;
|
|
@@ -6084,6 +6085,25 @@ declare module 'gd-sprest/sptypes/sptypes' {
|
|
|
6084
6085
|
WebDesigner: number
|
|
6085
6086
|
};
|
|
6086
6087
|
|
|
6088
|
+
/**
|
|
6089
|
+
* Search Result Source
|
|
6090
|
+
*/
|
|
6091
|
+
export interface ISearchResultSource {
|
|
6092
|
+
Conversations: string,
|
|
6093
|
+
Documents: string,
|
|
6094
|
+
LocalPeopleResults: string,
|
|
6095
|
+
LocalReportsAndDataResults: string,
|
|
6096
|
+
LocalSharePointResults: string,
|
|
6097
|
+
LocalVideoResults: string,
|
|
6098
|
+
Pages: string,
|
|
6099
|
+
Pictures: string,
|
|
6100
|
+
Popular: string,
|
|
6101
|
+
RecentlyChangedItems: string,
|
|
6102
|
+
RecommendedItems: string,
|
|
6103
|
+
SharePointGlobalSearch: string,
|
|
6104
|
+
Wiki: string
|
|
6105
|
+
}
|
|
6106
|
+
|
|
6087
6107
|
/**
|
|
6088
6108
|
* Search Scope
|
|
6089
6109
|
*/
|