@esri/hub-common 14.167.0 → 14.168.1
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/dist/esm/core/schemas/internal/metrics/MetricSchema.js +7 -6
- package/dist/esm/core/schemas/internal/metrics/MetricSchema.js.map +1 -1
- package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js +63 -10
- package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
- package/dist/esm/core/schemas/internal/metrics/interfaces.js +6 -2
- package/dist/esm/core/schemas/internal/metrics/interfaces.js.map +1 -1
- package/dist/esm/downloads/_internal/_types.js +0 -12
- package/dist/esm/downloads/_internal/_types.js.map +1 -1
- package/dist/esm/downloads/fetchDownloadFile.js +0 -4
- package/dist/esm/downloads/fetchDownloadFile.js.map +1 -1
- package/dist/esm/downloads/fetchDownloadFormats.js +0 -5
- package/dist/esm/downloads/fetchDownloadFormats.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/MetricSchema.js +6 -5
- package/dist/node/core/schemas/internal/metrics/MetricSchema.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js +63 -10
- package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/interfaces.js +7 -3
- package/dist/node/core/schemas/internal/metrics/interfaces.js.map +1 -1
- package/dist/node/downloads/_internal/_types.js +1 -13
- package/dist/node/downloads/_internal/_types.js.map +1 -1
- package/dist/node/downloads/fetchDownloadFile.js +0 -4
- package/dist/node/downloads/fetchDownloadFile.js.map +1 -1
- package/dist/node/downloads/fetchDownloadFormats.js +0 -5
- package/dist/node/downloads/fetchDownloadFormats.js.map +1 -1
- package/dist/types/core/schemas/internal/metrics/interfaces.d.ts +6 -3
- package/dist/types/downloads/_internal/_types.d.ts +0 -5
- package/package.json +1 -1
- package/dist/esm/downloads/_internal/canCreateExportItem.js +0 -15
- package/dist/esm/downloads/_internal/canCreateExportItem.js.map +0 -1
- package/dist/esm/downloads/_internal/canUseExportItemFlow.js +0 -11
- package/dist/esm/downloads/_internal/canUseExportItemFlow.js.map +0 -1
- package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js +0 -82
- package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js.map +0 -1
- package/dist/esm/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.js +0 -56
- package/dist/esm/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.js.map +0 -1
- package/dist/esm/downloads/_internal/format-fetchers/fetchExportItemFormats.js +0 -28
- package/dist/esm/downloads/_internal/format-fetchers/fetchExportItemFormats.js.map +0 -1
- package/dist/esm/downloads/_internal/format-fetchers/getAllExportItemFormats.js +0 -12
- package/dist/esm/downloads/_internal/format-fetchers/getAllExportItemFormats.js.map +0 -1
- package/dist/node/downloads/_internal/canCreateExportItem.js +0 -19
- package/dist/node/downloads/_internal/canCreateExportItem.js.map +0 -1
- package/dist/node/downloads/_internal/canUseExportItemFlow.js +0 -15
- package/dist/node/downloads/_internal/canUseExportItemFlow.js.map +0 -1
- package/dist/node/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js +0 -86
- package/dist/node/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js.map +0 -1
- package/dist/node/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.js +0 -60
- package/dist/node/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.js.map +0 -1
- package/dist/node/downloads/_internal/format-fetchers/fetchExportItemFormats.js +0 -32
- package/dist/node/downloads/_internal/format-fetchers/fetchExportItemFormats.js.map +0 -1
- package/dist/node/downloads/_internal/format-fetchers/getAllExportItemFormats.js +0 -16
- package/dist/node/downloads/_internal/format-fetchers/getAllExportItemFormats.js.map +0 -1
- package/dist/types/downloads/_internal/canCreateExportItem.d.ts +0 -13
- package/dist/types/downloads/_internal/canUseExportItemFlow.d.ts +0 -8
- package/dist/types/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.d.ts +0 -20
- package/dist/types/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.d.ts +0 -26
- package/dist/types/downloads/_internal/format-fetchers/fetchExportItemFormats.d.ts +0 -25
- package/dist/types/downloads/_internal/format-fetchers/getAllExportItemFormats.d.ts +0 -6
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IArcGISContext } from "../../../ArcGISContext";
|
|
2
|
-
import { IHubEditableContent } from "../../../core/types/IHubEditableContent";
|
|
3
|
-
import { IDownloadFormat } from "../../types";
|
|
4
|
-
/**
|
|
5
|
-
* @private
|
|
6
|
-
* Fetches an entity's available download formats. Owners of the entity can create all formats supported by
|
|
7
|
-
* the Portal API's item /export endpoint, while users that don't have privileges to the item /export endpoint
|
|
8
|
-
* can only download formats that were previously exported by the entity's owner.
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This function is a work-in-progress. Various permissions and logic branches are not yet implemented.
|
|
11
|
-
*
|
|
12
|
-
* NOTE: This is a last resort approach for current Enterprise environments, but it will be replaced
|
|
13
|
-
* with using the formats defined the service's /createReplica endpoint directly in the future (i.e.,
|
|
14
|
-
* once the Enterprise team achieves feature parity with the Online team's implementation).
|
|
15
|
-
*
|
|
16
|
-
* This is because The item /export endpoint can only be used on Hosted Feature Services with the "Extract" capability
|
|
17
|
-
* enabled, which means the service will also have the /createReplica endpoint available. As /createReplica is a more
|
|
18
|
-
* flexible operation that can be invoked by anonymous users, /export becomes obsolete.
|
|
19
|
-
*
|
|
20
|
-
* @param entity Hosted Feature Service entity to fetch download formats for
|
|
21
|
-
* @param context ArcGIS application context
|
|
22
|
-
* @param layers target layers that the download will be filtered to
|
|
23
|
-
* @returns available download formats for the entity
|
|
24
|
-
*/
|
|
25
|
-
export declare function fetchExportItemFormats(_entity: IHubEditableContent, _context: IArcGISContext, _layers?: number[]): Promise<IDownloadFormat[]>;
|