@pnp/sp-admin 4.0.0-alpha0-v4nightly.20240223 → 4.0.0-alpha0-v4nightly.20240228

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 (53) hide show
  1. package/index.d.ts.map +1 -0
  2. package/index.js.map +1 -0
  3. package/office-tenant.d.ts.map +1 -0
  4. package/office-tenant.js.map +1 -0
  5. package/package.json +6 -19
  6. package/site-properties.d.ts.map +1 -0
  7. package/site-properties.js.map +1 -0
  8. package/tenant.d.ts.map +1 -0
  9. package/tenant.js.map +1 -0
  10. package/types.d.ts.map +1 -0
  11. package/types.js.map +1 -0
  12. package/commonjs/index.d.ts.map +0 -1
  13. package/commonjs/index.js +0 -30
  14. package/commonjs/index.js.map +0 -1
  15. package/commonjs/office-tenant.d.ts.map +0 -1
  16. package/commonjs/office-tenant.js +0 -515
  17. package/commonjs/office-tenant.js.map +0 -1
  18. package/commonjs/package.json +0 -1
  19. package/commonjs/site-properties.d.ts.map +0 -1
  20. package/commonjs/site-properties.js +0 -47
  21. package/commonjs/site-properties.js.map +0 -1
  22. package/commonjs/tenant.d.ts.map +0 -1
  23. package/commonjs/tenant.js +0 -530
  24. package/commonjs/tenant.js.map +0 -1
  25. package/commonjs/types.d.ts.map +0 -1
  26. package/commonjs/types.js +0 -269
  27. package/commonjs/types.js.map +0 -1
  28. package/esm/index.d.ts +0 -20
  29. package/esm/index.d.ts.map +0 -1
  30. package/esm/index.js.map +0 -1
  31. package/esm/office-tenant.d.ts +0 -316
  32. package/esm/office-tenant.d.ts.map +0 -1
  33. package/esm/office-tenant.js.map +0 -1
  34. package/esm/package.json +0 -1
  35. package/esm/site-properties.d.ts +0 -29
  36. package/esm/site-properties.d.ts.map +0 -1
  37. package/esm/site-properties.js.map +0 -1
  38. package/esm/tenant.d.ts +0 -310
  39. package/esm/tenant.d.ts.map +0 -1
  40. package/esm/tenant.js.map +0 -1
  41. package/esm/types.d.ts +0 -1610
  42. package/esm/types.d.ts.map +0 -1
  43. package/esm/types.js.map +0 -1
  44. /package/{commonjs/index.d.ts → index.d.ts} +0 -0
  45. /package/{esm/index.js → index.js} +0 -0
  46. /package/{commonjs/office-tenant.d.ts → office-tenant.d.ts} +0 -0
  47. /package/{esm/office-tenant.js → office-tenant.js} +0 -0
  48. /package/{commonjs/site-properties.d.ts → site-properties.d.ts} +0 -0
  49. /package/{esm/site-properties.js → site-properties.js} +0 -0
  50. /package/{commonjs/tenant.d.ts → tenant.d.ts} +0 -0
  51. /package/{esm/tenant.js → tenant.js} +0 -0
  52. /package/{commonjs/types.d.ts → types.d.ts} +0 -0
  53. /package/{esm/types.js → types.js} +0 -0
