gd-sprest 9.7.2 → 9.7.4
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/utils/base.d.ts +0 -3
- package/build/helper/executor.js +10 -20
- package/build/helper/fieldSchemaXML.js +85 -89
- package/build/helper/index.js +12 -28
- package/build/helper/jslink.js +124 -128
- package/build/helper/listForm.js +109 -118
- package/build/helper/listFormField.js +62 -65
- package/build/helper/methods/addContentEditorWebPart.js +9 -17
- package/build/helper/methods/addPermissionLevel.js +12 -16
- package/build/helper/methods/addScriptEditorWebPart.js +9 -17
- package/build/helper/methods/copyPermissionLevel.js +22 -26
- package/build/helper/methods/createContentType.js +96 -19
- package/build/helper/methods/createDocSet.js +10 -14
- package/build/helper/methods/getCurrentTheme.js +26 -31
- package/build/helper/methods/hasPermissions.js +8 -13
- package/build/helper/methods/index.js +16 -32
- package/build/helper/methods/loadSPCore.js +13 -17
- package/build/helper/methods/parse.js +5 -9
- package/build/helper/methods/request.js +4 -8
- package/build/helper/methods/setContentTypeFields.js +71 -79
- package/build/helper/methods/setGroupOwner.js +6 -10
- package/build/helper/methods/setWebProperty.js +26 -30
- package/build/helper/methods/stringify.js +3 -7
- package/build/helper/methods/webWorker.js +40 -20
- package/build/helper/ribbonLink.js +10 -14
- package/build/helper/sbLink.js +11 -15
- package/build/helper/sp/calloutManager.js +22 -25
- package/build/helper/sp/index.js +13 -16
- package/build/helper/sp/modalDialog.js +32 -35
- package/build/helper/sp/notify.js +9 -12
- package/build/helper/sp/ribbon.js +1 -4
- package/build/helper/sp/sod.js +9 -18
- package/build/helper/sp/status.js +18 -21
- package/build/helper/spCfg.js +232 -259
- package/build/helper/spCfgTypes.js +2 -5
- package/build/helper/taxonomy.js +144 -182
- package/build/helper/webpart.js +110 -94
- package/build/index.js +6 -23
- package/build/lib/apps.js +4 -7
- package/build/lib/contextInfo.js +217 -781
- package/build/lib/directorySession.js +4 -7
- package/build/lib/graph.js +16 -19
- package/build/lib/groupService.js +4 -7
- package/build/lib/groupSiteManager.js +4 -7
- package/build/lib/hubSites.js +11 -25
- package/build/lib/hubSitesUtility.js +4 -7
- package/build/lib/index.js +27 -43
- package/build/lib/list.js +49 -53
- package/build/lib/navigation.js +4 -7
- package/build/lib/peopleManager.js +4 -7
- package/build/lib/peoplePicker.js +4 -7
- package/build/lib/profileLoader.js +4 -7
- package/build/lib/search.js +30 -33
- package/build/lib/sensitivityLabels.js +6 -9
- package/build/lib/site.js +20 -35
- package/build/lib/siteIconManager.js +4 -7
- package/build/lib/siteManager.js +4 -7
- package/build/lib/sitePages.js +37 -51
- package/build/lib/socialFeed.js +13 -16
- package/build/lib/themeManager.js +4 -7
- package/build/lib/userProfile.js +4 -7
- package/build/lib/utility.js +12 -17
- package/build/lib/web.js +34 -49
- package/build/lib/webTemplateExtensions.js +4 -7
- package/build/lib/wfInstanceService.js +4 -7
- package/build/lib/wfSubscriptionService.js +4 -7
- package/build/mapper/custom/audit.js +3 -6
- package/build/mapper/custom/graph.js +13 -16
- package/build/mapper/custom/index.js +8 -24
- package/build/mapper/custom/odata.js +3 -6
- package/build/mapper/custom/old.js +42 -45
- package/build/mapper/custom/peoplePicker.js +4 -7
- package/build/mapper/custom/propertyValues.js +3 -6
- package/build/mapper/custom/utility.js +17 -20
- package/build/mapper/custom/webTemplateExtensions.js +19 -22
- package/build/mapper/def.js +1032 -989
- package/build/mapper/index.js +4 -9
- package/build/mapper/v2.js +2629 -2632
- package/build/rest.js +16 -19
- package/build/sptypes/graphtypes.js +694 -710
- package/build/sptypes/index.js +3 -7
- package/build/sptypes/sptypes.js +49 -52
- package/build/utils/base.js +20 -37
- package/build/utils/batch.js +53 -63
- package/build/utils/helper.js +79 -83
- package/build/utils/index.js +9 -25
- package/build/utils/methodInfo.js +88 -141
- package/build/utils/oData.js +62 -112
- package/build/utils/request.js +137 -155
- package/build/utils/requestType.js +1 -4
- package/build/utils/targetInfo.js +39 -52
- package/build/utils/xhrRequest.js +59 -107
- package/build/v2/drive.js +9 -13
- package/build/v2/drives.js +8 -12
- package/build/v2/index.js +3 -19
- package/build/v2/sites.js +61 -65
- package/dist/gd-sprest.d.ts +0 -3
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +2 -2
package/build/lib/utility.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Utility = void 0;
|
|
4
|
-
var utils_1 = require("../utils");
|
|
1
|
+
import { Base, Request, RequestType } from "../utils";
|
|
5
2
|
/**
|
|
6
3
|
* Utility
|
|
7
4
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export const Utility = ((url, targetInfo) => {
|
|
6
|
+
let base = new Base(targetInfo);
|
|
7
|
+
let utility = base;
|
|
11
8
|
// Default the properties
|
|
12
9
|
base.targetInfo.defaultToWebFl = true;
|
|
13
10
|
base.targetInfo.endpoint = "SP.Utilities.Utility";
|
|
@@ -17,11 +14,10 @@ exports.Utility = (function (url, targetInfo) {
|
|
|
17
14
|
base.targetInfo.url = url;
|
|
18
15
|
}
|
|
19
16
|
// Add the methods
|
|
20
|
-
|
|
17
|
+
Request.addMethods(utility, { __metadata: { type: "utility" } });
|
|
21
18
|
// Method to create a wiki page
|
|
22
|
-
utility.createWikiPage =
|
|
23
|
-
|
|
24
|
-
var parameters = {
|
|
19
|
+
utility.createWikiPage = (listUrl, content = "") => {
|
|
20
|
+
let parameters = {
|
|
25
21
|
ServerRelativeUrl: listUrl,
|
|
26
22
|
WikiHtmlContent: content
|
|
27
23
|
};
|
|
@@ -30,15 +26,14 @@ exports.Utility = (function (url, targetInfo) {
|
|
|
30
26
|
argNames: ["parameters"],
|
|
31
27
|
name: "SP.Utilities.Utility.CreateWikiPageInContextWeb",
|
|
32
28
|
replaceEndpointFl: true,
|
|
33
|
-
requestType:
|
|
29
|
+
requestType: RequestType.PostWithArgsInBody
|
|
34
30
|
}, [parameters]);
|
|
35
31
|
};
|
|
36
32
|
// Method to send an email
|
|
37
|
-
utility.sendEmail =
|
|
33
|
+
utility.sendEmail = (properties) => {
|
|
38
34
|
// Parse the email properties
|
|
39
|
-
for (
|
|
40
|
-
|
|
41
|
-
var propValue = properties[propName];
|
|
35
|
+
for (let propName of ["To", "CC", "BCC"]) {
|
|
36
|
+
let propValue = properties[propName];
|
|
42
37
|
// Ensure the value exists
|
|
43
38
|
if (propValue) {
|
|
44
39
|
// See if it's a string
|
|
@@ -59,7 +54,7 @@ exports.Utility = (function (url, targetInfo) {
|
|
|
59
54
|
metadataType: "SP.Utilities.EmailProperties",
|
|
60
55
|
name: "SP.Utilities.Utility.sendEmail",
|
|
61
56
|
replaceEndpointFl: true,
|
|
62
|
-
requestType:
|
|
57
|
+
requestType: RequestType.PostWithArgsInBody
|
|
63
58
|
}, [properties]);
|
|
64
59
|
};
|
|
65
60
|
// Return the utility
|
package/build/lib/web.js
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Web = void 0;
|
|
15
|
-
var utils_1 = require("../utils");
|
|
16
|
-
var contextInfo_1 = require("./contextInfo");
|
|
17
|
-
var graph_1 = require("./graph");
|
|
18
|
-
exports.Web = (function (url, targetInfo) {
|
|
19
|
-
var web = new utils_1.Base(targetInfo);
|
|
1
|
+
import { Base, OData, Request, RequestType } from "../utils";
|
|
2
|
+
import { ContextInfo } from "./contextInfo";
|
|
3
|
+
import { Graph } from "./graph";
|
|
4
|
+
export const Web = ((url, targetInfo) => {
|
|
5
|
+
let web = new Base(targetInfo);
|
|
20
6
|
// Default the properties
|
|
21
7
|
web.targetInfo.defaultToWebFl = true;
|
|
22
8
|
web.targetInfo.endpoint = "web";
|
|
@@ -26,60 +12,59 @@ exports.Web = (function (url, targetInfo) {
|
|
|
26
12
|
web.targetInfo.url = url;
|
|
27
13
|
}
|
|
28
14
|
// Add the methods
|
|
29
|
-
|
|
15
|
+
Request.addMethods(web, { __metadata: { type: "SP.Web" } });
|
|
30
16
|
// Return the web
|
|
31
17
|
return web;
|
|
32
18
|
});
|
|
33
19
|
// Method to get the onedive web for the current user
|
|
34
|
-
|
|
35
|
-
if (targetInfo === void 0) { targetInfo = {}; }
|
|
20
|
+
Web.getOneDrive = (targetInfo = {}) => {
|
|
36
21
|
// Set the url of the drive
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
let host = document.location.host.split('.');
|
|
23
|
+
let url = `https://${host[0]}-my.${host[1]}.${host[2]}/personal/${ContextInfo.userPrincipalName.replace(/[@,.]/g, '_')}`;
|
|
39
24
|
// Return the web for the user's onedrive
|
|
40
|
-
return
|
|
25
|
+
return Web(url, Object.assign(Object.assign({}, targetInfo), {
|
|
41
26
|
requestHeader: {
|
|
42
|
-
Authorization: "Bearer " +
|
|
27
|
+
Authorization: "Bearer " + Graph.Token,
|
|
43
28
|
Accept: "application/json",
|
|
44
29
|
"Content-Type": "application/json"
|
|
45
30
|
}
|
|
46
31
|
}));
|
|
47
32
|
};
|
|
48
33
|
// Static method to get a remote web
|
|
49
|
-
|
|
34
|
+
Web.getRemoteWeb = ((requestUrl) => {
|
|
50
35
|
// Return the remote web information
|
|
51
|
-
return new
|
|
52
|
-
data: { requestUrl
|
|
36
|
+
return new Base({
|
|
37
|
+
data: { requestUrl },
|
|
53
38
|
defaultToWebFl: true,
|
|
54
39
|
endpoint: "SP.RemoteWeb?$expand=Web",
|
|
55
40
|
method: "POST"
|
|
56
41
|
});
|
|
57
42
|
});
|
|
58
43
|
// Static method to get the sharing settings
|
|
59
|
-
|
|
44
|
+
Web.getSharingSettings = ((data, query) => {
|
|
60
45
|
// Return the sharing settings
|
|
61
|
-
return new
|
|
62
|
-
data
|
|
46
|
+
return new Base({
|
|
47
|
+
data,
|
|
63
48
|
defaultToWebFl: true,
|
|
64
|
-
endpoint: "SP.Web.GetObjectSharingSettings" + (query ? "?" + (new
|
|
49
|
+
endpoint: "SP.Web.GetObjectSharingSettings" + (query ? "?" + (new OData(query)).QueryString : ""),
|
|
65
50
|
method: "POST"
|
|
66
51
|
});
|
|
67
52
|
});
|
|
68
53
|
// Static method to get the url of a web from a page url
|
|
69
|
-
|
|
54
|
+
Web.getWebUrlFromPageUrl = ((pageUrl) => {
|
|
70
55
|
// Return the remote web information
|
|
71
|
-
return new
|
|
56
|
+
return new Base({
|
|
72
57
|
endpoint: "SP.Web.GetWebUrlFromPageUrl(@v)?@v='" + pageUrl + "'",
|
|
73
58
|
method: "POST"
|
|
74
59
|
});
|
|
75
60
|
});
|
|
76
61
|
// Static method to execute a process query request
|
|
77
|
-
|
|
62
|
+
Web.processQuery = (query, webUrl) => {
|
|
78
63
|
// Minify the xml query
|
|
79
|
-
|
|
64
|
+
let data = query.replace(/\r?\n/g, '').replace(/ /g, '');
|
|
80
65
|
// Return a promise
|
|
81
|
-
return new Promise(
|
|
82
|
-
|
|
66
|
+
return new Promise((resolve, reject) => {
|
|
67
|
+
let processResponse = (resp) => {
|
|
83
68
|
// See if there was an error
|
|
84
69
|
if (resp[0] && resp[0].ErrorInfo) {
|
|
85
70
|
// Reject the request
|
|
@@ -94,33 +79,33 @@ exports.Web.processQuery = function (query, webUrl) {
|
|
|
94
79
|
// See if the web url exist
|
|
95
80
|
if (webUrl) {
|
|
96
81
|
// Get the context information for the web
|
|
97
|
-
|
|
82
|
+
ContextInfo.getWeb(webUrl).execute(
|
|
98
83
|
// Success
|
|
99
|
-
|
|
84
|
+
ctx => {
|
|
100
85
|
// Execute the request
|
|
101
|
-
(new
|
|
102
|
-
data
|
|
86
|
+
(new Base({
|
|
87
|
+
data,
|
|
103
88
|
endpoint: "_vti_bin/client.svc/ProcessQuery",
|
|
104
89
|
method: "POST",
|
|
105
90
|
requestDigest: ctx.GetContextWebInformation.FormDigestValue,
|
|
106
|
-
requestType:
|
|
91
|
+
requestType: RequestType.Post,
|
|
107
92
|
url: webUrl
|
|
108
93
|
})).execute(processResponse, reject);
|
|
109
94
|
},
|
|
110
95
|
// Error
|
|
111
|
-
|
|
96
|
+
() => {
|
|
112
97
|
// Reject the request
|
|
113
98
|
reject("Error getting the context information for the web.");
|
|
114
99
|
});
|
|
115
100
|
}
|
|
116
101
|
else {
|
|
117
102
|
// Execute the request
|
|
118
|
-
(new
|
|
119
|
-
data
|
|
103
|
+
(new Base({
|
|
104
|
+
data,
|
|
120
105
|
endpoint: "_vti_bin/client.svc/ProcessQuery",
|
|
121
106
|
method: "POST",
|
|
122
|
-
requestDigest:
|
|
123
|
-
requestType:
|
|
107
|
+
requestDigest: ContextInfo.formDigestValue,
|
|
108
|
+
requestType: RequestType.Post,
|
|
124
109
|
})).execute(processResponse, reject);
|
|
125
110
|
}
|
|
126
111
|
});
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebTemplateExtensions = void 0;
|
|
4
|
-
var utils_1 = require("../utils");
|
|
1
|
+
import { Base, Request } from "../utils";
|
|
5
2
|
/**
|
|
6
3
|
* Web Template Extensions
|
|
7
4
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
export const WebTemplateExtensions = ((url, targetInfo) => {
|
|
6
|
+
let webTemplateExtensions = new Base(targetInfo);
|
|
10
7
|
// Default the properties
|
|
11
8
|
webTemplateExtensions.targetInfo.defaultToWebFl = true;
|
|
12
9
|
webTemplateExtensions.targetInfo.endpoint = "Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility";
|
|
@@ -16,7 +13,7 @@ exports.WebTemplateExtensions = (function (url, targetInfo) {
|
|
|
16
13
|
webTemplateExtensions.targetInfo.url = url;
|
|
17
14
|
}
|
|
18
15
|
// Add the methods
|
|
19
|
-
|
|
16
|
+
Request.addMethods(webTemplateExtensions, { __metadata: { type: "webTemplateExtensions" } });
|
|
20
17
|
// Return the web template extension utilities
|
|
21
18
|
return webTemplateExtensions;
|
|
22
19
|
});
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowInstanceService = void 0;
|
|
4
|
-
var utils_1 = require("../utils");
|
|
1
|
+
import { Base, Request } from "../utils";
|
|
5
2
|
/**
|
|
6
3
|
* Workflow Instance Service
|
|
7
4
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
export const WorkflowInstanceService = ((url, targetInfo) => {
|
|
6
|
+
let wfs = new Base(targetInfo);
|
|
10
7
|
// Default the properties
|
|
11
8
|
wfs.targetInfo.defaultToWebFl = true;
|
|
12
9
|
wfs.targetInfo.endpoint = "SP.WorkflowServices.WorkflowInstanceService.Current";
|
|
@@ -16,7 +13,7 @@ exports.WorkflowInstanceService = (function (url, targetInfo) {
|
|
|
16
13
|
wfs.targetInfo.url = url;
|
|
17
14
|
}
|
|
18
15
|
// Add the methods
|
|
19
|
-
|
|
16
|
+
Request.addMethods(wfs, { __metadata: { type: "SP.WorkflowServices.WorkflowInstanceService" } });
|
|
20
17
|
// Return the workflow service
|
|
21
18
|
return wfs;
|
|
22
19
|
});
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowSubscriptionService = void 0;
|
|
4
|
-
var utils_1 = require("../utils");
|
|
1
|
+
import { Base, Request } from "../utils";
|
|
5
2
|
/**
|
|
6
3
|
* Workflow Subscription Service
|
|
7
4
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
export const WorkflowSubscriptionService = ((url, targetInfo) => {
|
|
6
|
+
let wfs = new Base(targetInfo);
|
|
10
7
|
// Default the properties
|
|
11
8
|
wfs.targetInfo.defaultToWebFl = true;
|
|
12
9
|
wfs.targetInfo.endpoint = "SP.WorkflowServices.WorkflowSubscriptionService.Current";
|
|
@@ -16,7 +13,7 @@ exports.WorkflowSubscriptionService = (function (url, targetInfo) {
|
|
|
16
13
|
wfs.targetInfo.url = url;
|
|
17
14
|
}
|
|
18
15
|
// Add the methods
|
|
19
|
-
|
|
16
|
+
Request.addMethods(wfs, { __metadata: { type: "SP.WorkflowServices.WorkflowSubscriptionService" } });
|
|
20
17
|
// Return the workflow service
|
|
21
18
|
return wfs;
|
|
22
19
|
});
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.audit = void 0;
|
|
4
|
-
var utils_1 = require("../../utils");
|
|
1
|
+
import { RequestType } from "../../utils";
|
|
5
2
|
/**
|
|
6
3
|
* Audit
|
|
7
4
|
*/
|
|
8
|
-
|
|
5
|
+
export const audit = {
|
|
9
6
|
// Queries the collection
|
|
10
7
|
query: {
|
|
11
8
|
argNames: ["oData"],
|
|
12
|
-
requestType:
|
|
9
|
+
requestType: RequestType.OData
|
|
13
10
|
}
|
|
14
11
|
};
|
|
@@ -1,66 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.graph = void 0;
|
|
4
|
-
var utils_1 = require("../../utils");
|
|
1
|
+
import { RequestType } from "../../utils";
|
|
5
2
|
/**
|
|
6
3
|
* Graph
|
|
7
4
|
*/
|
|
8
|
-
|
|
5
|
+
export const graph = {
|
|
9
6
|
// Me
|
|
10
7
|
me: {
|
|
11
|
-
requestType:
|
|
8
|
+
requestType: RequestType.GraphGet
|
|
12
9
|
},
|
|
13
10
|
// Group
|
|
14
11
|
group: {
|
|
15
12
|
argNames: ["id"],
|
|
16
13
|
name: "groups/[[id]]",
|
|
17
|
-
requestType:
|
|
14
|
+
requestType: RequestType.GraphGetReplace
|
|
18
15
|
},
|
|
19
16
|
// Groups
|
|
20
17
|
groups: {
|
|
21
18
|
name: "groups",
|
|
22
|
-
requestType:
|
|
19
|
+
requestType: RequestType.GraphGet
|
|
23
20
|
},
|
|
24
21
|
// List
|
|
25
22
|
list: {
|
|
26
23
|
argNames: ["siteId", "id"],
|
|
27
24
|
name: "sites/[[siteId]]/lists/[[id]]",
|
|
28
|
-
requestType:
|
|
25
|
+
requestType: RequestType.GraphGetReplace
|
|
29
26
|
},
|
|
30
27
|
// Lists
|
|
31
28
|
lists: {
|
|
32
29
|
argNames: ["siteId"],
|
|
33
30
|
name: "sites/[[siteId]]/lists",
|
|
34
|
-
requestType:
|
|
31
|
+
requestType: RequestType.GraphGetReplace
|
|
35
32
|
},
|
|
36
33
|
// Queries the collection
|
|
37
34
|
query: {
|
|
38
35
|
argNames: ["oData"],
|
|
39
|
-
requestType:
|
|
36
|
+
requestType: RequestType.OData
|
|
40
37
|
},
|
|
41
38
|
// Root Site
|
|
42
39
|
root: {
|
|
43
|
-
requestType:
|
|
40
|
+
requestType: RequestType.GraphGet
|
|
44
41
|
},
|
|
45
42
|
// Site
|
|
46
43
|
site: {
|
|
47
44
|
argNames: ["id"],
|
|
48
45
|
name: "sites/[[id]]",
|
|
49
|
-
requestType:
|
|
46
|
+
requestType: RequestType.GraphGetReplace
|
|
50
47
|
},
|
|
51
48
|
// Sites
|
|
52
49
|
sites: {
|
|
53
50
|
name: "sites",
|
|
54
|
-
requestType:
|
|
51
|
+
requestType: RequestType.GraphGet
|
|
55
52
|
},
|
|
56
53
|
// User
|
|
57
54
|
user: {
|
|
58
55
|
argNames: ["id"],
|
|
59
56
|
name: "users/[[id]]",
|
|
60
|
-
requestType:
|
|
57
|
+
requestType: RequestType.GraphGetReplace
|
|
61
58
|
},
|
|
62
59
|
// Users
|
|
63
60
|
users: {
|
|
64
|
-
requestType:
|
|
61
|
+
requestType: RequestType.GraphGet
|
|
65
62
|
},
|
|
66
63
|
};
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./audit"), exports);
|
|
18
|
-
__exportStar(require("./graph"), exports);
|
|
19
|
-
__exportStar(require("./odata"), exports);
|
|
20
|
-
__exportStar(require("./old"), exports);
|
|
21
|
-
__exportStar(require("./peoplePicker"), exports);
|
|
22
|
-
__exportStar(require("./propertyValues"), exports);
|
|
23
|
-
__exportStar(require("./utility"), exports);
|
|
24
|
-
__exportStar(require("./webTemplateExtensions"), exports);
|
|
1
|
+
export * from "./audit";
|
|
2
|
+
export * from "./graph";
|
|
3
|
+
export * from "./odata";
|
|
4
|
+
export * from "./old";
|
|
5
|
+
export * from "./peoplePicker";
|
|
6
|
+
export * from "./propertyValues";
|
|
7
|
+
export * from "./utility";
|
|
8
|
+
export * from "./webTemplateExtensions";
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.odata = void 0;
|
|
4
|
-
var utils_1 = require("../../utils");
|
|
1
|
+
import { RequestType } from "../../utils";
|
|
5
2
|
/**
|
|
6
3
|
* OData
|
|
7
4
|
*/
|
|
8
|
-
|
|
5
|
+
export const odata = {
|
|
9
6
|
// Adds the odata query option
|
|
10
|
-
query: { argNames: ["oData"], requestType:
|
|
7
|
+
query: { argNames: ["oData"], requestType: RequestType.OData }
|
|
11
8
|
};
|
|
@@ -1,48 +1,45 @@
|
|
|
1
|
-
|
|
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.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
|
-
var def_1 = require("../def");
|
|
1
|
+
import { Mapper } from "../def";
|
|
5
2
|
/**
|
|
6
3
|
* This is required for dynamic metadata types
|
|
7
4
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
5
|
+
export const attachmentfiles = Mapper["SP.Attachment.Collection"];
|
|
6
|
+
export const eventreceiver = Mapper["SP.EventReceiverDefinition"];
|
|
7
|
+
export const eventreceivers = Mapper["SP.EventReceiverDefinition.Collection"];
|
|
8
|
+
export const features = Mapper["SP.Feature.Collection"];
|
|
9
|
+
export const field = Mapper["SP.Field"];
|
|
10
|
+
export const fields = Mapper["SP.Field.Collection"];
|
|
11
|
+
export const fieldlinks = Mapper["SP.FieldLink.Collection"];
|
|
12
|
+
export const file = Mapper["SP.File"];
|
|
13
|
+
export const files = Mapper["SP.File.Collection"];
|
|
14
|
+
export const fileversion = Mapper["SP.FileVersion"];
|
|
15
|
+
export const fileversions = Mapper["SP.FileVersion.Collection"];
|
|
16
|
+
export const folder = Mapper["SP.Folder"];
|
|
17
|
+
export const folders = Mapper["SP.Folder.Collection"];
|
|
18
|
+
export const group = Mapper["SP.Group"];
|
|
19
|
+
export const sitegroups = Mapper["SP.Directory.Group.Collection"];
|
|
20
|
+
export const limitedwebpartmanager = Mapper["SP.WebParts.LimitedWebPartManager"];
|
|
21
|
+
export const list = Mapper["SP.List"];
|
|
22
|
+
export const lists = Mapper["SP.List.Collection"];
|
|
23
|
+
export const listitem = Mapper["SP.ListItem"];
|
|
24
|
+
export const items = Mapper["SP.ListItem.Collection"];
|
|
25
|
+
export const roleassignment = Mapper["SP.RoleAssignment"];
|
|
26
|
+
export const roleassignments = Mapper["SP.RoleAssignment.Collection"];
|
|
27
|
+
export const roledefinition = Mapper["SP.RoleDefinition"];
|
|
28
|
+
export const roledefinitions = Mapper["SP.RoleDefinition.Collection"];
|
|
29
|
+
export const search = Mapper["Microsoft.Office.Server.Search.REST.SearchService"];
|
|
30
|
+
export const site = Mapper["SP.Site"];
|
|
31
|
+
export const sitecollectionappcatalog = Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionCorporateCatalogAccessor"];
|
|
32
|
+
export const tenantapp = Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata"];
|
|
33
|
+
export const tenantapps = Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata.Collection"];
|
|
34
|
+
export const tenantappcatalog = Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TenantCorporateCatalogAccessor"];
|
|
35
|
+
export const user = Mapper["SP.User"];
|
|
36
|
+
export const users = Mapper["SP.User.Collection"];
|
|
37
|
+
export const usercustomaction = Mapper["SP.UserCustomAction"];
|
|
38
|
+
export const usercustomactions = Mapper["SP.UserCustomAction.Collection"];
|
|
39
|
+
export const versions = Mapper["SP.FileVersion.Collection"];
|
|
40
|
+
export const view = Mapper["SP.View"];
|
|
41
|
+
export const views = Mapper["SP.View.Collection"];
|
|
42
|
+
export const viewfieldcollection = Mapper["SP.ViewFieldCollection"];
|
|
43
|
+
export const web = Mapper["SP.Web"];
|
|
44
|
+
export const webs = Mapper["SP.Web.Collection"];
|
|
45
|
+
export const webinfos = Mapper["SP.WebInformation.Collection"];
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.peoplepicker = void 0;
|
|
4
|
-
var utils_1 = require("../../utils");
|
|
1
|
+
import { RequestType } from "../../utils";
|
|
5
2
|
/**
|
|
6
3
|
* People Picker
|
|
7
4
|
*/
|
|
8
|
-
|
|
5
|
+
export const peoplepicker = {
|
|
9
6
|
clientPeoplePickerResolveUser: {
|
|
10
7
|
argNames: ["queryParams"],
|
|
11
8
|
metadataType: "SP.UI.ApplicationPages.ClientPeoplePickerQueryParameters",
|
|
12
9
|
name: "SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.ClientPeoplePickerResolveUser",
|
|
13
10
|
replaceEndpointFl: true,
|
|
14
|
-
requestType:
|
|
11
|
+
requestType: RequestType.PostWithArgsInBody
|
|
15
12
|
},
|
|
16
13
|
clientPeoplePickerSearchUser: {
|
|
17
14
|
argNames: ["queryParams"],
|
|
18
15
|
metadataType: "SP.UI.ApplicationPages.ClientPeoplePickerQueryParameters",
|
|
19
16
|
name: "SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.ClientPeoplePickerSearchUser",
|
|
20
17
|
replaceEndpointFl: true,
|
|
21
|
-
requestType:
|
|
18
|
+
requestType: RequestType.PostWithArgsInBody
|
|
22
19
|
}
|
|
23
20
|
};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.propertyvalues = void 0;
|
|
4
|
-
var utils_1 = require("../../utils");
|
|
1
|
+
import { RequestType } from "../../utils";
|
|
5
2
|
/**
|
|
6
3
|
* Property Values
|
|
7
4
|
*/
|
|
8
|
-
|
|
5
|
+
export const propertyvalues = {
|
|
9
6
|
// Queries the collection
|
|
10
7
|
query: {
|
|
11
8
|
argNames: ["oData"],
|
|
12
|
-
requestType:
|
|
9
|
+
requestType: RequestType.OData
|
|
13
10
|
}
|
|
14
11
|
};
|