@gooddata/sdk-ui-dashboard 11.54.0 → 11.55.0-alpha.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 (338) hide show
  1. package/NOTICE +3 -3
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.d.ts.map +1 -1
  4. package/esm/__version.js +1 -1
  5. package/esm/_staging/metadata/objRefMap.d.ts +11 -0
  6. package/esm/_staging/metadata/objRefMap.d.ts.map +1 -1
  7. package/esm/_staging/metadata/objRefMap.js +19 -1
  8. package/esm/index.d.ts +49 -6
  9. package/esm/index.d.ts.map +1 -1
  10. package/esm/index.js +42 -2
  11. package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
  12. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +4 -0
  13. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  14. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +9 -6
  15. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.d.ts +17 -0
  16. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.d.ts.map +1 -0
  17. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.js +50 -0
  18. package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts +4 -1
  19. package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
  20. package/esm/model/commandHandlers/drill/crossFilteringHandler.js +5 -3
  21. package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
  22. package/esm/model/commandHandlers/filterContext/common.js +5 -2
  23. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
  24. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +2 -2
  25. package/esm/model/commands/filters.d.ts +3 -3
  26. package/esm/model/store/config/configSelectors.d.ts +6 -0
  27. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  28. package/esm/model/store/config/configSelectors.js +8 -0
  29. package/esm/model/store/dashboardStore.d.ts +2 -0
  30. package/esm/model/store/dashboardStore.d.ts.map +1 -1
  31. package/esm/model/store/dashboardStore.js +2 -0
  32. package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +13 -9
  33. package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
  34. package/esm/model/store/tabs/filterContext/filterContextReducers.js +28 -21
  35. package/esm/model/store/tabs/index.d.ts +136 -128
  36. package/esm/model/store/tabs/index.d.ts.map +1 -1
  37. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +17 -4
  38. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
  39. package/esm/model/store/tabs/parameters/parametersHelpers.js +32 -8
  40. package/esm/model/store/tabs/parameters/parametersReducers.d.ts +29 -1
  41. package/esm/model/store/tabs/parameters/parametersReducers.d.ts.map +1 -1
  42. package/esm/model/store/tabs/parameters/parametersReducers.js +48 -6
  43. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +26 -5
  44. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
  45. package/esm/model/store/tabs/parameters/parametersSelectors.js +33 -14
  46. package/esm/model/store/tabs/parameters/parametersState.d.ts +7 -0
  47. package/esm/model/store/tabs/parameters/parametersState.d.ts.map +1 -1
  48. package/esm/model/store/tabs/tabsReducers.d.ts +14 -0
  49. package/esm/model/store/tabs/tabsReducers.d.ts.map +1 -1
  50. package/esm/model/store/tabs/tabsReducers.js +21 -1
  51. package/esm/model/store/tabs/workingSelectionSelectors.d.ts +9 -0
  52. package/esm/model/store/tabs/workingSelectionSelectors.d.ts.map +1 -0
  53. package/esm/model/store/tabs/workingSelectionSelectors.js +11 -0
  54. package/esm/model/store/types.d.ts +3 -0
  55. package/esm/model/store/types.d.ts.map +1 -1
  56. package/esm/model/store/unavailableObjects/index.d.ts +8 -0
  57. package/esm/model/store/unavailableObjects/index.d.ts.map +1 -0
  58. package/esm/model/store/unavailableObjects/index.js +13 -0
  59. package/esm/model/store/unavailableObjects/unavailableObjectsEntityAdapter.d.ts +9 -0
  60. package/esm/model/store/unavailableObjects/unavailableObjectsEntityAdapter.d.ts.map +1 -0
  61. package/esm/model/store/unavailableObjects/unavailableObjectsEntityAdapter.js +12 -0
  62. package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts +18 -0
  63. package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts.map +1 -0
  64. package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.js +20 -0
  65. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +8 -0
  66. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  67. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +21 -13
  68. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.d.ts +11 -0
  69. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.d.ts.map +1 -0
  70. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{AlertingDialogDestination.js → DefaultAlertingDialogDestination.js} +7 -2
  71. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogFilters.d.ts +12 -0
  72. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogFilters.d.ts.map +1 -0
  73. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogFilters.js +17 -0
  74. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogHeader.d.ts +11 -0
  75. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogHeader.d.ts.map +1 -0
  76. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{AlertingDialogHeader.js → DefaultAlertingDialogHeader.js} +10 -2
  77. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.d.ts +11 -0
  78. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.d.ts.map +1 -0
  79. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{AlertingDialogRecipients.js → DefaultAlertingDialogRecipients.js} +7 -3
  80. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts +1 -1
  81. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts.map +1 -1
  82. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.js +1 -1
  83. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.js +2 -2
  84. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.js +1 -1
  85. package/esm/presentation/automations/alerting/DefaultAlertingDialog/constants.d.ts +0 -1
  86. package/esm/presentation/automations/alerting/DefaultAlertingDialog/constants.d.ts.map +1 -1
  87. package/esm/presentation/automations/alerting/DefaultAlertingDialog/constants.js +0 -1
  88. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertThreshold.js +1 -1
  89. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useThresholdValue.js +2 -2
  90. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContent.js +1 -1
  91. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/Alert.js +2 -2
  92. package/esm/presentation/automations/alerting/blocks/AlertingDialogActionBar.d.ts +30 -0
  93. package/esm/presentation/automations/alerting/blocks/AlertingDialogActionBar.d.ts.map +1 -0
  94. package/esm/presentation/automations/alerting/blocks/AlertingDialogActionBar.js +30 -0
  95. package/esm/presentation/automations/alerting/blocks/AlertingDialogDestination.d.ts +15 -0
  96. package/esm/presentation/automations/alerting/blocks/AlertingDialogDestination.d.ts.map +1 -0
  97. package/esm/presentation/automations/alerting/blocks/AlertingDialogDestination.js +23 -0
  98. package/esm/presentation/automations/alerting/blocks/AlertingDialogFilters.d.ts +16 -0
  99. package/esm/presentation/automations/alerting/blocks/AlertingDialogFilters.d.ts.map +1 -0
  100. package/esm/presentation/automations/alerting/blocks/AlertingDialogFilters.js +25 -0
  101. package/esm/presentation/automations/alerting/blocks/AlertingDialogHeader.d.ts +26 -0
  102. package/esm/presentation/automations/alerting/blocks/AlertingDialogHeader.d.ts.map +1 -0
  103. package/esm/presentation/automations/alerting/blocks/AlertingDialogHeader.js +36 -0
  104. package/esm/presentation/automations/alerting/blocks/AlertingDialogRecipients.d.ts +13 -0
  105. package/esm/presentation/automations/alerting/blocks/AlertingDialogRecipients.d.ts.map +1 -0
  106. package/esm/presentation/automations/alerting/blocks/AlertingDialogRecipients.js +21 -0
  107. package/esm/presentation/automations/alerting/blocks/WhenAlertingDialogLoaded.d.ts +12 -0
  108. package/esm/presentation/automations/alerting/blocks/WhenAlertingDialogLoaded.d.ts.map +1 -0
  109. package/esm/presentation/automations/alerting/blocks/WhenAlertingDialogLoaded.js +13 -0
  110. package/esm/presentation/automations/alerting/hooks/useAlertValidation.d.ts.map +1 -0
  111. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAttributeValuesFromExecResults.d.ts +20 -0
  112. package/esm/presentation/automations/alerting/hooks/useAttributeValuesFromExecResults.d.ts.map +1 -0
  113. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAttributeValuesFromExecResults.js +5 -0
  114. package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.d.ts.map +1 -1
  115. package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.js +1 -1
  116. package/esm/presentation/automations/alerting/state/AlertActionsContext.d.ts +1 -1
  117. package/esm/presentation/automations/alerting/state/AlertActionsContext.js +1 -1
  118. package/esm/presentation/automations/alerting/state/AlertDataContext.d.ts +1 -1
  119. package/esm/presentation/automations/alerting/state/AlertDataContext.js +1 -1
  120. package/esm/presentation/automations/alerting/state/AlertDraftContext.d.ts +1 -1
  121. package/esm/presentation/automations/alerting/state/AlertDraftContext.js +1 -1
  122. package/esm/presentation/automations/alerting/state/AlertFiltersContext.d.ts +1 -1
  123. package/esm/presentation/automations/alerting/state/AlertFiltersContext.js +1 -1
  124. package/esm/presentation/automations/alerting/state/types.d.ts +179 -9
  125. package/esm/presentation/automations/alerting/state/types.d.ts.map +1 -1
  126. package/esm/presentation/automations/alerting/state/useAlertDialogValidity.d.ts +3 -8
  127. package/esm/presentation/automations/alerting/state/useAlertDialogValidity.d.ts.map +1 -1
  128. package/esm/presentation/automations/alerting/state/useAlertDialogValidity.js +1 -1
  129. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts +1 -1
  130. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts.map +1 -1
  131. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.js +1 -1
  132. package/esm/presentation/automations/alerting/state/useAlertFormState.d.ts +1 -1
  133. package/esm/presentation/automations/alerting/state/useAlertFormState.d.ts.map +1 -1
  134. package/esm/presentation/automations/alerting/state/useAlertFormState.js +2 -2
  135. package/esm/presentation/automations/alerting/state/useAlertFormValidation.js +2 -2
  136. package/esm/presentation/automations/alerting/state/useAlertSelectedValues.d.ts +4 -16
  137. package/esm/presentation/automations/alerting/state/useAlertSelectedValues.d.ts.map +1 -1
  138. package/esm/presentation/automations/alerting/state/useAlertSelectedValues.js +2 -2
  139. package/esm/presentation/automations/alerting/state/useAlertSubmit.d.ts +13 -0
  140. package/esm/presentation/automations/alerting/state/useAlertSubmit.d.ts.map +1 -0
  141. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → state}/useAlertSubmit.js +5 -5
  142. package/esm/presentation/automations/alerting/state/useAlertSupportedMetrics.js +3 -3
  143. package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.d.ts +8 -8
  144. package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.d.ts.map +1 -1
  145. package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.js +7 -7
  146. package/esm/presentation/automations/alerting/types.d.ts +48 -6
  147. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  148. package/esm/presentation/automations/alerting/types.js +3 -1
  149. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/convertors.d.ts +1 -1
  150. package/esm/presentation/automations/alerting/utils/convertors.d.ts.map +1 -0
  151. package/esm/presentation/automations/alerting/utils/cron.d.ts.map +1 -0
  152. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/getters.d.ts +14 -2
  153. package/esm/presentation/automations/alerting/utils/getters.d.ts.map +1 -0
  154. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/getters.js +1 -1
  155. package/esm/presentation/automations/alerting/utils/granularity.d.ts.map +1 -0
  156. package/esm/presentation/automations/alerting/utils/guards.d.ts.map +1 -0
  157. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/items.d.ts +1 -1
  158. package/esm/presentation/automations/alerting/utils/items.d.ts.map +1 -0
  159. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/items.js +1 -1
  160. package/esm/presentation/automations/alerting/utils/responsive.d.ts.map +1 -0
  161. package/esm/presentation/automations/alerting/utils/threshold.d.ts.map +1 -0
  162. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/transformation.d.ts +1 -1
  163. package/esm/presentation/automations/alerting/utils/transformation.d.ts.map +1 -0
  164. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/transformation.js +1 -1
  165. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +9 -0
  166. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  167. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +21 -12
  168. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDestination.d.ts +11 -0
  169. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDestination.d.ts.map +1 -0
  170. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDestination.js +15 -0
  171. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.d.ts +12 -0
  172. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.d.ts.map +1 -0
  173. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.js +16 -0
  174. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogHeader.d.ts +11 -0
  175. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogHeader.d.ts.map +1 -0
  176. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/{Header/ScheduleEmailDialogHeader.js → DefaultScheduledEmailDialogHeader.js} +11 -3
  177. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecipients.d.ts +11 -0
  178. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecipients.d.ts.map +1 -0
  179. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecipients.js +13 -0
  180. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogTimezone.d.ts +17 -0
  181. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogTimezone.d.ts.map +1 -0
  182. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/{ScheduleTimezoneSelect/ScheduleTimezoneSelect.js → DefaultScheduledEmailDialogTimezone.js} +6 -4
  183. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogActionBar.d.ts +36 -0
  184. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogActionBar.d.ts.map +1 -0
  185. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogActionBar.js +35 -0
  186. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDestination.d.ts +13 -0
  187. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDestination.d.ts.map +1 -0
  188. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDestination.js +21 -0
  189. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogFilters.d.ts +17 -0
  190. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogFilters.d.ts.map +1 -0
  191. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogFilters.js +26 -0
  192. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogHeader.d.ts +17 -0
  193. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogHeader.d.ts.map +1 -0
  194. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogHeader.js +32 -0
  195. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecipients.d.ts +15 -0
  196. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecipients.d.ts.map +1 -0
  197. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecipients.js +25 -0
  198. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogTimezone.d.ts +15 -0
  199. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogTimezone.d.ts.map +1 -0
  200. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogTimezone.js +26 -0
  201. package/esm/presentation/automations/scheduledEmail/blocks/WhenScheduledEmailDialogLoaded.d.ts +14 -0
  202. package/esm/presentation/automations/scheduledEmail/blocks/WhenScheduledEmailDialogLoaded.d.ts.map +1 -0
  203. package/esm/presentation/automations/scheduledEmail/blocks/WhenScheduledEmailDialogLoaded.js +15 -0
  204. package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useExportTimezones.d.ts +1 -1
  205. package/esm/presentation/automations/scheduledEmail/hooks/useExportTimezones.d.ts.map +1 -0
  206. package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useExportTimezones.js +1 -1
  207. package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useScheduleTimezone.d.ts +1 -1
  208. package/esm/presentation/automations/scheduledEmail/hooks/useScheduleTimezone.d.ts.map +1 -0
  209. package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useScheduleTimezone.js +1 -1
  210. package/esm/presentation/automations/scheduledEmail/hooks/useScheduleValidation.d.ts.map +1 -0
  211. package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useScheduleValidation.js +1 -1
  212. package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.js +1 -1
  213. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.d.ts +1 -1
  214. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.js +1 -1
  215. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.d.ts +1 -1
  216. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.js +1 -1
  217. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.d.ts +1 -1
  218. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.js +1 -1
  219. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.d.ts +1 -1
  220. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.js +1 -1
  221. package/esm/presentation/automations/scheduledEmail/state/types.d.ts +204 -5
  222. package/esm/presentation/automations/scheduledEmail/state/types.d.ts.map +1 -1
  223. package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.d.ts +12 -0
  224. package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.d.ts.map +1 -0
  225. package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → state}/useSaveScheduledEmailToBackend.js +3 -3
  226. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.d.ts +10 -10
  227. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.js +6 -6
  228. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +1 -1
  229. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormState.js +1 -1
  230. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts +2 -7
  231. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts.map +1 -1
  232. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.js +1 -1
  233. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts +3 -27
  234. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts.map +1 -1
  235. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.js +1 -1
  236. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts +3 -3
  237. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts.map +1 -1
  238. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.js +1 -1
  239. package/esm/presentation/automations/scheduledEmail/types.d.ts +4 -2
  240. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  241. package/esm/presentation/automations/shared/slots/DefaultAutomationDialogActionBar.d.ts +27 -0
  242. package/esm/presentation/automations/shared/slots/DefaultAutomationDialogActionBar.d.ts.map +1 -0
  243. package/esm/presentation/automations/shared/slots/{AutomationDialogActionBar.js → DefaultAutomationDialogActionBar.js} +7 -5
  244. package/esm/presentation/dashboardSettingsDialog/TimezoneOption.d.ts.map +1 -1
  245. package/esm/presentation/dashboardSettingsDialog/TimezoneOption.js +1 -1
  246. package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.d.ts.map +1 -1
  247. package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.js +5 -6
  248. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
  249. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +5 -4
  250. package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.d.ts.map +1 -1
  251. package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.js +11 -8
  252. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +4 -4
  253. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +4 -4
  254. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +4 -4
  255. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +7 -7
  256. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +6 -6
  257. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +2 -0
  258. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  259. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +6 -4
  260. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +4 -4
  261. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +4 -4
  262. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +4 -4
  263. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +4 -4
  264. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +4 -4
  265. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +4 -4
  266. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +4 -4
  267. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +4 -4
  268. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +4 -4
  269. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +4 -4
  270. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +4 -4
  271. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +4 -4
  272. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +4 -4
  273. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +4 -4
  274. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +4 -4
  275. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +4 -4
  276. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +4 -4
  277. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +4 -4
  278. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +4 -4
  279. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +4 -4
  280. package/esm/presentation/widget/insight/configuration/InsightAlertsNew.js +1 -1
  281. package/esm/sdk-ui-dashboard.d.ts +1828 -250
  282. package/package.json +25 -25
  283. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.d.ts +0 -6
  284. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.d.ts.map +0 -1
  285. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogFilters.d.ts +0 -8
  286. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogFilters.d.ts.map +0 -1
  287. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogFilters.js +0 -13
  288. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogHeader.d.ts +0 -3
  289. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogHeader.d.ts.map +0 -1
  290. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.d.ts +0 -7
  291. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.d.ts.map +0 -1
  292. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts +0 -23
  293. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts.map +0 -1
  294. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts.map +0 -1
  295. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.d.ts.map +0 -1
  296. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/convertors.d.ts.map +0 -1
  297. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/cron.d.ts.map +0 -1
  298. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.d.ts.map +0 -1
  299. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/granularity.d.ts.map +0 -1
  300. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/guards.d.ts.map +0 -1
  301. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.d.ts.map +0 -1
  302. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/responsive.d.ts.map +0 -1
  303. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/threshold.d.ts.map +0 -1
  304. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/transformation.d.ts.map +0 -1
  305. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Header/ScheduleEmailDialogHeader.d.ts +0 -3
  306. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Header/ScheduleEmailDialogHeader.d.ts.map +0 -1
  307. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduleTimezoneSelect/ScheduleTimezoneSelect.d.ts +0 -15
  308. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduleTimezoneSelect/ScheduleTimezoneSelect.d.ts.map +0 -1
  309. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.d.ts +0 -6
  310. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.d.ts.map +0 -1
  311. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.js +0 -10
  312. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogFilters.d.ts +0 -7
  313. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogFilters.d.ts.map +0 -1
  314. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogFilters.js +0 -11
  315. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.d.ts +0 -6
  316. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.d.ts.map +0 -1
  317. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.js +0 -8
  318. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useExportTimezones.d.ts.map +0 -1
  319. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts +0 -23
  320. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts.map +0 -1
  321. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleTimezone.d.ts.map +0 -1
  322. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleValidation.d.ts.map +0 -1
  323. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts +0 -25
  324. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts.map +0 -1
  325. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAlertValidation.d.ts +0 -0
  326. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAlertValidation.js +0 -0
  327. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/convertors.js +0 -0
  328. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/cron.d.ts +0 -0
  329. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/cron.js +0 -0
  330. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/granularity.d.ts +0 -0
  331. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/granularity.js +0 -0
  332. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/guards.d.ts +0 -0
  333. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/guards.js +0 -0
  334. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/responsive.d.ts +0 -0
  335. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/responsive.js +0 -0
  336. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/threshold.d.ts +0 -0
  337. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/threshold.js +0 -0
  338. /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useScheduleValidation.d.ts +0 -0
