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
|
@@ -1,95 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.utility = void 0;
|
|
4
|
-
var utils_1 = require("../../utils");
|
|
1
|
+
import { RequestType } from "../../utils";
|
|
5
2
|
/**
|
|
6
3
|
* Utility
|
|
7
4
|
*/
|
|
8
|
-
|
|
5
|
+
export const utility = {
|
|
9
6
|
createEmailBodyForInvitation: {
|
|
10
7
|
argNames: ["pageAddress"],
|
|
11
8
|
name: "SP.Utilities.Utility.CreateEmailBodyForInvitation",
|
|
12
9
|
replaceEndpointFl: true,
|
|
13
|
-
requestType:
|
|
10
|
+
requestType: RequestType.PostWithArgsInBody
|
|
14
11
|
},
|
|
15
12
|
createWikiPage: {
|
|
16
13
|
argNames: ["parameters"],
|
|
17
14
|
name: "SP.Utilities.Utility.CreateWikiPageInContextWeb",
|
|
18
15
|
replaceEndpointFl: true,
|
|
19
|
-
requestType:
|
|
16
|
+
requestType: RequestType.PostWithArgsInBody
|
|
20
17
|
},
|
|
21
18
|
getAppLicenseDeploymentId: {
|
|
22
19
|
name: "SP.Utilities.Utility.GetAppLicenseDeploymentId",
|
|
23
20
|
replaceEndpointFl: true,
|
|
24
|
-
requestType:
|
|
21
|
+
requestType: RequestType.Get
|
|
25
22
|
},
|
|
26
23
|
getAppLicenseInformation: {
|
|
27
24
|
name: "SP.Utilities.Utility.GetAppLicenseInformation",
|
|
28
25
|
replaceEndpointFl: true,
|
|
29
|
-
requestType:
|
|
26
|
+
requestType: RequestType.Get
|
|
30
27
|
},
|
|
31
28
|
getCurrentUserEmailAddresses: {
|
|
32
29
|
name: "SP.Utilities.Utility.GetCurrentUserEmailAddresses",
|
|
33
30
|
replaceEndpointFl: true,
|
|
34
|
-
requestType:
|
|
31
|
+
requestType: RequestType.Get
|
|
35
32
|
},
|
|
36
33
|
getLocalizedString: {
|
|
37
34
|
argNames: ["sourceValue"],
|
|
38
35
|
name: "SP.Utilities.Utility.GetLocalizedString",
|
|
39
36
|
replaceEndpointFl: true,
|
|
40
|
-
requestType:
|
|
37
|
+
requestType: RequestType.GetWithArgsValueOnly
|
|
41
38
|
},
|
|
42
39
|
getLowerCaseString: {
|
|
43
40
|
argNames: ["sourceValue", "lcid"],
|
|
44
41
|
name: "SP.Utilities.Utility.GetLowerCaseString",
|
|
45
42
|
replaceEndpointFl: true,
|
|
46
|
-
requestType:
|
|
43
|
+
requestType: RequestType.PostWithArgsInBody
|
|
47
44
|
},
|
|
48
45
|
importAppLicense: {
|
|
49
46
|
argNames: ["url"],
|
|
50
47
|
name: "SP.Utilities.Utility.ImportAppLicense",
|
|
51
48
|
replaceEndpointFl: true,
|
|
52
|
-
requestType:
|
|
49
|
+
requestType: RequestType.PostWithArgs
|
|
53
50
|
},
|
|
54
51
|
isUserLicensedForEntityInContext: {
|
|
55
52
|
argNames: ["url"],
|
|
56
53
|
name: "SP.Utilities.Utility.IsUserLicensedForEntityInContext",
|
|
57
54
|
replaceEndpointFl: true,
|
|
58
|
-
requestType:
|
|
55
|
+
requestType: RequestType.PostWithArgs
|
|
59
56
|
},
|
|
60
57
|
localizeWebPartGallery: {
|
|
61
58
|
argNames: ["url"],
|
|
62
59
|
name: "SP.Utilities.Utility.LocalizeWebPartGallery",
|
|
63
60
|
replaceEndpointFl: true,
|
|
64
|
-
requestType:
|
|
61
|
+
requestType: RequestType.PostWithArgs
|
|
65
62
|
},
|
|
66
63
|
markDiscussionAsFeatured: {
|
|
67
64
|
argNames: ["url"],
|
|
68
65
|
name: "SP.Utilities.Utility.MarkDiscussionAsFeatured",
|
|
69
66
|
replaceEndpointFl: true,
|
|
70
|
-
requestType:
|
|
67
|
+
requestType: RequestType.PostWithArgs
|
|
71
68
|
},
|
|
72
69
|
resolvePrincipal: {
|
|
73
70
|
name: "SP.Utilities.Utility.ResolvePrincipalInCurrentContext",
|
|
74
71
|
replaceEndpointFl: true,
|
|
75
|
-
requestType:
|
|
72
|
+
requestType: RequestType.Post
|
|
76
73
|
},
|
|
77
74
|
searchPrincipals: {
|
|
78
75
|
name: "SP.Utilities.Utility.SearchPrincipalsUsingContextWeb",
|
|
79
76
|
replaceEndpointFl: true,
|
|
80
|
-
requestType:
|
|
77
|
+
requestType: RequestType.Post
|
|
81
78
|
},
|
|
82
79
|
sendEmail: {
|
|
83
80
|
argNames: ["properties"],
|
|
84
81
|
metadataType: "SP.Utilities.EmailProperties",
|
|
85
82
|
name: "SP.Utilities.Utility.sendEmail",
|
|
86
83
|
replaceEndpointFl: true,
|
|
87
|
-
requestType:
|
|
84
|
+
requestType: RequestType.PostWithArgsInBody
|
|
88
85
|
},
|
|
89
86
|
unmarkDiscussionAsFeatured: {
|
|
90
87
|
argNames: ["url"],
|
|
91
88
|
name: "SP.Utilities.Utility.UnmarkDiscussionAsFeatured",
|
|
92
89
|
replaceEndpointFl: true,
|
|
93
|
-
requestType:
|
|
90
|
+
requestType: RequestType.PostWithArgsInBody
|
|
94
91
|
}
|
|
95
92
|
};
|
|
@@ -1,112 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webtemplateextensions = void 0;
|
|
4
|
-
var utils_1 = require("../../utils");
|
|
1
|
+
import { RequestType } from "../../utils";
|
|
5
2
|
/**
|
|
6
3
|
* Web Template Extensions
|
|
7
4
|
* https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-rest-api
|
|
8
5
|
*/
|
|
9
|
-
|
|
6
|
+
export const webtemplateextensions = {
|
|
10
7
|
applySiteDesign: {
|
|
11
8
|
argNames: ["siteDesignId", "webUrl"],
|
|
12
9
|
appendEndpointFl: true,
|
|
13
10
|
name: "ApplySiteDesign",
|
|
14
|
-
requestType:
|
|
11
|
+
requestType: RequestType.PostWithArgsInBody
|
|
15
12
|
},
|
|
16
13
|
addSiteDesignTaskToCurrentWeb: {
|
|
17
14
|
argNames: ["siteDesignId"],
|
|
18
15
|
appendEndpointFl: true,
|
|
19
16
|
name: "AddSiteDesignTaskToCurrentWeb",
|
|
20
|
-
requestType:
|
|
17
|
+
requestType: RequestType.PostWithArgsInBody
|
|
21
18
|
},
|
|
22
19
|
createSiteDesign: {
|
|
23
20
|
argNames: ["info"],
|
|
24
21
|
appendEndpointFl: true,
|
|
25
22
|
name: "CreateSiteDesign",
|
|
26
|
-
requestType:
|
|
23
|
+
requestType: RequestType.PostWithArgsInBody
|
|
27
24
|
},
|
|
28
25
|
createSiteScript: {
|
|
29
26
|
argNames: ["title", "content"],
|
|
30
27
|
appendEndpointFl: true,
|
|
31
28
|
name: "CreateSiteScript(@title)?@title='[[title]]",
|
|
32
|
-
requestType:
|
|
29
|
+
requestType: RequestType.PostReplaceWithData
|
|
33
30
|
},
|
|
34
31
|
deleteSiteDesign: {
|
|
35
32
|
argNames: ["id"],
|
|
36
33
|
appendEndpointFl: true,
|
|
37
34
|
name: "DeleteSiteDesign",
|
|
38
|
-
requestType:
|
|
35
|
+
requestType: RequestType.PostWithArgsInBody
|
|
39
36
|
},
|
|
40
37
|
deleteSiteScript: {
|
|
41
38
|
argNames: ["id"],
|
|
42
39
|
appendEndpointFl: true,
|
|
43
40
|
name: "DeleteSiteScript",
|
|
44
|
-
requestType:
|
|
41
|
+
requestType: RequestType.PostWithArgsInBody
|
|
45
42
|
},
|
|
46
43
|
getSiteDesigns: {
|
|
47
44
|
argNames: [],
|
|
48
45
|
appendEndpointFl: true,
|
|
49
46
|
name: "GetSiteDesigns",
|
|
50
|
-
requestType:
|
|
47
|
+
requestType: RequestType.Post
|
|
51
48
|
},
|
|
52
49
|
getSiteDesignMetadata: {
|
|
53
50
|
argNames: ["id"],
|
|
54
51
|
appendEndpointFl: true,
|
|
55
52
|
name: "GetSiteDesignMetadata",
|
|
56
|
-
requestType:
|
|
53
|
+
requestType: RequestType.PostWithArgsInBody
|
|
57
54
|
},
|
|
58
55
|
getSiteScripts: {
|
|
59
56
|
argNames: [],
|
|
60
57
|
appendEndpointFl: true,
|
|
61
58
|
name: "GetSiteScripts",
|
|
62
|
-
requestType:
|
|
59
|
+
requestType: RequestType.Post
|
|
63
60
|
},
|
|
64
61
|
getSiteScriptFromWeb: {
|
|
65
62
|
argNames: ["webUrl", "info"],
|
|
66
63
|
appendEndpointFl: true,
|
|
67
64
|
name: "GetSiteScriptFromWeb",
|
|
68
|
-
requestType:
|
|
65
|
+
requestType: RequestType.PostWithArgsInBody
|
|
69
66
|
},
|
|
70
67
|
getSiteScriptFromList: {
|
|
71
68
|
argNames: ["listUrl"],
|
|
72
69
|
appendEndpointFl: true,
|
|
73
70
|
name: "GetSiteScriptFromList",
|
|
74
|
-
requestType:
|
|
71
|
+
requestType: RequestType.PostWithArgsInBody
|
|
75
72
|
},
|
|
76
73
|
getSiteScriptMetadata: {
|
|
77
74
|
argNames: ["id"],
|
|
78
75
|
appendEndpointFl: true,
|
|
79
76
|
name: "GetSiteScriptMetadata",
|
|
80
|
-
requestType:
|
|
77
|
+
requestType: RequestType.PostWithArgsInBody
|
|
81
78
|
},
|
|
82
79
|
getSiteDesignRights: {
|
|
83
80
|
argNames: ["id"],
|
|
84
81
|
appendEndpointFl: true,
|
|
85
82
|
name: "GetSiteDesignRights",
|
|
86
|
-
requestType:
|
|
83
|
+
requestType: RequestType.PostWithArgsInBody
|
|
87
84
|
},
|
|
88
85
|
grantSiteDesignRights: {
|
|
89
86
|
argNames: ["id", "principalNames", "grantedRights"],
|
|
90
87
|
appendEndpointFl: true,
|
|
91
88
|
name: "GrantSiteDesignRights",
|
|
92
|
-
requestType:
|
|
89
|
+
requestType: RequestType.PostWithArgsInBody
|
|
93
90
|
},
|
|
94
91
|
revokeSiteDesignRights: {
|
|
95
92
|
argNames: ["id", "principalNames"],
|
|
96
93
|
appendEndpointFl: true,
|
|
97
94
|
name: "RevokeSiteDesignRights",
|
|
98
|
-
requestType:
|
|
95
|
+
requestType: RequestType.PostWithArgsInBody
|
|
99
96
|
},
|
|
100
97
|
updateSiteDesign: {
|
|
101
98
|
argNames: ["updateInfo"],
|
|
102
99
|
appendEndpointFl: true,
|
|
103
100
|
name: "UpdateSiteDesign",
|
|
104
|
-
requestType:
|
|
101
|
+
requestType: RequestType.PostWithArgsInBody
|
|
105
102
|
},
|
|
106
103
|
updateSiteScript: {
|
|
107
104
|
argNames: ["updateInfo"],
|
|
108
105
|
appendEndpointFl: true,
|
|
109
106
|
name: "UpdateSiteScript",
|
|
110
|
-
requestType:
|
|
107
|
+
requestType: RequestType.PostWithArgsInBody
|
|
111
108
|
}
|
|
112
109
|
};
|