isDownloadSchedulingAvailable

Function

To be used before calling any of the schedule functions in order to prevent fetch requests to scheduler API from portal/enterprise

Note: After a discussion w/ Dave, we decided this check is preferred to passing the context into functions that would need checkPermission

To be used before calling any of the schedule functions in order to prevent fetch requests to scheduler API from portal/enterprise

Note: After a discussion w/ Dave, we decided this check is preferred to passing the context into functions that would need checkPermission

Parameters

Parameter Type Default Notes
requestOptions Required IHubRequestOptions

The request options needed to get the HubApiUrl

access Required AccessLevel

Available requestOptions

Property Type Notes
authentication Optional ArcGISIdentityManager
fetch Optional function(input: RequestInfo, init: RequestInit) : Promise<Response>

The implementation of fetch to use. Defaults to a global fetch.

hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

Whether or not the scheduling feature is available

boolean

Function defined in common/src/content/manageSchedule.ts:162