@esri/hub-common 13.17.2 → 13.17.4

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 (585) hide show
  1. package/dist/esm/associations/addAssociation.js +16 -0
  2. package/dist/esm/associations/addAssociation.js.map +1 -0
  3. package/dist/esm/associations/index.js +5 -0
  4. package/dist/esm/associations/index.js.map +1 -0
  5. package/dist/esm/associations/internal/getTargetEntityFromAssociationType.js +18 -0
  6. package/dist/esm/associations/internal/getTargetEntityFromAssociationType.js.map +1 -0
  7. package/dist/esm/associations/internal/getTypeByIdsQuery.js +28 -0
  8. package/dist/esm/associations/internal/getTypeByIdsQuery.js.map +1 -0
  9. package/dist/esm/associations/internal/getTypeFromAssociationType.js +18 -0
  10. package/dist/esm/associations/internal/getTypeFromAssociationType.js.map +1 -0
  11. package/dist/esm/associations/internal/getTypeWithKeywordQuery.js +27 -0
  12. package/dist/esm/associations/internal/getTypeWithKeywordQuery.js.map +1 -0
  13. package/dist/esm/associations/internal/getTypeWithoutKeywordQuery.js +27 -0
  14. package/dist/esm/associations/internal/getTypeWithoutKeywordQuery.js.map +1 -0
  15. package/dist/esm/associations/listAssociations.js +17 -0
  16. package/dist/esm/associations/listAssociations.js.map +1 -0
  17. package/dist/esm/associations/removeAssociation.js +17 -0
  18. package/dist/esm/associations/removeAssociation.js.map +1 -0
  19. package/dist/esm/associations/types.js +2 -0
  20. package/dist/esm/associations/types.js.map +1 -0
  21. package/dist/esm/content/_internal/ContentSchema.js +16 -0
  22. package/dist/esm/content/_internal/ContentSchema.js.map +1 -0
  23. package/dist/esm/content/_internal/ContentUiSchemaEdit.js +148 -0
  24. package/dist/esm/content/_internal/ContentUiSchemaEdit.js.map +1 -0
  25. package/dist/esm/content/_internal/ContentUiSchemaSettings.js +59 -0
  26. package/dist/esm/content/_internal/ContentUiSchemaSettings.js.map +1 -0
  27. package/dist/esm/content/_internal/computeProps.js +57 -0
  28. package/dist/esm/content/_internal/computeProps.js.map +1 -0
  29. package/dist/esm/content/hostedServiceUtils.js +91 -0
  30. package/dist/esm/content/hostedServiceUtils.js.map +1 -0
  31. package/dist/esm/core/EntityEditor.js +56 -0
  32. package/dist/esm/core/EntityEditor.js.map +1 -0
  33. package/dist/esm/core/behaviors/IWIthAssociationBehavior.js +1 -0
  34. package/dist/esm/core/behaviors/IWIthAssociationBehavior.js.map +1 -0
  35. package/dist/esm/core/behaviors/IWithFollowersBehavior.js +1 -0
  36. package/dist/esm/core/behaviors/IWithFollowersBehavior.js.map +1 -0
  37. package/dist/esm/core/enrichEntity.js +66 -0
  38. package/dist/esm/core/enrichEntity.js.map +1 -0
  39. package/dist/esm/core/schemas/getEditorConfig.js +13 -0
  40. package/dist/esm/core/schemas/getEditorConfig.js.map +1 -0
  41. package/dist/esm/core/schemas/internal/ConfigurableEntity.js +1 -0
  42. package/dist/esm/core/schemas/internal/ConfigurableEntity.js.map +1 -0
  43. package/dist/esm/core/schemas/internal/configOptionHelpers.js +88 -0
  44. package/dist/esm/core/schemas/internal/configOptionHelpers.js.map +1 -0
  45. package/dist/esm/core/schemas/internal/getCategoryItems.js +34 -0
  46. package/dist/esm/core/schemas/internal/getCategoryItems.js.map +1 -0
  47. package/dist/esm/core/schemas/internal/getConfigOptions.js +15 -0
  48. package/dist/esm/core/schemas/internal/getConfigOptions.js.map +1 -0
  49. package/dist/esm/core/schemas/internal/getEditorConfigOptions.js +37 -0
  50. package/dist/esm/core/schemas/internal/getEditorConfigOptions.js.map +1 -0
  51. package/dist/esm/core/schemas/internal/getEntityEditorSchemas.js +93 -0
  52. package/dist/esm/core/schemas/internal/getEntityEditorSchemas.js.map +1 -0
  53. package/dist/esm/core/schemas/internal/getFeaturedContentCatalogs.js +21 -0
  54. package/dist/esm/core/schemas/internal/getFeaturedContentCatalogs.js.map +1 -0
  55. package/dist/esm/core/schemas/internal/getFeaturedImageUrl.js +11 -0
  56. package/dist/esm/core/schemas/internal/getFeaturedImageUrl.js.map +1 -0
  57. package/dist/esm/core/schemas/internal/getLocationExtent.js +11 -0
  58. package/dist/esm/core/schemas/internal/getLocationExtent.js.map +1 -0
  59. package/dist/esm/core/schemas/internal/getLocationOptions.js +64 -0
  60. package/dist/esm/core/schemas/internal/getLocationOptions.js.map +1 -0
  61. package/dist/esm/core/schemas/internal/getSharableGroupsComboBoxItems.js +27 -0
  62. package/dist/esm/core/schemas/internal/getSharableGroupsComboBoxItems.js.map +1 -0
  63. package/dist/esm/core/schemas/internal/getTagItems.js +61 -0
  64. package/dist/esm/core/schemas/internal/getTagItems.js.map +1 -0
  65. package/dist/esm/core/traits/IWithAssociations.js +1 -0
  66. package/dist/esm/core/traits/IWithAssociations.js.map +1 -0
  67. package/dist/esm/core/traits/IWithFollowers.js +1 -0
  68. package/dist/esm/core/traits/IWithFollowers.js.map +1 -0
  69. package/dist/esm/core/types/HubEntityEditor.js +1 -0
  70. package/dist/esm/core/types/HubEntityEditor.js.map +1 -0
  71. package/dist/esm/core/types/IHubGroup.js +1 -0
  72. package/dist/esm/core/types/IHubGroup.js.map +1 -0
  73. package/dist/esm/discussions/api/channels/channels.js +14 -0
  74. package/dist/esm/discussions/api/channels/channels.js.map +1 -0
  75. package/dist/esm/discussions/api/channels/index.js +2 -0
  76. package/dist/esm/discussions/api/channels/index.js.map +1 -0
  77. package/dist/esm/discussions/api/index.js +3 -0
  78. package/dist/esm/discussions/api/index.js.map +1 -0
  79. package/dist/esm/discussions/api/request.js +20 -0
  80. package/dist/esm/discussions/api/request.js.map +1 -0
  81. package/dist/esm/discussions/api/types.js +245 -0
  82. package/dist/esm/discussions/api/types.js.map +1 -0
  83. package/dist/esm/discussions/api/utils/request.js +77 -0
  84. package/dist/esm/discussions/api/utils/request.js.map +1 -0
  85. package/dist/esm/features/_internal/checkCapabilityAccess.js +54 -0
  86. package/dist/esm/features/_internal/checkCapabilityAccess.js.map +1 -0
  87. package/dist/esm/features/_internal/checkFeatureAccess.js +99 -0
  88. package/dist/esm/features/_internal/checkFeatureAccess.js.map +1 -0
  89. package/dist/esm/features/_internal/index.js +3 -0
  90. package/dist/esm/features/_internal/index.js.map +1 -0
  91. package/dist/esm/features/checkFeature.js +107 -0
  92. package/dist/esm/features/checkFeature.js.map +1 -0
  93. package/dist/esm/features/index.js +5 -0
  94. package/dist/esm/features/index.js.map +1 -0
  95. package/dist/esm/features/types.js +28 -0
  96. package/dist/esm/features/types.js.map +1 -0
  97. package/dist/esm/groups/HubGroup.js +258 -0
  98. package/dist/esm/groups/HubGroup.js.map +1 -0
  99. package/dist/esm/groups/_internal/AddOrInviteUsersToGroupUtils.js +195 -0
  100. package/dist/esm/groups/_internal/AddOrInviteUsersToGroupUtils.js.map +1 -0
  101. package/dist/esm/groups/_internal/GroupBusinessRules.js +94 -0
  102. package/dist/esm/groups/_internal/GroupBusinessRules.js.map +1 -0
  103. package/dist/esm/groups/_internal/GroupSchema.js +31 -0
  104. package/dist/esm/groups/_internal/GroupSchema.js.map +1 -0
  105. package/dist/esm/groups/_internal/GroupUiSchemaEdit.js +62 -0
  106. package/dist/esm/groups/_internal/GroupUiSchemaEdit.js.map +1 -0
  107. package/dist/esm/groups/_internal/GroupUiSchemaSettings.js +46 -0
  108. package/dist/esm/groups/_internal/GroupUiSchemaSettings.js.map +1 -0
  109. package/dist/esm/groups/_internal/autoAddUsersAsAdmins.js +24 -0
  110. package/dist/esm/groups/_internal/autoAddUsersAsAdmins.js.map +1 -0
  111. package/dist/esm/groups/_internal/computeProps.js +45 -0
  112. package/dist/esm/groups/_internal/computeProps.js.map +1 -0
  113. package/dist/esm/groups/_internal/convertGroupToHubGroup.js +14 -0
  114. package/dist/esm/groups/_internal/convertGroupToHubGroup.js.map +1 -0
  115. package/dist/esm/groups/_internal/convertHubGroupToGroup.js +26 -0
  116. package/dist/esm/groups/_internal/convertHubGroupToGroup.js.map +1 -0
  117. package/dist/esm/groups/_internal/getPropertyMap.js +40 -0
  118. package/dist/esm/groups/_internal/getPropertyMap.js.map +1 -0
  119. package/dist/esm/groups/_internal/processAutoAddUsers.js +62 -0
  120. package/dist/esm/groups/_internal/processAutoAddUsers.js.map +1 -0
  121. package/dist/esm/groups/_internal/processEmailUsers.js +50 -0
  122. package/dist/esm/groups/_internal/processEmailUsers.js.map +1 -0
  123. package/dist/esm/groups/_internal/processInviteUsers.js +51 -0
  124. package/dist/esm/groups/_internal/processInviteUsers.js.map +1 -0
  125. package/dist/esm/groups/addOrInviteUsersToGroup.js +67 -0
  126. package/dist/esm/groups/addOrInviteUsersToGroup.js.map +1 -0
  127. package/dist/esm/groups/addOrInviteUsersToGroups.js +51 -0
  128. package/dist/esm/groups/addOrInviteUsersToGroups.js.map +1 -0
  129. package/dist/esm/groups/autoAddUsers.js +24 -0
  130. package/dist/esm/groups/autoAddUsers.js.map +1 -0
  131. package/dist/esm/groups/defaults.js +21 -0
  132. package/dist/esm/groups/defaults.js.map +1 -0
  133. package/dist/esm/groups/deleteGroupThumbnail.js +14 -0
  134. package/dist/esm/groups/deleteGroupThumbnail.js.map +1 -0
  135. package/dist/esm/groups/emailOrgUsers.js +29 -0
  136. package/dist/esm/groups/emailOrgUsers.js.map +1 -0
  137. package/dist/esm/groups/inviteUsers.js +30 -0
  138. package/dist/esm/groups/inviteUsers.js.map +1 -0
  139. package/dist/esm/groups/setGroupThumbnail.js +32 -0
  140. package/dist/esm/groups/setGroupThumbnail.js.map +1 -0
  141. package/dist/esm/groups/types/types.js +1 -0
  142. package/dist/esm/groups/types/types.js.map +1 -0
  143. package/dist/esm/initiatives/_internal/InitiativeUiSchemaCreate.js +134 -0
  144. package/dist/esm/initiatives/_internal/InitiativeUiSchemaCreate.js.map +1 -0
  145. package/dist/esm/initiatives/view.js +81 -0
  146. package/dist/esm/initiatives/view.js.map +1 -0
  147. package/dist/esm/items/deleteItemThumbnail.js +14 -0
  148. package/dist/esm/items/deleteItemThumbnail.js.map +1 -0
  149. package/dist/esm/pages/HubPage.js +201 -0
  150. package/dist/esm/pages/HubPage.js.map +1 -0
  151. package/dist/esm/pages/_internal/PageSchema.js +31 -0
  152. package/dist/esm/pages/_internal/PageSchema.js.map +1 -0
  153. package/dist/esm/pages/_internal/PageUiSchemaEdit.js +126 -0
  154. package/dist/esm/pages/_internal/PageUiSchemaEdit.js.map +1 -0
  155. package/dist/esm/pages/_internal/computeProps.js +45 -0
  156. package/dist/esm/pages/_internal/computeProps.js.map +1 -0
  157. package/dist/esm/pages/_internal/getPropertyMap.js +20 -0
  158. package/dist/esm/pages/_internal/getPropertyMap.js.map +1 -0
  159. package/dist/esm/pages/defaults.js +41 -0
  160. package/dist/esm/pages/defaults.js.map +1 -0
  161. package/dist/esm/permissions/PlatformPermissionPolicies.js +711 -0
  162. package/dist/esm/permissions/PlatformPermissionPolicies.js.map +1 -0
  163. package/dist/esm/permissions/_internal/PermissionCheckFunction.js +1 -0
  164. package/dist/esm/permissions/_internal/PermissionCheckFunction.js.map +1 -0
  165. package/dist/esm/permissions/_internal/checkAvailability.js +46 -0
  166. package/dist/esm/permissions/_internal/checkAvailability.js.map +1 -0
  167. package/dist/esm/permissions/_internal/checkEntityFeature.js +29 -0
  168. package/dist/esm/permissions/_internal/checkEntityFeature.js.map +1 -0
  169. package/dist/esm/permissions/_internal/checkEnvironment.js +28 -0
  170. package/dist/esm/permissions/_internal/checkEnvironment.js.map +1 -0
  171. package/dist/esm/permissions/_internal/checkFeature.js +65 -0
  172. package/dist/esm/permissions/_internal/checkFeature.js.map +1 -0
  173. package/dist/esm/permissions/_internal/checkFeatures.js +42 -0
  174. package/dist/esm/permissions/_internal/checkFeatures.js.map +1 -0
  175. package/dist/esm/permissions/_internal/checkParents.js +23 -0
  176. package/dist/esm/permissions/_internal/checkParents.js.map +1 -0
  177. package/dist/esm/permissions/_internal/checkServiceStatus.js +24 -0
  178. package/dist/esm/permissions/_internal/checkServiceStatus.js.map +1 -0
  179. package/dist/esm/permissions/_internal/processEntityFeatures.js +26 -0
  180. package/dist/esm/permissions/_internal/processEntityFeatures.js.map +1 -0
  181. package/dist/esm/projects/_internal/getProjectEditorConfigOptions.js +63 -0
  182. package/dist/esm/projects/_internal/getProjectEditorConfigOptions.js.map +1 -0
  183. package/dist/esm/search/_internal/commonHelpers/getDiscussionsApiDefinition.js +10 -0
  184. package/dist/esm/search/_internal/commonHelpers/getDiscussionsApiDefinition.js.map +1 -0
  185. package/dist/esm/search/_internal/commonHelpers/shouldUseDiscussionsApi.js +13 -0
  186. package/dist/esm/search/_internal/commonHelpers/shouldUseDiscussionsApi.js.map +1 -0
  187. package/dist/esm/search/_internal/explainFilter.js +34 -0
  188. package/dist/esm/search/_internal/explainFilter.js.map +1 -0
  189. package/dist/esm/search/_internal/explainHelpers.js +193 -0
  190. package/dist/esm/search/_internal/explainHelpers.js.map +1 -0
  191. package/dist/esm/search/_internal/explainPredicate.js +35 -0
  192. package/dist/esm/search/_internal/explainPredicate.js.map +1 -0
  193. package/dist/esm/search/_internal/getEntityTypeFromType.js +21 -0
  194. package/dist/esm/search/_internal/getEntityTypeFromType.js.map +1 -0
  195. package/dist/esm/search/_internal/hubSearchChannels.js +137 -0
  196. package/dist/esm/search/_internal/hubSearchChannels.js.map +1 -0
  197. package/dist/esm/search/_internal/negateGroupPredicates.js +28 -0
  198. package/dist/esm/search/_internal/negateGroupPredicates.js.map +1 -0
  199. package/dist/esm/search/_internal/portalSearchGroupMembers.js +10 -1
  200. package/dist/esm/search/_internal/portalSearchGroupMembers.js.map +1 -1
  201. package/dist/esm/search/explainQueryResult.js +53 -0
  202. package/dist/esm/search/explainQueryResult.js.map +1 -0
  203. package/dist/esm/sites/HubSite.js +2 -1
  204. package/dist/esm/sites/HubSite.js.map +1 -1
  205. package/dist/esm/sites/_internal/SiteUiSchemaFollowers.js +56 -0
  206. package/dist/esm/sites/_internal/SiteUiSchemaFollowers.js.map +1 -0
  207. package/dist/esm/sites/_internal/_migrate-summary-stat-card-configs.js +188 -0
  208. package/dist/esm/sites/_internal/_migrate-summary-stat-card-configs.js.map +1 -0
  209. package/dist/esm/sites/_internal/applyCatalogStructureMigration.js +39 -0
  210. package/dist/esm/sites/_internal/applyCatalogStructureMigration.js.map +1 -0
  211. package/dist/esm/sites/_internal/applyDefaultCollectionMigration.js +92 -0
  212. package/dist/esm/sites/_internal/applyDefaultCollectionMigration.js.map +1 -0
  213. package/dist/esm/sites/_internal/capabilities/capabilityToFeatureMap.js +31 -0
  214. package/dist/esm/sites/_internal/capabilities/capabilityToFeatureMap.js.map +1 -0
  215. package/dist/esm/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.js +46 -0
  216. package/dist/esm/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.js.map +1 -0
  217. package/dist/esm/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.js +34 -0
  218. package/dist/esm/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.js.map +1 -0
  219. package/dist/esm/sites/_internal/capabilities/types.js +1 -0
  220. package/dist/esm/sites/_internal/capabilities/types.js.map +1 -0
  221. package/dist/esm/sites/_internal/convertCatalogToLegacyFormat.js +33 -0
  222. package/dist/esm/sites/_internal/convertCatalogToLegacyFormat.js.map +1 -0
  223. package/dist/esm/sites/_internal/reflectCollectionsToSearchCategories.js +55 -0
  224. package/dist/esm/sites/_internal/reflectCollectionsToSearchCategories.js.map +1 -0
  225. package/dist/esm/sites/_internal/types.js +11 -0
  226. package/dist/esm/sites/_internal/types.js.map +1 -0
  227. package/dist/esm/urls/cacheBustUrl.js +13 -0
  228. package/dist/esm/urls/cacheBustUrl.js.map +1 -0
  229. package/dist/esm/urls/getCardModelUrl.js +76 -0
  230. package/dist/esm/urls/getCardModelUrl.js.map +1 -0
  231. package/dist/esm/users/view.js +71 -0
  232. package/dist/esm/users/view.js.map +1 -0
  233. package/dist/esm/utils/getEnvironmentFromPortalUrl.js +20 -0
  234. package/dist/esm/utils/getEnvironmentFromPortalUrl.js.map +1 -0
  235. package/dist/node/associations/addAssociation.js +20 -0
  236. package/dist/node/associations/addAssociation.js.map +1 -0
  237. package/dist/node/associations/index.js +8 -0
  238. package/dist/node/associations/index.js.map +1 -0
  239. package/dist/node/associations/internal/getTargetEntityFromAssociationType.js +22 -0
  240. package/dist/node/associations/internal/getTargetEntityFromAssociationType.js.map +1 -0
  241. package/dist/node/associations/internal/getTypeByIdsQuery.js +32 -0
  242. package/dist/node/associations/internal/getTypeByIdsQuery.js.map +1 -0
  243. package/dist/node/associations/internal/getTypeFromAssociationType.js +22 -0
  244. package/dist/node/associations/internal/getTypeFromAssociationType.js.map +1 -0
  245. package/dist/node/associations/internal/getTypeWithKeywordQuery.js +31 -0
  246. package/dist/node/associations/internal/getTypeWithKeywordQuery.js.map +1 -0
  247. package/dist/node/associations/internal/getTypeWithoutKeywordQuery.js +31 -0
  248. package/dist/node/associations/internal/getTypeWithoutKeywordQuery.js.map +1 -0
  249. package/dist/node/associations/listAssociations.js +21 -0
  250. package/dist/node/associations/listAssociations.js.map +1 -0
  251. package/dist/node/associations/removeAssociation.js +21 -0
  252. package/dist/node/associations/removeAssociation.js.map +1 -0
  253. package/dist/node/associations/types.js +4 -0
  254. package/dist/node/associations/types.js.map +1 -0
  255. package/dist/node/content/_internal/ContentSchema.js +19 -0
  256. package/dist/node/content/_internal/ContentSchema.js.map +1 -0
  257. package/dist/node/content/_internal/ContentUiSchemaEdit.js +151 -0
  258. package/dist/node/content/_internal/ContentUiSchemaEdit.js.map +1 -0
  259. package/dist/node/content/_internal/ContentUiSchemaSettings.js +62 -0
  260. package/dist/node/content/_internal/ContentUiSchemaSettings.js.map +1 -0
  261. package/dist/node/content/_internal/computeProps.js +62 -0
  262. package/dist/node/content/_internal/computeProps.js.map +1 -0
  263. package/dist/node/content/hostedServiceUtils.js +98 -0
  264. package/dist/node/content/hostedServiceUtils.js.map +1 -0
  265. package/dist/node/core/EntityEditor.js +60 -0
  266. package/dist/node/core/EntityEditor.js.map +1 -0
  267. package/dist/node/core/behaviors/IWIthAssociationBehavior.js +3 -0
  268. package/dist/node/core/behaviors/IWIthAssociationBehavior.js.map +1 -0
  269. package/dist/node/core/behaviors/IWithFollowersBehavior.js +3 -0
  270. package/dist/node/core/behaviors/IWithFollowersBehavior.js.map +1 -0
  271. package/dist/node/core/enrichEntity.js +69 -0
  272. package/dist/node/core/enrichEntity.js.map +1 -0
  273. package/dist/node/core/schemas/getEditorConfig.js +17 -0
  274. package/dist/node/core/schemas/getEditorConfig.js.map +1 -0
  275. package/dist/node/core/schemas/internal/ConfigurableEntity.js +3 -0
  276. package/dist/node/core/schemas/internal/ConfigurableEntity.js.map +1 -0
  277. package/dist/node/core/schemas/internal/configOptionHelpers.js +91 -0
  278. package/dist/node/core/schemas/internal/configOptionHelpers.js.map +1 -0
  279. package/dist/node/core/schemas/internal/getCategoryItems.js +38 -0
  280. package/dist/node/core/schemas/internal/getCategoryItems.js.map +1 -0
  281. package/dist/node/core/schemas/internal/getConfigOptions.js +19 -0
  282. package/dist/node/core/schemas/internal/getConfigOptions.js.map +1 -0
  283. package/dist/node/core/schemas/internal/getEditorConfigOptions.js +41 -0
  284. package/dist/node/core/schemas/internal/getEditorConfigOptions.js.map +1 -0
  285. package/dist/node/core/schemas/internal/getEntityEditorSchemas.js +97 -0
  286. package/dist/node/core/schemas/internal/getEntityEditorSchemas.js.map +1 -0
  287. package/dist/node/core/schemas/internal/getFeaturedContentCatalogs.js +25 -0
  288. package/dist/node/core/schemas/internal/getFeaturedContentCatalogs.js.map +1 -0
  289. package/dist/node/core/schemas/internal/getFeaturedImageUrl.js +15 -0
  290. package/dist/node/core/schemas/internal/getFeaturedImageUrl.js.map +1 -0
  291. package/dist/node/core/schemas/internal/getLocationExtent.js +15 -0
  292. package/dist/node/core/schemas/internal/getLocationExtent.js.map +1 -0
  293. package/dist/node/core/schemas/internal/getLocationOptions.js +68 -0
  294. package/dist/node/core/schemas/internal/getLocationOptions.js.map +1 -0
  295. package/dist/node/core/schemas/internal/getSharableGroupsComboBoxItems.js +31 -0
  296. package/dist/node/core/schemas/internal/getSharableGroupsComboBoxItems.js.map +1 -0
  297. package/dist/node/core/schemas/internal/getTagItems.js +65 -0
  298. package/dist/node/core/schemas/internal/getTagItems.js.map +1 -0
  299. package/dist/node/core/traits/IWithAssociations.js +3 -0
  300. package/dist/node/core/traits/IWithAssociations.js.map +1 -0
  301. package/dist/node/core/traits/IWithFollowers.js +3 -0
  302. package/dist/node/core/traits/IWithFollowers.js.map +1 -0
  303. package/dist/node/core/types/HubEntityEditor.js +3 -0
  304. package/dist/node/core/types/HubEntityEditor.js.map +1 -0
  305. package/dist/node/core/types/IHubGroup.js +3 -0
  306. package/dist/node/core/types/IHubGroup.js.map +1 -0
  307. package/dist/node/discussions/api/channels/channels.js +18 -0
  308. package/dist/node/discussions/api/channels/channels.js.map +1 -0
  309. package/dist/node/discussions/api/channels/index.js +5 -0
  310. package/dist/node/discussions/api/channels/index.js.map +1 -0
  311. package/dist/node/discussions/api/index.js +6 -0
  312. package/dist/node/discussions/api/index.js.map +1 -0
  313. package/dist/node/discussions/api/request.js +24 -0
  314. package/dist/node/discussions/api/request.js.map +1 -0
  315. package/dist/node/discussions/api/types.js +248 -0
  316. package/dist/node/discussions/api/types.js.map +1 -0
  317. package/dist/node/discussions/api/utils/request.js +83 -0
  318. package/dist/node/discussions/api/utils/request.js.map +1 -0
  319. package/dist/node/features/_internal/checkCapabilityAccess.js +54 -0
  320. package/dist/node/features/_internal/checkCapabilityAccess.js.map +1 -0
  321. package/dist/node/features/_internal/checkFeatureAccess.js +99 -0
  322. package/dist/node/features/_internal/checkFeatureAccess.js.map +1 -0
  323. package/dist/node/features/_internal/index.js +3 -0
  324. package/dist/node/features/_internal/index.js.map +1 -0
  325. package/dist/node/features/checkFeature.js +111 -0
  326. package/dist/node/features/checkFeature.js.map +1 -0
  327. package/dist/node/features/index.js +8 -0
  328. package/dist/node/features/index.js.map +1 -0
  329. package/dist/node/features/types.js +32 -0
  330. package/dist/node/features/types.js.map +1 -0
  331. package/dist/node/groups/HubGroup.js +262 -0
  332. package/dist/node/groups/HubGroup.js.map +1 -0
  333. package/dist/node/groups/_internal/AddOrInviteUsersToGroupUtils.js +205 -0
  334. package/dist/node/groups/_internal/AddOrInviteUsersToGroupUtils.js.map +1 -0
  335. package/dist/node/groups/_internal/GroupBusinessRules.js +97 -0
  336. package/dist/node/groups/_internal/GroupBusinessRules.js.map +1 -0
  337. package/dist/node/groups/_internal/GroupSchema.js +34 -0
  338. package/dist/node/groups/_internal/GroupSchema.js.map +1 -0
  339. package/dist/node/groups/_internal/GroupUiSchemaEdit.js +65 -0
  340. package/dist/node/groups/_internal/GroupUiSchemaEdit.js.map +1 -0
  341. package/dist/node/groups/_internal/GroupUiSchemaSettings.js +49 -0
  342. package/dist/node/groups/_internal/GroupUiSchemaSettings.js.map +1 -0
  343. package/dist/node/groups/_internal/autoAddUsersAsAdmins.js +28 -0
  344. package/dist/node/groups/_internal/autoAddUsersAsAdmins.js.map +1 -0
  345. package/dist/node/groups/_internal/computeProps.js +49 -0
  346. package/dist/node/groups/_internal/computeProps.js.map +1 -0
  347. package/dist/node/groups/_internal/convertGroupToHubGroup.js +18 -0
  348. package/dist/node/groups/_internal/convertGroupToHubGroup.js.map +1 -0
  349. package/dist/node/groups/_internal/convertHubGroupToGroup.js +30 -0
  350. package/dist/node/groups/_internal/convertHubGroupToGroup.js.map +1 -0
  351. package/dist/node/groups/_internal/getPropertyMap.js +44 -0
  352. package/dist/node/groups/_internal/getPropertyMap.js.map +1 -0
  353. package/dist/node/groups/_internal/processAutoAddUsers.js +66 -0
  354. package/dist/node/groups/_internal/processAutoAddUsers.js.map +1 -0
  355. package/dist/node/groups/_internal/processEmailUsers.js +54 -0
  356. package/dist/node/groups/_internal/processEmailUsers.js.map +1 -0
  357. package/dist/node/groups/_internal/processInviteUsers.js +55 -0
  358. package/dist/node/groups/_internal/processInviteUsers.js.map +1 -0
  359. package/dist/node/groups/addOrInviteUsersToGroup.js +71 -0
  360. package/dist/node/groups/addOrInviteUsersToGroup.js.map +1 -0
  361. package/dist/node/groups/addOrInviteUsersToGroups.js +55 -0
  362. package/dist/node/groups/addOrInviteUsersToGroups.js.map +1 -0
  363. package/dist/node/groups/autoAddUsers.js +28 -0
  364. package/dist/node/groups/autoAddUsers.js.map +1 -0
  365. package/dist/node/groups/defaults.js +24 -0
  366. package/dist/node/groups/defaults.js.map +1 -0
  367. package/dist/node/groups/deleteGroupThumbnail.js +18 -0
  368. package/dist/node/groups/deleteGroupThumbnail.js.map +1 -0
  369. package/dist/node/groups/emailOrgUsers.js +33 -0
  370. package/dist/node/groups/emailOrgUsers.js.map +1 -0
  371. package/dist/node/groups/inviteUsers.js +34 -0
  372. package/dist/node/groups/inviteUsers.js.map +1 -0
  373. package/dist/node/groups/setGroupThumbnail.js +36 -0
  374. package/dist/node/groups/setGroupThumbnail.js.map +1 -0
  375. package/dist/node/groups/types/types.js +3 -0
  376. package/dist/node/groups/types/types.js.map +1 -0
  377. package/dist/node/initiatives/_internal/InitiativeUiSchemaCreate.js +137 -0
  378. package/dist/node/initiatives/_internal/InitiativeUiSchemaCreate.js.map +1 -0
  379. package/dist/node/initiatives/view.js +84 -0
  380. package/dist/node/initiatives/view.js.map +1 -0
  381. package/dist/node/items/deleteItemThumbnail.js +18 -0
  382. package/dist/node/items/deleteItemThumbnail.js.map +1 -0
  383. package/dist/node/pages/HubPage.js +205 -0
  384. package/dist/node/pages/HubPage.js.map +1 -0
  385. package/dist/node/pages/_internal/PageSchema.js +34 -0
  386. package/dist/node/pages/_internal/PageSchema.js.map +1 -0
  387. package/dist/node/pages/_internal/PageUiSchemaEdit.js +129 -0
  388. package/dist/node/pages/_internal/PageUiSchemaEdit.js.map +1 -0
  389. package/dist/node/pages/_internal/computeProps.js +49 -0
  390. package/dist/node/pages/_internal/computeProps.js.map +1 -0
  391. package/dist/node/pages/_internal/getPropertyMap.js +24 -0
  392. package/dist/node/pages/_internal/getPropertyMap.js.map +1 -0
  393. package/dist/node/pages/defaults.js +44 -0
  394. package/dist/node/pages/defaults.js.map +1 -0
  395. package/dist/node/permissions/PlatformPermissionPolicies.js +714 -0
  396. package/dist/node/permissions/PlatformPermissionPolicies.js.map +1 -0
  397. package/dist/node/permissions/_internal/PermissionCheckFunction.js +3 -0
  398. package/dist/node/permissions/_internal/PermissionCheckFunction.js.map +1 -0
  399. package/dist/node/permissions/_internal/checkAvailability.js +50 -0
  400. package/dist/node/permissions/_internal/checkAvailability.js.map +1 -0
  401. package/dist/node/permissions/_internal/checkEntityFeature.js +33 -0
  402. package/dist/node/permissions/_internal/checkEntityFeature.js.map +1 -0
  403. package/dist/node/permissions/_internal/checkEnvironment.js +32 -0
  404. package/dist/node/permissions/_internal/checkEnvironment.js.map +1 -0
  405. package/dist/node/permissions/_internal/checkFeature.js +69 -0
  406. package/dist/node/permissions/_internal/checkFeature.js.map +1 -0
  407. package/dist/node/permissions/_internal/checkFeatures.js +46 -0
  408. package/dist/node/permissions/_internal/checkFeatures.js.map +1 -0
  409. package/dist/node/permissions/_internal/checkParents.js +27 -0
  410. package/dist/node/permissions/_internal/checkParents.js.map +1 -0
  411. package/dist/node/permissions/_internal/checkServiceStatus.js +28 -0
  412. package/dist/node/permissions/_internal/checkServiceStatus.js.map +1 -0
  413. package/dist/node/permissions/_internal/processEntityFeatures.js +30 -0
  414. package/dist/node/permissions/_internal/processEntityFeatures.js.map +1 -0
  415. package/dist/node/projects/_internal/getProjectEditorConfigOptions.js +67 -0
  416. package/dist/node/projects/_internal/getProjectEditorConfigOptions.js.map +1 -0
  417. package/dist/node/search/_internal/commonHelpers/getDiscussionsApiDefinition.js +14 -0
  418. package/dist/node/search/_internal/commonHelpers/getDiscussionsApiDefinition.js.map +1 -0
  419. package/dist/node/search/_internal/commonHelpers/shouldUseDiscussionsApi.js +17 -0
  420. package/dist/node/search/_internal/commonHelpers/shouldUseDiscussionsApi.js.map +1 -0
  421. package/dist/node/search/_internal/explainFilter.js +38 -0
  422. package/dist/node/search/_internal/explainFilter.js.map +1 -0
  423. package/dist/node/search/_internal/explainHelpers.js +202 -0
  424. package/dist/node/search/_internal/explainHelpers.js.map +1 -0
  425. package/dist/node/search/_internal/explainPredicate.js +39 -0
  426. package/dist/node/search/_internal/explainPredicate.js.map +1 -0
  427. package/dist/node/search/_internal/getEntityTypeFromType.js +25 -0
  428. package/dist/node/search/_internal/getEntityTypeFromType.js.map +1 -0
  429. package/dist/node/search/_internal/hubSearchChannels.js +140 -0
  430. package/dist/node/search/_internal/hubSearchChannels.js.map +1 -0
  431. package/dist/node/search/_internal/negateGroupPredicates.js +32 -0
  432. package/dist/node/search/_internal/negateGroupPredicates.js.map +1 -0
  433. package/dist/node/search/_internal/portalSearchGroupMembers.js +10 -1
  434. package/dist/node/search/_internal/portalSearchGroupMembers.js.map +1 -1
  435. package/dist/node/search/explainQueryResult.js +57 -0
  436. package/dist/node/search/explainQueryResult.js.map +1 -0
  437. package/dist/node/sites/HubSite.js +2 -1
  438. package/dist/node/sites/HubSite.js.map +1 -1
  439. package/dist/node/sites/_internal/SiteUiSchemaFollowers.js +59 -0
  440. package/dist/node/sites/_internal/SiteUiSchemaFollowers.js.map +1 -0
  441. package/dist/node/sites/_internal/_migrate-summary-stat-card-configs.js +192 -0
  442. package/dist/node/sites/_internal/_migrate-summary-stat-card-configs.js.map +1 -0
  443. package/dist/node/sites/_internal/applyCatalogStructureMigration.js +43 -0
  444. package/dist/node/sites/_internal/applyCatalogStructureMigration.js.map +1 -0
  445. package/dist/node/sites/_internal/applyDefaultCollectionMigration.js +96 -0
  446. package/dist/node/sites/_internal/applyDefaultCollectionMigration.js.map +1 -0
  447. package/dist/node/sites/_internal/capabilities/capabilityToFeatureMap.js +34 -0
  448. package/dist/node/sites/_internal/capabilities/capabilityToFeatureMap.js.map +1 -0
  449. package/dist/node/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.js +49 -0
  450. package/dist/node/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.js.map +1 -0
  451. package/dist/node/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.js +37 -0
  452. package/dist/node/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.js.map +1 -0
  453. package/dist/node/sites/_internal/capabilities/types.js +3 -0
  454. package/dist/node/sites/_internal/capabilities/types.js.map +1 -0
  455. package/dist/node/sites/_internal/convertCatalogToLegacyFormat.js +37 -0
  456. package/dist/node/sites/_internal/convertCatalogToLegacyFormat.js.map +1 -0
  457. package/dist/node/sites/_internal/reflectCollectionsToSearchCategories.js +59 -0
  458. package/dist/node/sites/_internal/reflectCollectionsToSearchCategories.js.map +1 -0
  459. package/dist/node/sites/_internal/types.js +14 -0
  460. package/dist/node/sites/_internal/types.js.map +1 -0
  461. package/dist/node/urls/cacheBustUrl.js +16 -0
  462. package/dist/node/urls/cacheBustUrl.js.map +1 -0
  463. package/dist/node/urls/getCardModelUrl.js +81 -0
  464. package/dist/node/urls/getCardModelUrl.js.map +1 -0
  465. package/dist/node/users/view.js +74 -0
  466. package/dist/node/users/view.js.map +1 -0
  467. package/dist/node/utils/getEnvironmentFromPortalUrl.js +24 -0
  468. package/dist/node/utils/getEnvironmentFromPortalUrl.js.map +1 -0
  469. package/dist/types/associations/addAssociation.d.ts +9 -0
  470. package/dist/types/associations/index.d.ts +4 -0
  471. package/dist/types/associations/internal/getTargetEntityFromAssociationType.d.ts +8 -0
  472. package/dist/types/associations/internal/getTypeByIdsQuery.d.ts +10 -0
  473. package/dist/types/associations/internal/getTypeFromAssociationType.d.ts +7 -0
  474. package/dist/types/associations/internal/getTypeWithKeywordQuery.d.ts +10 -0
  475. package/dist/types/associations/internal/getTypeWithoutKeywordQuery.d.ts +10 -0
  476. package/dist/types/associations/listAssociations.d.ts +8 -0
  477. package/dist/types/associations/removeAssociation.d.ts +9 -0
  478. package/dist/types/associations/types.d.ts +19 -0
  479. package/dist/types/content/_internal/ContentSchema.d.ts +7 -0
  480. package/dist/types/content/_internal/ContentUiSchemaEdit.d.ts +10 -0
  481. package/dist/types/content/_internal/ContentUiSchemaSettings.d.ts +10 -0
  482. package/dist/types/content/_internal/computeProps.d.ts +9 -0
  483. package/dist/types/content/hostedServiceUtils.d.ts +35 -0
  484. package/dist/types/core/EntityEditor.d.ts +13 -0
  485. package/dist/types/core/behaviors/IWIthAssociationBehavior.d.ts +23 -0
  486. package/dist/types/core/behaviors/IWithFollowersBehavior.d.ts +15 -0
  487. package/dist/types/core/enrichEntity.d.ts +16 -0
  488. package/dist/types/core/schemas/getEditorConfig.d.ts +13 -0
  489. package/dist/types/core/schemas/internal/ConfigurableEntity.d.ts +4 -0
  490. package/dist/types/core/schemas/internal/configOptionHelpers.d.ts +6 -0
  491. package/dist/types/core/schemas/internal/getCategoryItems.d.ts +11 -0
  492. package/dist/types/core/schemas/internal/getConfigOptions.d.ts +12 -0
  493. package/dist/types/core/schemas/internal/getEditorConfigOptions.d.ts +11 -0
  494. package/dist/types/core/schemas/internal/getEntityEditorSchemas.d.ts +15 -0
  495. package/dist/types/core/schemas/internal/getFeaturedContentCatalogs.d.ts +8 -0
  496. package/dist/types/core/schemas/internal/getFeaturedImageUrl.d.ts +3 -0
  497. package/dist/types/core/schemas/internal/getLocationExtent.d.ts +7 -0
  498. package/dist/types/core/schemas/internal/getLocationOptions.d.ts +16 -0
  499. package/dist/types/core/schemas/internal/getSharableGroupsComboBoxItems.d.ts +7 -0
  500. package/dist/types/core/schemas/internal/getTagItems.d.ts +12 -0
  501. package/dist/types/core/traits/IWithAssociations.d.ts +4 -0
  502. package/dist/types/core/traits/IWithFollowers.d.ts +7 -0
  503. package/dist/types/core/types/HubEntityEditor.d.ts +11 -0
  504. package/dist/types/core/types/IHubGroup.d.ts +109 -0
  505. package/dist/types/discussions/api/channels/channels.d.ts +10 -0
  506. package/dist/types/discussions/api/channels/index.d.ts +1 -0
  507. package/dist/types/discussions/api/index.d.ts +2 -0
  508. package/dist/types/discussions/api/request.d.ts +11 -0
  509. package/dist/types/discussions/api/types.d.ts +1007 -0
  510. package/dist/types/discussions/api/utils/request.d.ts +25 -0
  511. package/dist/types/features/_internal/checkCapabilityAccess.d.ts +0 -0
  512. package/dist/types/features/_internal/checkFeatureAccess.d.ts +0 -0
  513. package/dist/types/features/_internal/index.d.ts +0 -0
  514. package/dist/types/features/checkFeature.d.ts +10 -0
  515. package/dist/types/features/index.d.ts +2 -0
  516. package/dist/types/features/types.d.ts +31 -0
  517. package/dist/types/groups/HubGroup.d.ts +114 -0
  518. package/dist/types/groups/_internal/AddOrInviteUsersToGroupUtils.d.ts +82 -0
  519. package/dist/types/groups/_internal/GroupBusinessRules.d.ts +12 -0
  520. package/dist/types/groups/_internal/GroupSchema.d.ts +7 -0
  521. package/dist/types/groups/_internal/GroupUiSchemaEdit.d.ts +10 -0
  522. package/dist/types/groups/_internal/GroupUiSchemaSettings.d.ts +10 -0
  523. package/dist/types/groups/_internal/autoAddUsersAsAdmins.d.ts +13 -0
  524. package/dist/types/groups/_internal/computeProps.d.ts +12 -0
  525. package/dist/types/groups/_internal/convertGroupToHubGroup.d.ts +9 -0
  526. package/dist/types/groups/_internal/convertHubGroupToGroup.d.ts +7 -0
  527. package/dist/types/groups/_internal/getPropertyMap.d.ts +8 -0
  528. package/dist/types/groups/_internal/processAutoAddUsers.d.ts +15 -0
  529. package/dist/types/groups/_internal/processEmailUsers.d.ts +14 -0
  530. package/dist/types/groups/_internal/processInviteUsers.d.ts +13 -0
  531. package/dist/types/groups/addOrInviteUsersToGroup.d.ts +18 -0
  532. package/dist/types/groups/addOrInviteUsersToGroups.d.ts +30 -0
  533. package/dist/types/groups/autoAddUsers.d.ts +14 -0
  534. package/dist/types/groups/defaults.d.ts +11 -0
  535. package/dist/types/groups/deleteGroupThumbnail.d.ts +9 -0
  536. package/dist/types/groups/emailOrgUsers.d.ts +15 -0
  537. package/dist/types/groups/inviteUsers.d.ts +17 -0
  538. package/dist/types/groups/setGroupThumbnail.d.ts +9 -0
  539. package/dist/types/groups/types/types.d.ts +72 -0
  540. package/dist/types/initiatives/_internal/InitiativeUiSchemaCreate.d.ts +13 -0
  541. package/dist/types/initiatives/view.d.ts +19 -0
  542. package/dist/types/items/deleteItemThumbnail.d.ts +9 -0
  543. package/dist/types/pages/HubPage.d.ts +71 -0
  544. package/dist/types/pages/_internal/PageSchema.d.ts +7 -0
  545. package/dist/types/pages/_internal/PageUiSchemaEdit.d.ts +10 -0
  546. package/dist/types/pages/_internal/computeProps.d.ts +12 -0
  547. package/dist/types/pages/_internal/getPropertyMap.d.ts +8 -0
  548. package/dist/types/pages/defaults.d.ts +13 -0
  549. package/dist/types/permissions/PlatformPermissionPolicies.d.ts +9 -0
  550. package/dist/types/permissions/_internal/PermissionCheckFunction.d.ts +7 -0
  551. package/dist/types/permissions/_internal/checkAvailability.d.ts +13 -0
  552. package/dist/types/permissions/_internal/checkEntityFeature.d.ts +4 -0
  553. package/dist/types/permissions/_internal/checkEnvironment.d.ts +13 -0
  554. package/dist/types/permissions/_internal/checkFeature.d.ts +16 -0
  555. package/dist/types/permissions/_internal/checkFeatures.d.ts +10 -0
  556. package/dist/types/permissions/_internal/checkParents.d.ts +12 -0
  557. package/dist/types/permissions/_internal/checkServiceStatus.d.ts +4 -0
  558. package/dist/types/permissions/_internal/processEntityFeatures.d.ts +9 -0
  559. package/dist/types/projects/_internal/getProjectEditorConfigOptions.d.ts +10 -0
  560. package/dist/types/search/_internal/commonHelpers/getDiscussionsApiDefinition.d.ts +2 -0
  561. package/dist/types/search/_internal/commonHelpers/shouldUseDiscussionsApi.d.ts +11 -0
  562. package/dist/types/search/_internal/explainFilter.d.ts +11 -0
  563. package/dist/types/search/_internal/explainHelpers.d.ts +38 -0
  564. package/dist/types/search/_internal/explainPredicate.d.ts +12 -0
  565. package/dist/types/search/_internal/getEntityTypeFromType.d.ts +9 -0
  566. package/dist/types/search/_internal/hubSearchChannels.d.ts +30 -0
  567. package/dist/types/search/_internal/negateGroupPredicates.d.ts +9 -0
  568. package/dist/types/search/_internal/portalSearchGroupMembers.d.ts +2 -1
  569. package/dist/types/search/explainQueryResult.d.ts +102 -0
  570. package/dist/types/sites/_internal/SiteUiSchemaFollowers.d.ts +11 -0
  571. package/dist/types/sites/_internal/_migrate-summary-stat-card-configs.d.ts +9 -0
  572. package/dist/types/sites/_internal/applyCatalogStructureMigration.d.ts +11 -0
  573. package/dist/types/sites/_internal/applyDefaultCollectionMigration.d.ts +21 -0
  574. package/dist/types/sites/_internal/capabilities/capabilityToFeatureMap.d.ts +14 -0
  575. package/dist/types/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.d.ts +19 -0
  576. package/dist/types/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.d.ts +12 -0
  577. package/dist/types/sites/_internal/capabilities/types.d.ts +29 -0
  578. package/dist/types/sites/_internal/convertCatalogToLegacyFormat.d.ts +11 -0
  579. package/dist/types/sites/_internal/reflectCollectionsToSearchCategories.d.ts +11 -0
  580. package/dist/types/sites/_internal/types.d.ts +8 -0
  581. package/dist/types/urls/cacheBustUrl.d.ts +5 -0
  582. package/dist/types/urls/getCardModelUrl.d.ts +21 -0
  583. package/dist/types/users/view.d.ts +9 -0
  584. package/dist/types/utils/getEnvironmentFromPortalUrl.d.ts +2 -0
  585. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ import { IHubInitiative } from "../core";
