@esri/hub-common 15.37.0 → 15.37.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 (463) hide show
  1. package/dist/esm/ArcGISContext.js +1 -1
  2. package/dist/esm/ArcGISContext.js.map +1 -1
  3. package/dist/esm/ArcGISContextManager.js +2 -2
  4. package/dist/esm/ArcGISContextManager.js.map +1 -1
  5. package/dist/esm/Hub.js +1 -1
  6. package/dist/esm/Hub.js.map +1 -1
  7. package/dist/esm/OperationStack.js +5 -5
  8. package/dist/esm/OperationStack.js.map +1 -1
  9. package/dist/esm/core/schemas/shared/HubItemEntitySchema.js +1 -1
  10. package/dist/esm/core/schemas/shared/HubItemEntitySchema.js.map +1 -1
  11. package/dist/esm/core/types/IHubContent.js.map +1 -1
  12. package/dist/esm/downloads/_internal/canUseExportImageFlow.js +1 -1
  13. package/dist/esm/downloads/_internal/canUseExportImageFlow.js.map +1 -1
  14. package/dist/esm/{types.js → hub-types.js} +1 -1
  15. package/dist/esm/hub-types.js.map +1 -0
  16. package/dist/esm/index.js +1 -0
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/initiative-templates/view.js.map +1 -1
  19. package/dist/esm/initiatives/_internal/InitiativeSchema.js +1 -1
  20. package/dist/esm/initiatives/_internal/InitiativeSchema.js.map +1 -1
  21. package/dist/esm/initiatives/defaults.js +1 -1
  22. package/dist/esm/initiatives/defaults.js.map +1 -1
  23. package/dist/esm/initiatives/view.js +1 -1
  24. package/dist/esm/initiatives/view.js.map +1 -1
  25. package/dist/esm/items/fetch-all-pages.js +6 -6
  26. package/dist/esm/items/fetch-all-pages.js.map +1 -1
  27. package/dist/esm/items/interpolate-item-id.js +1 -1
  28. package/dist/esm/items/normalize-solution-template-item.js +2 -2
  29. package/dist/esm/items/normalize-solution-template-item.js.map +1 -1
  30. package/dist/esm/projects/_internal/ProjectSchema.js +1 -1
  31. package/dist/esm/projects/_internal/ProjectSchema.js.map +1 -1
  32. package/dist/esm/projects/defaults.js +1 -1
  33. package/dist/esm/projects/defaults.js.map +1 -1
  34. package/dist/esm/projects/view.js.map +1 -1
  35. package/dist/esm/resources/_internal/_validate-url-helpers.js +1 -1
  36. package/dist/esm/resources/_internal/_validate-url-helpers.js.map +1 -1
  37. package/dist/esm/resources/add-solution-resource-url-to-assets.js +1 -1
  38. package/dist/esm/resources/add-solution-resource-url-to-assets.js.map +1 -1
  39. package/dist/esm/resources/convert-solution-template-resources-to-assets.js +2 -2
  40. package/dist/esm/resources/convert-solution-template-resources-to-assets.js.map +1 -1
  41. package/dist/esm/resources/get-item-assets.js +3 -3
  42. package/dist/esm/resources/get-item-assets.js.map +1 -1
  43. package/dist/esm/resources/upload-resources-from-url.js +1 -1
  44. package/dist/esm/resources/validate-url.js +1 -1
  45. package/dist/esm/resources/validate-url.js.map +1 -1
  46. package/dist/esm/search/_internal/portalSearchItems.js +1 -1
  47. package/dist/esm/search/_internal/portalSearchItems.js.map +1 -1
  48. package/dist/esm/search/wellKnownCatalog.js.map +1 -1
  49. package/dist/esm/types/IArcGISContext.js +1 -0
  50. package/dist/esm/types/IArcGISContext.js.map +1 -0
  51. package/dist/esm/types/IArcGISContextManagerOptions.js +1 -0
  52. package/dist/esm/types/IArcGISContextManagerOptions.js.map +1 -0
  53. package/dist/esm/types/IArcGISContextOptions.js +1 -0
  54. package/dist/esm/types/IArcGISContextOptions.js.map +1 -0
  55. package/dist/esm/types/IUserResourceConfig.js +1 -0
  56. package/dist/esm/types/IUserResourceConfig.js.map +1 -0
  57. package/dist/esm/types/IUserResourceToken.js +1 -0
  58. package/dist/esm/types/IUserResourceToken.js.map +1 -0
  59. package/dist/esm/types/index.js +5 -0
  60. package/dist/esm/types/index.js.map +1 -1
  61. package/dist/esm/utils/IUserHubSettings.js +1 -0
  62. package/dist/esm/utils/IUserHubSettings.js.map +1 -0
  63. package/dist/esm/utils/IUserSiteSettings.js +4 -0
  64. package/dist/esm/utils/IUserSiteSettings.js.map +1 -0
  65. package/dist/esm/utils/batch.js +2 -2
  66. package/dist/esm/utils/batch.js.map +1 -1
  67. package/dist/esm/utils/hubUserAppResources.js.map +1 -1
  68. package/dist/esm/utils/index.js +2 -0
  69. package/dist/esm/utils/index.js.map +1 -1
  70. package/dist/esm/utils/internal/siteSettingsMigrations.js.map +1 -1
  71. package/dist/esm/utils/revertable-tasks.js +5 -5
  72. package/dist/esm/utils/revertable-tasks.js.map +1 -1
  73. package/dist/node/ArcGISContext.js.map +1 -1
  74. package/dist/node/ArcGISContextManager.js.map +1 -1
  75. package/dist/node/Hub.js.map +1 -1
  76. package/dist/node/OperationStack.js +5 -5
  77. package/dist/node/OperationStack.js.map +1 -1
  78. package/dist/node/core/schemas/shared/HubItemEntitySchema.js +3 -3
  79. package/dist/node/core/schemas/shared/HubItemEntitySchema.js.map +1 -1
  80. package/dist/node/core/types/IHubContent.js.map +1 -1
  81. package/dist/node/downloads/_internal/canUseExportImageFlow.js +2 -2
  82. package/dist/node/downloads/_internal/canUseExportImageFlow.js.map +1 -1
  83. package/dist/node/{types.js → hub-types.js} +1 -1
  84. package/dist/node/hub-types.js.map +1 -0
  85. package/dist/node/index.js +1 -0
  86. package/dist/node/index.js.map +1 -1
  87. package/dist/node/initiative-templates/view.js.map +1 -1
  88. package/dist/node/initiatives/_internal/InitiativeSchema.js +3 -3
  89. package/dist/node/initiatives/_internal/InitiativeSchema.js.map +1 -1
  90. package/dist/node/initiatives/defaults.js +5 -5
  91. package/dist/node/initiatives/defaults.js.map +1 -1
  92. package/dist/node/initiatives/view.js +2 -2
  93. package/dist/node/initiatives/view.js.map +1 -1
  94. package/dist/node/items/fetch-all-pages.js +6 -6
  95. package/dist/node/items/fetch-all-pages.js.map +1 -1
  96. package/dist/node/items/interpolate-item-id.js +1 -1
  97. package/dist/node/items/normalize-solution-template-item.js +2 -2
  98. package/dist/node/items/normalize-solution-template-item.js.map +1 -1
  99. package/dist/node/projects/_internal/ProjectSchema.js +3 -3
  100. package/dist/node/projects/_internal/ProjectSchema.js.map +1 -1
  101. package/dist/node/projects/defaults.js +3 -3
  102. package/dist/node/projects/defaults.js.map +1 -1
  103. package/dist/node/projects/view.js.map +1 -1
  104. package/dist/node/resources/_internal/_validate-url-helpers.js +11 -11
  105. package/dist/node/resources/_internal/_validate-url-helpers.js.map +1 -1
  106. package/dist/node/resources/add-solution-resource-url-to-assets.js +1 -1
  107. package/dist/node/resources/add-solution-resource-url-to-assets.js.map +1 -1
  108. package/dist/node/resources/convert-solution-template-resources-to-assets.js +2 -2
  109. package/dist/node/resources/convert-solution-template-resources-to-assets.js.map +1 -1
  110. package/dist/node/resources/get-item-assets.js +3 -3
  111. package/dist/node/resources/get-item-assets.js.map +1 -1
  112. package/dist/node/resources/upload-resources-from-url.js +1 -1
  113. package/dist/node/resources/validate-url.js +2 -2
  114. package/dist/node/resources/validate-url.js.map +1 -1
  115. package/dist/node/search/_internal/portalSearchItems.js +2 -2
  116. package/dist/node/search/_internal/portalSearchItems.js.map +1 -1
  117. package/dist/node/search/wellKnownCatalog.js.map +1 -1
  118. package/dist/node/types/IArcGISContext.js +3 -0
  119. package/dist/node/types/IArcGISContext.js.map +1 -0
  120. package/dist/node/types/IArcGISContextManagerOptions.js +3 -0
  121. package/dist/node/types/IArcGISContextManagerOptions.js.map +1 -0
  122. package/dist/node/types/IArcGISContextOptions.js +3 -0
  123. package/dist/node/types/IArcGISContextOptions.js.map +1 -0
  124. package/dist/node/types/IUserResourceConfig.js +3 -0
  125. package/dist/node/types/IUserResourceConfig.js.map +1 -0
  126. package/dist/node/types/IUserResourceToken.js +3 -0
  127. package/dist/node/types/IUserResourceToken.js.map +1 -0
  128. package/dist/node/types/index.js +5 -0
  129. package/dist/node/types/index.js.map +1 -1
  130. package/dist/node/utils/IUserHubSettings.js +3 -0
  131. package/dist/node/utils/IUserHubSettings.js.map +1 -0
  132. package/dist/node/utils/IUserSiteSettings.js +6 -0
  133. package/dist/node/utils/IUserSiteSettings.js.map +1 -0
  134. package/dist/node/utils/batch.js +2 -2
  135. package/dist/node/utils/batch.js.map +1 -1
  136. package/dist/node/utils/hubUserAppResources.js.map +1 -1
  137. package/dist/node/utils/index.js +2 -0
  138. package/dist/node/utils/index.js.map +1 -1
  139. package/dist/node/utils/internal/siteSettingsMigrations.js.map +1 -1
  140. package/dist/node/utils/revertable-tasks.js +5 -5
  141. package/dist/node/utils/revertable-tasks.js.map +1 -1
  142. package/dist/types/ArcGISContext.d.ts +6 -321
  143. package/dist/types/ArcGISContextManager.d.ts +4 -92
  144. package/dist/types/Hub.d.ts +3 -2
  145. package/dist/types/OperationError.d.ts +1 -1
  146. package/dist/types/OperationStack.d.ts +1 -1
  147. package/dist/types/access/can-edit-event.d.ts +1 -1
  148. package/dist/types/api.d.ts +1 -1
  149. package/dist/types/associations/breakAssociation.d.ts +1 -1
  150. package/dist/types/associations/getAssociatedEntitiesQuery.d.ts +1 -1
  151. package/dist/types/associations/getAssociationStats.d.ts +1 -1
  152. package/dist/types/associations/getPendingEntitiesQuery.d.ts +1 -1
  153. package/dist/types/associations/getRequestingEntitiesQuery.d.ts +1 -1
  154. package/dist/types/associations/internal/getIncludesAndReferencesQuery.d.ts +1 -1
  155. package/dist/types/associations/internal/getIncludesDoesNotReferenceQuery.d.ts +1 -1
  156. package/dist/types/associations/internal/getReferencesDoesNotIncludeQuery.d.ts +1 -1
  157. package/dist/types/associations/requestAssociation.d.ts +1 -1
  158. package/dist/types/associations/setEntityAssociationGroup.d.ts +1 -1
  159. package/dist/types/associations/wellKnownAssociationCatalogs.d.ts +1 -1
  160. package/dist/types/content/HubContent.d.ts +1 -1
  161. package/dist/types/content/_fetch.d.ts +3 -2
  162. package/dist/types/content/_internal/ContentUiSchemaDiscussions.d.ts +1 -1
  163. package/dist/types/content/_internal/ContentUiSchemaEdit.d.ts +1 -1
  164. package/dist/types/content/_internal/ContentUiSchemaSettings.d.ts +1 -1
  165. package/dist/types/content/_internal/computeProps.d.ts +1 -1
  166. package/dist/types/content/_internal/internalContentUtils.d.ts +4 -4
  167. package/dist/types/content/compose.d.ts +1 -1
  168. package/dist/types/content/composeHubContent.d.ts +1 -1
  169. package/dist/types/content/contentUtils.d.ts +1 -1
  170. package/dist/types/content/fetchContent.d.ts +1 -1
  171. package/dist/types/content/get-family.d.ts +1 -1
  172. package/dist/types/content/manageSchedule.d.ts +1 -1
  173. package/dist/types/content/modelToHubEditableContent.d.ts +1 -1
  174. package/dist/types/content/search.d.ts +1 -1
  175. package/dist/types/content/types.d.ts +1 -1
  176. package/dist/types/core/EntityEditor.d.ts +1 -1
  177. package/dist/types/core/HubItemEntity.d.ts +1 -1
  178. package/dist/types/core/_internal/deepContains.d.ts +1 -1
  179. package/dist/types/core/catalogContains.d.ts +1 -1
  180. package/dist/types/core/deepCatalogContains.d.ts +1 -1
  181. package/dist/types/core/enrichEntity.d.ts +1 -1
  182. package/dist/types/core/fetchHubEntity.d.ts +1 -1
  183. package/dist/types/core/getEntityGroups.d.ts +1 -1
  184. package/dist/types/core/processActionLinks.d.ts +1 -1
  185. package/dist/types/core/schemas/getEditorConfig.d.ts +1 -1
  186. package/dist/types/core/schemas/internal/events/EventGalleryCardUiSchema.d.ts +1 -1
  187. package/dist/types/core/schemas/internal/fetchCategoriesUiSchemaElement.d.ts +1 -1
  188. package/dist/types/core/schemas/internal/fetchCategoryItems.d.ts +1 -1
  189. package/dist/types/core/schemas/internal/follow/FollowCardUiSchema.d.ts +1 -1
  190. package/dist/types/core/schemas/internal/getCardEditorSchemas.d.ts +1 -1
  191. package/dist/types/core/schemas/internal/getEditorSchemas.d.ts +1 -1
  192. package/dist/types/core/schemas/internal/getLocationExtent.d.ts +1 -1
  193. package/dist/types/core/schemas/internal/getLocationOptions.d.ts +1 -1
  194. package/dist/types/core/schemas/internal/getTagItems.d.ts +1 -1
  195. package/dist/types/core/schemas/internal/metrics/InitiativeUiSchemaMetrics.d.ts +1 -1
  196. package/dist/types/core/schemas/internal/metrics/ProjectUiSchemaMetrics.d.ts +1 -1
  197. package/dist/types/core/schemas/internal/metrics/StatCardUiSchema.d.ts +1 -1
  198. package/dist/types/core/schemas/types.d.ts +1 -1
  199. package/dist/types/core/setEntityAccess.d.ts +1 -1
  200. package/dist/types/core/shareEntityWithGroups.d.ts +1 -1
  201. package/dist/types/core/traits/IWithStatus.d.ts +1 -1
  202. package/dist/types/core/traits/IWithViewSettings.d.ts +1 -1
  203. package/dist/types/core/types/IHubCardViewModel.d.ts +1 -1
  204. package/dist/types/core/types/IHubContent.d.ts +1 -1
  205. package/dist/types/core/types/IHubContentEnrichments.d.ts +1 -1
  206. package/dist/types/core/types/IHubItemEntity.d.ts +1 -1
  207. package/dist/types/core/types/IHubUser.d.ts +1 -1
  208. package/dist/types/core/types/IItemEnrichments.d.ts +1 -1
  209. package/dist/types/core/unshareEntityWithGroups.d.ts +1 -1
  210. package/dist/types/core/updateHubEntity.d.ts +1 -1
  211. package/dist/types/discussions/HubDiscussion.d.ts +1 -1
  212. package/dist/types/discussions/_internal/DiscussionUiSchemaCreate.d.ts +1 -1
  213. package/dist/types/discussions/_internal/DiscussionUiSchemaEdit.d.ts +1 -1
  214. package/dist/types/discussions/_internal/DiscussionUiSchemaSettings.d.ts +1 -1
  215. package/dist/types/discussions/_internal/computeProps.d.ts +1 -1
  216. package/dist/types/discussions/api/types.d.ts +1 -1
  217. package/dist/types/discussions/defaults.d.ts +1 -1
  218. package/dist/types/discussions/edit.d.ts +1 -1
  219. package/dist/types/discussions/fetch.d.ts +1 -1
  220. package/dist/types/downloads/_internal/getExportItemDataUrl.d.ts +1 -1
  221. package/dist/types/downloads/canUseHubDownloadApi.d.ts +1 -1
  222. package/dist/types/downloads/types.d.ts +1 -1
  223. package/dist/types/events/HubEvent.d.ts +1 -1
  224. package/dist/types/events/_internal/EventUiSchemaAttendeesSettings.d.ts +1 -1
  225. package/dist/types/events/_internal/EventUiSchemaCreate.d.ts +1 -1
  226. package/dist/types/events/_internal/EventUiSchemaEdit.d.ts +1 -1
  227. package/dist/types/events/_internal/buildEventAssociations.d.ts +1 -1
  228. package/dist/types/events/_internal/buildReferencedContentSchema.d.ts +1 -1
  229. package/dist/types/events/_internal/shareEventWithGroups.d.ts +1 -1
  230. package/dist/types/events/_internal/unshareEventWithGroups.d.ts +1 -1
  231. package/dist/types/events/api/types.d.ts +1 -1
  232. package/dist/types/events/edit.d.ts +1 -1
  233. package/dist/types/events/fetch.d.ts +1 -1
  234. package/dist/types/events/getEventGroups.d.ts +1 -1
  235. package/dist/types/extent.d.ts +1 -1
  236. package/dist/types/groups/HubGroup.d.ts +1 -1
  237. package/dist/types/groups/HubGroups.d.ts +1 -1
  238. package/dist/types/groups/_internal/GroupUiSchemaCreate.d.ts +1 -1
  239. package/dist/types/groups/_internal/GroupUiSchemaCreateAssociation.d.ts +1 -1
  240. package/dist/types/groups/_internal/GroupUiSchemaCreateEdit.d.ts +1 -1
  241. package/dist/types/groups/_internal/GroupUiSchemaCreateFollowers.d.ts +1 -1
  242. package/dist/types/groups/_internal/GroupUiSchemaCreateView.d.ts +1 -1
  243. package/dist/types/groups/_internal/GroupUiSchemaDiscussions.d.ts +1 -1
  244. package/dist/types/groups/_internal/GroupUiSchemaEdit.d.ts +1 -1
  245. package/dist/types/groups/_internal/GroupUiSchemaSettings.d.ts +1 -1
  246. package/dist/types/groups/_internal/convertGroupToHubGroup.d.ts +1 -1
  247. package/dist/types/groups/_internal/enrichments.d.ts +1 -1
  248. package/dist/types/groups/add-users-workflow/add-users-to-group.d.ts +1 -1
  249. package/dist/types/groups/add-users-workflow/interfaces.d.ts +1 -1
  250. package/dist/types/groups/getWellKnownGroup.d.ts +1 -1
  251. package/dist/types/{types.d.ts → hub-types.d.ts} +4 -0
  252. package/dist/types/i18n/get-culture.d.ts +1 -1
  253. package/dist/types/index.d.ts +1 -0
  254. package/dist/types/initiative-templates/HubInitiativeTemplate.d.ts +1 -1
  255. package/dist/types/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.d.ts +1 -1
  256. package/dist/types/initiative-templates/_internal/computeProps.d.ts +1 -1
  257. package/dist/types/initiative-templates/defaults.d.ts +1 -1
  258. package/dist/types/initiative-templates/fetch.d.ts +1 -1
  259. package/dist/types/initiatives/HubInitiative.d.ts +1 -1
  260. package/dist/types/initiatives/HubInitiatives.d.ts +1 -1
  261. package/dist/types/initiatives/_internal/InitiativeUiSchemaAssociations.d.ts +1 -1
  262. package/dist/types/initiatives/_internal/InitiativeUiSchemaCreate.d.ts +1 -1
  263. package/dist/types/initiatives/_internal/InitiativeUiSchemaCreate2.d.ts +1 -1
  264. package/dist/types/initiatives/_internal/InitiativeUiSchemaEdit.d.ts +1 -1
  265. package/dist/types/initiatives/_internal/InitiativeUiSchemaSettings.d.ts +1 -1
  266. package/dist/types/initiatives/_internal/applyInitiativeMigrations.d.ts +1 -1
  267. package/dist/types/initiatives/_internal/computeProps.d.ts +1 -1
  268. package/dist/types/initiatives/defaults.d.ts +1 -1
  269. package/dist/types/initiatives/view.d.ts +2 -2
  270. package/dist/types/items/_enrichments.d.ts +1 -1
  271. package/dist/types/items/_internal/_prepare-upload-requests.d.ts +1 -1
  272. package/dist/types/items/_internal/ensureUniqueEntitySlug.d.ts +1 -1
  273. package/dist/types/items/fail-safe-update.d.ts +1 -1
  274. package/dist/types/items/fetch-all-pages.d.ts +1 -1
  275. package/dist/types/items/follow.d.ts +1 -1
  276. package/dist/types/items/get-model-from-options.d.ts +1 -1
  277. package/dist/types/items/interpolate-item-id.d.ts +1 -1
  278. package/dist/types/items/normalize-solution-template-item.d.ts +1 -1
  279. package/dist/types/items/replace-item-id.d.ts +1 -1
  280. package/dist/types/items/unprotect-model.d.ts +1 -1
  281. package/dist/types/metrics/resolveMetric.d.ts +1 -1
  282. package/dist/types/models/index.d.ts +1 -1
  283. package/dist/types/models/serializeModel.d.ts +1 -1
  284. package/dist/types/newsletters/api/types.d.ts +1 -1
  285. package/dist/types/newsletters-scheduler/api/types.d.ts +1 -1
  286. package/dist/types/pages/HubPage.d.ts +1 -1
  287. package/dist/types/pages/HubPages.d.ts +1 -1
  288. package/dist/types/pages/_internal/PageUiSchemaCreate.d.ts +1 -1
  289. package/dist/types/pages/_internal/PageUiSchemaEdit.d.ts +1 -1
  290. package/dist/types/pages/_internal/computeProps.d.ts +1 -1
  291. package/dist/types/pages/defaults.d.ts +1 -1
  292. package/dist/types/permissions/_internal/PermissionCheckFunction.d.ts +1 -1
  293. package/dist/types/permissions/_internal/checkAssertion.d.ts +1 -1
  294. package/dist/types/permissions/_internal/checkAssertions.d.ts +1 -1
  295. package/dist/types/permissions/_internal/checkAuthentication.d.ts +1 -1
  296. package/dist/types/permissions/_internal/checkAvailability.d.ts +1 -1
  297. package/dist/types/permissions/_internal/checkDelete.d.ts +1 -1
  298. package/dist/types/permissions/_internal/checkEdit.d.ts +1 -1
  299. package/dist/types/permissions/_internal/checkEntityFeature.d.ts +1 -1
  300. package/dist/types/permissions/_internal/checkEntityPolicy.d.ts +1 -1
  301. package/dist/types/permissions/_internal/checkEnvironment.d.ts +1 -1
  302. package/dist/types/permissions/_internal/checkLicense.d.ts +1 -1
  303. package/dist/types/permissions/_internal/checkOwner.d.ts +1 -1
  304. package/dist/types/permissions/_internal/checkParents.d.ts +1 -1
  305. package/dist/types/permissions/_internal/checkPrivileges.d.ts +1 -1
  306. package/dist/types/permissions/_internal/checkServiceStatus.d.ts +1 -1
  307. package/dist/types/permissions/checkPermission.d.ts +1 -1
  308. package/dist/types/projects/HubProject.d.ts +1 -1
  309. package/dist/types/projects/_internal/ProjectUiSchemaCreate.d.ts +1 -1
  310. package/dist/types/projects/_internal/ProjectUiSchemaCreate2.d.ts +1 -1
  311. package/dist/types/projects/_internal/ProjectUiSchemaEdit.d.ts +1 -1
  312. package/dist/types/projects/_internal/ProjectUiSchemaSettings.d.ts +1 -1
  313. package/dist/types/projects/_internal/computeProps.d.ts +1 -1
  314. package/dist/types/projects/defaults.d.ts +1 -1
  315. package/dist/types/projects/fetch.d.ts +1 -1
  316. package/dist/types/request.d.ts +1 -1
  317. package/dist/types/resources/_add-token-to-resource-url.d.ts +1 -1
  318. package/dist/types/resources/_internal/_validate-url-helpers.d.ts +1 -1
  319. package/dist/types/resources/add-solution-resource-url-to-assets.d.ts +1 -1
  320. package/dist/types/resources/convert-solution-template-resources-to-assets.d.ts +1 -1
  321. package/dist/types/resources/get-item-assets.d.ts +1 -1
  322. package/dist/types/resources/get-item-thumbnail-url.d.ts +1 -1
  323. package/dist/types/resources/upload-resources-from-url.d.ts +1 -1
  324. package/dist/types/search/Catalog.d.ts +1 -1
  325. package/dist/types/search/Collection.d.ts +1 -1
  326. package/dist/types/search/_internal/getWorkflowForType.d.ts +1 -1
  327. package/dist/types/search/_internal/hubEventsHelpers/processFilters.d.ts +1 -1
  328. package/dist/types/search/_internal/hubSearchItemsHelpers/ogcItemToSearchResult.d.ts +1 -1
  329. package/dist/types/search/_internal/portalSearchItems.d.ts +1 -1
  330. package/dist/types/search/fetchEntityCatalog.d.ts +1 -1
  331. package/dist/types/search/getAddContentConfig.d.ts +1 -1
  332. package/dist/types/search/getCatalogGroups.d.ts +3 -3
  333. package/dist/types/search/searchCatalogs.d.ts +1 -1
  334. package/dist/types/search/searchEntityCatalogs.d.ts +1 -1
  335. package/dist/types/search/types/IHubSearchOptions.d.ts +1 -1
  336. package/dist/types/search/types/IHubSearchResult.d.ts +1 -1
  337. package/dist/types/search/utils.d.ts +1 -1
  338. package/dist/types/search/wellKnownCatalog.d.ts +2 -2
  339. package/dist/types/sites/HubSite.d.ts +1 -1
  340. package/dist/types/sites/HubSites.d.ts +1 -1
  341. package/dist/types/sites/_internal/SiteUiSchemaCreate.d.ts +1 -1
  342. package/dist/types/sites/_internal/SiteUiSchemaDiscussions.d.ts +1 -1
  343. package/dist/types/sites/_internal/SiteUiSchemaEdit.d.ts +1 -1
  344. package/dist/types/sites/_internal/SiteUiSchemaFollowers.d.ts +1 -1
  345. package/dist/types/sites/_internal/SiteUiSchemaSettings.d.ts +1 -1
  346. package/dist/types/sites/_internal/_apply-site-schema.d.ts +1 -1
  347. package/dist/types/sites/_internal/_enforce-lowercase-domains.d.ts +1 -1
  348. package/dist/types/sites/_internal/_ensure-catalog.d.ts +1 -1
  349. package/dist/types/sites/_internal/_ensure-telemetry.d.ts +1 -1
  350. package/dist/types/sites/_internal/_migrate-event-list-card-configs.d.ts +1 -1
  351. package/dist/types/sites/_internal/_migrate-feed-config.d.ts +1 -1
  352. package/dist/types/sites/_internal/_migrate-link-underlines-capability.d.ts +1 -1
  353. package/dist/types/sites/_internal/_migrate-telemetry-config.d.ts +1 -1
  354. package/dist/types/sites/_internal/_purge-non-guids-from-catalog.d.ts +1 -1
  355. package/dist/types/sites/_internal/applyCatalogStructureMigration.d.ts +1 -1
  356. package/dist/types/sites/_internal/applyDefaultCollectionMigration.d.ts +1 -1
  357. package/dist/types/sites/_internal/applyPermissionMigration.d.ts +1 -1
  358. package/dist/types/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.d.ts +1 -1
  359. package/dist/types/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.d.ts +1 -1
  360. package/dist/types/sites/_internal/computeProps.d.ts +1 -1
  361. package/dist/types/sites/_internal/convertCatalogToLegacyFormat.d.ts +1 -1
  362. package/dist/types/sites/_internal/ensureBaseTelemetry.d.ts +1 -1
  363. package/dist/types/sites/_internal/handleDomainChanges.d.ts +1 -1
  364. package/dist/types/sites/_internal/migrateBadBasemap.d.ts +1 -1
  365. package/dist/types/sites/_internal/migrateWebMappingApplicationSites.d.ts +1 -1
  366. package/dist/types/sites/_internal/reflectCollectionsToSearchCategories.d.ts +1 -1
  367. package/dist/types/sites/defaults.d.ts +1 -1
  368. package/dist/types/sites/domains/_get-auth-header.d.ts +1 -1
  369. package/dist/types/sites/domains/add-domain.d.ts +1 -1
  370. package/dist/types/sites/domains/addSiteDomains.d.ts +1 -1
  371. package/dist/types/sites/domains/domain-exists-portal.d.ts +1 -1
  372. package/dist/types/sites/domains/domain-exists.d.ts +1 -1
  373. package/dist/types/sites/domains/ensure-unique-domain-name.d.ts +1 -1
  374. package/dist/types/sites/domains/get-domains-for-site.d.ts +1 -1
  375. package/dist/types/sites/domains/get-unique-domain-name-portal.d.ts +1 -1
  376. package/dist/types/sites/domains/get-unique-domain-name.d.ts +1 -1
  377. package/dist/types/sites/domains/is-domain-for-legacy-site.d.ts +1 -1
  378. package/dist/types/sites/domains/is-domain-used-elsewhere.d.ts +1 -1
  379. package/dist/types/sites/domains/is-valid-domain.d.ts +1 -1
  380. package/dist/types/sites/domains/lookup-domain.d.ts +1 -1
  381. package/dist/types/sites/domains/remove-domain.d.ts +1 -1
  382. package/dist/types/sites/domains/remove-domains-by-site-id.d.ts +1 -1
  383. package/dist/types/sites/domains/removeDomainByHostname.d.ts +1 -1
  384. package/dist/types/sites/domains/update-domain.d.ts +2 -2
  385. package/dist/types/sites/drafts/build-draft.d.ts +1 -1
  386. package/dist/types/sites/feed-configuration.d.ts +1 -1
  387. package/dist/types/sites/feeds/previewFeed.d.ts +1 -1
  388. package/dist/types/sites/fetchSiteModel.d.ts +2 -2
  389. package/dist/types/sites/get-catalog-from-site-model.d.ts +1 -1
  390. package/dist/types/sites/get-site-by-id.d.ts +2 -2
  391. package/dist/types/sites/registerSiteAsApplication.d.ts +1 -1
  392. package/dist/types/sites/reharvestSiteCatalog.d.ts +1 -1
  393. package/dist/types/sites/upgrade-site-schema.d.ts +1 -1
  394. package/dist/types/surveys/HubSurvey.d.ts +1 -1
  395. package/dist/types/surveys/_internal/SurveyUiSchemaEdit.d.ts +1 -1
  396. package/dist/types/surveys/_internal/SurveyUiSchemaSettings.d.ts +1 -1
  397. package/dist/types/surveys/_internal/computeProps.d.ts +1 -1
  398. package/dist/types/surveys/fetch.d.ts +1 -1
  399. package/dist/types/surveys/utils/get-input-feature-service-model.d.ts +1 -1
  400. package/dist/types/surveys/utils/get-s123-edit-url.d.ts +1 -1
  401. package/dist/types/surveys/utils/get-s123-share-url.d.ts +1 -1
  402. package/dist/types/surveys/utils/get-source-feature-service-model-from-fieldworker.d.ts +1 -1
  403. package/dist/types/surveys/utils/get-stakeholder-model.d.ts +1 -1
  404. package/dist/types/surveys/utils/get-survey-models.d.ts +1 -1
  405. package/dist/types/templates/HubTemplate.d.ts +1 -1
  406. package/dist/types/templates/_internal/TemplateUiSchemaEdit.d.ts +1 -1
  407. package/dist/types/templates/_internal/computeProps.d.ts +1 -1
  408. package/dist/types/templates/defaults.d.ts +1 -1
  409. package/dist/types/templates/fetch.d.ts +1 -1
  410. package/dist/types/types/IArcGISContext.d.ts +258 -0
  411. package/dist/types/types/IArcGISContextManagerOptions.d.ts +86 -0
  412. package/dist/types/types/IArcGISContextOptions.d.ts +78 -0
  413. package/dist/types/types/IUserResourceConfig.d.ts +5 -0
  414. package/dist/types/types/IUserResourceToken.d.ts +4 -0
  415. package/dist/types/types/index.d.ts +5 -0
  416. package/dist/types/urls/get-campaign-url.d.ts +1 -1
  417. package/dist/types/urls/get-item-api-url.d.ts +1 -1
  418. package/dist/types/urls/get-item-data-url.d.ts +1 -1
  419. package/dist/types/urls/get-item-home-url.d.ts +1 -1
  420. package/dist/types/urls/get-portal-api-url.d.ts +1 -1
  421. package/dist/types/urls/get-portal-url.d.ts +1 -1
  422. package/dist/types/urls/getCardModelUrl.d.ts +1 -1
  423. package/dist/types/urls/getContentHomeUrl.d.ts +1 -1
  424. package/dist/types/urls/getGroupHomeUrl.d.ts +1 -1
  425. package/dist/types/urls/getUserHomeUrl.d.ts +1 -1
  426. package/dist/types/urls/is-safe-redirect-url.d.ts +1 -1
  427. package/dist/types/users/HubUser.d.ts +1 -1
  428. package/dist/types/users/HubUsers.d.ts +2 -2
  429. package/dist/types/users/_internal/UserUiSchemaSettings.d.ts +1 -1
  430. package/dist/types/users/_internal/computeProps.d.ts +1 -1
  431. package/dist/types/users/_internal/enrichments.d.ts +1 -1
  432. package/dist/types/utils/IUserHubSettings.d.ts +32 -0
  433. package/dist/types/utils/IUserSiteSettings.d.ts +8 -0
  434. package/dist/types/utils/batch.d.ts +1 -1
  435. package/dist/types/utils/create-operation-pipeline.d.ts +1 -1
  436. package/dist/types/utils/fail-safe.d.ts +1 -1
  437. package/dist/types/utils/hubUserAppResources.d.ts +3 -41
  438. package/dist/types/utils/index.d.ts +2 -0
  439. package/dist/types/utils/internal/clearUserHubSettings.d.ts +2 -2
  440. package/dist/types/utils/internal/clearUserSiteSettings.d.ts +2 -2
  441. package/dist/types/utils/internal/fetchAndMigrateUserHubSettings.d.ts +1 -1
  442. package/dist/types/utils/internal/resolveDynamicValue.d.ts +1 -1
  443. package/dist/types/utils/internal/resolveDynamicValues.d.ts +1 -1
  444. package/dist/types/utils/internal/resolveItemQueryValues.d.ts +1 -1
  445. package/dist/types/utils/internal/resolvePortalValues.d.ts +1 -1
  446. package/dist/types/utils/internal/resolveServiceQueryValues.d.ts +1 -1
  447. package/dist/types/utils/internal/setEntityStatusKeyword.d.ts +1 -1
  448. package/dist/types/utils/internal/siteSettingsMigrations.d.ts +2 -1
  449. package/dist/types/utils/internal/updateCommunityOrgSettings.d.ts +1 -1
  450. package/dist/types/utils/internal/updatePortalOrgSettings.d.ts +1 -1
  451. package/dist/types/utils/revertable-tasks.d.ts +1 -1
  452. package/dist/types/versioning/_internal/getIncludeListFromItemType.d.ts +1 -1
  453. package/dist/types/versioning/_internal/getVersionData.d.ts +1 -1
  454. package/dist/types/versioning/createVersion.d.ts +2 -2
  455. package/dist/types/versioning/deleteVersion.d.ts +1 -1
  456. package/dist/types/versioning/getVersion.d.ts +1 -1
  457. package/dist/types/versioning/searchVersions.d.ts +1 -1
  458. package/dist/types/versioning/updateVersion.d.ts +2 -2
  459. package/dist/types/versioning/updateVersionMetadata.d.ts +1 -1
  460. package/dist/types/versioning/utils.d.ts +1 -1
  461. package/package.json +1 -1
  462. package/dist/esm/types.js.map +0 -1
  463. package/dist/node/types.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { HubEntityHero } from "../../types";
