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,13 +1,10 @@
1
- "use strict";
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
- exports.Utility = (function (url, targetInfo) {
9
- var base = new utils_1.Base(targetInfo);
10
- var utility = base;
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
- utils_1.Request.addMethods(utility, { __metadata: { type: "utility" } });
17
+ Request.addMethods(utility, { __metadata: { type: "utility" } });
21
18
  // Method to create a wiki page
22
- utility.createWikiPage = function (listUrl, content) {
23
- if (content === void 0) { content = ""; }
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: utils_1.RequestType.PostWithArgsInBody
29
+ requestType: RequestType.PostWithArgsInBody
34
30
  }, [parameters]);
35
31
  };
36
32
  // Method to send an email
37
- utility.sendEmail = function (properties) {
33
+ utility.sendEmail = (properties) => {
38
34
  // Parse the email properties
39
- for (var _i = 0, _a = ["To", "CC", "BCC"]; _i < _a.length; _i++) {
40
- var propName = _a[_i];
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: utils_1.RequestType.PostWithArgsInBody
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
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
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
- utils_1.Request.addMethods(web, { __metadata: { type: "SP.Web" } });
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
- exports.Web.getOneDrive = function (targetInfo) {
35
- if (targetInfo === void 0) { targetInfo = {}; }
20
+ Web.getOneDrive = (targetInfo = {}) => {
36
21
  // Set the url of the drive
37
- var host = document.location.host.split('.');
38
- var url = "https://".concat(host[0], "-my.").concat(host[1], ".").concat(host[2], "/personal/").concat(contextInfo_1.ContextInfo.userPrincipalName.replace(/[@,.]/g, '_'));
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 (0, exports.Web)(url, __assign(__assign({}, targetInfo), {
25
+ return Web(url, Object.assign(Object.assign({}, targetInfo), {
41
26
  requestHeader: {
42
- Authorization: "Bearer " + graph_1.Graph.Token,
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
- exports.Web.getRemoteWeb = (function (requestUrl) {
34
+ Web.getRemoteWeb = ((requestUrl) => {
50
35
  // Return the remote web information
51
- return new utils_1.Base({
52
- data: { requestUrl: 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
- exports.Web.getSharingSettings = (function (data, query) {
44
+ Web.getSharingSettings = ((data, query) => {
60
45
  // Return the sharing settings
61
- return new utils_1.Base({
62
- data: data,
46
+ return new Base({
47
+ data,
63
48
  defaultToWebFl: true,
64
- endpoint: "SP.Web.GetObjectSharingSettings" + (query ? "?" + (new utils_1.OData(query)).QueryString : ""),
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
- exports.Web.getWebUrlFromPageUrl = (function (pageUrl) {
54
+ Web.getWebUrlFromPageUrl = ((pageUrl) => {
70
55
  // Return the remote web information
71
- return new utils_1.Base({
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
- exports.Web.processQuery = function (query, webUrl) {
62
+ Web.processQuery = (query, webUrl) => {
78
63
  // Minify the xml query
79
- var data = query.replace(/\r?\n/g, '').replace(/ /g, '');
64
+ let data = query.replace(/\r?\n/g, '').replace(/ /g, '');
80
65
  // Return a promise
81
- return new Promise(function (resolve, reject) {
82
- var processResponse = function (resp) {
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
- contextInfo_1.ContextInfo.getWeb(webUrl).execute(
82
+ ContextInfo.getWeb(webUrl).execute(
98
83
  // Success
99
- function (ctx) {
84
+ ctx => {
100
85
  // Execute the request
101
- (new utils_1.Base({
102
- data: 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: utils_1.RequestType.Post,
91
+ requestType: RequestType.Post,
107
92
  url: webUrl
108
93
  })).execute(processResponse, reject);
109
94
  },
110
95
  // Error
111
- function () {
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 utils_1.Base({
119
- data: data,
103
+ (new Base({
104
+ data,
120
105
  endpoint: "_vti_bin/client.svc/ProcessQuery",
121
106
  method: "POST",
122
- requestDigest: contextInfo_1.ContextInfo.formDigestValue,
123
- requestType: utils_1.RequestType.Post,
107
+ requestDigest: ContextInfo.formDigestValue,
108
+ requestType: RequestType.Post,
124
109
  })).execute(processResponse, reject);
125
110
  }
126
111
  });
@@ -1,12 +1,9 @@
1
- "use strict";
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
- exports.WebTemplateExtensions = (function (url, targetInfo) {
9
- var webTemplateExtensions = new utils_1.Base(targetInfo);
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
- utils_1.Request.addMethods(webTemplateExtensions, { __metadata: { type: "webTemplateExtensions" } });
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
- "use strict";
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
- exports.WorkflowInstanceService = (function (url, targetInfo) {
9
- var wfs = new utils_1.Base(targetInfo);
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
- utils_1.Request.addMethods(wfs, { __metadata: { type: "SP.WorkflowServices.WorkflowInstanceService" } });
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
- "use strict";
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
- exports.WorkflowSubscriptionService = (function (url, targetInfo) {
9
- var wfs = new utils_1.Base(targetInfo);
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
- utils_1.Request.addMethods(wfs, { __metadata: { type: "SP.WorkflowServices.WorkflowSubscriptionService" } });
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
- "use strict";
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
- exports.audit = {
5
+ export const audit = {
9
6
  // Queries the collection
10
7
  query: {
11
8
  argNames: ["oData"],
12
- requestType: utils_1.RequestType.OData
9
+ requestType: RequestType.OData
13
10
  }
14
11
  };
@@ -1,66 +1,63 @@
1
- "use strict";
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
- exports.graph = {
5
+ export const graph = {
9
6
  // Me
10
7
  me: {
11
- requestType: utils_1.RequestType.GraphGet
8
+ requestType: RequestType.GraphGet
12
9
  },
13
10
  // Group
14
11
  group: {
15
12
  argNames: ["id"],
16
13
  name: "groups/[[id]]",
17
- requestType: utils_1.RequestType.GraphGetReplace
14
+ requestType: RequestType.GraphGetReplace
18
15
  },
19
16
  // Groups
20
17
  groups: {
21
18
  name: "groups",
22
- requestType: utils_1.RequestType.GraphGet
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: utils_1.RequestType.GraphGetReplace
25
+ requestType: RequestType.GraphGetReplace
29
26
  },
30
27
  // Lists
31
28
  lists: {
32
29
  argNames: ["siteId"],
33
30
  name: "sites/[[siteId]]/lists",
34
- requestType: utils_1.RequestType.GraphGetReplace
31
+ requestType: RequestType.GraphGetReplace
35
32
  },
36
33
  // Queries the collection
37
34
  query: {
38
35
  argNames: ["oData"],
39
- requestType: utils_1.RequestType.OData
36
+ requestType: RequestType.OData
40
37
  },
41
38
  // Root Site
42
39
  root: {
43
- requestType: utils_1.RequestType.GraphGet
40
+ requestType: RequestType.GraphGet
44
41
  },
45
42
  // Site
46
43
  site: {
47
44
  argNames: ["id"],
48
45
  name: "sites/[[id]]",
49
- requestType: utils_1.RequestType.GraphGetReplace
46
+ requestType: RequestType.GraphGetReplace
50
47
  },
51
48
  // Sites
52
49
  sites: {
53
50
  name: "sites",
54
- requestType: utils_1.RequestType.GraphGet
51
+ requestType: RequestType.GraphGet
55
52
  },
56
53
  // User
57
54
  user: {
58
55
  argNames: ["id"],
59
56
  name: "users/[[id]]",
60
- requestType: utils_1.RequestType.GraphGetReplace
57
+ requestType: RequestType.GraphGetReplace
61
58
  },
62
59
  // Users
63
60
  users: {
64
- requestType: utils_1.RequestType.GraphGet
61
+ requestType: RequestType.GraphGet
65
62
  },
66
63
  };
@@ -1,24 +1,8 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
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
- "use strict";
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
- exports.odata = {
5
+ export const odata = {
9
6
  // Adds the odata query option
10
- query: { argNames: ["oData"], requestType: utils_1.RequestType.OData }
7
+ query: { argNames: ["oData"], requestType: RequestType.OData }
11
8
  };
@@ -1,48 +1,45 @@
1
- "use strict";
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
- exports.attachmentfiles = def_1.Mapper["SP.Attachment.Collection"];
9
- exports.eventreceiver = def_1.Mapper["SP.EventReceiverDefinition"];
10
- exports.eventreceivers = def_1.Mapper["SP.EventReceiverDefinition.Collection"];
11
- exports.features = def_1.Mapper["SP.Feature.Collection"];
12
- exports.field = def_1.Mapper["SP.Field"];
13
- exports.fields = def_1.Mapper["SP.Field.Collection"];
14
- exports.fieldlinks = def_1.Mapper["SP.FieldLink.Collection"];
15
- exports.file = def_1.Mapper["SP.File"];
16
- exports.files = def_1.Mapper["SP.File.Collection"];
17
- exports.fileversion = def_1.Mapper["SP.FileVersion"];
18
- exports.fileversions = def_1.Mapper["SP.FileVersion.Collection"];
19
- exports.folder = def_1.Mapper["SP.Folder"];
20
- exports.folders = def_1.Mapper["SP.Folder.Collection"];
21
- exports.group = def_1.Mapper["SP.Group"];
22
- exports.sitegroups = def_1.Mapper["SP.Directory.Group.Collection"];
23
- exports.limitedwebpartmanager = def_1.Mapper["SP.WebParts.LimitedWebPartManager"];
24
- exports.list = def_1.Mapper["SP.List"];
25
- exports.lists = def_1.Mapper["SP.List.Collection"];
26
- exports.listitem = def_1.Mapper["SP.ListItem"];
27
- exports.items = def_1.Mapper["SP.ListItem.Collection"];
28
- exports.roleassignment = def_1.Mapper["SP.RoleAssignment"];
29
- exports.roleassignments = def_1.Mapper["SP.RoleAssignment.Collection"];
30
- exports.roledefinition = def_1.Mapper["SP.RoleDefinition"];
31
- exports.roledefinitions = def_1.Mapper["SP.RoleDefinition.Collection"];
32
- exports.search = def_1.Mapper["Microsoft.Office.Server.Search.REST.SearchService"];
33
- exports.site = def_1.Mapper["SP.Site"];
34
- exports.sitecollectionappcatalog = def_1.Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionCorporateCatalogAccessor"];
35
- exports.tenantapp = def_1.Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata"];
36
- exports.tenantapps = def_1.Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata.Collection"];
37
- exports.tenantappcatalog = def_1.Mapper["Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TenantCorporateCatalogAccessor"];
38
- exports.user = def_1.Mapper["SP.User"];
39
- exports.users = def_1.Mapper["SP.User.Collection"];
40
- exports.usercustomaction = def_1.Mapper["SP.UserCustomAction"];
41
- exports.usercustomactions = def_1.Mapper["SP.UserCustomAction.Collection"];
42
- exports.versions = def_1.Mapper["SP.FileVersion.Collection"];
43
- exports.view = def_1.Mapper["SP.View"];
44
- exports.views = def_1.Mapper["SP.View.Collection"];
45
- exports.viewfieldcollection = def_1.Mapper["SP.ViewFieldCollection"];
46
- exports.web = def_1.Mapper["SP.Web"];
47
- exports.webs = def_1.Mapper["SP.Web.Collection"];
48
- exports.webinfos = def_1.Mapper["SP.WebInformation.Collection"];
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
- "use strict";
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
- exports.peoplepicker = {
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: utils_1.RequestType.PostWithArgsInBody
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: utils_1.RequestType.PostWithArgsInBody
18
+ requestType: RequestType.PostWithArgsInBody
22
19
  }
23
20
  };
@@ -1,14 +1,11 @@
1
- "use strict";
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
- exports.propertyvalues = {
5
+ export const propertyvalues = {
9
6
  // Queries the collection
10
7
  query: {
11
8
  argNames: ["oData"],
12
- requestType: utils_1.RequestType.OData
9
+ requestType: RequestType.OData
13
10
  }
14
11
  };