2
+ import { EntityToCardModelFn, ResultToCardModelFn } from "../core/types/IHubCardViewModel";
3
+ /**
4
+ * Convert an initiative entity in a card view model
5
+ * that can be consumed by the suite of hub gallery components
6
+ *
7
+ * @param initiative initiative entity
8
+ * @param context auth & portal information
9
+ * @param opts view model options
10
+ */
11
+ export declare const initiativeToCardModel: EntityToCardModelFn<IHubInitiative>;
12
+ /**
13
+ * Conver an initiative search result into a card view model
14
+ * that can be consumed by the suite of hub gallery components
15
+ *
16
+ * @param searchResult hub initiative search result
17
+ * @param opts view model options
18
+ */
19
+ export declare const initiativeResultToCardModel: ResultToCardModelFn;
@@ -0,0 +1,9 @@
1
+ import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
2
+ /**
3
+ * Delete an item's thumbnail
4
+ * @param id
5
+ * @param owner
6
+ * @param requestOptions
7
+ * @returns
8
+ */
9
+ export declare function deleteItemThumbnail(id: string, owner: string, requestOptions: IUserRequestOptions): Promise<any>;
@@ -0,0 +1,71 @@
1
+ import { IHubPage, IWithStoreBehavior, IWithSharingBehavior, IHubPageEditor, IEntityEditorContext } from "../core";
2
+ import { IArcGISContext } from "../ArcGISContext";
3
+ import { HubItemEntity } from "../core/HubItemEntity";
4
+ import { IEditorConfig, IWithEditorBehavior } from "../core/behaviors/IWithEditorBehavior";
5
+ import { PageEditorType } from "./_internal/PageSchema";
6
+ /**
7
+ * Hub Page Class
8
+ * NOTE: This is a minimal implementation.
9
+ */
10
+ export declare class HubPage extends HubItemEntity<IHubPage> implements IWithStoreBehavior<IHubPage>, IWithSharingBehavior, IWithEditorBehavior {
11
+ /**
12
+ * Private constructor so we don't have `new` all over the place. Allows for
13
+ * more flexibility in how we create the HubPageManager over time.
14
+ * @param context
15
+ */
16
+ private constructor();
17
+ /**
18
+ * Create an instance from an IHubPage object
19
+ * @param json - JSON object to create a HubPage from
20
+ * @param context - ArcGIS context
21
+ * @returns
22
+ */
23
+ static fromJson(json: Partial<IHubPage>, context: IArcGISContext): HubPage;
24
+ /**
25
+ *
26
+ * Create a new HubPage, returning a HubPage instance.
27
+ * By default, this does not save the page to the backing store.
28
+ * @param partialPage
29
+ * @param context
30
+ * @returns
31
+ */
32
+ static create(partialPage: Partial<IHubPage>, context: IArcGISContext, save?: boolean): Promise<HubPage>;
33
+ /**
34
+ * Fetch a Page from the backing store and return a HubPage instance.
35
+ * @param identifier - Identifier of the page to load
36
+ * @param context
37
+ * @returns
38
+ */
39
+ static fetch(identifier: string, context: IArcGISContext): Promise<HubPage>;
40
+ private static applyDefaults;
41
+ /**
42
+ * Apply a new state to the instance
43
+ * @param changes
44
+ */
45
+ update(changes: Partial<IHubPage>): void;
46
+ /**
47
+ * Save the HubPage to the backing store.
48
+ * Currently Pages are stored as Items in Portal
49
+ * @returns
50
+ */
51
+ save(): Promise<void>;
52
+ /**
53
+ * Delete the HubPage from the store
54
+ * set a flag to indicate that it is destroyed
55
+ * @returns
56
+ */
57
+ delete(): Promise<void>;
58
+ getEditorConfig(i18nScope: string, type: PageEditorType): Promise<IEditorConfig>;
59
+ /**
60
+ * Return the project as an editor object
61
+ * @param editorContext
62
+ * @returns
63
+ */
64
+ toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubPageEditor>;
65
+ /**
66
+ * Load the project from the editor object
67
+ * @param editor
68
+ * @returns
69
+ */
70
+ fromEditor(editor: IHubPageEditor): Promise<IHubPage>;
71
+ }
@@ -0,0 +1,7 @@
1
+ import { IConfigurationSchema } from "../../core";
2
+ export declare const PageEditorTypes: readonly ["hub:page:edit"];
3
+ export declare type PageEditorType = (typeof PageEditorTypes)[number];
4
+ /**
5
+ * defines the JSON schema for a Hub Site's editable fields
6
+ */
7
+ export declare const PageSchema: IConfigurationSchema;
@@ -0,0 +1,10 @@
1
+ import { IUiSchema } from "../../core/schemas/types";
2
+ import { IArcGISContext } from "../../ArcGISContext";
3
+ import { IHubPage } from "../../core/types";
4
+ /**
5
+ * @private
6
+ * constructs the complete edit uiSchema for Hub Pages.
7
+ * This defines how the schema properties should be
8
+ * rendered in the page editing experience
9
+ */
10
+ export declare const buildUiSchema: (i18nScope: string, entity: IHubPage, context: IArcGISContext) => Promise<IUiSchema>;
@@ -0,0 +1,12 @@
1
+ import { IRequestOptions } from "@esri/arcgis-rest-request";
2
+ import { IModel } from "../../types";
3
+ import { IHubPage } from "../../core/types/IHubPage";
4
+ /**
5
+ * Given a model and a page, set various computed properties that can't be directly mapped
6
+ * @private
7
+ * @param model
8
+ * @param page
9
+ * @param requestOptions
10
+ * @returns
11
+ */
12
+ export declare function computeProps(model: IModel, page: Partial<IHubPage>, requestOptions: IRequestOptions): IHubPage;
@@ -0,0 +1,8 @@
1
+ import { IPropertyMap } from "../../core/_internal/PropertyMapper";
2
+ /**
3
+ * Returns an Array of IPropertyMap objects
4
+ * that define the projection of properties from a IModel to an IHubPage
5
+ * @returns
6
+ * @private
7
+ */
8
+ export declare function getPropertyMap(): IPropertyMap[];
@@ -0,0 +1,13 @@
1
+ import { IHubPage } from "../core";
2
+ import { IModel } from "../types";
3
+ export declare const HUB_PAGE_ITEM_TYPE = "Hub Page";
4
+ export declare const ENTERPRISE_PAGE_ITEM_TYPE = "Site Page";
5
+ export declare const PAGE_TYPE_KEYWORD = "hubPage";
6
+ /**
7
+ * Default values of a IHubPage
8
+ */
9
+ export declare const DEFAULT_PAGE: Partial<IHubPage>;
10
+ /**
11
+ * Default values for a new HubPage Model
12
+ */
13
+ export declare const DEFAULT_PAGE_MODEL: IModel;
@@ -0,0 +1,9 @@
1
+ import { IPermissionPolicy } from "./types/IPermissionPolicy";
2
+ /**
3
+ * All the permission policies for the Hub
4
+ */
5
+ export declare const PlatformPermissions: string[];
6
+ /**
7
+ * Platform Permission policies which delegate to Platform Privileges
8
+ */
9
+ export declare const PlatformPermissionPolicies: IPermissionPolicy[];
@@ -0,0 +1,7 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IPermissionPolicy } from "../types/IPermissionPolicy";
3
+ import { IPolicyCheck } from "../types/IPolicyCheck";
4
+ /**
5
+ * Type signature for Permission Check Functions
6
+ */
7
+ export declare type PermissionCheckFunction = (policy: IPermissionPolicy, context: IArcGISContext, entity?: Record<string, any>) => IPolicyCheck[];
@@ -0,0 +1,13 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IPermissionPolicy } from "../types/IPermissionPolicy";
3
+ import { IPolicyCheck } from "../types/IPolicyCheck";
4
+ /**
5
+ * @internal
6
+ * Verify that the policy.availability requirement is met.
7
+ * If a value is specified in the policy, the current context must be one of those values.
8
+ * @param policy
9
+ * @param context
10
+ * @param entity
11
+ * @returns
12
+ */
13
+ export declare function checkAvailability(policy: IPermissionPolicy, context: IArcGISContext, _entity?: Record<string, any>): IPolicyCheck[];
@@ -0,0 +1,4 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IPermissionPolicy } from "../types/IPermissionPolicy";
3
+ import { IPolicyCheck } from "../types/IPolicyCheck";
4
+ export declare function checkEntityFeature(policy: IPermissionPolicy, _entitycontext: IArcGISContext, entity?: Record<string, any>): IPolicyCheck[];
@@ -0,0 +1,13 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IPermissionPolicy } from "../types/IPermissionPolicy";
3
+ import { IPolicyCheck } from "../types/IPolicyCheck";
4
+ /**
5
+ * @internal
6
+ * Verify that the policy.environment requirement is met.
7
+ *
8
+ * @param policy
9
+ * @param context
10
+ * @param entity
11
+ * @returns
12
+ */
13
+ export declare function checkEnvironment(policy: IPermissionPolicy, context: IArcGISContext, _entity?: Record<string, any>): IPolicyCheck[];
@@ -0,0 +1,16 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IPermissionPolicy, IPolicyCheck } from "../types";
3
+ declare const validFeatures: string[];
4
+ export declare type HubFeature = (typeof validFeatures)[number];
5
+ export declare type HubFeatures = {
6
+ [key in HubFeature]: boolean;
7
+ };
8
+ /**
9
+ * Validate entityOwner policy
10
+ * @param policy
11
+ * @param context
12
+ * @param entity
13
+ * @returns
14
+ */
15
+ export declare function checkFeatures(policy: IPermissionPolicy, context: IArcGISContext, entity?: Record<string, any>): IPolicyCheck[];
16
+ export {};
@@ -0,0 +1,10 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IPermissionPolicy, IPolicyCheck } from "../types";
3
+ /**
4
+ * Validate entityOwner policy
5
+ * @param policy
6
+ * @param context
7
+ * @param entity
8
+ * @returns
9
+ */
10
+ export declare function checkFeature(policy: IPermissionPolicy, context: IArcGISContext, entity?: Record<string, any>): IPolicyCheck[];
@@ -0,0 +1,12 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IPermissionPolicy } from "../types/IPermissionPolicy";
3
+ import { IPolicyCheck } from "../types/IPolicyCheck";
4
+ /**
5
+ * @internal
6
+ * Check the parent policies for the given policy
7
+ * @param policy
8
+ * @param context
9
+ * @param entity
10
+ * @returns
11
+ */
12
+ export declare function checkParents(policy: IPermissionPolicy, context: IArcGISContext, entity?: Record<string, any>): IPolicyCheck[];
@@ -0,0 +1,4 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IPermissionPolicy } from "../types/IPermissionPolicy";
3
+ import { IPolicyCheck } from "../types/IPolicyCheck";
4
+ export declare function checkServiceStatus(policy: IPermissionPolicy, context: IArcGISContext, _entity?: Record<string, any>): IPolicyCheck[];
@@ -0,0 +1,9 @@
1
+ import { IFeatureFlags } from "../types/IPermissionPolicy";
2
+ /**
3
+ * Take an entity's features and merge them with the default features ensuring
4
+ * that only the featires defined in the business rules are allowed through.
5
+ * @param entityFeatures
6
+ * @param defaultFeatures
7
+ * @returns
8
+ */
9
+ export declare function processEntityFeatures(entityFeatures: IFeatureFlags, defaultFeatures: IFeatureFlags): IFeatureFlags;
@@ -0,0 +1,10 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { UiSchemaElementOptions } from "../../core/schemas/types";
3
+ import { IHubProject } from "../../core/types/IHubProject";
4
+ /**
5
+ * Construct the Project Editor configuration options
6
+ * @param entity
7
+ * @param context
8
+ * @returns
9
+ */
10
+ export declare function getProjectEditorConfigOptions(entity: IHubProject, context: IArcGISContext): Promise<UiSchemaElementOptions[]>;
@@ -0,0 +1,2 @@
1
+ import { IApiDefinition } from "../../types/types";
2
+ export declare function getDiscussionsApiDefinition(): IApiDefinition;
@@ -0,0 +1,11 @@
1
+ import { EntityType } from "../../types/IHubCatalog";
2
+ import { IHubSearchOptions } from "../../types/IHubSearchOptions";
3
+ /**
4
+ * @private
5
+ * Determines if the Discussions API can be targeted with the given
6
+ * search parameters
7
+ * @param targetEntity
8
+ * @param options
9
+ * @returns boolean
10
+ */
11
+ export declare function shouldUseDiscussionsApi(targetEntity: EntityType, options: IHubSearchOptions): boolean;
@@ -0,0 +1,11 @@
1
+ import { IRequestOptions } from "@esri/arcgis-rest-request";
2
+ import { GenericResult, IFilterExplanation } from "../explainQueryResult";
3
+ import { IFilter } from "../types/IHubCatalog";
4
+ /**
5
+ * Generate an explanation if a specific result passes the filter's criteria
6
+ * @param filter
7
+ * @param result
8
+ * @param requestOptions
9
+ * @returns
10
+ */
11
+ export declare function explainFilter(filter: IFilter, result: GenericResult, requestOptions: IRequestOptions): Promise<IFilterExplanation>;
@@ -0,0 +1,38 @@
1
+ import { IRequestOptions } from "@esri/arcgis-rest-request";
2
+ import { GenericResult, IMatchReason, IPredicateExplanation } from "../explainQueryResult";
3
+ import { IMatchOptions } from "../types";
4
+ export declare function explainDatePredicate(predicate: Record<string, IMatchOptions>, result: GenericResult, requestOptions: IRequestOptions): Promise<IPredicateExplanation>;
5
+ export declare function explainPropPredicate(predicate: Record<string, IMatchOptions>, result: GenericResult, requestOptions: IRequestOptions): Promise<IPredicateExplanation>;
6
+ /**
7
+ * @internal
8
+ * Create explanation for an IMatchOptions predicate
9
+ * @param predicate
10
+ * @param result
11
+ * @param requestOptions
12
+ * @returns
13
+ */
14
+ export declare function explainMatchOptionPredicate(predicate: Record<string, IMatchOptions>, result: GenericResult, requestOptions: IRequestOptions): Promise<IPredicateExplanation>;
15
+ /**
16
+ * Returns information about the match between a result value and the .any property of an IMatchOptions predicate
17
+ * @param attribute
18
+ * @param option
19
+ * @param resultValue
20
+ * @returns
21
+ */
22
+ export declare function checkAny(attribute: string, option: string | string[], resultValue: string | string[]): IMatchReason;
23
+ /**
24
+ * * Returns information about the match between a result value and the .all property of an IMatchOptions predicate
25
+ * @param attribute
26
+ * @param option
27
+ * @param resultValue
28
+ * @returns
29
+ */
30
+ export declare function checkAll(attribute: string, option: string | string[], resultValue: string | string[]): IMatchReason;
31
+ /**
32
+ * * Returns information about the match between a result value and the .not property of an IMatchOptions predicate
33
+ * @param attribute
34
+ * @param option
35
+ * @param resultValue
36
+ * @returns
37
+ */
38
+ export declare function checkNot(attribute: string, option: string | string[], resultValue: string | string[]): IMatchReason;
@@ -0,0 +1,12 @@
1
+ import { IRequestOptions } from "@esri/arcgis-rest-request";
2
+ import { GenericResult, IPredicateExplanation } from "../explainQueryResult";
3
+ import { IMatchOptions } from "../types";
4
+ /**
5
+ * Geneate an explanation if a specific result passes the predicate's criteria
6
+ * This will delegate to more specific functions based on the predicate's key
7
+ * @param predicate
8
+ * @param result
9
+ * @param requestOptions
10
+ * @returns
11
+ */
12
+ export declare function explainPredicate(predicate: Record<string, IMatchOptions>, result: GenericResult, requestOptions: IRequestOptions): Promise<IPredicateExplanation>;
@@ -0,0 +1,9 @@
1
+ import { EntityType } from "../types";
2
+ /**
3
+ * @private
4
+ * Given a type (e.g. Hub Site Application) return the appropriate entity type
5
+ * that can be used as a `targetEntity` in an `IQuery`
6
+ * @param type
7
+ * @returns
8
+ */
9
+ export declare function getEntityTypeFromType(type: string): EntityType;
@@ -0,0 +1,30 @@
1
+ import { IHubSearchOptions, IHubSearchResponse, IHubSearchResult, IQuery } from "../types";
2
+ import { IChannel, IPagedResponse, ISearchChannelsParams } from "../../discussions";
3
+ /**
4
+ * @private
5
+ * Convert hubSearch IHubSearchOptions and IQuery interfaces to a
6
+ * ISearchChannelsParams structure that is needed for the Discussions API
7
+ * searchChannels(searchOptions: ISearchCHannelsParams) function
8
+ * @param {IHubSearchOptions} options
9
+ * @param {IQuery} query
10
+ * @returns ISearchChannelParams
11
+ */
12
+ export declare const processSearchParams: (options: IHubSearchOptions, query: IQuery) => ISearchChannelsParams;
13
+ /**
14
+ * @private
15
+ * Convert the Discussions API searchChannels response into an
16
+ * IHubSearchResponse necessary for supporting hubSearch results
17
+ * @param {IPagedResponse{IChannel}} channelsResponse
18
+ * @param {IQuery} query
19
+ * @param {IHubSearchOptions} options
20
+ * @returns IHubSearchResponse<IHubSearchResult>
21
+ */
22
+ export declare const toHubSearchResult: (channelsResponse: IPagedResponse<IChannel>, query: IQuery, options: IHubSearchOptions) => Promise<IHubSearchResponse<IHubSearchResult>>;
23
+ /**
24
+ * @private
25
+ * Execute channel search against the Discussions API
26
+ * @param query
27
+ * @param options
28
+ * @returns
29
+ */
30
+ export declare const hubSearchChannels: (query: IQuery, options: IHubSearchOptions) => Promise<IHubSearchResponse<IHubSearchResult>>;
@@ -0,0 +1,9 @@
1
+ import { IQuery } from "../types/IHubCatalog";
2
+ /**
3
+ * @private
4
+ * Helper function that locates group predicates and "negates" them
5
+ * so we get a query that is `not in groups ...` vs `in groups ...`
6
+ * @param query
7
+ * @returns
8
+ */
9
+ export declare function negateGroupPredicates(query: IQuery): IQuery;
@@ -1,7 +1,8 @@
1
1
  import { IHubSearchOptions, IHubSearchResponse, IHubSearchResult, IQuery } from "../types";
