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,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SPTypes = exports.GraphTypes = void 0;
4
- var GraphTypes = require("./graphtypes");
5
- exports.GraphTypes = GraphTypes;
6
- var SPTypes = require("./sptypes");
7
- exports.SPTypes = SPTypes;
1
+ import * as GraphTypes from "./graphtypes";
2
+ import * as SPTypes from "./sptypes";
3
+ export { GraphTypes, SPTypes };
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebTemplateType = exports.ViewType = exports.UserCustomActionRegistrationType = exports.URLZones = exports.UrlFormatType = exports.StatusPriColor = exports.SearchSourceId = exports.SearchScope = 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.ListWriteSecurity = exports.ListTemplateType = exports.ListReadSecurity = 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
1
  /**
5
2
  * Base Permission Types
6
3
  */
7
- exports.BasePermissionTypes = {
4
+ export const BasePermissionTypes = {
8
5
  EmptyMask: 0,
9
6
  ViewListItems: 1,
10
7
  AddListItems: 2,
@@ -46,7 +43,7 @@ exports.BasePermissionTypes = {
46
43
  /**
47
44
  * Calendar Types
48
45
  */
49
- exports.CalendarTypes = {
46
+ export const CalendarTypes = {
50
47
  Gregorian: 1,
51
48
  JapaneseEmperorEra: 3,
52
49
  TaiwanCalendar: 4,
@@ -65,19 +62,19 @@ exports.CalendarTypes = {
65
62
  /**
66
63
  * Check In Types
67
64
  */
68
- exports.CheckInType = { MinorCheckIn: 0, MajorCheckIn: 1, OverwriteCheckIn: 2 };
65
+ export const CheckInType = { MinorCheckIn: 0, MajorCheckIn: 1, OverwriteCheckIn: 2 };
69
66
  /**
70
67
  * Check Out Types
71
68
  */
72
- exports.CheckOutType = { Online: 0, Offline: 1, None: 2 };
69
+ export const CheckOutType = { Online: 0, Offline: 1, None: 2 };
73
70
  /**
74
71
  * Choice Format Types
75
72
  */
76
- exports.ChoiceFormatType = { Dropdown: 0, RadioButtons: 1 };
73
+ export const ChoiceFormatType = { Dropdown: 0, RadioButtons: 1 };
77
74
  /**
78
75
  * Client Side Templates
79
76
  */
80
- exports.ClientSidePageLayout = {
77
+ export const ClientSidePageLayout = {
81
78
  Article: "Article",
82
79
  HeaderlessSearchResults: "HeaderlessSearchResults",
83
80
  Home: "Home",
@@ -89,14 +86,14 @@ exports.ClientSidePageLayout = {
89
86
  /**
90
87
  * Client Template Utility
91
88
  */
92
- exports.ClientTemplatesUtility = {
89
+ export const ClientTemplatesUtility = {
93
90
  UserLookupDelimitString: ";#",
94
91
  UserMultiValueDelimitString: ",#"
95
92
  };
96
93
  /**
97
94
  * Cloud Environments
98
95
  */
99
- exports.CloudEnvironment = {
96
+ export const CloudEnvironment = {
100
97
  China: "https://microsoftgraph.chinacloudapi.cn",
101
98
  Default: "https://graph.microsoft.com",
102
99
  Flow: "https://service.flow.microsoft.com/",
@@ -120,7 +117,7 @@ exports.CloudEnvironment = {
120
117
  /**
121
118
  * Control Modes
122
119
  */
123
- exports.ControlMode = {
120
+ export const ControlMode = {
124
121
  Invalid: 0,
125
122
  Display: 1,
126
123
  Edit: 2,
@@ -130,26 +127,26 @@ exports.ControlMode = {
130
127
  /**
131
128
  * Date Format
132
129
  */
133
- exports.DateFormat = { DateOnly: 0, DateTime: 1 };
130
+ export const DateFormat = { DateOnly: 0, DateTime: 1 };
134
131
  /**
135
132
  * Display Mode
136
133
  */
137
- exports.DisplayMode = {
134
+ export const DisplayMode = {
138
135
  Edit: 2,
139
136
  Read: 1
140
137
  };
141
138
  /**
142
139
  * Draft Visibility Types
143
140
  */
144
- exports.DraftVisibilityType = { Reader: 0, Author: 1, Approver: 2 };
141
+ export const DraftVisibilityType = { Reader: 0, Author: 1, Approver: 2 };
145
142
  /**
146
143
  * Event Receiver Synchronization Types
147
144
  */
148
- exports.EventReceiverSynchronizationType = { Synchronization: 1, Asynchronous: 2 };
145
+ export const EventReceiverSynchronizationType = { Synchronization: 1, Asynchronous: 2 };
149
146
  /**
150
147
  * Event Receiver Types
151
148
  */
152
- exports.EventReceiverType = {
149
+ export const EventReceiverType = {
153
150
  ItemAdding: 1,
154
151
  ItemUpdating: 2,
155
152
  ItemDeleting: 3,
@@ -229,7 +226,7 @@ exports.EventReceiverType = {
229
226
  /**
230
227
  * Environment Type
231
228
  */
232
- exports.EnvironmentType = {
229
+ export const EnvironmentType = {
233
230
  ClassicSharePoint: 3,
234
231
  Local: 1,
235
232
  SharePoint: 2,
@@ -238,7 +235,7 @@ exports.EnvironmentType = {
238
235
  /**
239
236
  * Field Index Status
240
237
  */
241
- exports.FieldIndexStatus = {
238
+ export const FieldIndexStatus = {
242
239
  None: 0,
243
240
  Indexed: 1,
244
241
  Enabling: 2,
@@ -247,7 +244,7 @@ exports.FieldIndexStatus = {
247
244
  /**
248
245
  * Field Note Types
249
246
  */
250
- exports.FieldNoteType = {
247
+ export const FieldNoteType = {
251
248
  /** Enhance Rich Text */
252
249
  EnhancedRichText: 0,
253
250
  /** Rich Text */
@@ -258,7 +255,7 @@ exports.FieldNoteType = {
258
255
  /**
259
256
  * Field Number Type
260
257
  */
261
- exports.FieldNumberType = {
258
+ export const FieldNumberType = {
262
259
  /** Decimal */
263
260
  Decimal: 0,
264
261
  /** Integer */
@@ -269,7 +266,7 @@ exports.FieldNumberType = {
269
266
  /**
270
267
  * Field Result Types
271
268
  */
272
- exports.FieldResultType = {
269
+ export const FieldResultType = {
273
270
  /** Boolean */
274
271
  Boolean: "Boolean",
275
272
  /** Currency */
@@ -286,7 +283,7 @@ exports.FieldResultType = {
286
283
  /**
287
284
  * Field Types
288
285
  */
289
- exports.FieldType = {
286
+ export const FieldType = {
290
287
  AllDayEvent: 29,
291
288
  Attachments: 19,
292
289
  Boolean: 8,
@@ -325,19 +322,19 @@ exports.FieldType = {
325
322
  /**
326
323
  * Field User Selection Types
327
324
  */
328
- exports.FieldUserSelectionType = { PeopleOnly: 0, PeopleAndGroups: 1 };
325
+ export const FieldUserSelectionType = { PeopleOnly: 0, PeopleAndGroups: 1 };
329
326
  /**
330
327
  * File Level
331
328
  */
332
- exports.FileLevelType = { Published: 1, Draft: 2, Checkout: 3 };
329
+ export const FileLevelType = { Published: 1, Draft: 2, Checkout: 3 };
333
330
  /**
334
331
  * File Template Types
335
332
  */
336
- exports.FileTemplateType = { StandardPage: 0, WikiPage: 1, FormPage: 2 };
333
+ export const FileTemplateType = { StandardPage: 0, WikiPage: 1, FormPage: 2 };
337
334
  /**
338
335
  * Form Display Mode
339
336
  */
340
- exports.FormDisplayMode = {
337
+ export const FormDisplayMode = {
341
338
  Display: 4,
342
339
  Edit: 6,
343
340
  New: 8
@@ -345,7 +342,7 @@ exports.FormDisplayMode = {
345
342
  /**
346
343
  * Friendly Date Format
347
344
  */
348
- exports.FriendlyDateFormat = {
345
+ export const FriendlyDateFormat = {
349
346
  Unspecified: 0,
350
347
  Disabled: 1,
351
348
  Relative: 2
@@ -353,7 +350,7 @@ exports.FriendlyDateFormat = {
353
350
  /**
354
351
  * List Experience Types
355
352
  */
356
- exports.ListExperienceOptions = {
353
+ export const ListExperienceOptions = {
357
354
  Auto: 0,
358
355
  NewExperience: 1,
359
356
  ClassicExperience: 2
@@ -361,14 +358,14 @@ exports.ListExperienceOptions = {
361
358
  /**
362
359
  * List Read Security
363
360
  */
364
- exports.ListReadSecurity = {
361
+ export const ListReadSecurity = {
365
362
  All: 1,
366
363
  User: 2
367
364
  };
368
365
  /**
369
366
  * List Template Types
370
367
  */
371
- exports.ListTemplateType = {
368
+ export const ListTemplateType = {
372
369
  AccessApp: 3100,
373
370
  AccessRequest: 160,
374
371
  AdminTasks: 1200,
@@ -456,7 +453,7 @@ exports.ListTemplateType = {
456
453
  /**
457
454
  * List Write Security
458
455
  */
459
- exports.ListWriteSecurity = {
456
+ export const ListWriteSecurity = {
460
457
  All: 1,
461
458
  User: 2,
462
459
  None: 4
@@ -464,7 +461,7 @@ exports.ListWriteSecurity = {
464
461
  /**
465
462
  * Locale LCID Types
466
463
  */
467
- exports.LocaleLCIDType = {
464
+ export const LocaleLCIDType = {
468
465
  Afrikaans: 1078,
469
466
  Albanian: 1052,
470
467
  ArabicAlgeria: 5121,
@@ -602,7 +599,7 @@ exports.LocaleLCIDType = {
602
599
  /**
603
600
  * Modal Dialog Results
604
601
  */
605
- exports.ModalDialogResult = {
602
+ export const ModalDialogResult = {
606
603
  Invalid: -1,
607
604
  Cancel: 0,
608
605
  OK: 1
@@ -610,7 +607,7 @@ exports.ModalDialogResult = {
610
607
  /**
611
608
  * Page Types
612
609
  */
613
- exports.PageType = {
610
+ export const PageType = {
614
611
  DefaultView: 0,
615
612
  DialogView: 2,
616
613
  DisplayForm: 4,
@@ -628,14 +625,14 @@ exports.PageType = {
628
625
  /**
629
626
  * Personalization Scope
630
627
  */
631
- exports.PersonalizationScope = {
628
+ export const PersonalizationScope = {
632
629
  Shared: 1,
633
630
  User: 0
634
631
  };
635
632
  /**
636
633
  * Personal Site Capabilities
637
634
  */
638
- exports.PersonalSiteCapabilities = {
635
+ export const PersonalSiteCapabilities = {
639
636
  Education: 16,
640
637
  Guest: 32,
641
638
  MyTasksDashboard: 8,
@@ -647,7 +644,7 @@ exports.PersonalSiteCapabilities = {
647
644
  /**
648
645
  * Principal Sources
649
646
  */
650
- exports.PrincipalSources = {
647
+ export const PrincipalSources = {
651
648
  All: 15,
652
649
  MembershipProvider: 4,
653
650
  None: 0,
@@ -658,7 +655,7 @@ exports.PrincipalSources = {
658
655
  /**
659
656
  * Principal Types
660
657
  */
661
- exports.PrincipalTypes = {
658
+ export const PrincipalTypes = {
662
659
  All: 15,
663
660
  DistributionList: 2,
664
661
  None: 0,
@@ -669,7 +666,7 @@ exports.PrincipalTypes = {
669
666
  /**
670
667
  * Property Pane Types
671
668
  */
672
- exports.PropertyPaneType = {
669
+ export const PropertyPaneType = {
673
670
  Button: 11,
674
671
  CheckBox: 2,
675
672
  ChoiceGroup: 10,
@@ -692,11 +689,11 @@ exports.PropertyPaneType = {
692
689
  /**
693
690
  * Relationship Delete Behavior Types
694
691
  */
695
- exports.RelationshipDeleteBehaviorType = { None: 0, Cascade: 1, Restrict: 2 };
692
+ export const RelationshipDeleteBehaviorType = { None: 0, Cascade: 1, Restrict: 2 };
696
693
  /**
697
694
  * Render List Data Options
698
695
  */
699
- exports.RenderListDataOptions = {
696
+ export const RenderListDataOptions = {
700
697
  None: 0,
701
698
  ContextInfo: 1,
702
699
  ListData: 2,
@@ -718,7 +715,7 @@ exports.RenderListDataOptions = {
718
715
  /**
719
716
  * Reordering Rule Match Types
720
717
  */
721
- exports.ReorderingRuleMatchType = {
718
+ export const ReorderingRuleMatchType = {
722
719
  ContentTypeIs: 5,
723
720
  FileExtensionMatches: 6,
724
721
  ManualCondition: 8,
@@ -732,7 +729,7 @@ exports.ReorderingRuleMatchType = {
732
729
  /**
733
730
  * Role Types
734
731
  */
735
- exports.RoleType = {
732
+ export const RoleType = {
736
733
  Administrator: 5,
737
734
  Contributor: 3,
738
735
  Editor: 6,
@@ -744,7 +741,7 @@ exports.RoleType = {
744
741
  /**
745
742
  * Search Scope
746
743
  */
747
- exports.SearchScope = {
744
+ export const SearchScope = {
748
745
  Default: 0,
749
746
  Tenant: 1,
750
747
  Hub: 2,
@@ -753,7 +750,7 @@ exports.SearchScope = {
753
750
  /**
754
751
  * Search Source Ids
755
752
  */
756
- exports.SearchSourceId = {
753
+ export const SearchSourceId = {
757
754
  Conversations: "459dd1b7-216f-4386-9709-287d5d22f568",
758
755
  Documents: "e7ec8cee-ded8-43c9-beb5-436b54b31e84",
759
756
  LocalPeopleResults: "b09a7990-05ea-4af9-81ef-edfab16c4e31",
@@ -771,7 +768,7 @@ exports.SearchSourceId = {
771
768
  /**
772
769
  * Status Pri Color
773
770
  */
774
- exports.StatusPriColor = {
771
+ export const StatusPriColor = {
775
772
  Blue: "blue",
776
773
  Green: "green",
777
774
  Red: "red",
@@ -780,19 +777,19 @@ exports.StatusPriColor = {
780
777
  /**
781
778
  * URL Format Types
782
779
  */
783
- exports.UrlFormatType = { Hyperlink: 0, Image: 1 };
780
+ export const UrlFormatType = { Hyperlink: 0, Image: 1 };
784
781
  /**
785
782
  * URL Zones
786
783
  */
787
- exports.URLZones = { Default: 0, Intranet: 1, Internet: 2, Custom: 3, Extranet: 4 };
784
+ export const URLZones = { Default: 0, Intranet: 1, Internet: 2, Custom: 3, Extranet: 4 };
788
785
  /**
789
786
  * User Custom Action Registration Types
790
787
  */
791
- exports.UserCustomActionRegistrationType = { None: 0, List: 1, ContentType: 2, ProgId: 3, FileType: 4 };
788
+ export const UserCustomActionRegistrationType = { None: 0, List: 1, ContentType: 2, ProgId: 3, FileType: 4 };
792
789
  /**
793
790
  * View Types
794
791
  */
795
- exports.ViewType = {
792
+ export const ViewType = {
796
793
  Calendar: 524288,
797
794
  Chart: 131072,
798
795
  Gantt: 67108864,
@@ -803,7 +800,7 @@ exports.ViewType = {
803
800
  /**
804
801
  * Web Template Types
805
802
  */
806
- exports.WebTemplateType = {
803
+ export const WebTemplateType = {
807
804
  AcademicLibrary: "DOCMARKETPLACESITE",
808
805
  App: "APP",
809
806
  AppCatalog: "APPCATALOG",
@@ -1,17 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Base = void 0;
4
- var _1 = require(".");
1
+ import { Batch, Helper, Request } from ".";
5
2
  /*********************************************************************************************************************************/
6
3
  // Base
7
4
  // This is the base class for all objects.
8
5
  /*********************************************************************************************************************************/
9
- var Base = /** @class */ (function () {
6
+ export class Base {
10
7
  /**
11
8
  * Constructor
12
9
  * @param targetInfo - The target information.
13
10
  */
14
- function Base(targetInfo) {
11
+ constructor(targetInfo) {
15
12
  // Default the properties
16
13
  this.targetInfo = Object.create(targetInfo || {});
17
14
  this.responses = [];
@@ -19,49 +16,35 @@ var Base = /** @class */ (function () {
19
16
  this.waitFlags = [];
20
17
  }
21
18
  // Method to update the object functions, based on the type
22
- Base.prototype.addMethods = function (data, context) { return _1.Request.addMethods(this, data, context); };
19
+ addMethods(data, context) { return Request.addMethods(this, data, context); }
23
20
  // Method to execute this request as a batch request
24
- Base.prototype.batch = function () {
25
- var args = [];
26
- for (var _i = 0; _i < arguments.length; _i++) {
27
- args[_i] = arguments[_i];
28
- }
29
- return _1.Batch.execute(this, args);
30
- };
21
+ batch(...args) { return Batch.execute(this, args); }
31
22
  // Method to wait for the requests to complete
32
- Base.prototype.done = function (resolve) { return _1.Helper.done(this, resolve); };
23
+ done(resolve) { return Helper.done(this, resolve); }
33
24
  // Method to execute the request
34
- Base.prototype.execute = function () {
35
- var args = [];
36
- for (var _i = 0; _i < arguments.length; _i++) {
37
- args[_i] = arguments[_i];
38
- }
39
- return _1.Request.execute(this, args);
40
- };
25
+ execute(...args) { return Request.execute(this, args); }
41
26
  // Method to execute a method
42
- Base.prototype.executeMethod = function (methodName, methodConfig, args) { return _1.Helper.executeMethod(this, methodName, methodConfig, args); };
27
+ executeMethod(methodName, methodConfig, args) { return Helper.executeMethod(this, methodName, methodConfig, args); }
43
28
  // Method to execute the request synchronously
44
- Base.prototype.executeAndWait = function () { return _1.Request.executeRequest(this, false); };
29
+ executeAndWait() { return Request.executeRequest(this, false); }
45
30
  // Method to return a collection
46
- Base.prototype.getCollection = function (method, args) { return _1.Helper.getCollection(this, method, args); };
31
+ getCollection(method, args) { return Helper.getCollection(this, method, args); }
47
32
  // Method to get the request information
48
- Base.prototype.getInfo = function () { return _1.Helper.getRequestInfo(this); };
33
+ getInfo() { return Helper.getRequestInfo(this); }
49
34
  // Method to get the next set of results
50
- Base.prototype.getNextSetOfResults = function () { return _1.Helper.getNextSetOfResults(this); };
35
+ getNextSetOfResults() { return Helper.getNextSetOfResults(this); }
51
36
  // Method to return a property of the base object
52
- Base.prototype.getProperty = function (propertyName, requestType) { return _1.Helper.getProperty(this, propertyName, requestType); };
37
+ getProperty(propertyName, requestType) { return Helper.getProperty(this, propertyName, requestType); }
53
38
  // Method to get the request digest value
54
- Base.prototype.getRequestDigest = function () { return this.targetInfo.requestDigest; };
39
+ getRequestDigest() { return this.targetInfo.requestDigest; }
55
40
  // Method to stop any requests related to getting all items with the query
56
- Base.prototype.stop = function () { this.stopFl = true; };
41
+ stop() { this.stopFl = true; }
57
42
  // Method to stringify the object
58
- Base.prototype.stringify = function () { return _1.Helper.stringify(this); };
43
+ stringify() { return Helper.stringify(this); }
59
44
  // Method to update the metadata uri
60
- Base.prototype.updateMetadataUri = function (metadata, targetInfo) { return _1.Helper.updateMetadataUri(this, metadata, targetInfo); };
45
+ updateMetadataUri(metadata, targetInfo) { return Helper.updateMetadataUri(this, metadata, targetInfo); }
61
46
  // Method to update the request digest value
62
- Base.prototype.updateRequestDigest = function (value) { this.targetInfo.requestDigest = value; };
47
+ updateRequestDigest(value) { this.targetInfo.requestDigest = value; }
63
48
  // Method to wait for the parent requests to complete
64
- Base.prototype.waitForRequestsToComplete = function (callback, requestIdx) { _1.Request.waitForRequestsToComplete(this, callback, requestIdx); };
65
- return Base;
66
- }());
67
- exports.Base = Base;
49
+ waitForRequestsToComplete(callback, requestIdx) { Request.waitForRequestsToComplete(this, callback, requestIdx); }
50
+ }