@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.
Files changed (57) hide show
  1. package/dist/esm/core/schemas/internal/metrics/MetricSchema.js +7 -6
  2. package/dist/esm/core/schemas/internal/metrics/MetricSchema.js.map +1 -1
  3. package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js +63 -10
  4. package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
  5. package/dist/esm/core/schemas/internal/metrics/interfaces.js +6 -2
  6. package/dist/esm/core/schemas/internal/metrics/interfaces.js.map +1 -1
  7. package/dist/esm/downloads/_internal/_types.js +0 -12
  8. package/dist/esm/downloads/_internal/_types.js.map +1 -1
  9. package/dist/esm/downloads/fetchDownloadFile.js +0 -4
  10. package/dist/esm/downloads/fetchDownloadFile.js.map +1 -1
  11. package/dist/esm/downloads/fetchDownloadFormats.js +0 -5
  12. package/dist/esm/downloads/fetchDownloadFormats.js.map +1 -1
  13. package/dist/node/core/schemas/internal/metrics/MetricSchema.js +6 -5
  14. package/dist/node/core/schemas/internal/metrics/MetricSchema.js.map +1 -1
  15. package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js +63 -10
  16. package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
  17. package/dist/node/core/schemas/internal/metrics/interfaces.js +7 -3
  18. package/dist/node/core/schemas/internal/metrics/interfaces.js.map +1 -1
  19. package/dist/node/downloads/_internal/_types.js +1 -13
  20. package/dist/node/downloads/_internal/_types.js.map +1 -1
  21. package/dist/node/downloads/fetchDownloadFile.js +0 -4
  22. package/dist/node/downloads/fetchDownloadFile.js.map +1 -1
  23. package/dist/node/downloads/fetchDownloadFormats.js +0 -5
  24. package/dist/node/downloads/fetchDownloadFormats.js.map +1 -1
  25. package/dist/types/core/schemas/internal/metrics/interfaces.d.ts +6 -3
  26. package/dist/types/downloads/_internal/_types.d.ts +0 -5
  27. package/package.json +1 -1
  28. package/dist/esm/downloads/_internal/canCreateExportItem.js +0 -15
  29. package/dist/esm/downloads/_internal/canCreateExportItem.js.map +0 -1
  30. package/dist/esm/downloads/_internal/canUseExportItemFlow.js +0 -11
  31. package/dist/esm/downloads/_internal/canUseExportItemFlow.js.map +0 -1
  32. package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js +0 -82
  33. package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js.map +0 -1
  34. package/dist/esm/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.js +0 -56
  35. package/dist/esm/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.js.map +0 -1
  36. package/dist/esm/downloads/_internal/format-fetchers/fetchExportItemFormats.js +0 -28
  37. package/dist/esm/downloads/_internal/format-fetchers/fetchExportItemFormats.js.map +0 -1
  38. package/dist/esm/downloads/_internal/format-fetchers/getAllExportItemFormats.js +0 -12
  39. package/dist/esm/downloads/_internal/format-fetchers/getAllExportItemFormats.js.map +0 -1
  40. package/dist/node/downloads/_internal/canCreateExportItem.js +0 -19
  41. package/dist/node/downloads/_internal/canCreateExportItem.js.map +0 -1
  42. package/dist/node/downloads/_internal/canUseExportItemFlow.js +0 -15
  43. package/dist/node/downloads/_internal/canUseExportItemFlow.js.map +0 -1
  44. package/dist/node/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js +0 -86
  45. package/dist/node/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js.map +0 -1
  46. package/dist/node/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.js +0 -60
  47. package/dist/node/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.js.map +0 -1
  48. package/dist/node/downloads/_internal/format-fetchers/fetchExportItemFormats.js +0 -32
  49. package/dist/node/downloads/_internal/format-fetchers/fetchExportItemFormats.js.map +0 -1
  50. package/dist/node/downloads/_internal/format-fetchers/getAllExportItemFormats.js +0 -16
  51. package/dist/node/downloads/_internal/format-fetchers/getAllExportItemFormats.js.map +0 -1
  52. package/dist/types/downloads/_internal/canCreateExportItem.d.ts +0 -13
  53. package/dist/types/downloads/_internal/canUseExportItemFlow.d.ts +0 -8
  54. package/dist/types/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.d.ts +0 -20
  55. package/dist/types/downloads/_internal/format-fetchers/fetchAvailableExportItemFormats.d.ts +0 -26
  56. package/dist/types/downloads/_internal/format-fetchers/fetchExportItemFormats.d.ts +0 -25
  57. 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[]>;
@@ -1,6 +0,0 @@
1
- import { IDynamicDownloadFormat } from "../../types";
2
- /**
3
- * @private
4
- * Returns all the download formats that are available via the Portal API's item /export endpoint.
5
- */
6
- export declare function getAllExportItemFormats(): IDynamicDownloadFormat[];