2
2
  /**
3
3
  * Search for members of a group.
4
- * The group is specified via `IQuery.properties.groupId`
4
+ * The groupId is specified via a `group` predicate.
5
+ * Any `term` predicate will be re-mapped to `name`.
5
6
  *
6
7
  * The backing API is very limited in what
7
8
  * it returns so this method executes the search and then tries to fetch
@@ -0,0 +1,102 @@
1
+ import { IRequestOptions } from "@esri/arcgis-rest-request";
2
+ import { IFilter, IPredicate, IQuery } from "./types";
3
+ /**
4
+ * Explanation of why a result matched a query
5
+ */
6
+ export interface IQueryExplanation {
7
+ /**
8
+ * Copy of result; Useful when doing bulk calls
9
+ */
10
+ result: GenericResult;
11
+ /**
12
+ * Copy of query; Useful when doing bulk calls
13
+ */
14
+ query: IQuery;
15
+ /**
16
+ * Whether the result matched the query
17
+ */
18
+ matched: boolean;
19
+ /**
20
+ * Array of explanations for each filter
21
+ */
22
+ reasons: IFilterExplanation[];
23
+ /**
24
+ * Summary of all reasons for the result matching the query
25
+ */
26
+ summary: IMatchReason[];
27
+ }
28
+ export interface IQueryExplanationDetails {
29
+ value: string;
30
+ description: string;
31
+ details: [];
32
+ }
33
+ /**
34
+ * Explanation of why a filter matched a query
35
+ */
36
+ export interface IFilterExplanation {
37
+ /**
38
+ * Copy of the Filter
39
+ */
40
+ filter: IFilter;
41
+ /**
42
+ * Did the filter match the query?
43
+ */
44
+ matched: boolean;
45
+ /**
46
+ * Array of explanations for each predicate in the Filter
47
+ */
48
+ reasons: IPredicateExplanation[];
49
+ }
50
+ /**
51
+ * Explanation of why a predicate matched a query
52
+ */
53
+ export interface IPredicateExplanation {
54
+ /**
55
+ * Copy of the Predicate
56
+ */
57
+ predicate: IPredicate;
58
+ /**
59
+ * Did the predicate match the query?
60
+ */
61
+ matched: boolean;
62
+ /**
63
+ * Array of reasons why the predicate matched the query
64
+ */
65
+ reasons: IMatchReason[];
66
+ /**
67
+ * Additional information about the predicate which can be useful
68
+ * when preparing a UI to display the explanation
69
+ */
70
+ meta?: Record<string, any>;
71
+ }
72
+ /**
73
+ * Match condition
74
+ */
75
+ export declare type MatchCondition = "IN" | "NOT_IN" | "ALL";
76
+ /**
77
+ * Reason why a result matched a query
78
+ */
79
+ export interface IMatchReason {
80
+ attribute: string;
81
+ values?: string;
82
+ condition?: MatchCondition;
83
+ matched: boolean;
84
+ requirement?: string;
85
+ message?: string;
86
+ meta?: Record<string, any>;
87
+ }
88
+ /**
89
+ * Wide type allowing any object to be passed in as a result
90
+ */
91
+ export declare type GenericResult = Record<string, any>;
92
+ /**
93
+ * Explain why a specific result was included in a Query.
94
+ *
95
+ * NOTE: This only works for entityType: "item" queries and does not
96
+ * cover all possible permutations.
97
+ * @param queryResult
98
+ * @param query
99
+ * @param requestOptions
100
+ * @returns
101
+ */
102
+ export declare function explainQueryResult(queryResult: GenericResult, query: IQuery, requestOptions: IRequestOptions): Promise<IQueryExplanation>;
@@ -0,0 +1,11 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IUiSchema } from "../../core/schemas/types";
3
+ import { IHubSite } from "../../core/types";
4
+ /**
5
+ * @private
6
+ * constructs the followers uiSchema for Hub Sites.
7
+ * This defines how the schema properties should
8
+ * be rendered in the site followers > settings
9
+ * experience
10
+ */
11
+ export declare const buildUiSchema: (i18nScope: string, entity: IHubSite, context: IArcGISContext) => Promise<IUiSchema>;
@@ -0,0 +1,9 @@
1
+ import { IModel, IDraft } from "../../types";
2
+ /**
3
+ * Reconfigure summary stat card properties to align with the
4
+ * new web component card.
5
+ * @private
6
+ * @param {Object} model Site Model
7
+ * @returns {Object}
8
+ */
9
+ export declare function _migrateSummaryStatCardConfigs<T extends IModel | IDraft>(model: T): T;
@@ -0,0 +1,11 @@
1
+ import { IModel } from "../../types";
2
+ /**
3
+ * Add the default catalog structure to the Site model
4
+ * Note: This in-memory migration is only applies via `fetchSite(..):IHubSite` and not
5
+ * the older `getSiteById(...):IModel`. Changes made in this migration will not be
6
+ * persisted to AGO until all other parts of the application stop relying on the legacy
7
+ * catalog implementation
8
+ * @param model
9
+ * @returns
10
+ */
11
+ export declare function applyCatalogStructureMigration(model: IModel): IModel;
@@ -0,0 +1,21 @@
1
+ import { IModel } from "../../types";
2
+ /**
3
+ * In-Memory migration that adds default collections to site models that have the
4
+ * new catalog structure. These default collections will have the same names and
5
+ * display order found in `site.data.values.searchCategories`
6
+ *
7
+ * This migration simplifies display logic, as consuming components no longer
8
+ * have to merge `catalog.collections` with the default collection definitions.
9
+ *
10
+ * This migration also lays the foundation for customization, since editors will
11
+ * be able to modify these persisted default objects. For example, editors can
12
+ * change the default labels, display order, or mark a default as "hidden" so the
13
+ * public can't see it.
14
+ *
15
+ * NOTE: The changes made in this migration will not be persisted to AGO at this time
16
+ *
17
+ * @param model site model to migrate
18
+ * @returns a migrated model with default `IHubCollectionPersistance` objects added
19
+ * to the catalog
20
+ */
21
+ export declare function applyDefaultCollectionMigration(model: IModel): IModel;
@@ -0,0 +1,14 @@
1
+ import { ICapabilityToFeatureMap } from "./types";
2
+ /**
3
+ * Returns an array of ICapabilityToFeatureMap objects
4
+ * that define the projection of legacy capabilities
5
+ * to permission features.
6
+ *
7
+ * We use this map to manage foward and backard conversions
8
+ * and migration of legacy capablities to features when a
9
+ * site is fetched or updated
10
+ *
11
+ * NOTE: if you are porting a legacy capability over to
12
+ * workspaces, add it to this map
13
+ */
14
+ export declare const capabilityToFeatureMap: ICapabilityToFeatureMap[];
@@ -0,0 +1,19 @@
1
+ import { IModel } from "../../../types";
2
+ /**
3
+ * Site capabilities are currently saved as an array on the
4
+ * site.data.values.capabilities. We want to migragte these
5
+ * legacy capabilities over to features in the new permissions
6
+ * system; however, we must continue persisting updates to
7
+ * these features in the legacy capabilities array until the
8
+ * existing site capabilities in our application are plumbed
9
+ * to work off of permissions
10
+ *
11
+ * This function is called within updateSite to ensure
12
+ * the legacy capabilities array is kept up-to-date
13
+ *
14
+ * TODO: Remove once site capabilities use permissions
15
+ *
16
+ * @param modelToUpdate
17
+ * @param currentModel
18
+ */
19
+ export declare const convertFeaturesToLegacyCapabilities: (modelToUpdate: IModel, currentModel: IModel) => IModel;
@@ -0,0 +1,12 @@
1
+ import { IModel } from "../../../types";
2
+ /**
3
+ * Site capabilities are currently saved as an array on the
4
+ * site.data.values.capabilities. We want to migragte these
5
+ * legacy capabilities over to features in the new permissions
6
+ * system and expose them on the entity
7
+ *
8
+ * This function is called within fetchSite to ensure all
9
+ * sites have features that are kept up-to-date with the
10
+ * legacy capabilities array
11
+ */
12
+ export declare const migrateLegacyCapabilitiesToFeatures: (model: IModel) => IModel;