gd-sprest 7.3.7 → 7.3.9

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.
@@ -157,6 +157,12 @@ export type ICloudEnvironment = {
157
157
  Default: string;
158
158
  China: string;
159
159
  Flow: string;
160
+ FlowChina: string;
161
+ FlowDoD: string;
162
+ FlowGov: string;
163
+ FlowHigh: string;
164
+ FlowUSNat: string;
165
+ FlowUSSec: string;
160
166
  Office: string;
161
167
  USL4: string;
162
168
  USL5: string;
@@ -6335,12 +6335,14 @@ exports.Mapper = {
6335
6335
  getGroupBasedEnvironment: {},
6336
6336
  getList: {
6337
6337
  argNames: ["strUrl"],
6338
- requestType: utils_1.RequestType.GetWithArgsValueOnly,
6338
+ name: "getList(@l)?@l='[[strUrl]]'",
6339
+ requestType: utils_1.RequestType.GetReplace,
6339
6340
  returnType: "SP.List"
6340
6341
  },
6341
6342
  getListItem: {
6342
6343
  argNames: ["strUrl"],
6343
- requestType: utils_1.RequestType.GetWithArgsValueOnly,
6344
+ name: "getListItem(@l)?@l='[[strUrl]]'",
6345
+ requestType: utils_1.RequestType.GetReplace,
6344
6346
  },
6345
6347
  getListItemByResourceId: {
6346
6348
  argNames: ["resourceId"],
package/build/rest.js CHANGED
@@ -8,7 +8,7 @@ var sptypes_1 = require("./sptypes");
8
8
  * SharePoint REST Library
9
9
  */
10
10
  exports.$REST = {
11
- __ver: 7.37,
11
+ __ver: 7.39,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,
@@ -97,6 +97,12 @@ exports.CloudEnvironment = {
97
97
  China: "https://microsoftgraph.chinacloudapi.cn",
98
98
  Default: "https://graph.microsoft.com",
99
99
  Flow: "https://service.flow.microsoft.com/",
100
+ FlowChina: "https://service.powerautomate.cn/",
101
+ FlowDoD: "https://service.flow.appsplatform.us/",
102
+ FlowGov: "https://gov.service.flow.microsoft.us/",
103
+ FlowHigh: "https://high.service.flow.microsoft.us/",
104
+ FlowUSNat: "https://service.flow.eaglex.ic.gov/",
105
+ FlowUSSec: "https://service.flow.microsoft.scloud/",
100
106
  Office: "https://substrate.office.com",
101
107
  USL4: "https://graph.microsoft.us",
102
108
  USL5: "https://dod-graph.microsoft.us"
@@ -210,7 +210,7 @@ var MethodInfo = /** @class */ (function () {
210
210
  if (this.passDataInBody) {
211
211
  var data = this.methodData || this.methodParams;
212
212
  // Stringify the data to be passed in the body
213
- this.methodData = JSON.stringify(data);
213
+ this.methodData = data ? JSON.stringify(data) : null;
214
214
  }
215
215
  // See if we are passing the data in the query string as a variable
216
216
  if (this.passDataInQSAsVar) {
@@ -4207,6 +4207,12 @@ declare module 'gd-sprest/sptypes/sptypes' {
4207
4207
  Default: string;
4208
4208
  China: string;
4209
4209
  Flow: string;
4210
+ FlowChina: string;
4211
+ FlowDoD: string;
4212
+ FlowGov: string;
4213
+ FlowHigh: string;
4214
+ FlowUSNat: string;
4215
+ FlowUSSec: string;
4210
4216
  Office: string;
4211
4217
  USL4: string;
4212
4218
  USL5: string;