@@ -12,7 +12,7 @@ export const AlertDraftContextProvider = AlertDraftContext.Provider;
12
12
  * must check that flag before calling this. On the alerting side that state is reached only by an
13
13
  * automations refresh while the dialog is open, so it will not appear in manual testing.
14
14
  *
15
- * @internal
15
+ * @alpha
16
16
  */
17
17
  export function useAlertDraft() {
18
18
  return useContext(AlertDraftContext) ?? missingAlertStateProvider("useAlertDraft");
@@ -8,7 +8,7 @@ export declare const AlertFiltersContextProvider: import("react").Provider<IAler
8
8
  * must check that flag before calling this. On the alerting side that state is reached only by an
9
9
  * automations refresh while the dialog is open, so it will not appear in manual testing.
10
10
  *
11
- * @internal
11
+ * @alpha
12
12
  */
13
13
  export declare function useAlertFilters(): IAlertFiltersContextValue;
14
14
  //# sourceMappingURL=AlertFiltersContext.d.ts.map
@@ -12,7 +12,7 @@ export const AlertFiltersContextProvider = AlertFiltersContext.Provider;
12
12
  * must check that flag before calling this. On the alerting side that state is reached only by an
13
13
  * automations refresh while the dialog is open, so it will not appear in manual testing.
14
14
  *
15
- * @internal
15
+ * @alpha
16
16
  */
17
17
  export function useAlertFilters() {
18
18
  return useContext(AlertFiltersContext) ?? missingAlertStateProvider("useAlertFilters");
@@ -1,16 +1,16 @@
1
1
  import { type Dispatch, type SetStateAction } from "react";
2
- import { type DateAttributeGranularity, type FilterContextItem, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAlertTriggerInterval, type IAlertTriggerMode, type IAttribute, type IAttributeMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IMeasure, type IdentifierRef, type ParameterValue } from "@gooddata/sdk-model";
2
+ import { type DateAttributeGranularity, type FilterContextItem, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAlertTriggerInterval, type IAlertTriggerMode, type IAttribute, type IAttributeMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IMeasure, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IdentifierRef, type ParameterValue } from "@gooddata/sdk-model";
3
3
  import { type IAutomationParameter } from "../../shared/automationFilters/automationParameters.js";
4
- import { type AttributeValue } from "../DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js";
5
- import { type IMeasureFormatMap } from "../DefaultAlertingDialog/utils/getters.js";
6
- import { type AlertAttribute, type AlertMetric, type AlertMetricComparatorType } from "../types.js";
4
+ import { type AttributeValue } from "../hooks/useAttributeValuesFromExecResults.js";
5
+ import { type AlertAttribute, type AlertMetric, type AlertMetricComparator, type AlertMetricComparatorType, type IAlertingDialogProps } from "../types.js";
6
+ import { type AlertAiOperator, type IMeasureFormatMap } from "../utils/getters.js";
7
7
  /**
8
8
  * The alerting dialog's edit draft: the automation being edited, the baseline it is compared
9
9
  * against, and the form-level warning and title-validity flag that move with it.
10
10
  *
11
11
  * Changes on every keystroke; consumers re-render by design.
12
12
  *
13
- * @internal
13
+ * @alpha
14
14
  */
15
15
  export interface IAlertDraftContextValue {
16
16
  /**
@@ -36,25 +36,65 @@ export interface IAlertDraftContextValue {
36
36
  * Changes rarely: `onGranularityChange` is re-created when `triggerIntervalDirty` toggles or the
37
37
  * supported measures load.
38
38
  *
39
- * @internal
39
+ * @alpha
40
40
  */
41
41
  export interface IAlertActionsContextValue {
42
+ /**
43
+ * Replaces the draft; the change-handlers below are the preferred, field-scoped writes.
44
+ */
42
45
  setEditedAutomation: Dispatch<SetStateAction<IAutomationMetadataObjectDefinition | undefined>>;
46
+ /**
47
+ * Sets the alert title and re-validates its length.
48
+ */
43
49
  onTitleChange: (value: string) => void;
50
+ /**
51
+ * Selects the measure the condition targets; resets the comparison to the measure's defaults.
52
+ */
44
53
  onMeasureChange: (measure: AlertMetric) => void;
54
+ /**
55
+ * Slices the condition by an attribute value; `undefined` clears the slice.
56
+ */
45
57
  onAttributeChange: (attribute: AlertAttribute | undefined, value: AttributeValue | undefined) => void;
58
+ /**
59
+ * Switches the condition to a comparison against a fixed threshold.
60
+ */
46
61
  onComparisonOperatorChange: (measure: AlertMetric, comparisonOperator: IAlertComparisonOperator) => void;
62
+ /**
63
+ * Switches the condition to a relative (change / difference) comparison with the given operators.
64
+ */
47
65
  onRelativeOperatorChange: (measure: AlertMetric, relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator) => void;
66
+ /**
67
+ * Switches the condition to anomaly detection on the measure.
68
+ */
48
69
  onAnomalyDetectionChange: (measure: AlertMetric) => void;
70
+ /**
71
+ * Sets the period a relative condition compares against (and its granularity when given).
72
+ */
49
73
  onComparisonTypeChange: (measure: AlertMetric | undefined, relativeOperator: [IAlertRelativeOperator, IAlertRelativeArithmeticOperator] | undefined, comparisonType: AlertMetricComparatorType, granularity?: DateAttributeGranularity) => void;
74
+ /**
75
+ * Sets the anomaly-detection sensitivity.
76
+ */
50
77
  onSensitivityChange: (sensitivity: IAlertAnomalyDetectionSensitivity) => void;
51
78
  /**
52
- * `dirty` defaults to true; the granularity handler passes false when it derives the interval.
79
+ * Sets the trigger interval. `dirty` defaults to true; the granularity handler passes false when it
80
+ * derives the interval.
53
81
  */
54
82
  onTriggerIntervalChange: (triggerInterval: IAlertTriggerInterval, dirty?: boolean) => void;
83
+ /**
84
+ * Sets the anomaly-detection granularity; derives the trigger interval unless the user edited it.
85
+ */
55
86
  onGranularityChange: (measure: AlertMetric | undefined, granularity: IAlertAnomalyDetectionGranularity) => void;
87
+ /**
88
+ * Selects the notification channel; recipients incompatible with it are dropped.
89
+ */
56
90
  onDestinationChange: (destinationId: string) => void;
91
+ /**
92
+ * Sets when the alert fires: every evaluation or once per interval.
93
+ */
57
94
  onTriggerModeChange: (triggerMode: IAlertTriggerMode) => void;
95
+ /**
96
+ * Replaces the recipients with the complete updated array.
97
+ */
58
98
  onRecipientsChange: (recipients: IAutomationRecipient[]) => void;
59
99
  }
60
100
  /**
@@ -63,11 +103,20 @@ export interface IAlertActionsContextValue {
63
103
  *
64
104
  * Changes when an async load resolves, not per keystroke.
65
105
  *
66
- * @internal
106
+ * @alpha
67
107
  */
68
108
  export interface IAlertDataContextValue {
109
+ /**
110
+ * Measures of the insight an alert can be built on, with their comparisons.
111
+ */
69
112
  supportedMeasures: AlertMetric[];
113
+ /**
114
+ * Attributes of the insight an alert can be sliced by.
115
+ */
70
116
  supportedAttributes: AlertAttribute[];
117
+ /**
118
+ * Number formats of the insight's measures, by local identifier.
119
+ */
71
120
  measureFormatMap: IMeasureFormatMap;
72
121
  /**
73
122
  * Whether the widget's execution result is still loading.
@@ -97,10 +146,16 @@ export interface IAlertDataContextValue {
97
146
  *
98
147
  * Changes when a filter or a parameter is edited.
99
148
  *
100
- * @internal
149
+ * @alpha
101
150
  */
102
151
  export interface IAlertFiltersContextValue {
152
+ /**
153
+ * The filters the alert is saved with.
154
+ */
103
155
  selectedFilters: FilterContextItem[];
156
+ /**
157
+ * The dashboard filters the alert may use; undefined until resolved.
158
+ */
104
159
  availableFilters: FilterContextItem[] | undefined;
105
160
  /**
106
161
  * Replaces the selection with the complete updated array and mirrors it into the draft.
@@ -127,8 +182,17 @@ export interface IAlertFiltersContextValue {
127
182
  * Workspace parameters addable via the "+" menu. Empty when the feature is off.
128
183
  */
129
184
  availableParameters: IAutomationParameter[];
185
+ /**
186
+ * Sets a parameter's value.
187
+ */
130
188
  onParameterChange: (ref: IdentifierRef, value: ParameterValue) => void;
189
+ /**
190
+ * Removes a parameter override.
191
+ */
131
192
  onParameterDelete: (ref: IdentifierRef) => void;
193
+ /**
194
+ * Adds a workspace parameter with its default value.
195
+ */
132
196
  onParameterAdd: (ref: IdentifierRef) => void;
133
197
  /**
134
198
  * Drops stored parameters whose `ref` left the workspace catalog, keeping every other override.
@@ -153,4 +217,110 @@ export type IAlertSupportedMetrics = Pick<IAlertDataContextValue, "supportedMeas
153
217
  * @internal
154
218
  */
155
219
  export type IAlertFiltersModel = Pick<IAlertFiltersContextValue, "selectedFilters" | "availableFilters" | "onFiltersChange" | "onApplyCurrentFilters" | "automationIsValid" | "filtersAreStale">;
220
+ /**
221
+ * The alerting dialog's currently selected form values, derived from the draft and the supported
222
+ * measures and attributes.
223
+ *
224
+ * @alpha
225
+ */
226
+ export interface IAlertSelectedValues {
227
+ /**
228
+ * The measure the condition targets; undefined until the draft names one the insight supports.
229
+ */
230
+ selectedMeasure: AlertMetric | undefined;
231
+ /**
232
+ * The operator of a fixed-threshold comparison condition.
233
+ */
234
+ selectedComparisonOperator: IAlertComparisonOperator | undefined;
235
+ /**
236
+ * The relative and arithmetic operators of a relative condition.
237
+ */
238
+ selectedRelativeOperator: [IAlertRelativeOperator, IAlertRelativeArithmeticOperator] | undefined;
239
+ /**
240
+ * The operator id of an anomaly-detection condition.
241
+ */
242
+ selectedAiOperator: AlertAiOperator | undefined;
243
+ /**
244
+ * The period comparison a relative condition uses.
245
+ */
246
+ selectedComparator: AlertMetricComparator | undefined;
247
+ /**
248
+ * The sensitivity of an anomaly-detection condition.
249
+ */
250
+ selectedSensitivity: IAlertAnomalyDetectionSensitivity | undefined;
251
+ /**
252
+ * The granularity of an anomaly-detection condition.
253
+ */
254
+ selectedGranularity: IAlertAnomalyDetectionGranularity | undefined;
255
+ /**
256
+ * The attribute the condition is sliced by.
257
+ */
258
+ selectedAttribute: AlertAttribute | undefined;
259
+ /**
260
+ * The attribute element URI the condition is sliced to; null for the empty value.
261
+ */
262
+ selectedValue: string | null | undefined;
263
+ /**
264
+ * The notification channel the draft targets, resolved against the available channels.
265
+ */
266
+ selectedNotificationChannel: INotificationChannelIdentifier | INotificationChannelMetadataObject | undefined;
267
+ /**
268
+ * Whether the selected channel accepts external (e-mail only) recipients.
269
+ */
270
+ allowExternalRecipients: boolean;
271
+ /**
272
+ * Whether the selected channel accepts only the creator as recipient.
273
+ */
274
+ allowOnlyLoggedUserRecipients: boolean;
275
+ }
276
+ /**
277
+ * The alerting dialog's validity.
278
+ *
279
+ * @alpha
280
+ */
281
+ export interface IAlertDialogValidity {
282
+ /**
283
+ * Whether submit is disabled: the draft is invalid, incomplete, or unchanged in edit mode.
284
+ */
285
+ isSubmitDisabled: boolean;
286
+ /**
287
+ * The validation message to show; undefined when there is none.
288
+ */
289
+ validationErrorMessage: string | undefined;
290
+ /**
291
+ * Whether the widget the alert is attached to still exists and supports the alert's measure.
292
+ */
293
+ isParentValid: boolean;
294
+ /**
295
+ * Whether the measure may be changed — false when the dialog has no insight.
296
+ */
297
+ canChangeMeasure: boolean;
298
+ /**
299
+ * Whether the saved alert points at a widget whose insight is gone.
300
+ */
301
+ isInvalidConnectionToInsight: boolean;
302
+ }
303
+ /**
304
+ * Lifecycle callbacks of {@link useAlertSubmit}: the dialog's own `onSuccess`/`onError` (create) and
305
+ * `onSaveSuccess`/`onSaveError` (edit).
306
+ *
307
+ * @alpha
308
+ */
309
+ export type IUseAlertSubmitCallbacks = Pick<IAlertingDialogProps, "onSuccess" | "onError" | "onSaveSuccess" | "onSaveError">;
310
+ /**
311
+ * The alerting dialog's submit path.
312
+ *
313
+ * @alpha
314
+ */
315
+ export interface IAlertSubmitState {
316
+ /**
317
+ * Whether a create or save is in flight.
318
+ */
319
+ isSaving: boolean;
320
+ /**
321
+ * Creates the alert (no `alertToEdit`) or saves the edited one; a second call while one is in
322
+ * flight is ignored.
323
+ */
324
+ submit: () => Promise<void>;
325
+ }
156
326
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,cAAc,EACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AACnG,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qEAAqE,CAAC;AAC1G,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,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B,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,oBAAoB,EAAE,oBAAoB,EAAE,CAAC;IAC7C;;OAEG;IACH,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;IAC5C,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACvE,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD,cAAc,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAC7C;;OAEG;IACH,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,uBAAuB,GACjD,yBAAyB,GACzB,IAAI,CAAC,sBAAsB,EAAE,aAAa,GAAG,kBAAkB,CAAC,GAChE,IAAI,CACA,yBAAyB,EACvB,sBAAsB,GACtB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,gBAAgB,GAChB,qBAAqB,CAC1B,CAAC;AAEN;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACrC,sBAAsB,EACpB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,gBAAgB,CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACjC,yBAAyB,EACvB,iBAAiB,GACjB,kBAAkB,GAClB,iBAAiB,GACjB,uBAAuB,GACvB,mBAAmB,GACnB,iBAAiB,CACtB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBA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AAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,2BAA2B,EACrB,8BAA8B,GAC9B,kCAAkC,GAClC,SAAS,CAAC;IAChB;;OAEG;IACH,uBAAuB,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,6BAA6B,EAAE,OAAO,CAAC;CAC1C;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,4BAA4B,EAAE,OAAO,CAAC;CACzC;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACvC,oBAAoB,EACpB,WAAW,GAAG,SAAS,GAAG,eAAe,GAAG,aAAa,CAC5D,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B"}
@@ -1,15 +1,10 @@
1
+ import { type IAlertDialogValidity } from "./types.js";
1
2
  /**
2
3
  * Reads the alerting dialog's validity: whether submit is enabled, the validation message to show,
3
4
  * whether the parent widget is still valid, whether the measure may be changed, and whether the
4
5
  * saved alert points at a widget whose insight is gone.
5
6
  *
6
- * @internal
7
+ * @alpha
7
8
  */
8
- export declare function useAlertDialogValidity(): {
9
- isSubmitDisabled: boolean;
10
- validationErrorMessage: string | undefined;
11
- isParentValid: boolean;
12
- canChangeMeasure: boolean;
13
- isInvalidConnectionToInsight: boolean;
14
- };
9
+ export declare function useAlertDialogValidity(): IAlertDialogValidity;
15
10
  //# sourceMappingURL=useAlertDialogValidity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertDialogValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertDialogValidity.ts"],"names":[],"mappings":"AAUA;;;;;;GAMG;AACH,wBAAgB,sBAAsB,IAAI;IACtC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,4BAA4B,EAAE,OAAO,CAAC;CACzC,CAkCA"}
1
+ {"version":3,"file":"useAlertDialogValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertDialogValidity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIvD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,IAAI,oBAAoB,CAkC7D"}
@@ -10,7 +10,7 @@ import { useAlertSelectedValues } from "./useAlertSelectedValues.js";
10
10
  * whether the parent widget is still valid, whether the measure may be changed, and whether the
11
11
  * saved alert points at a widget whose insight is gone.
12
12
  *
13
- * @internal
13
+ * @alpha
14
14
  */
15
15
  export function useAlertDialogValidity() {
16
16
  const { catalogDateDatasets, maxAutomationsRecipients } = useAutomationsContext();
@@ -1,7 +1,7 @@
1
1
  import { type Dispatch, type SetStateAction } from "react";
2
2
  import { type FilterContextItem, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationVisibleFilter, type IInsight, type IWidget, type WeekStart } from "@gooddata/sdk-model";
3
- import { type IMeasureFormatMap } from "../DefaultAlertingDialog/utils/getters.js";
4
3
  import { type AlertAttribute, type AlertMetric } from "../types.js";
4
+ import { type IMeasureFormatMap } from "../utils/getters.js";
5
5
  import { type IAlertFiltersModel } from "./types.js";
6
6
  /**
7
7
  * Props for {@link useAlertFiltersModel}.
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertFiltersModel.d.ts","sourceRoot":"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AAC;IACzC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,gCAAgC,EAChC,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,QAAQ,EACX,EAAE,0BAA0B,GAAG,kBAAkB,CAsGjD"}
1
+ {"version":3,"file":"useAlertFiltersModel.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFiltersModel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAe,MAAM,OAAO,CAAC;AAExE,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACjB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACvC,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC,CAAC;IAC/F,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,0BAA0B,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACnE,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACvC,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,eAAe,EAAE,WAAW,GAAG,SAAS,CAAC;IACzC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,gCAAgC,EAChC,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,QAAQ,EACX,EAAE,0BAA0B,GAAG,kBAAkB,CAsGjD"}
@@ -2,7 +2,7 @@
2
2
  import { useCallback } from "react";
3
3
  import { useValidateExistingAutomationFilters } from "../../shared/automationFilters/hooks/useValidateExistingAutomationFilters.js";
4
4
  import { getAppliedWidgetFilters, getVisibleFiltersByFilters } from "../../shared/filters/index.js";
5
- import { transformAlertByAttribute, transformAlertByMetric, } from "../DefaultAlertingDialog/utils/transformation.js";
5
+ import { transformAlertByAttribute, transformAlertByMetric } from "../utils/transformation.js";
6
6
  /**
7
7
  * Owns the alerting dialog's single filter model: the current selection and available filters,
8
8
  * `onFiltersChange`/`onApplyCurrentFilters` to mutate the edited filters and mirror the result into
@@ -1,6 +1,6 @@
1
1
  import { type FilterContextItem, type IAutomationMetadataObject, type IAutomationVisibleFilter, type IInsight, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget } from "@gooddata/sdk-model";
2
- import { type IMeasureFormatMap } from "../DefaultAlertingDialog/utils/getters.js";
3
2
  import { type AlertAttribute, type AlertMetric } from "../types.js";
3
+ import { type IMeasureFormatMap } from "../utils/getters.js";
4
4
  import { type IAlertFormState } from "./types.js";
5
5
  /**
6
6
  * Props for {@link useAlertFormState}.
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertFormState.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFormState.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,iBAAiB,EAQtB,KAAK,yBAAyB,EAG9B,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAEb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAWnF,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAkC,MAAM,aAAa,CAAC;AAEpG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,uBAAuB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EACnB,EAAE,uBAAuB,GAAG,eAAe,CA6Z3C"}
1
+ {"version":3,"file":"useAlertFormState.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFormState.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,iBAAiB,EAQtB,KAAK,yBAAyB,EAG9B,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAEb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAkC,MAAM,aAAa,CAAC;AAEpG,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAY7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,uBAAuB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EACnB,EAAE,uBAAuB,GAAG,eAAe,CA6Z3C"}
@@ -8,8 +8,8 @@ import { useAutomationAlertParameters } from "../../shared/automationFilters/use
8
8
  import { getAppliedWidgetFilters, getVisibleFiltersByFilters, resolveFilterDimensionalityLocalRefs, } from "../../shared/filters/index.js";
9
9
  import { isAutomationTitleValid } from "../../shared/utils/automationTitle.js";
10
10
  import { convertExternalRecipientToAutomationRecipient, convertUserToAutomationRecipient, } from "../../shared/utils/automationUtils.js";
11
- import { createDefaultAlert } from "../DefaultAlertingDialog/utils/convertors.js";
12
- import { transformAlertByAnomalyDetection, transformAlertByAttribute, transformAlertByComparisonOperator, transformAlertByDestination, transformAlertByGranularity, transformAlertByMetric, transformAlertByRelativeOperator, transformAlertBySensitivity, } from "../DefaultAlertingDialog/utils/transformation.js";
11
+ import { createDefaultAlert } from "../utils/convertors.js";
12
+ import { transformAlertByAnomalyDetection, transformAlertByAttribute, transformAlertByComparisonOperator, transformAlertByDestination, transformAlertByGranularity, transformAlertByMetric, transformAlertByRelativeOperator, transformAlertBySensitivity, } from "../utils/transformation.js";
13
13
  /**
14
14
  * Owns the alerting dialog's editable state: the `editedAutomation` draft (initialized either
15
15
  * from `alertToEdit` or via `createDefaultAlert`), its `originalAutomation` baseline, the
@@ -3,8 +3,8 @@ import { isEqual } from "lodash-es";
3
3
  import { useIntl } from "react-intl";
4
4
  import { isAutomationExternalUserRecipient, isAutomationUnknownUserRecipient, isAutomationUserRecipient, } from "@gooddata/sdk-model";
5
5
  import { isEmail } from "../../scheduledEmail/utils/validate.js";
6
- import { useAlertValidation } from "../DefaultAlertingDialog/hooks/useAlertValidation.js";
7
- import { isAlertValueDefined } from "../DefaultAlertingDialog/utils/guards.js";
6
+ import { useAlertValidation } from "../hooks/useAlertValidation.js";
7
+ import { isAlertValueDefined } from "../utils/guards.js";
8
8
  export function useAlertFormValidation(props) {
9
9
  const { editedAutomation, originalAutomation, alertToEdit, widget, insight, catalogDateDatasets, isInvalidConnectionToInsight, selectedNotificationChannel, allowExternalRecipients, allowOnlyLoggedUserRecipients, maxAutomationsRecipients, defaultRecipient, isTitleValid, } = props;
10
10
  const intl = useIntl();
@@ -1,5 +1,6 @@
1
1
  import { type IAutomationMetadataObjectDefinition, type INotificationChannelIdentifier, type INotificationChannelMetadataObject } from "@gooddata/sdk-model";
2
2
  import { type AlertAttribute, type AlertMetric } from "../types.js";
3
+ import { type IAlertSelectedValues } from "./types.js";
3
4
  /**
4
5
  * Props for {@link getAlertSelectedValues}.
5
6
  * @internal
@@ -20,20 +21,7 @@ export interface IGetAlertSelectedValuesProps {
20
21
  *
21
22
  * @internal
22
23
  */
23
- export declare function getAlertSelectedValues({ editedAutomation, supportedMeasures, supportedAttributes, notificationChannels }: IGetAlertSelectedValuesProps): {
24
- selectedMeasure: AlertMetric | undefined;
25
- selectedComparisonOperator: import("@gooddata/sdk-model").IAlertComparisonOperator | undefined;
26
- selectedRelativeOperator: [import("@gooddata/sdk-model").IAlertRelativeOperator, import("@gooddata/sdk-model").IAlertRelativeArithmeticOperator] | undefined;
27
- selectedAiOperator: "AI.ANOMALY_DETECTION" | undefined;
28
- selectedComparator: import("../types.js").AlertMetricComparator | undefined;
29
- selectedSensitivity: import("@gooddata/sdk-model").IAlertAnomalyDetectionSensitivity | undefined;
30
- selectedGranularity: import("@gooddata/sdk-model").IAlertAnomalyDetectionGranularity | undefined;
31
- selectedAttribute: AlertAttribute | undefined;
32
- selectedValue: string | null | undefined;
33
- selectedNotificationChannel: INotificationChannelIdentifier | undefined;
34
- allowExternalRecipients: boolean;
35
- allowOnlyLoggedUserRecipients: boolean;
36
- };
24
+ export declare function getAlertSelectedValues({ editedAutomation, supportedMeasures, supportedAttributes, notificationChannels }: IGetAlertSelectedValuesProps): IAlertSelectedValues;
37
25
  /**
38
26
  * Reads the currently-selected form values for the alerting dialog.
39
27
  *
@@ -41,7 +29,7 @@ export declare function getAlertSelectedValues({ editedAutomation, supportedMeas
41
29
  * `useCallback` dependency arrays and `useAlertThreshold` arguments, so recomputing them every
42
30
  * render is what keeps those consumers behaving correctly.
43
31
  *
44
- * @internal
32
+ * @alpha
45
33
  */
46
- export declare function useAlertSelectedValues(): ReturnType<typeof getAlertSelectedValues>;
34
+ export declare function useAlertSelectedValues(): IAlertSelectedValues;
47
35
  //# sourceMappingURL=useAlertSelectedValues.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertSelectedValues.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertSelectedValues.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAC1C,MAAM,qBAAqB,CAAC;AAa7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAKpE;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IACzC,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,CAAC;IAClE,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;CACjG;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACvB,EAAE,4BAA4B;;;;;;;;;;;;;EA+B9B;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,IAAI,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAWlF"}
1
+ {"version":3,"file":"useAlertSelectedValues.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertSelectedValues.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAC1C,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAcpE,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IACzC,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,CAAC;IAClE,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;CACjG;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACvB,EAAE,4BAA4B,GAAG,oBAAoB,CA+BrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,IAAI,oBAAoB,CAW7D"}
@@ -1,6 +1,6 @@
1
1
  // (C) 2026 GoodData Corporation
2
2
  import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
3
- import { getAlertAiOperator, getAlertAttribute, getAlertCompareOperator, getAlertComparison, getAlertGranularity, getAlertMeasure, getAlertRelativeOperator, getAlertSensitivity, } from "../DefaultAlertingDialog/utils/getters.js";
3
+ import { getAlertAiOperator, getAlertAttribute, getAlertCompareOperator, getAlertComparison, getAlertGranularity, getAlertMeasure, getAlertRelativeOperator, getAlertSensitivity, } from "../utils/getters.js";
4
4
  import { useAlertData } from "./AlertDataContext.js";
5
5
  import { useAlertDraft } from "./AlertDraftContext.js";
6
6
  /**
@@ -47,7 +47,7 @@ export function getAlertSelectedValues({ editedAutomation, supportedMeasures, su
47
47
  * `useCallback` dependency arrays and `useAlertThreshold` arguments, so recomputing them every
48
48
  * render is what keeps those consumers behaving correctly.
49
49
  *
50
- * @internal
50
+ * @alpha
51
51
  */
52
52
  export function useAlertSelectedValues() {
53
53
  const { editedAutomation } = useAlertDraft();
@@ -0,0 +1,13 @@
1
+ import { type IAlertSubmitState, type IUseAlertSubmitCallbacks } from "./types.js";
2
+ /**
3
+ * Submits the alerting dialog's draft: creates a new alert or saves the edited one, deriving a title
4
+ * when the draft has none, and routes the result to the matching callback. Guards against a second
5
+ * submit while one is in flight.
6
+ *
7
+ * Reads the draft, the supported measures, the edited alert and the separators from the alerting
8
+ * contexts, so it throws outside the alerting dialog's state providers.
9
+ *
10
+ * @alpha
11
+ */
12
+ export declare function useAlertSubmit({ onSuccess, onError, onSaveSuccess, onSaveError }: IUseAlertSubmitCallbacks): IAlertSubmitState;
13
+ //# sourceMappingURL=useAlertSubmit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAlertSubmit.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertSubmit.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEnF;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,EAC3B,SAAS,EACT,OAAO,EACP,aAAa,EACb,WAAW,EACd,EAAE,wBAAwB,GAAG,iBAAiB,CA+C9C"}
@@ -2,11 +2,11 @@
2
2
  import { useRef, useState } from "react";
3
3
  import { useIntl } from "react-intl";
4
4
  import { convertError } from "@gooddata/sdk-ui";
5
- import { useAlertingDialogContext } from "../../../contexts/AlertingDialogContext.js";
6
- import { useAutomationsContext } from "../../../contexts/AutomationsContext.js";
7
- import { useAlertData } from "../../state/AlertDataContext.js";
8
- import { useAlertDraft } from "../../state/AlertDraftContext.js";
5
+ import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
6
+ import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
9
7
  import { getDescription } from "../utils/getters.js";
8
+ import { useAlertData } from "./AlertDataContext.js";
9
+ import { useAlertDraft } from "./AlertDraftContext.js";
10
10
  /**
11
11
  * Submits the alerting dialog's draft: creates a new alert or saves the edited one, deriving a title
12
12
  * when the draft has none, and routes the result to the matching callback. Guards against a second
@@ -15,7 +15,7 @@ import { getDescription } from "../utils/getters.js";
15
15
  * Reads the draft, the supported measures, the edited alert and the separators from the alerting
16
16
  * contexts, so it throws outside the alerting dialog's state providers.
17
17
  *
18
- * @internal
18
+ * @alpha
19
19
  */
20
20
  export function useAlertSubmit({ onSuccess, onError, onSaveSuccess, onSaveError, }) {
21
21
  const intl = useIntl();
@@ -3,9 +3,9 @@ import { useEffect, useMemo, useState } from "react";
3
3
  import { fillMissingTitles } from "@gooddata/sdk-ui";
4
4
  import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
5
5
  import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
6
- import { useAttributeValuesFromExecResults } from "../DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js";
7
- import { getMeasureFormatsFromExecution } from "../DefaultAlertingDialog/utils/getters.js";
8
- import { getSupportedInsightAttributesByInsight, getSupportedInsightMeasuresByInsight, } from "../DefaultAlertingDialog/utils/items.js";
6
+ import { useAttributeValuesFromExecResults } from "../hooks/useAttributeValuesFromExecResults.js";
7
+ import { getMeasureFormatsFromExecution } from "../utils/getters.js";
8
+ import { getSupportedInsightAttributesByInsight, getSupportedInsightMeasuresByInsight, } from "../utils/items.js";
9
9
  /**
10
10
  * Derives which measures and attributes the alerting dialog may offer for the current widget: it
11
11
  * resolves the effective insight and its execution result, then narrows the catalog down to the
@@ -4,7 +4,7 @@ import { type AlertingDialogHeaderDefaultProps, type IAlertingDialogFiltersProps
4
4
  /**
5
5
  * Inputs of {@link useAlertingDialogHeaderProps} that come from the dialog rather than its state.
6
6
  *
7
- * @internal
7
+ * @alpha
8
8
  */
9
9
  export interface IUseAlertingDialogHeaderPropsInput {
10
10
  /**
@@ -21,7 +21,7 @@ export interface IUseAlertingDialogHeaderPropsInput {
21
21
  *
22
22
  * Throws outside the alerting dialog's state providers.
23
23
  *
24
- * @internal
24
+ * @alpha
25
25
  */
26
26
  export declare function useAlertingDialogHeaderProps({ onCancel, ref }: IUseAlertingDialogHeaderPropsInput): AlertingDialogHeaderDefaultProps;
27
27
  /**
@@ -29,7 +29,7 @@ export declare function useAlertingDialogHeaderProps({ onCancel, ref }: IUseAler
29
29
  *
30
30
  * Throws outside the alerting dialog's state providers.
31
31
  *
32
- * @internal
32
+ * @alpha
33
33
  */
34
34
  export declare function useAlertingDialogFiltersProps(): IAlertingDialogFiltersProps;
35
35
  /**
@@ -37,7 +37,7 @@ export declare function useAlertingDialogFiltersProps(): IAlertingDialogFiltersP
37
37
  *
38
38
  * Throws outside the alerting dialog's state providers.
39
39
  *
40
- * @internal
40
+ * @alpha
41
41
  */
42
42
  export declare function useAlertingDialogDestinationProps(): IAutomationDialogDestinationProps;
43
43
  /**
@@ -45,13 +45,13 @@ export declare function useAlertingDialogDestinationProps(): IAutomationDialogDe
45
45
  *
46
46
  * Throws outside the alerting dialog's state providers.
47
47
  *
48
- * @internal
48
+ * @alpha
49
49
  */
50
50
  export declare function useAlertingDialogRecipientsProps(): IAutomationDialogRecipientsProps;
51
51
  /**
52
52
  * Inputs of {@link useAlertingDialogActionBarProps} that come from the dialog rather than its state.
53
53
  *
54
- * @internal
54
+ * @alpha
55
55
  */
56
56
  export interface IUseAlertingDialogActionBarPropsInput {
57
57
  /**
@@ -59,7 +59,7 @@ export interface IUseAlertingDialogActionBarPropsInput {
59
59
  */
60
60
  onCancel?: () => void;
61
61
  /**
62
- * Submits the automation; the dialog's single submit path (see `useAlertSubmit`).
62
+ * Submits the automation; the dialog's single submit path (see {@link useAlertSubmit}).
63
63
  */
64
64
  onSubmit: () => void;
65
65
  /**
@@ -76,7 +76,7 @@ export interface IUseAlertingDialogActionBarPropsInput {
76
76
  *
77
77
  * Throws outside the alerting dialog's state providers.
78
78
  *
79
- * @internal
79
+ * @alpha
80
80
  */
81
81
  export declare function useAlertingDialogActionBarProps({ onCancel, onSubmit, isSaving, onDelete }: IUseAlertingDialogActionBarPropsInput): IAutomationDialogActionBarProps;
82
82
  //# sourceMappingURL=useAlertingDialogRegionProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertingDialogRegionProps.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertingDialogRegionProps.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,EAAW,MAAM,OAAO,CAAC;AAQ1C,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACxC,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,KAAK,gCAAgC,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAStG;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,QAAQ,EACR,GAAG,EACN,EAAE,kCAAkC,GAAG,gCAAgC,CAkCvE;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,IAAI,2BAA2B,CAwB3E;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,IAAI,iCAAiC,CAUrF;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,IAAI,gCAAgC,CAqBnF;AAED;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACX,EAAE,qCAAqC,GAAG,+BAA+B,CAmCzE"}
1
+ {"version":3,"file":"useAlertingDialogRegionProps.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertingDialogRegionProps.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,EAAW,MAAM,OAAO,CAAC;AAQ1C,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACxC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,KAAK,gCAAgC,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAWtG;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,QAAQ,EACR,GAAG,EACN,EAAE,kCAAkC,GAAG,gCAAgC,CAkCvE;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,IAAI,2BAA2B,CAwB3E;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,IAAI,iCAAiC,CAUrF;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,IAAI,gCAAgC,CAqBnF;AAED;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACX,EAAE,qCAAqC,GAAG,+BAA+B,CAmCzE"}