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.
Files changed (100) hide show
  1. package/@types/utils/base.d.ts +0 -3
  2. package/build/helper/executor.js +10 -20
  3. package/build/helper/fieldSchemaXML.js +85 -89
  4. package/build/helper/index.js +12 -28
  5. package/build/helper/jslink.js +124 -128
  6. package/build/helper/listForm.js +109 -118
  7. package/build/helper/listFormField.js +62 -65
  8. package/build/helper/methods/addContentEditorWebPart.js +9 -17
  9. package/build/helper/methods/addPermissionLevel.js +12 -16
  10. package/build/helper/methods/addScriptEditorWebPart.js +9 -17
  11. package/build/helper/methods/copyPermissionLevel.js +22 -26
  12. package/build/helper/methods/createContentType.js +96 -19
  13. package/build/helper/methods/createDocSet.js +10 -14
  14. package/build/helper/methods/getCurrentTheme.js +26 -31
  15. package/build/helper/methods/hasPermissions.js +8 -13
  16. package/build/helper/methods/index.js +16 -32
  17. package/build/helper/methods/loadSPCore.js +13 -17
  18. package/build/helper/methods/parse.js +5 -9
  19. package/build/helper/methods/request.js +4 -8
  20. package/build/helper/methods/setContentTypeFields.js +71 -79
  21. package/build/helper/methods/setGroupOwner.js +6 -10
  22. package/build/helper/methods/setWebProperty.js +26 -30
  23. package/build/helper/methods/stringify.js +3 -7
  24. package/build/helper/methods/webWorker.js +40 -20
  25. package/build/helper/ribbonLink.js +10 -14
  26. package/build/helper/sbLink.js +11 -15
  27. package/build/helper/sp/calloutManager.js +22 -25
  28. package/build/helper/sp/index.js +13 -16
  29. package/build/helper/sp/modalDialog.js +32 -35
  30. package/build/helper/sp/notify.js +9 -12
  31. package/build/helper/sp/ribbon.js +1 -4
  32. package/build/helper/sp/sod.js +9 -18
  33. package/build/helper/sp/status.js +18 -21
  34. package/build/helper/spCfg.js +232 -259
  35. package/build/helper/spCfgTypes.js +2 -5
  36. package/build/helper/taxonomy.js +144 -182
  37. package/build/helper/webpart.js +110 -94
  38. package/build/index.js +6 -23
  39. package/build/lib/apps.js +4 -7
  40. package/build/lib/contextInfo.js +217 -781
  41. package/build/lib/directorySession.js +4 -7
  42. package/build/lib/graph.js +16 -19
  43. package/build/lib/groupService.js +4 -7
  44. package/build/lib/groupSiteManager.js +4 -7
  45. package/build/lib/hubSites.js +11 -25
  46. package/build/lib/hubSitesUtility.js +4 -7
  47. package/build/lib/index.js +27 -43
  48. package/build/lib/list.js +49 -53
  49. package/build/lib/navigation.js +4 -7
  50. package/build/lib/peopleManager.js +4 -7
  51. package/build/lib/peoplePicker.js +4 -7
  52. package/build/lib/profileLoader.js +4 -7
  53. package/build/lib/search.js +30 -33
  54. package/build/lib/sensitivityLabels.js +6 -9
  55. package/build/lib/site.js +20 -35
  56. package/build/lib/siteIconManager.js +4 -7
  57. package/build/lib/siteManager.js +4 -7
  58. package/build/lib/sitePages.js +37 -51
  59. package/build/lib/socialFeed.js +13 -16
  60. package/build/lib/themeManager.js +4 -7
  61. package/build/lib/userProfile.js +4 -7
  62. package/build/lib/utility.js +12 -17
  63. package/build/lib/web.js +34 -49
  64. package/build/lib/webTemplateExtensions.js +4 -7
  65. package/build/lib/wfInstanceService.js +4 -7
  66. package/build/lib/wfSubscriptionService.js +4 -7
  67. package/build/mapper/custom/audit.js +3 -6
  68. package/build/mapper/custom/graph.js +13 -16
  69. package/build/mapper/custom/index.js +8 -24
  70. package/build/mapper/custom/odata.js +3 -6
  71. package/build/mapper/custom/old.js +42 -45
  72. package/build/mapper/custom/peoplePicker.js +4 -7
  73. package/build/mapper/custom/propertyValues.js +3 -6
  74. package/build/mapper/custom/utility.js +17 -20
  75. package/build/mapper/custom/webTemplateExtensions.js +19 -22
  76. package/build/mapper/def.js +1032 -989
  77. package/build/mapper/index.js +4 -9
  78. package/build/mapper/v2.js +2629 -2632
  79. package/build/rest.js +16 -19
  80. package/build/sptypes/graphtypes.js +694 -710
  81. package/build/sptypes/index.js +3 -7
  82. package/build/sptypes/sptypes.js +49 -52
  83. package/build/utils/base.js +20 -37
  84. package/build/utils/batch.js +53 -63
  85. package/build/utils/helper.js +79 -83
  86. package/build/utils/index.js +9 -25
  87. package/build/utils/methodInfo.js +88 -141
  88. package/build/utils/oData.js +62 -112
  89. package/build/utils/request.js +137 -155
  90. package/build/utils/requestType.js +1 -4
  91. package/build/utils/targetInfo.js +39 -52
  92. package/build/utils/xhrRequest.js +59 -107
  93. package/build/v2/drive.js +9 -13
  94. package/build/v2/drives.js +8 -12
  95. package/build/v2/index.js +3 -19
  96. package/build/v2/sites.js +61 -65
  97. package/dist/gd-sprest.d.ts +0 -3
  98. package/dist/gd-sprest.js +1 -1
  99. package/dist/gd-sprest.min.js +1 -1
  100. package/package.json +2 -2