package/commonjs/types.js DELETED
@@ -1,269 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SPOHubSiteUserRights = exports.ResultStatus = exports.PersonalSiteFilter = exports.SensitiveByDefaultState = exports.SpecialCharactersState = exports.SiteUserInfoVisibilityPolicyValue = exports.SharingPermissionType = exports.FlowsPolicy = exports.AppViewsPolicy = exports.CompanyWideSharingLinksPolicy = exports.PWAEnabledStatus = exports.RestrictedToRegion = exports.DenyAddAndCustomizePagesStatus = exports.TeamsChannelTypeValue = exports.SpoSiteLockState = exports.SPOUserSessionRevocationState = exports.ImportProfilePropertiesJobState = exports.ImportProfilePropertiesUserIdTypes = exports.SortOrder = exports.SPOTenantCdnPolicyType = exports.SPOrgAssetType = exports.SPOTenantCdnType = exports.MediaTranscriptionPolicyType = exports.TenantBrowseUserInfoPolicyValue = exports.Workflows2013State = exports.SPOLimitedAccessFileType = exports.SPOConditionalAccessPolicyType = exports.SharingScope = exports.BlockDownloadLinksFileTypes = exports.SharingState = exports.AnonymousLinkType = exports.SharingLinkType = exports.SharingDomainRestrictionModes = exports.SPResilienceModeType = exports.AzureSubscriptionState = exports.ImageTaggingChoice = exports.SharingCapabilities = void 0;
4
- var SharingCapabilities;
5
- (function (SharingCapabilities) {
6
- /**
7
- * External user sharing (share by email) and guest link sharing are both disabled for all site collections
8
- * in the tenancy. No new external user invitations or sharing links can be created, and any content previously
9
- * shared becomes inaccessible to external users.
10
- */
11
- SharingCapabilities[SharingCapabilities["Disabled"] = 0] = "Disabled";
12
- /**
13
- * External user sharing is enabled for the tenancy, but guest link sharing is disabled. Each individual
14
- * site collection's sharing properties govern whether the site collection has sharing disabled or allows
15
- * external user sharing, but a site collection cannot enable guest link sharing.
16
- */
17
- SharingCapabilities[SharingCapabilities["ExternalUserSharingOnly"] = 1] = "ExternalUserSharingOnly";
18
- /**
19
- * External user sharing and guest link sharing are enabled for the tenancy. Each individual site
20
- * collection's sharing properties govern whether the site collection has sharing disabled, allows external user
21
- * sharing only, or allows both external user sharing and guest link sharing.
22
- */
23
- SharingCapabilities[SharingCapabilities["ExternalUserAndGuestSharing"] = 2] = "ExternalUserAndGuestSharing";
24
- /**
25
- * External user sharing and guest link sharing are both disabled for the tenancy, but AllowGuestUserSignIn is enabled.
26
- * Each individual site collection's sharing properties govern whether the site collection has sharing disabled or allows
27
- * existing external user signing in, but a site collection cannot enable guest link sharing and cannot share with new external users.
28
- */
29
- SharingCapabilities[SharingCapabilities["ExistingExternalUserSharingOnly"] = 3] = "ExistingExternalUserSharingOnly";
30
- })(SharingCapabilities = exports.SharingCapabilities || (exports.SharingCapabilities = {}));
31
- var ImageTaggingChoice;
32
- (function (ImageTaggingChoice) {
33
- ImageTaggingChoice[ImageTaggingChoice["Disabled"] = 1] = "Disabled";
34
- ImageTaggingChoice[ImageTaggingChoice["Basic"] = 2] = "Basic";
35
- ImageTaggingChoice[ImageTaggingChoice["Enhanced"] = 3] = "Enhanced";
36
- })(ImageTaggingChoice = exports.ImageTaggingChoice || (exports.ImageTaggingChoice = {}));
37
- var AzureSubscriptionState;
38
- (function (AzureSubscriptionState) {
39
- AzureSubscriptionState[AzureSubscriptionState["Unknown"] = 0] = "Unknown";
40
- AzureSubscriptionState[AzureSubscriptionState["Active"] = 1] = "Active";
41
- AzureSubscriptionState[AzureSubscriptionState["Deleted"] = 2] = "Deleted";
42
- AzureSubscriptionState[AzureSubscriptionState["Disabled"] = 3] = "Disabled";
43
- AzureSubscriptionState[AzureSubscriptionState["Expired"] = 4] = "Expired";
44
- AzureSubscriptionState[AzureSubscriptionState["PastDue"] = 5] = "PastDue";
45
- AzureSubscriptionState[AzureSubscriptionState["Warned"] = 6] = "Warned";
46
- })(AzureSubscriptionState = exports.AzureSubscriptionState || (exports.AzureSubscriptionState = {}));
47
- var SPResilienceModeType;
48
- (function (SPResilienceModeType) {
49
- SPResilienceModeType[SPResilienceModeType["DefaultAAD"] = 0] = "DefaultAAD";
50
- SPResilienceModeType[SPResilienceModeType["Enabled"] = 1] = "Enabled";
51
- SPResilienceModeType[SPResilienceModeType["Disabled"] = 2] = "Disabled";
52
- })(SPResilienceModeType = exports.SPResilienceModeType || (exports.SPResilienceModeType = {}));
53
- var SharingDomainRestrictionModes;
54
- (function (SharingDomainRestrictionModes) {
55
- SharingDomainRestrictionModes[SharingDomainRestrictionModes["None"] = 0] = "None";
56
- SharingDomainRestrictionModes[SharingDomainRestrictionModes["AllowList"] = 1] = "AllowList";
57
- SharingDomainRestrictionModes[SharingDomainRestrictionModes["BlockList"] = 2] = "BlockList";
58
- })(SharingDomainRestrictionModes = exports.SharingDomainRestrictionModes || (exports.SharingDomainRestrictionModes = {}));
59
- var SharingLinkType;
60
- (function (SharingLinkType) {
61
- SharingLinkType[SharingLinkType["View"] = 0] = "View";
62
- SharingLinkType[SharingLinkType["Edit"] = 1] = "Edit";
63
- SharingLinkType[SharingLinkType["Review"] = 2] = "Review";
64
- SharingLinkType[SharingLinkType["Embed"] = 3] = "Embed";
65
- SharingLinkType[SharingLinkType["BlocksDownload"] = 4] = "BlocksDownload";
66
- SharingLinkType[SharingLinkType["CreateOnly"] = 5] = "CreateOnly";
67
- SharingLinkType[SharingLinkType["AddressBar"] = 6] = "AddressBar";
68
- SharingLinkType[SharingLinkType["AdminDefault"] = 7] = "AdminDefault";
69
- SharingLinkType[SharingLinkType["Unknown"] = 8] = "Unknown";
70
- })(SharingLinkType = exports.SharingLinkType || (exports.SharingLinkType = {}));
71
- var AnonymousLinkType;
72
- (function (AnonymousLinkType) {
73
- AnonymousLinkType[AnonymousLinkType["None"] = 0] = "None";
74
- AnonymousLinkType[AnonymousLinkType["View"] = 1] = "View";
75
- AnonymousLinkType[AnonymousLinkType["Edit"] = 2] = "Edit";
76
- })(AnonymousLinkType = exports.AnonymousLinkType || (exports.AnonymousLinkType = {}));
77
- var SharingState;
78
- (function (SharingState) {
79
- SharingState[SharingState["Unspecified"] = 0] = "Unspecified";
80
- SharingState[SharingState["On"] = 1] = "On";
81
- SharingState[SharingState["Off"] = 2] = "Off";
82
- })(SharingState = exports.SharingState || (exports.SharingState = {}));
83
- var BlockDownloadLinksFileTypes;
84
- (function (BlockDownloadLinksFileTypes) {
85
- BlockDownloadLinksFileTypes[BlockDownloadLinksFileTypes["WebPreviewableFiles"] = 1] = "WebPreviewableFiles";
86
- BlockDownloadLinksFileTypes[BlockDownloadLinksFileTypes["ServerRenderedFilesOnly"] = 2] = "ServerRenderedFilesOnly";
87
- })(BlockDownloadLinksFileTypes = exports.BlockDownloadLinksFileTypes || (exports.BlockDownloadLinksFileTypes = {}));
88
- var SharingScope;
89
- (function (SharingScope) {
90
- SharingScope[SharingScope["Anyone"] = 0] = "Anyone";
91
- SharingScope[SharingScope["Organization"] = 1] = "Organization";
92
- SharingScope[SharingScope["SpecificPeople"] = 2] = "SpecificPeople";
93
- })(SharingScope = exports.SharingScope || (exports.SharingScope = {}));
94
- var SPOConditionalAccessPolicyType;
95
- (function (SPOConditionalAccessPolicyType) {
96
- SPOConditionalAccessPolicyType[SPOConditionalAccessPolicyType["AllowFullAccess"] = 0] = "AllowFullAccess";
97
- SPOConditionalAccessPolicyType[SPOConditionalAccessPolicyType["AllowLimitedAccess"] = 1] = "AllowLimitedAccess";
98
- SPOConditionalAccessPolicyType[SPOConditionalAccessPolicyType["BlockAccess"] = 2] = "BlockAccess";
99
- SPOConditionalAccessPolicyType[SPOConditionalAccessPolicyType["AuthenticationContext"] = 3] = "AuthenticationContext";
100
- })(SPOConditionalAccessPolicyType = exports.SPOConditionalAccessPolicyType || (exports.SPOConditionalAccessPolicyType = {}));
101
- var SPOLimitedAccessFileType;
102
- (function (SPOLimitedAccessFileType) {
103
- SPOLimitedAccessFileType[SPOLimitedAccessFileType["OfficeOnlineFilesOnly"] = 0] = "OfficeOnlineFilesOnly";
104
- SPOLimitedAccessFileType[SPOLimitedAccessFileType["WebPreviewableFiles"] = 1] = "WebPreviewableFiles";
105
- SPOLimitedAccessFileType[SPOLimitedAccessFileType["OtherFiles"] = 2] = "OtherFiles";
106
- })(SPOLimitedAccessFileType = exports.SPOLimitedAccessFileType || (exports.SPOLimitedAccessFileType = {}));
107
- var Workflows2013State;
108
- (function (Workflows2013State) {
109
- Workflows2013State[Workflows2013State["Disabled"] = 0] = "Disabled";
110
- Workflows2013State[Workflows2013State["Configuring"] = 1] = "Configuring";
111
- Workflows2013State[Workflows2013State["Enabled"] = 2] = "Enabled";
112
- })(Workflows2013State = exports.Workflows2013State || (exports.Workflows2013State = {}));
113
- var TenantBrowseUserInfoPolicyValue;
114
- (function (TenantBrowseUserInfoPolicyValue) {
115
- TenantBrowseUserInfoPolicyValue[TenantBrowseUserInfoPolicyValue["ApplyToNoUsers"] = 0] = "ApplyToNoUsers";
116
- TenantBrowseUserInfoPolicyValue[TenantBrowseUserInfoPolicyValue["ApplyToGuestAndExternalUsers"] = 1] = "ApplyToGuestAndExternalUsers";
117
- TenantBrowseUserInfoPolicyValue[TenantBrowseUserInfoPolicyValue["ApplyToInternalUsers"] = 2] = "ApplyToInternalUsers";
118
- TenantBrowseUserInfoPolicyValue[TenantBrowseUserInfoPolicyValue["ApplyToAllUsers"] = 3] = "ApplyToAllUsers";
119
- })(TenantBrowseUserInfoPolicyValue = exports.TenantBrowseUserInfoPolicyValue || (exports.TenantBrowseUserInfoPolicyValue = {}));
120
- var MediaTranscriptionPolicyType;
121
- (function (MediaTranscriptionPolicyType) {
122
- MediaTranscriptionPolicyType[MediaTranscriptionPolicyType["Enabled"] = 0] = "Enabled";
123
- MediaTranscriptionPolicyType[MediaTranscriptionPolicyType["Disabled"] = 1] = "Disabled";
124
- })(MediaTranscriptionPolicyType = exports.MediaTranscriptionPolicyType || (exports.MediaTranscriptionPolicyType = {}));
125
- var SPOTenantCdnType;
126
- (function (SPOTenantCdnType) {
127
- SPOTenantCdnType[SPOTenantCdnType["Public"] = 0] = "Public";
128
- SPOTenantCdnType[SPOTenantCdnType["Private"] = 1] = "Private";
129
- })(SPOTenantCdnType = exports.SPOTenantCdnType || (exports.SPOTenantCdnType = {}));
130
- var SPOrgAssetType;
131
- (function (SPOrgAssetType) {
132
- // The flag for Undefined is 0000.
133
- SPOrgAssetType[SPOrgAssetType["Undefined"] = 0] = "Undefined";
134
- // The flag for ImageDocumentLibrary is 0001.
135
- SPOrgAssetType[SPOrgAssetType["ImageDocumentLibrary"] = 1] = "ImageDocumentLibrary";
136
- // The flag for OfficeTemplateLibrary is 0010.
137
- SPOrgAssetType[SPOrgAssetType["OfficeTemplateLibrary"] = 2] = "OfficeTemplateLibrary";
138
- // The flag for OfficeFontLibrary is 0100.
139
- SPOrgAssetType[SPOrgAssetType["OfficeFontLibrary"] = 4] = "OfficeFontLibrary";
140
- })(SPOrgAssetType = exports.SPOrgAssetType || (exports.SPOrgAssetType = {}));
141
- var SPOTenantCdnPolicyType;
142
- (function (SPOTenantCdnPolicyType) {
143
- SPOTenantCdnPolicyType[SPOTenantCdnPolicyType["IncludeFileExtensions"] = 0] = "IncludeFileExtensions";
144
- SPOTenantCdnPolicyType[SPOTenantCdnPolicyType["ExcludeRestrictedSiteClassifications"] = 1] = "ExcludeRestrictedSiteClassifications";
145
- SPOTenantCdnPolicyType[SPOTenantCdnPolicyType["ExcludeIfNoScriptDisabled"] = 2] = "ExcludeIfNoScriptDisabled";
146
- SPOTenantCdnPolicyType[SPOTenantCdnPolicyType["ExcludeRestrictedSiteClassificationsFileExtensions"] = 3] = "ExcludeRestrictedSiteClassificationsFileExtensions";
147
- })(SPOTenantCdnPolicyType = exports.SPOTenantCdnPolicyType || (exports.SPOTenantCdnPolicyType = {}));
148
- var SortOrder;
149
- (function (SortOrder) {
150
- SortOrder[SortOrder["Ascending"] = 0] = "Ascending";
151
- SortOrder[SortOrder["Descending"] = 1] = "Descending";
152
- })(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
153
- var ImportProfilePropertiesUserIdTypes;
154
- (function (ImportProfilePropertiesUserIdTypes) {
155
- ImportProfilePropertiesUserIdTypes[ImportProfilePropertiesUserIdTypes["Email"] = 0] = "Email";
156
- ImportProfilePropertiesUserIdTypes[ImportProfilePropertiesUserIdTypes["CloudId"] = 1] = "CloudId";
157
- ImportProfilePropertiesUserIdTypes[ImportProfilePropertiesUserIdTypes["PrincipalName"] = 2] = "PrincipalName";
158
- })(ImportProfilePropertiesUserIdTypes = exports.ImportProfilePropertiesUserIdTypes || (exports.ImportProfilePropertiesUserIdTypes = {}));
159
- var ImportProfilePropertiesJobState;
160
- (function (ImportProfilePropertiesJobState) {
161
- ImportProfilePropertiesJobState[ImportProfilePropertiesJobState["Unknown"] = 0] = "Unknown";
162
- ImportProfilePropertiesJobState[ImportProfilePropertiesJobState["Submitted"] = 1] = "Submitted";
163
- ImportProfilePropertiesJobState[ImportProfilePropertiesJobState["Processing"] = 2] = "Processing";
164
- ImportProfilePropertiesJobState[ImportProfilePropertiesJobState["Queued"] = 3] = "Queued";
165
- ImportProfilePropertiesJobState[ImportProfilePropertiesJobState["Succeeded"] = 4] = "Succeeded";
166
- ImportProfilePropertiesJobState[ImportProfilePropertiesJobState["Error"] = 5] = "Error";
167
- })(ImportProfilePropertiesJobState = exports.ImportProfilePropertiesJobState || (exports.ImportProfilePropertiesJobState = {}));
168
- var SPOUserSessionRevocationState;
169
- (function (SPOUserSessionRevocationState) {
170
- SPOUserSessionRevocationState[SPOUserSessionRevocationState["FeatureDisabled"] = 0] = "FeatureDisabled";
171
- SPOUserSessionRevocationState[SPOUserSessionRevocationState["UserNotFound"] = 1] = "UserNotFound";
172
- SPOUserSessionRevocationState[SPOUserSessionRevocationState["Failure"] = 2] = "Failure";
173
- SPOUserSessionRevocationState[SPOUserSessionRevocationState["NonInstantaneousSuccess"] = 3] = "NonInstantaneousSuccess";
174
- SPOUserSessionRevocationState[SPOUserSessionRevocationState["InstantaneousSuccess"] = 4] = "InstantaneousSuccess";
175
- })(SPOUserSessionRevocationState = exports.SPOUserSessionRevocationState || (exports.SPOUserSessionRevocationState = {}));
176
- var SpoSiteLockState;
177
- (function (SpoSiteLockState) {
178
- SpoSiteLockState[SpoSiteLockState["Unlock"] = 0] = "Unlock";
179
- SpoSiteLockState[SpoSiteLockState["NoAdditions"] = 1] = "NoAdditions";
180
- SpoSiteLockState[SpoSiteLockState["ReadOnly"] = 2] = "ReadOnly";
181
- SpoSiteLockState[SpoSiteLockState["NoAccess"] = 3] = "NoAccess";
182
- })(SpoSiteLockState = exports.SpoSiteLockState || (exports.SpoSiteLockState = {}));
183
- var TeamsChannelTypeValue;
184
- (function (TeamsChannelTypeValue) {
185
- TeamsChannelTypeValue[TeamsChannelTypeValue["None"] = 0] = "None";
186
- TeamsChannelTypeValue[TeamsChannelTypeValue["PrivateChannel"] = 1] = "PrivateChannel";
187
- TeamsChannelTypeValue[TeamsChannelTypeValue["SharedChannel"] = 2] = "SharedChannel";
188
- TeamsChannelTypeValue[TeamsChannelTypeValue["StandardChannel"] = 3] = "StandardChannel";
189
- })(TeamsChannelTypeValue = exports.TeamsChannelTypeValue || (exports.TeamsChannelTypeValue = {}));
190
- var DenyAddAndCustomizePagesStatus;
191
- (function (DenyAddAndCustomizePagesStatus) {
192
- DenyAddAndCustomizePagesStatus[DenyAddAndCustomizePagesStatus["Unknown"] = 0] = "Unknown";
193
- DenyAddAndCustomizePagesStatus[DenyAddAndCustomizePagesStatus["Disabled"] = 1] = "Disabled";
194
- DenyAddAndCustomizePagesStatus[DenyAddAndCustomizePagesStatus["Enabled"] = 2] = "Enabled";
195
- })(DenyAddAndCustomizePagesStatus = exports.DenyAddAndCustomizePagesStatus || (exports.DenyAddAndCustomizePagesStatus = {}));
196
- var RestrictedToRegion;
197
- (function (RestrictedToRegion) {
198
- RestrictedToRegion[RestrictedToRegion["NoRestriction"] = 0] = "NoRestriction";
199
- RestrictedToRegion[RestrictedToRegion["BlockMoveOnly"] = 1] = "BlockMoveOnly";
200
- RestrictedToRegion[RestrictedToRegion["BlockFull"] = 2] = "BlockFull";
201
- RestrictedToRegion[RestrictedToRegion["Unknown"] = 3] = "Unknown";
202
- })(RestrictedToRegion = exports.RestrictedToRegion || (exports.RestrictedToRegion = {}));
203
- var PWAEnabledStatus;
204
- (function (PWAEnabledStatus) {
205
- PWAEnabledStatus[PWAEnabledStatus["Unknown"] = 0] = "Unknown";
206
- PWAEnabledStatus[PWAEnabledStatus["Disabled"] = 1] = "Disabled";
207
- PWAEnabledStatus[PWAEnabledStatus["Enabled"] = 2] = "Enabled";
208
- })(PWAEnabledStatus = exports.PWAEnabledStatus || (exports.PWAEnabledStatus = {}));
209
- var CompanyWideSharingLinksPolicy;
210
- (function (CompanyWideSharingLinksPolicy) {
211
- CompanyWideSharingLinksPolicy[CompanyWideSharingLinksPolicy["Unknown"] = 0] = "Unknown";
212
- CompanyWideSharingLinksPolicy[CompanyWideSharingLinksPolicy["Disabled"] = 1] = "Disabled";
213
- CompanyWideSharingLinksPolicy[CompanyWideSharingLinksPolicy["NotDisabled"] = 2] = "NotDisabled";
214
- })(CompanyWideSharingLinksPolicy = exports.CompanyWideSharingLinksPolicy || (exports.CompanyWideSharingLinksPolicy = {}));
215
- var AppViewsPolicy;
216
- (function (AppViewsPolicy) {
217
- AppViewsPolicy[AppViewsPolicy["Unknown"] = 0] = "Unknown";
218
- AppViewsPolicy[AppViewsPolicy["Disabled"] = 1] = "Disabled";
219
- AppViewsPolicy[AppViewsPolicy["NotDisabled"] = 2] = "NotDisabled";
220
- })(AppViewsPolicy = exports.AppViewsPolicy || (exports.AppViewsPolicy = {}));
221
- var FlowsPolicy;
222
- (function (FlowsPolicy) {
223
- FlowsPolicy[FlowsPolicy["Unknown"] = 0] = "Unknown";
224
- FlowsPolicy[FlowsPolicy["Disabled"] = 1] = "Disabled";
225
- FlowsPolicy[FlowsPolicy["NotDisabled"] = 2] = "NotDisabled";
226
- })(FlowsPolicy = exports.FlowsPolicy || (exports.FlowsPolicy = {}));
227
- var SharingPermissionType;
228
- (function (SharingPermissionType) {
229
- SharingPermissionType[SharingPermissionType["None"] = 0] = "None";
230
- SharingPermissionType[SharingPermissionType["View"] = 1] = "View";
231
- SharingPermissionType[SharingPermissionType["Edit"] = 2] = "Edit";
232
- })(SharingPermissionType = exports.SharingPermissionType || (exports.SharingPermissionType = {}));
233
- var SiteUserInfoVisibilityPolicyValue;
234
- (function (SiteUserInfoVisibilityPolicyValue) {
235
- SiteUserInfoVisibilityPolicyValue[SiteUserInfoVisibilityPolicyValue["OrganizationDefault"] = 0] = "OrganizationDefault";
236
- SiteUserInfoVisibilityPolicyValue[SiteUserInfoVisibilityPolicyValue["ApplyToNoUsers"] = 1] = "ApplyToNoUsers";
237
- SiteUserInfoVisibilityPolicyValue[SiteUserInfoVisibilityPolicyValue["ApplyToGuestAndExternalUsers"] = 2] = "ApplyToGuestAndExternalUsers";
238
- SiteUserInfoVisibilityPolicyValue[SiteUserInfoVisibilityPolicyValue["ApplyToInternalUsers"] = 3] = "ApplyToInternalUsers";
239
- SiteUserInfoVisibilityPolicyValue[SiteUserInfoVisibilityPolicyValue["ApplyToAllUsers"] = 4] = "ApplyToAllUsers";
240
- })(SiteUserInfoVisibilityPolicyValue = exports.SiteUserInfoVisibilityPolicyValue || (exports.SiteUserInfoVisibilityPolicyValue = {}));
241
- var SpecialCharactersState;
242
- (function (SpecialCharactersState) {
243
- SpecialCharactersState[SpecialCharactersState["NoPreference"] = 0] = "NoPreference";
244
- SpecialCharactersState[SpecialCharactersState["Allowed"] = 1] = "Allowed";
245
- SpecialCharactersState[SpecialCharactersState["Disallowed"] = 2] = "Disallowed";
246
- })(SpecialCharactersState = exports.SpecialCharactersState || (exports.SpecialCharactersState = {}));
247
- var SensitiveByDefaultState;
248
- (function (SensitiveByDefaultState) {
249
- SensitiveByDefaultState[SensitiveByDefaultState["AllowExternalSharing"] = 0] = "AllowExternalSharing";
250
- SensitiveByDefaultState[SensitiveByDefaultState["BlockExternalSharing"] = 1] = "BlockExternalSharing";
251
- })(SensitiveByDefaultState = exports.SensitiveByDefaultState || (exports.SensitiveByDefaultState = {}));
252
- var PersonalSiteFilter;
253
- (function (PersonalSiteFilter) {
254
- PersonalSiteFilter[PersonalSiteFilter["UseServerDefault"] = 0] = "UseServerDefault";
255
- PersonalSiteFilter[PersonalSiteFilter["Include"] = 1] = "Include";
256
- PersonalSiteFilter[PersonalSiteFilter["Exclude"] = 2] = "Exclude";
257
- })(PersonalSiteFilter = exports.PersonalSiteFilter || (exports.PersonalSiteFilter = {}));
258
- var ResultStatus;
259
- (function (ResultStatus) {
260
- ResultStatus[ResultStatus["Success"] = 0] = "Success";
261
- ResultStatus[ResultStatus["Warning"] = 1] = "Warning";
262
- ResultStatus[ResultStatus["Error"] = 2] = "Error";
263
- })(ResultStatus = exports.ResultStatus || (exports.ResultStatus = {}));
264
- var SPOHubSiteUserRights;
265
- (function (SPOHubSiteUserRights) {
266
- SPOHubSiteUserRights[SPOHubSiteUserRights["None"] = 0] = "None";
267
- SPOHubSiteUserRights[SPOHubSiteUserRights["Join"] = 1] = "Join";
268
- })(SPOHubSiteUserRights = exports.SPOHubSiteUserRights || (exports.SPOHubSiteUserRights = {}));
269
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/sp-admin/types.ts"],"names":[],"mappings":";;;AAikBA,IAAY,mBAyBX;AAzBD,WAAY,mBAAmB;IAC3B;;;;OAIG;IACH,qE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oBAGX;AAHD,WAAY,oBAAoB;IAC5B,+DAAQ,CAAA;IACR,+DAAQ,CAAA;AACZ,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B"}
package/esm/index.d.ts DELETED
@@ -1,20 +0,0 @@
1
- import { IOffice365Tenant } from "./office-tenant.js";
2
- import { ITenantSiteProperties } from "./site-properties.js";
3
- import { ITenant } from "./tenant.js";
4
- export * from "./types.js";
5
- export * from "./office-tenant.js";
6
- declare module "@pnp/sp/fi" {
7
- interface SPFI {
8
- /**
9
- * Access to the admin capabilities
10
- */
11
- readonly admin: IAdmin;
12
- }
13
- }
14
- export interface IAdmin {
15
- readonly office365Tenant: IOffice365Tenant;
16
- readonly siteProperties: ITenantSiteProperties;
17
- readonly tenant: ITenant;
18
- }
19
- export declare const Admin: IAdmin;
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/sp-admin/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAwB,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,OAAO,EAAU,MAAM,aAAa,CAAC;AAE9C,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AAEnC,OAAO,QAAQ,YAAY,CAAC;IACxB,UAAU,IAAI;QAEV;;WAEG;QACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KAC1B;CACJ;AAwBD,MAAM,WAAW,MAAM;IACnB,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAC3C,QAAQ,CAAC,cAAc,EAAE,qBAAqB,CAAC;IAC/C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC5B;AACD,eAAO,MAAM,KAAK,EAAE,MAAwC,CAAC"}
package/esm/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sp-admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAoB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAyB,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAW,MAAM,EAAE,MAAM,aAAa,CAAC;AAE9C,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AAYnC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE;IAC5C,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,GAAG,EAAE;QACD,OAAO,IAAI,CAAC,MAAM,CAAM,KAAK,CAAC,CAAC;IACnC,CAAC;CACJ,CAAC,CAAC;AAEH,MAAM,MAAO,SAAQ,YAAY;IAE7B,IAAW,eAAe;QACtB,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,IAAW,cAAc;QACrB,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED,IAAW,MAAM;QACb,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;CACJ;AAMD,MAAM,CAAC,MAAM,KAAK,GAAgB,kBAAkB,CAAC,MAAM,CAAC,CAAC"}
@@ -1,316 +0,0 @@
1
- import { _SPInstance, IResourcePath } from "@pnp/sp";
2
- import { IGetExternalUsersResults, IImportProfilePropertiesJobInfo, ImportProfilePropertiesUserIdTypes, IOffice365TenantInfo, IRemoveExternalUsersResults, ISPOUserSessionRevocationResult, IThemeProperties, SortOrder, SPOrgAssetType, SPOTenantCdnPolicyType, SPOTenantCdnType } from "./types.js";
3
- declare class _Office365Tenant extends _SPInstance<IOffice365TenantInfo> {
4
- /**
5
- * Choose which fields to return
6
- *
7
- * @param selects One or more fields to return
8
- * @description we limit the selects here because there are so many values possible and it improves discoverability.
9
- * Unfortunately this doesn't work as a general solution due to expands
10
- */
11
- select(...selects: ("*" | keyof IOffice365TenantInfo)[]): this;
12
- /**
13
- *Sets the configuration values for Idle session sign out for unmanaged devices
14
- *
15
- *@param enabled Boolean indicating if the policy should be enabled
16
- *@param warnAfter TimeSpan containing the time before warning the user
17
- *@param signOutAfter TimeSpan containing the time before signing out the user
18
- *@returns True if the operation succeeds, false otherwise
19
- */
20
- setIdleSessionSignOutForUnmanagedDevices(enabled: boolean, warnAfter: any, signOutAfter: any): Promise<boolean>;
21
- /**
22
- *Gets the configuration values, as a string, for Idle session sign out for unmanaged devices
23
- *The return string is a comma delineated list of the three policy settings. The policy settings consist of
24
- *1. Enabled: true or false
25
- *2. Warn after: Time until user should be warned in seconds.
26
- *3. Sign out after: Time until user should be signed out in seconds.
27
- *
28
- *@returns A string indicating the current policy settings
29
- */
30
- getIdleSessionSignOutForUnmanagedDevices(): Promise<string>;
31
- /**
32
- *Adds a SharePoint document library to the list of Organization Assets libraries
33
- *
34
- *@param cdnType
35
- *@param libUrl Url of a SharePoint document library to be added to the list of Organization Assets libraries
36
- *@param thumbnailUrl
37
- *@param orgAssetType
38
- *@param defaultOriginAdded
39
- */
40
- addToOrgAssetsLibAndCdn(cdnType: SPOTenantCdnType, libUrl: IResourcePath, thumbnailUrl: IResourcePath, orgAssetType: SPOrgAssetType, defaultOriginAdded: boolean): Promise<void>;
41
- removeFromOrgAssetsAndCdn(remove: boolean, cdnType: SPOTenantCdnType, libUrl: IResourcePath): Promise<void>;
42
- /**
43
- *Removes an entry from the list of Organization Assets libraries
44
- */
45
- removeFromOrgAssets(libUrl: IResourcePath, listId: string): Promise<void>;
46
- /**
47
- *Sets a SharePoint library thumbnail in Organization Assets libraries
48
- *
49
- *@param libUrl Url of a SharePoint library to be set in Organization Assets
50
- *@param thumbnailUrl Url to an image used as the thumbnail for this library in the FilePicker
51
- *@param orgAssetType Type of Organization Assets Document Library
52
- */
53
- setOrgAssetsLib(libUrl: IResourcePath, thumbnailUrl: IResourcePath, orgAssetType: SPOrgAssetType): Promise<void>;
54
- /**
55
- * Gets the minor version that should be used to generate the next iteration of the custom font catalog for the
56
- * font org asset library specified by libUrl
57
- */
58
- getCustomFontsMinorVersion(libUrl: IResourcePath): Promise<number>;
59
- /**
60
- *Uploads fonts and font catalogs to a font asset library
61
- */
62
- uploadCustomFontsAndCatalogLib(customFontFiles: any, libUrl: IResourcePath): Promise<boolean>;
63
- /**
64
- *Removes old Custom Fonts files
65
- */
66
- removePreviousCustomFontUpload(majVersions: string[], libUrl: IResourcePath): Promise<void>;
67
- /**
68
- *Increments the minor version for libUrl
69
- */
70
- incrementCustomFontsMinorVersion(libUrl: IResourcePath): Promise<void>;
71
- /**
72
- *Gets a list of tenant CDN origins
73
- *
74
- *@param cdnType Type of CDN: private or public
75
- */
76
- getTenantCdnOrigins(cdnType: SPOTenantCdnType): Promise<string[]>;
77
- /**
78
- *Adds a tenant cdn origin
79
- *
80
- *@param cdnType Type of CDN: private or public
81
- *@param originUrl origin Url to add
82
- */
83
- addTenantCdnOrigin(cdnType: SPOTenantCdnType, originUrl: string): Promise<void>;
84
- /**
85
- *Removes a tenant cdn origin
86
- *
87
- *@param cdnType Type of CDN: private or public
88
- *@param originUrl origin Url to remove
89
- */
90
- removeTenantCdnOrigin(cdnType: SPOTenantCdnType, originUrl: string): Promise<void>;
91
- /**
92
- *Enables or disabled tenant CDN feature
93
- *
94
- *@param cdnType Type of CDN: private or public
95
- *@param isEnabled value to set
96
- */
97
- setTenantCdnEnabled(cdnType: SPOTenantCdnType, isEnabled: boolean): Promise<void>;
98
- /**
99
- *Gets whether tenant CDN feature is enabled
100
- *
101
- *@param cdnType Type of CDN: private or public
102
- *@returns True if CDN is enabled; false otherwise
103
- */
104
- getTenantCdnEnabled(cdnType: SPOTenantCdnType): Promise<boolean>;
105
- /**
106
- *Sets policy for the tenant CDN
107
- *
108
- *@param cdnType CDN type
109
- *@param policy Policy type
110
- *@param policyValue Policy value
111
- */
112
- setTenantCdnPolicy(cdnType: SPOTenantCdnType, policy: SPOTenantCdnPolicyType, policyValue: string): Promise<void>;
113
- /**
114
- *Gets list of policies for the tenant CDN
115
- *
116
- *@param cdnType CDN type
117
- *@returns List of policies
118
- */
119
- getTenantCdnPolicies(cdnType: SPOTenantCdnType): Promise<string[]>;
120
- /**
121
- *Creates default origins for requested CDN type
122
- */
123
- createTenantCdnDefaultOrigins(cdnType: SPOTenantCdnType): Promise<void>;
124
- /**
125
- *Add a custom theme to the tenant so that it will be available when selecting a site theme
126
- *
127
- *@param name The name of the theme
128
- *@param themeJson A JSON representation of the theme information
129
- *@returns True, if the theme is added successfully
130
- */
131
- addTenantTheme(name: string, themeJson: string): Promise<boolean>;
132
- /**
133
- *Update the properties of a custom theme
134
- *
135
- *@param name The name of the theme to update
136
- *@param themeJson A JSON representation of the new theme information
137
- *@returns True, if the theme is updated successfully
138
- */
139
- updateTenantTheme(name: string, themeJson: string): Promise<boolean>;
140
- /**
141
- *Remove a custom theme from the tenant
142
- *
143
- *@param name The name of the theme to delete
144
- */
145
- deleteTenantTheme(name: string): Promise<void>;
146
- /**
147
- *Retrieves a custom theme previously added to the tenant
148
- *
149
- *@param name The name of the theme to retrieve
150
- *@returns A ThemeProperties object representing the theme
151
- */
152
- getTenantTheme(name: string): Promise<IThemeProperties>;
153
- /**
154
- *Retrieves all custom themes added to the tenant
155
- *
156
- *@returns ThemeProperties objects representing all of the custom themes added to the tenant
157
- */
158
- getAllTenantThemes(): Promise<IThemeProperties[]>;
159
- /**
160
- *Retrieves a setting specifying whether default SharePoint themes should be hidden from the web UI
161
- *
162
- *@return True, if default SharePoint themes should be hidden from the web UI
163
- */
164
- getHideDefaultThemes(): Promise<boolean>;
165
- /**
166
- *Updates a setting specifying whether default SharePoint themes should be hidden from the web UI
167
- *
168
- *@param hideDefaultThemes
169
- *@returns True, if the setting is updated successfully
170
- */
171
- setHideDefaultThemes(hideDefaultThemes: boolean): Promise<boolean>;
172
- /**
173
- *Adds an SDN provider to the tenant
174
- *
175
- *@param identifier id of an SDN provider to be added
176
- *@param license license number provided by SDN provider
177
- */
178
- addSdnProvider(identifier: string, license: string): Promise<void>;
179
- /**
180
- *Removes an entry from the list of supported SDN providers
181
- */
182
- removeSdnProvider(): Promise<void>;
183
- /**
184
- *Returns a collection of User objects corresponding to external users in the tenancy
185
- *
186
- *@param position Zero-based index of the position in the sorted collection of the first result to be returned
187
- *@param pageSize The maximum number of ExternalUsers to be returned in the collection. Must be less than or equal to 50
188
- *@param filter Limits the results to only those ExternalUers whose display name or invitedAs email address begins with the text in the string, using case-insensitive
189
- *@param sortOrder Specifies whether a call to GetExternalUsers should sort results in Ascending or Descending order on the ExternalUser.invitedAs property
190
- *@returns A GetExternalUsersResults object containing up to pageSize users that match the filter criteria, in the order specified, starting from the specified position.
191
- *Further pages can be fetched by calling again with the same filter and sortOrder parameters but specifying for position the
192
- *GetExternalUsersResults.UserCollectionPosition value returned from the previous call. If GetExternalUsersResults.ExternalUserCollection.Count is less than pageSize,
193
- *all available users have been returned (it is the last page of results.)
194
- */
195
- getExternalUsers(position?: number, pageSize?: number, filter?: string, sortOrder?: SortOrder): Promise<IGetExternalUsersResults>;
196
- /**
197
- *Returns a collection of User objects corresponding to external users in the tenancy
198
- *
199
- *@param position Zero-based index of the position in the sorted collection of the first result to be returned
200
- *@param pageSize The maximum number of ExternalUsers to be returned in the collection. Must be less than or equal to 50
201
- *@param filter Limits the results to only those ExternalUers whose display name or invitedAs email address begins with the text in the string, case-insensitive
202
- *@param sortPropertyName Name of the property to sort by. Support ExternalUser.acceptedAs and ExternalUser.whenCreated property
203
- *@param sortOrder Specifies whether a call to GetExternalUsers should sort results in Ascending or Descending order on the ExternalUser.invitedAs property
204
- *@returns A GetExternalUsersResults object containing up to pageSize users that match the filter criteria, in the order specified, starting from the specified position.
205
- *Further pages can be fetched by calling again with the same filter and sortOrder parameters but specifying for position the
206
- *GetExternalUsersResults.UserCollectionPosition value returned from the previous call. If GetExternalUsersResults.ExternalUserCollection.Count is less than pageSize,
207
- *all available users have been returned (it is the last page of results.)
208
- */
209
- getExternalUsersWithSortBy(position?: number, pageSize?: number, filter?: string, sortPropertyName?: string, sortOrder?: SortOrder): Promise<IGetExternalUsersResults>;
210
- /**
211
- *Returns a collection of User objects corresponding to external users who have accessed this site collection
212
- *
213
- *@param siteUrl The site url whose external users are required
214
- *@param position Zero-based index of the position in the sorted collection of the first result to be returned
215
- *@param pageSize The maximum number of ExternalUsers to be returned in the collection. Must be less than or equal to 50
216
- *@param filter Limits the results to only those ExternalUers whose display name or invitedAs email address begins with the text in the string, case-insensitive
217
- *@param sortOrder Specifies whether a call to GetExternalUsers should sort results in Ascending or Descending order on the ExternalUser.invitedAs property
218
- *@returns A GetExternalUsersResults object containing up to pageSize users that match the filter criteria, in the order specified, starting from the specified position.
219
- * Further pages can be fetched by calling again with the same filter and sortOrder parameters but specifying for position the GetExternalUsersResults.UserCollectionPosition
220
- * value returned from the previous call. If GetExternalUsersResults.ExternalUserCollection.Count is less than pageSize,
221
- * all available users have been returned (it is the last page of results.)
222
- */
223
- getExternalUsersForSite(siteUrl: string, position?: number, pageSize?: number, filter?: string, sortOrder?: SortOrder): Promise<IGetExternalUsersResults>;
224
- /**
225
- *Removes from the directory external users whose full ExternalUser.UniqueId property belongs in (case insensitive) the array of strings.
226
- *This method is unaffected by the value of the SharingCapability property
227
- *
228
- *@param uniqueIds An array of strings, where each string is the UniqueId of an external user to delete
229
- *@returns A RemoveExternalUsersResults object with the RemoveSucceeded and RemoveFailed arrays populated based on the results of attempting to remove the specified users.
230
- */
231
- removeExternalUsers(uniqueIds: string[]): Promise<IRemoveExternalUsersResults>;
232
- /**
233
- * Queues an import of custom properties into user profiles from an external data source. This is a mostly asynchronous call in that it doesn't download
234
- * the source data or do the import, it simply adds it to a queue to do later
235
- *
236
- *@description The overall process for this import is as follows:
237
- *1) Create users in the User Profile Service. The custom property import process does not import users, only properties.
238
- *2) Create the custom properties in the User Profile Service. The custom property import process does not create the properties, just imports the values.
239
- *3) Create an external data source, the uri of which is passed to this method as the sourceUri parameter. The Uri must point to a resource that is accessible
240
- * from within the SharePoint Online data center. It must have a record for each user with properties to import. Users are identified in the source data using
241
- * the property passed to sourceDataIdProperty.
242
- *4) Call this method. This mehod queues the import. The data pointed to by sourceUri will be downloaded to the server and later imported into the User
243
- * Profile Service. Data will be downloaded roughly once an hour and then queued for actual import.
244
- *
245
- *@param idType The type of id to use when looking up the user profile. See docs for ImportProfilePropertiesUserIdType for details.
246
- * Note that regardless of the type the user must already exist in the User Profile Service for import to work.
247
- *@param sourceDataIdProperty The name of the id property in the source data. The value of the property from the source data will be used to look up the user.
248
- * The User Profile Service property used for the lookup depends on the value of idType.</param>
249
- *@param propertyMap A map from source property name to User Profile Service property name. Note that the User Profile Service properties must already exist.
250
- *@param sourceUri The URI of the source data to import. This must not be transient as it may not be downloaded for some time.
251
- *@returns Guid identifying the import job that has been queued
252
- */
253
- queueImportProfileProperties(idType: ImportProfilePropertiesUserIdTypes, sourceDataIdProperty: string, propertyMap: Record<string, string>, sourceUri: string): Promise<string>;
254
- /**
255
- *Deletes a previously queued job to import of custom properties into user profiles. Only certain jobs can be deleted:
256
- *- Only jobs that haven't been started yet (have been queued but not imported) can be deleted.
257
- *- Only top-level jobs can be cancelled. The job id returned by QueueImportProfileProperties will be a top-l
258
- *
259
- *@param jobId The job id returned by QueueImportProfileProperties to delete
260
- *@returns True if the job is deleted, false otherwise
261
- */
262
- deleteImportProfilePropertiesJob(jobId: string): Promise<boolean>;
263
- /**
264
- *Gets high-level status for all the import profile properties jobs for the current tenant
265
- *
266
- *@returns A collection of ImportProfilePropertiesJobStatus objects with high-level status information for the jobs
267
- */
268
- getImportProfilePropertyJobs(): Promise<IImportProfilePropertiesJobInfo[]>;
269
- /**
270
- *Gets high-level status for the import profile properties job specified by jobId. This jobId would have been returned by the original call to QueueImportProfileProperties
271
- *
272
- *@param jobId The id of the job for which to get high-level status
273
- *@returns An ImportProfilePropertiesJobStatus obect with high level status information about the specified job
274
- */
275
- getImportProfilePropertyJob(jobId: string): Promise<IImportProfilePropertiesJobInfo>;
276
- /**
277
- *Disables non-owners of a site to share content to users that are not members of the site collection
278
- *
279
- *@param siteUrl The siteUrl of the site collection
280
- */
281
- disableSharingForNonOwnersOfSite(siteUrl: string): Promise<void>;
282
- /**
283
- * Gets whether non-owners of a site can share content to users that are not members of the site collection
284
- *
285
- *@param siteUrl The siteUrl of the site collection to check if restrict sharing is enabled
286
- *@returns A Boolean indicating if sharing is disabled for site members in the site collection
287
- */
288
- isSharingDisabledForNonOwnersOfSite(siteUrl: string): Promise<boolean>;
289
- /**
290
- * Revokes all user sessions for a given username
291
- *
292
- *@param userName The home tenant user name, which is being used at authentication time (user@contoso.com)
293
- *@returns An value which represents the state of the operation
294
- */
295
- revokeAllUserSessions(userName: string): Promise<ISPOUserSessionRevocationResult>;
296
- /**
297
- * Revokes all user sessions for a given user's puid
298
- *
299
- *@param puidList A list of puids to be revoked (ex: 10037ffe8000008d)
300
- *@returns An SPOUserSessionRevocationResult enum value which represents the state of the operation
301
- */
302
- revokeAllUserSessionsByPuid(puidList: string[]): Promise<ISPOUserSessionRevocationResult[]>;
303
- /**
304
- * Supports calling POST methods not added explicitly to this class
305
- *
306
- * @param method method name, used in url path (ex: "AddTenantCdnOrigin")
307
- * @param args optional, any arguments to include in the body
308
- * @returns The result of the method invocation T
309
- */
310
- call<T = any>(method: string, args?: any): Promise<T>;
311
- }
312
- export interface IOffice365Tenant extends _Office365Tenant {
313
- }
314
- export declare const Office365Tenant: import("@pnp/sp").ISPInvokableFactory<IOffice365Tenant>;
315
- export {};
316
- //# sourceMappingURL=office-tenant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"office-tenant.d.ts","sourceRoot":"","sources":["../../../../packages/sp-admin/office-tenant.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAuB,aAAa,EAAsB,MAAM,SAAS,CAAC;AAC9F,OAAO,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