1
+ import { HubEntityHero } from "../../hub-types";
2
2
  import { IHubTimeline, IMetricDisplayConfig, HubActionLink, IHubMapSettings, IHubEmbed } from "../types";
3
3
  /**
4
4
  * Properties to be exclusively displayed on an entity's
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IHubSearchResult } from "../../search/types/IHubSearchResult";
3
3
  import { AccessLevel } from "./types";
4
4
  export interface IHubCardViewModel {
@@ -1,6 +1,6 @@
1
1
  import { IItem, IGroup } from "@esri/arcgis-rest-portal";
2
2
  import { ILayerDefinition } from "@esri/arcgis-rest-feature-layer";
3
- import { AccessControl, HubFamily, IActionLink, Visibility } from "../../types";
3
+ import { AccessControl, HubFamily, IActionLink, Visibility } from "../../hub-types";
4
4
  import { IStructuredLicense } from "../../items/get-structured-license";
5
5
  import { IHubContentEnrichments } from "./IHubContentEnrichments";
6
6
  import { IHubAdditionalResource } from "./IHubAdditionalResource";
@@ -1,4 +1,4 @@
1
- import { IHubGeography } from "../../types";
1
+ import { IHubGeography } from "../../hub-types";
2
2
  import { IItemEnrichments } from "./IItemEnrichments";
3
3
  import { IServerEnrichments } from "./IServerEnrichments";
4
4
  export interface IHubContentEnrichments extends IItemEnrichments, IServerEnrichments {
@@ -1,5 +1,5 @@
1
1
  import { IHubEntityBase } from "./IHubEntityBase";
2
- import { IHubGeography } from "../../types";
2
+ import { IHubGeography } from "../../hub-types";
3
3
  import { AccessLevel, MembershipAccess } from "./types";
4
4
  import { IHubLocation } from "./IHubLocation";
5
5
  import { IWithFollowers } from "../traits/IWithFollowers";
@@ -1,4 +1,4 @@
1
- import { IUserHubSettings } from "../../utils/hubUserAppResources";
1
+ import { IUserHubSettings } from "../../utils/IUserHubSettings";
2
2
  import { IHubEntityBase } from "./IHubEntityBase";
3
3
  import { SettableAccessLevel } from "./types";
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { IUser, IPortal, IItem } from "@esri/arcgis-rest-portal";
2
- import { IEnrichmentErrorInfo } from "../../types";
2
+ import { IEnrichmentErrorInfo } from "../../hub-types";
3
3
  export interface IItemEnrichments {
4
4
  /**
5
5
  * Enable the item to be re-fetched so we get more props
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../ArcGISContext";
1
+ import type { IArcGISContext } from "../types/IArcGISContext";
2
2
  import { IHubItemEntity } from "./types/IHubItemEntity";
3
3
  /**
4
4
  * Unshares an entity from one or more groups
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../ArcGISContext";
1
+ import type { IArcGISContext } from "../types/IArcGISContext";
2
2
  import { HubEntity, HubEntityType } from "./types";
3
3
  /**
4
4
  * centralized function to update a Hub entity - delegates
@@ -1,5 +1,5 @@
1
1
  import { IWithSharingBehavior, IWithStoreBehavior } from "../core/behaviors";
2
- import { IArcGISContext } from "../ArcGISContext";
2
+ import type { IArcGISContext } from "../types/IArcGISContext";
3
3
  import { IEntityEditorContext, IHubDiscussion, IHubDiscussionEditor } from "../core/types";
4
4
  import { HubItemEntity } from "../core/HubItemEntity";
5
5
  import { IEditorConfig } from "../core/schemas/types";
@@ -1,5 +1,5 @@
1
1
  import { IUiSchema } from "../../core";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
5
5
  * @private
@@ -1,5 +1,5 @@
1
1
  import { IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { IHubDiscussion } from "../../core/types";
4
4
  /**
5
5
  * @private
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IUiSchema } from "../../core/schemas/types";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { IRequestOptions } from "@esri/arcgis-rest-request";
2
- import { IModel } from "../../types";
2
+ import { IModel } from "../../hub-types";
3
3
  import { IHubDiscussion } from "../../core";
4
4
  /**
5
5
  * Given a model and a Discussion, set various computed properties that can't be directly mapped
@@ -1,6 +1,6 @@
1
1
  import { IPagingParams, IPagedResponse as IRestPagedResponse, IUser } from "@esri/arcgis-rest-types";
2
2
  import { Geometry, Polygon } from "geojson";
3
- import { IHubRequestOptions } from "../../types";
3
+ import { IHubRequestOptions } from "../../hub-types";
4
4
  /**
5
5
  * sort orders
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import { IHubDiscussion } from "../core/types";
2
- import { IModel } from "../types";
2
+ import { IModel } from "../hub-types";
3
3
  export declare const HUB_DISCUSSION_ITEM_TYPE = "Discussion";
4
4
  /**
5
5
  * Default values of a IHubDiscussion
@@ -1,5 +1,5 @@
1
1
  import { IHubDiscussion } from "../core/types";
2
- import { IHubRequestOptions } from "../types";
2
+ import { IHubRequestOptions } from "../hub-types";
3
3
  /**
4
4
  * @private
5
5
  * Create a new Hub Discussion item
@@ -1,6 +1,6 @@
1
1
  import { IItem } from "@esri/arcgis-rest-portal";
2
2
  import { IHubDiscussion } from "../core/types";
3
- import { IHubRequestOptions } from "../types";
3
+ import { IHubRequestOptions } from "../hub-types";
4
4
  /**
5
5
  * @private
6
6
  * Get a Discussion by id or slug
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  /**
3
3
  * @private
4
4
  * Generates a URL to download the data of an export item.
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../ArcGISContext";
1
+ import type { IArcGISContext } from "../types/IArcGISContext";
2
2
  import { IHubEditableContent } from "../core/types/IHubEditableContent";
3
3
  /**
4
4
  * Determines if the Hub Download API can be used for the given entity.
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../ArcGISContext";
1
+ import type { IArcGISContext } from "../types/IArcGISContext";
2
2
  import { IHubEditableContent, IGeometryInstance } from "../core/types";
3
3
  /**
4
4
  * This hash map was defined to support the previous implementation of the export item flow.
@@ -3,7 +3,7 @@ import { HubItemEntity } from "../core/HubItemEntity";
3
3
  import { IHubEventEditor, IHubEvent } from "../core/types/IHubEvent";
4
4
  import { IWithEditorBehavior } from "../core/behaviors";
5
5
  import { SettableAccessLevel } from "../core/types/types";
6
- import { IArcGISContext } from "../ArcGISContext";
6
+ import type { IArcGISContext } from "../types/IArcGISContext";
7
7
  import { IEntityEditorContext } from "../core/types";
8
8
  import { IEditorConfig } from "../core/schemas/types";
9
9
  import { EventEditorType } from "./_internal/EventSchemaCreate";
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
3
3
  import { IUiSchema } from "../../core/schemas/types";
4
4
  export declare const buildUiSchema: (i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IUiSchema>;
@@ -1,5 +1,5 @@
1
1
  import { IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
5
5
  * @private
@@ -1,5 +1,5 @@
1
1
  import { IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { IHubEvent } from "../../core/types/IHubEvent";
4
4
  /**
5
5
  * @private
@@ -1,4 +1,4 @@
1
- import { IHubRequestOptions } from "../../types";
1
+ import { IHubRequestOptions } from "../../hub-types";
2
2
  import { ICreateEventAssociation } from "../api";
3
3
  export declare function buildEventAssociations(referencedContentIdsByType: Array<{
4
4
  entityId: string;
@@ -1,3 +1,3 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IUiSchemaElement } from "../../core/schemas/types";
3
3
  export declare function buildReferencedContentSchema(i18nScope: string, context: IArcGISContext, label?: string): IUiSchemaElement;
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IHubEvent } from "../../core/types/IHubEvent";
3
3
  /**
4
4
  * Shares an event with one or more groups
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IHubEvent } from "../../core/types/IHubEvent";
3
3
  /**
4
4
  * Unshares an event with one or more groups
@@ -1,5 +1,5 @@
1
1
  export { EventAssociationEntityType, EventAccess, EventAttendanceType, EventStatus, GetEventsParams, ISearchEvents, IEventAssociation, ICreateEventAssociation, IOnlineMeeting, ICreateOnlineMeeting, ICreateEvent, ICreateRegistration, IEvent, IEventPermission, IEventLocation, IEventLocationGeometriesItem, ILocationSpatialReference, IEventLocationSpatialReference, ICreateLocationSpatialReference, IEventRegistrationCount, ICreateEventLocation, ICreateEventLocationGeometriesItem, IRegistration, IRegistrationPermission, IUpdateEvent, IUpdateRegistration, GetRegistrationsParams, IUser, RegistrationRole, RegistrationStatus, RegistrationSort, EventSortOrder, EventSort, EventLocationType, IPagedRegistrationResponse, IPagedEventResponse, } from "./orval/api/orval-events";
2
- import { IHubRequestOptions } from "../../types";
2
+ import { IHubRequestOptions } from "../../hub-types";
3
3
  import { ICreateEvent, IUpdateEvent, GetEventsParams, ISearchEvents, ICreateRegistration, IUpdateRegistration, GetRegistrationsParams } from "./orval/api/orval-events";
4
4
  /**
5
5
  * options for making requests against the Events API
@@ -1,5 +1,5 @@
1
1
  import { IHubEvent } from "../core/types/IHubEvent";
2
- import { IHubRequestOptions } from "../types";
2
+ import { IHubRequestOptions } from "../hub-types";
3
3
  import { EventAttendanceType, IRegistration, RegistrationRole } from "./api";
4
4
  export interface IHubCreateEventRegistration {
5
5
  eventId: string;
@@ -1,5 +1,5 @@
1
1
  import { IHubEvent } from "../core/types/IHubEvent";
2
- import { IHubRequestOptions } from "../types";
2
+ import { IHubRequestOptions } from "../hub-types";
3
3
  import { IEvent } from "./api/orval/api/orval-events";
4
4
  /**
5
5
  * @private
@@ -1,5 +1,5 @@
1
1
  import { IGroup } from "@esri/arcgis-rest-portal";
2
- import { IArcGISContext } from "../ArcGISContext";
2
+ import type { IArcGISContext } from "../types/IArcGISContext";
3
3
  /**
4
4
  * Fetches the groups an event is shared with
5
5
  * @param eventId The ID of the event to fetch the groups for
@@ -1,5 +1,5 @@
1
1
  import { IExtent, IPoint, IPolygon } from "@esri/arcgis-rest-types";
2
- import { IHubRequestOptions, BBox } from "./types";
2
+ import { IHubRequestOptions, BBox } from "./hub-types";
3
3
  import { Polygon } from "geojson";
4
4
  /**
5
5
  * Turns an bounding box coordinate array into an extent object
@@ -2,7 +2,7 @@ import { IHubGroup, IHubGroupEditor } from "../core/types/IHubGroup";
2
2
  import { IEntityPermissionPolicy, IPermissionAccessResponse, Permission } from "../permissions";
3
3
  import { IWithStoreBehavior } from "../core/behaviors/IWithStoreBehavior";
4
4
  import { IWithPermissionBehavior } from "../core/behaviors/IWithPermissionBehavior";
5
- import { IArcGISContext } from "../ArcGISContext";
5
+ import type { IArcGISContext } from "../types/IArcGISContext";
6
6
  import { IEditorConfig } from "../core/schemas/types";
7
7
  import { IWithEditorBehavior } from "../core/behaviors/IWithEditorBehavior";
8
8
  import { GroupEditorType } from "./_internal/GroupSchema";
@@ -1,5 +1,5 @@
1
1
  import { IGroup } from "@esri/arcgis-rest-types";
2
- import { IHubRequestOptions } from "../types";
2
+ import { IHubRequestOptions } from "../hub-types";
3
3
  import { IRequestOptions } from "@esri/arcgis-rest-request";
4
4
  import { IHubGroup } from "../core/types/IHubGroup";
5
5
  import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
@@ -1,5 +1,5 @@
1
1
  import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  import { IHubGroup } from "../../core";
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
5
5
  * @private
@@ -1,5 +1,5 @@
1
1
  import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
5
5
  * @private
@@ -1,5 +1,5 @@
1
1
  import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
5
5
  * @private
@@ -1,5 +1,5 @@
1
1
  import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
5
5
  * @private
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IUiSchema } from "../../core/schemas/types";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
5
5
  * @private
@@ -1,5 +1,5 @@
1
1
  import { IUiSchema } from "../../core";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
4
4
  /**
5
5
  * @private
@@ -1,6 +1,6 @@
1
1
  import { IGroup } from "@esri/arcgis-rest-types";
2
2
  import { IHubGroup } from "../../core/types/IHubGroup";
3
- import { IHubRequestOptions } from "../../types";
3
+ import { IHubRequestOptions } from "../../hub-types";
4
4
  /**
5
5
  * Convert an IGroup to a Hub Group
6
6
  * @param group
@@ -1,5 +1,5 @@
1
1
  import { IGroup, GroupMembership } from "@esri/arcgis-rest-portal";
2
- import { IEnrichmentErrorInfo, IHubRequestOptions } from "../../types";
2
+ import { IEnrichmentErrorInfo, IHubRequestOptions } from "../../hub-types";
3
3
  import { IGroupMembershipSummary } from "../types";
4
4
  /**
5
5
  * Possible additional properties available through enrichments
@@ -1,5 +1,5 @@
1
1
  import { IUser } from "@esri/arcgis-rest-portal";
2
- import { IHubRequestOptions } from "../../types";
2
+ import { IHubRequestOptions } from "../../hub-types";
3
3
  import { IConsolidatedResult } from "./interfaces";
4
4
  import { IEmail } from "../types";
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { ICreateOrgNotificationResult, IInviteGroupUsersResult, IUser } from "@esri/arcgis-rest-portal";
2
2
  import { ArcGISRequestError } from "@esri/arcgis-rest-request";
3
- import { IHubRequestOptions } from "../../types";
3
+ import { IHubRequestOptions } from "../../hub-types";
4
4
  import { IEmail } from "../types";
5
5
  export interface IConsolidatedResult {
6
6
  success: boolean;
@@ -1,5 +1,5 @@
1
1
  import { IHubGroup } from "../core/types/IHubGroup";
2
- import { IArcGISContext } from "../ArcGISContext";
2
+ import type { IArcGISContext } from "../types/IArcGISContext";
3
3
  declare type WellKnownGroup = "hubGroup" | "hubViewGroup" | "hubEditGroup" | "hubFollowersGroup" | "hubAssociationsGroup";
4
4
  /**
5
5
  * Fetches a well known group template based on a name
@@ -2,6 +2,10 @@ import { IItem, IUser, IGroup, IPolygon, ISpatialReference, IGeometry } from "@e
2
2
  import { IPortal, ISearchResult } from "@esri/arcgis-rest-portal";
3
3
  import { UserSession } from "@esri/arcgis-rest-auth";
4
4
  import { IRequestOptions } from "@esri/arcgis-rest-request";
5
+ /**
6
+ * App keys for User Resources used in Hub
7
+ */
8
+ export declare type UserResourceApp = "self" | "hubforarcgis" | "arcgisonline";
5
9
  /**
6
10
  * Generic Model, used with all items that have a json
7
11
  * `/data` payload
@@ -1,4 +1,4 @@
1
- import { IHubRequestOptions } from "../types";
1
+ import { IHubRequestOptions } from "../hub-types";
2
2
  /**
3
3
  * Return the culture from the Hub Request Options
4
4
  * In priority order: user.culture, portal.culture, en-us
@@ -30,6 +30,7 @@ export * from "./resources";
30
30
  export * from "./search";
31
31
  export * from "./sites";
32
32
  export * from "./templates";
33
+ export * from "./hub-types";
33
34
  export * from "./types";
34
35
  export * from "./urls";
35
36
  export * from "./users";
@@ -2,7 +2,7 @@ import { HubItemEntity } from "../core/HubItemEntity";
2
2
  import { IHubInitiativeTemplate, IWithCatalogBehavior, IWithCardBehavior, IConvertToCardModelOpts, IHubCardViewModel, IEntityEditorContext, IHubInitiativeTemplateEditor, HubEntity } from "../core";
3
3
  import { IEditorConfig } from "../core/schemas/types";
4
4
  import { IWithEditorBehavior } from "../core/behaviors/IWithEditorBehavior";
5
- import { IArcGISContext } from "..";
5
+ import type { IArcGISContext } from "../types/IArcGISContext";
6
6
  import { Catalog } from "../search/Catalog";
7
7
  import { InitiativeTemplateEditorType } from "./_internal/InitiativeTemplateSchema";
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../..";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
3
3
  import { IUiSchema } from "../../core/schemas/types";
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { IRequestOptions } from "@esri/arcgis-rest-request";
2
2
  import { IHubInitiativeTemplate } from "../../core";
3
- import { IModel } from "../../types";
3
+ import { IModel } from "../../hub-types";
4
4
  /**
5
5
  * Given a model and an initiative template, set various computed properties that can't be directly mapped
6
6
  * @private
@@ -1,5 +1,5 @@
1
1
  import { IHubInitiativeTemplate } from "../core/types/IHubInitiativeTemplate";
2
- import { IModel } from "../types";
2
+ import { IModel } from "../hub-types";
3
3
  export declare const HUB_INITIATIVE_TEMPLATE_ITEM_TYPE = "Hub Initiative Template";
4
4
  /**
5
5
  * Default values of a IHubInitiativeTemplate
@@ -2,7 +2,7 @@ import { IRequestOptions } from "@esri/arcgis-rest-request";
2
2
  import { IItem } from "@esri/arcgis-rest-portal";
3
3
  import { IHubInitiativeTemplate } from "../core/types";
4
4
  import { IHubSearchResult } from "../search";
5
- import { IHubRequestOptions } from "../types";
5
+ import { IHubRequestOptions } from "../hub-types";
6
6
  export declare function fetchInitiativeTemplate(identifier: string, requestOptions: IRequestOptions): Promise<IHubInitiativeTemplate>;
7
7
  /**
8
8
  * @private
@@ -1,6 +1,6 @@
1
1
  import { IEntityEditorContext } from "../core/types/HubEntityEditor";
2
2
  import { Catalog } from "../search/Catalog";
3
- import { IArcGISContext } from "../ArcGISContext";
3
+ import type { IArcGISContext } from "../types/IArcGISContext";
4
4
  import { HubItemEntity } from "../core/HubItemEntity";
5
5
  import { InitiativeEditorType } from "./_internal/InitiativeSchema";
6
6
  import { IWithMetricsBehavior } from "../core/behaviors/IWithMetricsBehavior";
@@ -5,7 +5,7 @@ import { IItem } from "@esri/arcgis-rest-portal";
5
5
  import { IRequestOptions } from "@esri/arcgis-rest-request";
6
6
  import { IHubInitiative } from "../core/types";
7
7
  import { IHubSearchResult } from "../search";
8
- import { IArcGISContext } from "../ArcGISContext";
8
+ import type { IArcGISContext } from "../types/IArcGISContext";
9
9
  /**
10
10
  * @private
11
11
  * Create a new Hub Initiative item
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IUiSchema } from "../../core/schemas/types";
3
3
  import { IHubInitiative } from "../../core/types";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IUiSchema } from "../../core/schemas/types";
3
3
  import { IHubInitiative } from "../../core/types";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IUiSchema } from "../../core/schemas/types";
3
3
  import { IHubInitiative } from "../../core/types";
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { IUiSchema } from "../../core/schemas/types";
2
- import { IArcGISContext } from "../../ArcGISContext";
2
+ import type { IArcGISContext } from "../../types/IArcGISContext";
3
3
  import { IHubInitiative } from "../../core";
4
4
  /**
5
5
  * @private
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../../ArcGISContext";
1
+ import type { IArcGISContext } from "../../types/IArcGISContext";
2
2
  import { IUiSchema } from "../../core/schemas/types";
3
3
  import { IHubInitiative } from "../../core/types";
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { IRequestOptions } from "@esri/arcgis-rest-request";
2
- import { IModel } from "../../types";
2
+ import { IModel } from "../../hub-types";
3
3
  export declare const INITIATIVE_SCHEMA_VERSION = 2;
4
4
  /**
5
5
  * Apply all Initiative model migrations
@@ -1,5 +1,5 @@
1
1
  import { IRequestOptions } from "@esri/arcgis-rest-request";
2
- import { IModel } from "../../types";
2
+ import { IModel } from "../../hub-types";
3
3
  import { IHubInitiative } from "../../core";
4
4
  /**
5
5
  * Given a model and an Initiative, set various computed properties that can't be directly mapped
@@ -1,5 +1,5 @@
1
1
  import { IHubInitiative } from "../core/types";
2
- import { IModel } from "../types";
2
+ import { IModel } from "../hub-types";
3
3
  export declare const HUB_INITIATIVE_ITEM_TYPE = "Hub Initiative";
4
4
  /**
5
5
  * Default values of a IHubInitiative
@@ -1,5 +1,5 @@
1
- import { IHubInitiative } from "../core";
2
- import { EntityToCardModelFn, ResultToCardModelFn } from "../core/types/IHubCardViewModel";
1
+ import type { IHubInitiative } from "../core/types/IHubInitiative";
2
+ import type { EntityToCardModelFn, ResultToCardModelFn } from "../core/types/IHubCardViewModel";
3
3
  /**
4
4
  * Convert an initiative entity in a card view model
5
5
  * that can be consumed by the suite of hub gallery components
@@ -1,6 +1,6 @@
1
1
  import { IItem } from "@esri/arcgis-rest-portal";
2
2
  import { IItemEnrichments, IServerEnrichments } from "../core";
3
- import { IEnrichmentErrorInfo, IHubRequestOptions } from "../types";
3
+ import { IEnrichmentErrorInfo, IHubRequestOptions } from "../hub-types";
4
4
  import { IHubSchedule } from "../core/types/IHubSchedule";
5
5
  /**
6
6
  * An object containing the item and fetched enrichments
@@ -1,5 +1,5 @@
1
1
  import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
2
- import { IBatch } from "../../types";
2
+ import { IBatch } from "../../hub-types";
3
3
  /**
4
4
  * Takes a file, file owner, and file AGO item id along with a size limit
5
5
  * Then chunks the file up based on that file limit.
@@ -1,3 +1,3 @@
1
1
  import { IHubItemEntity } from "../../core";
2
- import { IHubRequestOptions } from "../../types";
2
+ import { IHubRequestOptions } from "../../hub-types";
3
3
  export declare const ensureUniqueEntitySlug: (entity: IHubItemEntity, requestOptions: IHubRequestOptions) => Promise<IHubItemEntity>;
@@ -1,4 +1,4 @@
1
- import { IModel } from "../types";
1
+ import { IModel } from "../hub-types";
2
2
  import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
3
3
  /**
4
4
  * Update a model's item, wrapped in a failSafe so this will not blow up if