@@ -1,95 +1,92 @@
1
- "use strict";
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
- exports.utility = {
5
+ export const utility = {
9
6
  createEmailBodyForInvitation: {
10
7
  argNames: ["pageAddress"],
11
8
  name: "SP.Utilities.Utility.CreateEmailBodyForInvitation",
12
9
  replaceEndpointFl: true,
13
- requestType: utils_1.RequestType.PostWithArgsInBody
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: utils_1.RequestType.PostWithArgsInBody
16
+ requestType: RequestType.PostWithArgsInBody
20
17
  },
21
18
  getAppLicenseDeploymentId: {
22
19
  name: "SP.Utilities.Utility.GetAppLicenseDeploymentId",
23
20
  replaceEndpointFl: true,
24
- requestType: utils_1.RequestType.Get
21
+ requestType: RequestType.Get
25
22
  },
26
23
  getAppLicenseInformation: {
27
24
  name: "SP.Utilities.Utility.GetAppLicenseInformation",
28
25
  replaceEndpointFl: true,
29
- requestType: utils_1.RequestType.Get
26
+ requestType: RequestType.Get
30
27
  },
31
28
  getCurrentUserEmailAddresses: {
32
29
  name: "SP.Utilities.Utility.GetCurrentUserEmailAddresses",
33
30
  replaceEndpointFl: true,
34
- requestType: utils_1.RequestType.Get
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: utils_1.RequestType.GetWithArgsValueOnly
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: utils_1.RequestType.PostWithArgsInBody
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: utils_1.RequestType.PostWithArgs
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: utils_1.RequestType.PostWithArgs
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: utils_1.RequestType.PostWithArgs
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: utils_1.RequestType.PostWithArgs
67
+ requestType: RequestType.PostWithArgs
71
68
  },
72
69
  resolvePrincipal: {
73
70
  name: "SP.Utilities.Utility.ResolvePrincipalInCurrentContext",
74
71
  replaceEndpointFl: true,
75
- requestType: utils_1.RequestType.Post
72
+ requestType: RequestType.Post
76
73
  },
77
74
  searchPrincipals: {
78
75
  name: "SP.Utilities.Utility.SearchPrincipalsUsingContextWeb",
79
76
  replaceEndpointFl: true,
80
- requestType: utils_1.RequestType.Post
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: utils_1.RequestType.PostWithArgsInBody
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: utils_1.RequestType.PostWithArgsInBody
90
+ requestType: RequestType.PostWithArgsInBody
94
91
  }
95
92
  };
@@ -1,112 +1,109 @@
1
- "use strict";
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
- exports.webtemplateextensions = {
6
+ export const webtemplateextensions = {
10
7
  applySiteDesign: {
11
8
  argNames: ["siteDesignId", "webUrl"],
12
9
  appendEndpointFl: true,
13
10
  name: "ApplySiteDesign",
14
- requestType: utils_1.RequestType.PostWithArgsInBody
11
+ requestType: RequestType.PostWithArgsInBody
15
12
  },
16
13
  addSiteDesignTaskToCurrentWeb: {
17
14
  argNames: ["siteDesignId"],
18
15
  appendEndpointFl: true,
19
16
  name: "AddSiteDesignTaskToCurrentWeb",
20
- requestType: utils_1.RequestType.PostWithArgsInBody
17
+ requestType: RequestType.PostWithArgsInBody
21
18
  },
22
19
  createSiteDesign: {
23
20
  argNames: ["info"],
24
21
  appendEndpointFl: true,
25
22
  name: "CreateSiteDesign",
26
- requestType: utils_1.RequestType.PostWithArgsInBody
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: utils_1.RequestType.PostReplaceWithData
29
+ requestType: RequestType.PostReplaceWithData
33
30
  },
34
31
  deleteSiteDesign: {
35
32
  argNames: ["id"],
36
33
  appendEndpointFl: true,
37
34
  name: "DeleteSiteDesign",
38
- requestType: utils_1.RequestType.PostWithArgsInBody
35
+ requestType: RequestType.PostWithArgsInBody
39
36
  },
40
37
  deleteSiteScript: {
41
38
  argNames: ["id"],
42
39
  appendEndpointFl: true,
43
40
  name: "DeleteSiteScript",
44
- requestType: utils_1.RequestType.PostWithArgsInBody
41
+ requestType: RequestType.PostWithArgsInBody
45
42
  },
46
43
  getSiteDesigns: {
47
44
  argNames: [],
48
45
  appendEndpointFl: true,
49
46
  name: "GetSiteDesigns",
50
- requestType: utils_1.RequestType.Post
47
+ requestType: RequestType.Post
51
48
  },
52
49
  getSiteDesignMetadata: {
53
50
  argNames: ["id"],
54
51
  appendEndpointFl: true,
55
52
  name: "GetSiteDesignMetadata",
56
- requestType: utils_1.RequestType.PostWithArgsInBody
53
+ requestType: RequestType.PostWithArgsInBody
57
54
  },
58
55
  getSiteScripts: {
59
56
  argNames: [],
60
57
  appendEndpointFl: true,
61
58
  name: "GetSiteScripts",
62
- requestType: utils_1.RequestType.Post
59
+ requestType: RequestType.Post
63
60
  },
64
61
  getSiteScriptFromWeb: {
65
62
  argNames: ["webUrl", "info"],
66
63
  appendEndpointFl: true,
67
64
  name: "GetSiteScriptFromWeb",
68
- requestType: utils_1.RequestType.PostWithArgsInBody
65
+ requestType: RequestType.PostWithArgsInBody
69
66
  },
70
67
  getSiteScriptFromList: {
71
68
  argNames: ["listUrl"],
72
69
  appendEndpointFl: true,
73
70
  name: "GetSiteScriptFromList",
74
- requestType: utils_1.RequestType.PostWithArgsInBody
71
+ requestType: RequestType.PostWithArgsInBody
75
72
  },
76
73
  getSiteScriptMetadata: {
77
74
  argNames: ["id"],
78
75
  appendEndpointFl: true,
79
76
  name: "GetSiteScriptMetadata",
80
- requestType: utils_1.RequestType.PostWithArgsInBody
77
+ requestType: RequestType.PostWithArgsInBody
81
78
  },
82
79
  getSiteDesignRights: {
83
80
  argNames: ["id"],
84
81
  appendEndpointFl: true,
85
82
  name: "GetSiteDesignRights",
86
- requestType: utils_1.RequestType.PostWithArgsInBody
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: utils_1.RequestType.PostWithArgsInBody
89
+ requestType: RequestType.PostWithArgsInBody
93
90
  },
94
91
  revokeSiteDesignRights: {
95
92
  argNames: ["id", "principalNames"],
96
93
  appendEndpointFl: true,
97
94
  name: "RevokeSiteDesignRights",
98
- requestType: utils_1.RequestType.PostWithArgsInBody
95
+ requestType: RequestType.PostWithArgsInBody
99
96
  },
100
97
  updateSiteDesign: {
101
98
  argNames: ["updateInfo"],
102
99
  appendEndpointFl: true,
103
100
  name: "UpdateSiteDesign",
104
- requestType: utils_1.RequestType.PostWithArgsInBody
101
+ requestType: RequestType.PostWithArgsInBody
105
102
  },
106
103
  updateSiteScript: {
107
104
  argNames: ["updateInfo"],
108
105
  appendEndpointFl: true,
109
106
  name: "UpdateSiteScript",
110
- requestType: utils_1.RequestType.PostWithArgsInBody
107
+ requestType: RequestType.PostWithArgsInBody
111
108
  }
112
109
  };