gd-sprest 7.3.6 → 7.3.8

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.
@@ -13,12 +13,13 @@ export interface ISPTypes {
13
13
  ChoiceFormatType: Types.IChoiceFormatType;
14
14
  ClientSidePageLayout: Types.IClientSidePageLayout;
15
15
  ClientTemplateUtility: Types.IClientTemplateUtility;
16
+ CloudEnvironment: Types.ICloudEnvironment;
16
17
  ControlMode: Types.IControlMode;
17
18
  DateFormat: Types.IDateFormat;
18
19
  DisplayMode: Types.IDisplayMode;
19
20
  DraftVisibilityType: Types.IDraftVisibilityType;
20
- EventReceiverType: Types.IEventReceiverType;
21
21
  EventReceiverSynchronizationType: Types.IEventReceiverSynchronizationType;
22
+ EventReceiverType: Types.IEventReceiverType;
22
23
  EnvironmentType: Types.IEnvironmentType;
23
24
  FieldIndexStatus: Types.IFieldIndexStatus;
24
25
  FieldNoteType: Types.IFieldNoteType;
@@ -30,7 +31,7 @@ export interface ISPTypes {
30
31
  FileTemplateType: Types.IFileTemplateType;
31
32
  FormDisplayMode: Types.IFormDisplayMode;
32
33
  FriendlyDateFormat: Types.IFriendlyDateFormat;
33
- GetUserEffectivePermissionsResult: Types.IGetUserEffectivePermissionsResult;
34
+ //GetUserEffectivePermissionsResult: Types.IGetUserEffectivePermissionsResult;
34
35
  ListExperienceOptions: Types.IListExperienceOptions;
35
36
  ListTemplateType: Types.IListTemplateType;
36
37
  LocaleLCIDType: Types.ILocaleLCIDType;
@@ -157,6 +157,8 @@ export type ICloudEnvironment = {
157
157
  Default: string;
158
158
  China: string;
159
159
  Flow: string;
160
+ FlowL4: string;
161
+ FlowL5: string;
160
162
  Office: string;
161
163
  USL4: string;
162
164
  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.36,
11
+ __ver: 7.38,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebTemplateType = exports.ViewType = exports.UserCustomActionRegistrationType = exports.URLZones = exports.UrlFormatType = exports.StatusPriColor = exports.RoleType = exports.ReorderingRuleMatchType = exports.RenderListDataOptions = exports.RelationshipDeleteBehaviorType = exports.PropertyPaneType = exports.PrincipalTypes = exports.PrincipalSources = exports.PersonalSiteCapabilities = exports.PersonalizationScope = exports.PageType = exports.ModalDialogResult = exports.LocaleLCIDType = exports.ListTemplateType = exports.ListExperienceOptions = exports.FriendlyDateFormat = exports.FormDisplayMode = exports.FileTemplateType = exports.FileLevelType = exports.FieldUserSelectionType = exports.FieldType = exports.FieldResultType = exports.FieldNumberType = exports.FieldNoteType = exports.FieldIndexStatus = exports.EnvironmentType = exports.EventReceiverType = exports.EventReceiverSynchronizationType = exports.DraftVisibilityType = exports.DisplayMode = exports.DateFormat = exports.ControlMode = exports.CloudEnvironment = exports.ClientSidePageLayout = exports.ClientTemplatesUtility = exports.ChoiceFormatType = exports.CheckOutType = exports.CheckInType = exports.CalendarTypes = exports.BasePermissionTypes = void 0;
3
+ exports.WebTemplateType = exports.ViewType = exports.UserCustomActionRegistrationType = exports.URLZones = exports.UrlFormatType = exports.StatusPriColor = exports.RoleType = exports.ReorderingRuleMatchType = exports.RenderListDataOptions = exports.RelationshipDeleteBehaviorType = exports.PropertyPaneType = exports.PrincipalTypes = exports.PrincipalSources = exports.PersonalSiteCapabilities = exports.PersonalizationScope = exports.PageType = exports.ModalDialogResult = exports.LocaleLCIDType = exports.ListTemplateType = exports.ListExperienceOptions = exports.FriendlyDateFormat = exports.FormDisplayMode = exports.FileTemplateType = exports.FileLevelType = exports.FieldUserSelectionType = exports.FieldType = exports.FieldResultType = exports.FieldNumberType = exports.FieldNoteType = exports.FieldIndexStatus = exports.EnvironmentType = exports.EventReceiverType = exports.EventReceiverSynchronizationType = exports.DraftVisibilityType = exports.DisplayMode = exports.DateFormat = exports.ControlMode = exports.CloudEnvironment = exports.ClientTemplatesUtility = exports.ClientSidePageLayout = exports.ChoiceFormatType = exports.CheckOutType = exports.CheckInType = exports.CalendarTypes = exports.BasePermissionTypes = void 0;
4
4
  /**
5
5
  * Base Permission Types
6
6
  */
@@ -74,13 +74,6 @@ exports.CheckOutType = { Online: 0, Offline: 1, None: 2 };
74
74
  * Choice Format Types
75
75
  */
76
76
  exports.ChoiceFormatType = { Dropdown: 0, RadioButtons: 1 };
77
- /**
78
- * Client Template Utility
79
- */
80
- exports.ClientTemplatesUtility = {
81
- UserLookupDelimitString: ";#",
82
- UserMultiValueDelimitString: ",#"
83
- };
84
77
  /**
85
78
  * Client Side Templates
86
79
  */
@@ -90,6 +83,13 @@ exports.ClientSidePageLayout = {
90
83
  RepostPage: "RepostPage",
91
84
  SingleWebPartAppPage: "SingleWebPartAppPage"
92
85
  };
86
+ /**
87
+ * Client Template Utility
88
+ */
89
+ exports.ClientTemplatesUtility = {
90
+ UserLookupDelimitString: ";#",
91
+ UserMultiValueDelimitString: ",#"
92
+ };
93
93
  /**
94
94
  * Cloud Environments
95
95
  */
@@ -97,6 +97,8 @@ 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
+ FlowL4: "https://gov.service.flow.microsoft.us/",
101
+ FlowL5: "https://high.service.flow.microsoft.us/",
100
102
  Office: "https://substrate.office.com",
101
103
  USL4: "https://graph.microsoft.us",
102
104
  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) {
@@ -386,12 +386,13 @@ declare module 'gd-sprest/sptypes' {
386
386
  ChoiceFormatType: Types.IChoiceFormatType;
387
387
  ClientSidePageLayout: Types.IClientSidePageLayout;
388
388
  ClientTemplateUtility: Types.IClientTemplateUtility;
389
+ CloudEnvironment: Types.ICloudEnvironment;
389
390
  ControlMode: Types.IControlMode;
390
391
  DateFormat: Types.IDateFormat;
391
392
  DisplayMode: Types.IDisplayMode;
392
393
  DraftVisibilityType: Types.IDraftVisibilityType;
393
- EventReceiverType: Types.IEventReceiverType;
394
394
  EventReceiverSynchronizationType: Types.IEventReceiverSynchronizationType;
395
+ EventReceiverType: Types.IEventReceiverType;
395
396
  EnvironmentType: Types.IEnvironmentType;
396
397
  FieldIndexStatus: Types.IFieldIndexStatus;
397
398
  FieldNoteType: Types.IFieldNoteType;
@@ -403,7 +404,7 @@ declare module 'gd-sprest/sptypes' {
403
404
  FileTemplateType: Types.IFileTemplateType;
404
405
  FormDisplayMode: Types.IFormDisplayMode;
405
406
  FriendlyDateFormat: Types.IFriendlyDateFormat;
406
- GetUserEffectivePermissionsResult: Types.IGetUserEffectivePermissionsResult;
407
+ //GetUserEffectivePermissionsResult: Types.IGetUserEffectivePermissionsResult;
407
408
  ListExperienceOptions: Types.IListExperienceOptions;
408
409
  ListTemplateType: Types.IListTemplateType;
409
410
  LocaleLCIDType: Types.ILocaleLCIDType;
@@ -4206,6 +4207,8 @@ declare module 'gd-sprest/sptypes/sptypes' {
4206
4207
  Default: string;
4207
4208
  China: string;
4208
4209
  Flow: string;
4210
+ FlowL4: string;
4211
+ FlowL5: string;
4209
4212
  Office: string;
4210
4213
  USL4: string;
4211
4214
  USL5: string;