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.
- package/@types/utils/base.d.ts +0 -3
- package/build/helper/executor.js +10 -20
- package/build/helper/fieldSchemaXML.js +85 -89
- package/build/helper/index.js +12 -28
- package/build/helper/jslink.js +124 -128
- package/build/helper/listForm.js +109 -118
- package/build/helper/listFormField.js +62 -65
- package/build/helper/methods/addContentEditorWebPart.js +9 -17
- package/build/helper/methods/addPermissionLevel.js +12 -16
- package/build/helper/methods/addScriptEditorWebPart.js +9 -17
- package/build/helper/methods/copyPermissionLevel.js +22 -26
- package/build/helper/methods/createContentType.js +96 -19
- package/build/helper/methods/createDocSet.js +10 -14
- package/build/helper/methods/getCurrentTheme.js +26 -31
- package/build/helper/methods/hasPermissions.js +8 -13
- package/build/helper/methods/index.js +16 -32
- package/build/helper/methods/loadSPCore.js +13 -17
- package/build/helper/methods/parse.js +5 -9
- package/build/helper/methods/request.js +4 -8
- package/build/helper/methods/setContentTypeFields.js +71 -79
- package/build/helper/methods/setGroupOwner.js +6 -10
- package/build/helper/methods/setWebProperty.js +26 -30
- package/build/helper/methods/stringify.js +3 -7
- package/build/helper/methods/webWorker.js +40 -20
- package/build/helper/ribbonLink.js +10 -14
- package/build/helper/sbLink.js +11 -15
- package/build/helper/sp/calloutManager.js +22 -25
- package/build/helper/sp/index.js +13 -16
- package/build/helper/sp/modalDialog.js +32 -35
- package/build/helper/sp/notify.js +9 -12
- package/build/helper/sp/ribbon.js +1 -4
- package/build/helper/sp/sod.js +9 -18
- package/build/helper/sp/status.js +18 -21
- package/build/helper/spCfg.js +232 -259
- package/build/helper/spCfgTypes.js +2 -5
- package/build/helper/taxonomy.js +144 -182
- package/build/helper/webpart.js +110 -94
- package/build/index.js +6 -23
- package/build/lib/apps.js +4 -7
- package/build/lib/contextInfo.js +217 -781
- package/build/lib/directorySession.js +4 -7
- package/build/lib/graph.js +16 -19
- package/build/lib/groupService.js +4 -7
- package/build/lib/groupSiteManager.js +4 -7
- package/build/lib/hubSites.js +11 -25
- package/build/lib/hubSitesUtility.js +4 -7
- package/build/lib/index.js +27 -43
- package/build/lib/list.js +49 -53
- package/build/lib/navigation.js +4 -7
- package/build/lib/peopleManager.js +4 -7
- package/build/lib/peoplePicker.js +4 -7
- package/build/lib/profileLoader.js +4 -7
- package/build/lib/search.js +30 -33
- package/build/lib/sensitivityLabels.js +6 -9
- package/build/lib/site.js +20 -35
- package/build/lib/siteIconManager.js +4 -7
- package/build/lib/siteManager.js +4 -7
- package/build/lib/sitePages.js +37 -51
- package/build/lib/socialFeed.js +13 -16
- package/build/lib/themeManager.js +4 -7
- package/build/lib/userProfile.js +4 -7
- package/build/lib/utility.js +12 -17
- package/build/lib/web.js +34 -49
- package/build/lib/webTemplateExtensions.js +4 -7
- package/build/lib/wfInstanceService.js +4 -7
- package/build/lib/wfSubscriptionService.js +4 -7
- package/build/mapper/custom/audit.js +3 -6
- package/build/mapper/custom/graph.js +13 -16
- package/build/mapper/custom/index.js +8 -24
- package/build/mapper/custom/odata.js +3 -6
- package/build/mapper/custom/old.js +42 -45
- package/build/mapper/custom/peoplePicker.js +4 -7
- package/build/mapper/custom/propertyValues.js +3 -6
- package/build/mapper/custom/utility.js +17 -20
- package/build/mapper/custom/webTemplateExtensions.js +19 -22
- package/build/mapper/def.js +1032 -989
- package/build/mapper/index.js +4 -9
- package/build/mapper/v2.js +2629 -2632
- package/build/rest.js +16 -19
- package/build/sptypes/graphtypes.js +694 -710
- package/build/sptypes/index.js +3 -7
- package/build/sptypes/sptypes.js +49 -52
- package/build/utils/base.js +20 -37
- package/build/utils/batch.js +53 -63
- package/build/utils/helper.js +79 -83
- package/build/utils/index.js +9 -25
- package/build/utils/methodInfo.js +88 -141
- package/build/utils/oData.js +62 -112
- package/build/utils/request.js +137 -155
- package/build/utils/requestType.js +1 -4
- package/build/utils/targetInfo.js +39 -52
- package/build/utils/xhrRequest.js +59 -107
- package/build/v2/drive.js +9 -13
- package/build/v2/drives.js +8 -12
- package/build/v2/index.js +3 -19
- package/build/v2/sites.js +61 -65
- package/dist/gd-sprest.d.ts +0 -3
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +2 -2
package/build/sptypes/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 };
|
package/build/sptypes/sptypes.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
65
|
+
export const CheckInType = { MinorCheckIn: 0, MajorCheckIn: 1, OverwriteCheckIn: 2 };
|
|
69
66
|
/**
|
|
70
67
|
* Check Out Types
|
|
71
68
|
*/
|
|
72
|
-
|
|
69
|
+
export const CheckOutType = { Online: 0, Offline: 1, None: 2 };
|
|
73
70
|
/**
|
|
74
71
|
* Choice Format Types
|
|
75
72
|
*/
|
|
76
|
-
|
|
73
|
+
export const ChoiceFormatType = { Dropdown: 0, RadioButtons: 1 };
|
|
77
74
|
/**
|
|
78
75
|
* Client Side Templates
|
|
79
76
|
*/
|
|
80
|
-
|
|
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
|
-
|
|
89
|
+
export const ClientTemplatesUtility = {
|
|
93
90
|
UserLookupDelimitString: ";#",
|
|
94
91
|
UserMultiValueDelimitString: ",#"
|
|
95
92
|
};
|
|
96
93
|
/**
|
|
97
94
|
* Cloud Environments
|
|
98
95
|
*/
|
|
99
|
-
|
|
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
|
-
|
|
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
|
-
|
|
130
|
+
export const DateFormat = { DateOnly: 0, DateTime: 1 };
|
|
134
131
|
/**
|
|
135
132
|
* Display Mode
|
|
136
133
|
*/
|
|
137
|
-
|
|
134
|
+
export const DisplayMode = {
|
|
138
135
|
Edit: 2,
|
|
139
136
|
Read: 1
|
|
140
137
|
};
|
|
141
138
|
/**
|
|
142
139
|
* Draft Visibility Types
|
|
143
140
|
*/
|
|
144
|
-
|
|
141
|
+
export const DraftVisibilityType = { Reader: 0, Author: 1, Approver: 2 };
|
|
145
142
|
/**
|
|
146
143
|
* Event Receiver Synchronization Types
|
|
147
144
|
*/
|
|
148
|
-
|
|
145
|
+
export const EventReceiverSynchronizationType = { Synchronization: 1, Asynchronous: 2 };
|
|
149
146
|
/**
|
|
150
147
|
* Event Receiver Types
|
|
151
148
|
*/
|
|
152
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
325
|
+
export const FieldUserSelectionType = { PeopleOnly: 0, PeopleAndGroups: 1 };
|
|
329
326
|
/**
|
|
330
327
|
* File Level
|
|
331
328
|
*/
|
|
332
|
-
|
|
329
|
+
export const FileLevelType = { Published: 1, Draft: 2, Checkout: 3 };
|
|
333
330
|
/**
|
|
334
331
|
* File Template Types
|
|
335
332
|
*/
|
|
336
|
-
|
|
333
|
+
export const FileTemplateType = { StandardPage: 0, WikiPage: 1, FormPage: 2 };
|
|
337
334
|
/**
|
|
338
335
|
* Form Display Mode
|
|
339
336
|
*/
|
|
340
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
361
|
+
export const ListReadSecurity = {
|
|
365
362
|
All: 1,
|
|
366
363
|
User: 2
|
|
367
364
|
};
|
|
368
365
|
/**
|
|
369
366
|
* List Template Types
|
|
370
367
|
*/
|
|
371
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
628
|
+
export const PersonalizationScope = {
|
|
632
629
|
Shared: 1,
|
|
633
630
|
User: 0
|
|
634
631
|
};
|
|
635
632
|
/**
|
|
636
633
|
* Personal Site Capabilities
|
|
637
634
|
*/
|
|
638
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
692
|
+
export const RelationshipDeleteBehaviorType = { None: 0, Cascade: 1, Restrict: 2 };
|
|
696
693
|
/**
|
|
697
694
|
* Render List Data Options
|
|
698
695
|
*/
|
|
699
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
780
|
+
export const UrlFormatType = { Hyperlink: 0, Image: 1 };
|
|
784
781
|
/**
|
|
785
782
|
* URL Zones
|
|
786
783
|
*/
|
|
787
|
-
|
|
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
|
-
|
|
788
|
+
export const UserCustomActionRegistrationType = { None: 0, List: 1, ContentType: 2, ProgId: 3, FileType: 4 };
|
|
792
789
|
/**
|
|
793
790
|
* View Types
|
|
794
791
|
*/
|
|
795
|
-
|
|
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
|
-
|
|
803
|
+
export const WebTemplateType = {
|
|
807
804
|
AcademicLibrary: "DOCMARKETPLACESITE",
|
|
808
805
|
App: "APP",
|
|
809
806
|
AppCatalog: "APPCATALOG",
|
package/build/utils/base.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
6
|
+
export class Base {
|
|
10
7
|
/**
|
|
11
8
|
* Constructor
|
|
12
9
|
* @param targetInfo - The target information.
|
|
13
10
|
*/
|
|
14
|
-
|
|
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
|
-
|
|
19
|
+
addMethods(data, context) { return Request.addMethods(this, data, context); }
|
|
23
20
|
// Method to execute this request as a batch request
|
|
24
|
-
|
|
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
|
-
|
|
23
|
+
done(resolve) { return Helper.done(this, resolve); }
|
|
33
24
|
// Method to execute the request
|
|
34
|
-
|
|
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
|
-
|
|
27
|
+
executeMethod(methodName, methodConfig, args) { return Helper.executeMethod(this, methodName, methodConfig, args); }
|
|
43
28
|
// Method to execute the request synchronously
|
|
44
|
-
|
|
29
|
+
executeAndWait() { return Request.executeRequest(this, false); }
|
|
45
30
|
// Method to return a collection
|
|
46
|
-
|
|
31
|
+
getCollection(method, args) { return Helper.getCollection(this, method, args); }
|
|
47
32
|
// Method to get the request information
|
|
48
|
-
|
|
33
|
+
getInfo() { return Helper.getRequestInfo(this); }
|
|
49
34
|
// Method to get the next set of results
|
|
50
|
-
|
|
35
|
+
getNextSetOfResults() { return Helper.getNextSetOfResults(this); }
|
|
51
36
|
// Method to return a property of the base object
|
|
52
|
-
|
|
37
|
+
getProperty(propertyName, requestType) { return Helper.getProperty(this, propertyName, requestType); }
|
|
53
38
|
// Method to get the request digest value
|
|
54
|
-
|
|
39
|
+
getRequestDigest() { return this.targetInfo.requestDigest; }
|
|
55
40
|
// Method to stop any requests related to getting all items with the query
|
|
56
|
-
|
|
41
|
+
stop() { this.stopFl = true; }
|
|
57
42
|
// Method to stringify the object
|
|
58
|
-
|
|
43
|
+
stringify() { return Helper.stringify(this); }
|
|
59
44
|
// Method to update the metadata uri
|
|
60
|
-
|
|
45
|
+
updateMetadataUri(metadata, targetInfo) { return Helper.updateMetadataUri(this, metadata, targetInfo); }
|
|
61
46
|
// Method to update the request digest value
|
|
62
|
-
|
|
47
|
+
updateRequestDigest(value) { this.targetInfo.requestDigest = value; }
|
|
63
48
|
// Method to wait for the parent requests to complete
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}());
|
|
67
|
-
exports.Base = Base;
|
|
49
|
+
waitForRequestsToComplete(callback, requestIdx) { Request.waitForRequestsToComplete(this, callback, requestIdx); }
|
|
50
|
+
}
|