@oneuptime/common 9.4.7 → 9.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/Alert.ts +76 -0
- package/Models/DatabaseModels/AlertEpisode.ts +1201 -0
- package/Models/DatabaseModels/AlertEpisodeFeed.ts +529 -0
- package/Models/DatabaseModels/AlertEpisodeInternalNote.ts +455 -0
- package/Models/DatabaseModels/AlertEpisodeMember.ts +586 -0
- package/Models/DatabaseModels/AlertEpisodeOwnerTeam.ts +421 -0
- package/Models/DatabaseModels/AlertEpisodeOwnerUser.ts +419 -0
- package/Models/DatabaseModels/AlertEpisodeStateTimeline.ts +523 -0
- package/Models/DatabaseModels/AlertFeed.ts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.ts +1432 -0
- package/Models/DatabaseModels/Index.ts +18 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.ts +70 -0
- package/Models/DatabaseModels/StatusPageDomain.ts +2 -0
- package/Models/DatabaseModels/WorkspaceNotificationLog.ts +57 -0
- package/Server/API/SlackAPI.ts +21 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1768938069147-MigrationName.ts +751 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769125561322-MigrationName.ts +41 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769170578688-MigrationName.ts +29 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769172358833-MigrationName.ts +177 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769176450526-MigrationName.ts +71 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769190495840-MigrationName.ts +35 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769199303656-MigrationName.ts +29 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769202898645-MigrationName.ts +29 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769428619414-MigrationName.ts +35 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769428821686-MigrationName.ts +47 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +20 -0
- package/Server/Services/AlertEpisodeFeedService.ts +94 -0
- package/Server/Services/AlertEpisodeInternalNoteService.ts +71 -0
- package/Server/Services/AlertEpisodeMemberService.ts +267 -0
- package/Server/Services/AlertEpisodeOwnerTeamService.ts +10 -0
- package/Server/Services/AlertEpisodeOwnerUserService.ts +10 -0
- package/Server/Services/AlertEpisodeService.ts +988 -0
- package/Server/Services/AlertEpisodeStateTimelineService.ts +557 -0
- package/Server/Services/AlertGroupingEngineService.ts +1120 -0
- package/Server/Services/AlertGroupingRuleService.ts +14 -0
- package/Server/Services/AlertService.ts +12 -0
- package/Server/Services/CallService.ts +2 -0
- package/Server/Services/Index.ts +21 -0
- package/Server/Services/MailService.ts +5 -0
- package/Server/Services/OnCallDutyPolicyService.ts +5 -0
- package/Server/Services/SmsService.ts +2 -0
- package/Server/Services/UserNotificationSettingService.ts +23 -0
- package/Server/Services/WhatsAppService.ts +5 -0
- package/Server/Services/WorkspaceNotificationRuleService.ts +26 -0
- package/Server/Utils/AnalyticsDatabase/Statement.ts +6 -2
- package/Server/Utils/WhatsAppTemplateUtil.ts +13 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/ActionTypes.ts +18 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/AlertEpisode.ts +689 -0
- package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.ts +16 -0
- package/Server/Utils/Workspace/Slack/Actions/ActionTypes.ts +11 -0
- package/Server/Utils/Workspace/Slack/Actions/AlertEpisode.ts +915 -0
- package/Server/Utils/Workspace/Slack/Messages/AlertEpisode.ts +120 -0
- package/Server/Utils/Workspace/WorkspaceMessages/AlertEpisode.ts +74 -0
- package/Tests/Server/Services/AlertEpisodeMemberService.test.ts +200 -0
- package/Tests/Server/Services/AlertEpisodeService.test.ts +240 -0
- package/Tests/Server/Services/AlertGroupingEngineService.test.ts +542 -0
- package/Tests/Server/Services/AlertGroupingRuleService.test.ts +383 -0
- package/Tests/Server/Utils/AnalyticsDatabase/StatementGenerator.test.ts +1 -1
- package/Tests/UI/Components/Input.test.tsx +1 -1
- package/Tests/UI/Components/TextArea.test.tsx +2 -2
- package/Types/BaseDatabase/SortOrder.ts +9 -0
- package/Types/Email/EmailTemplateType.ts +5 -0
- package/Types/NotificationRule/NotificationRuleType.ts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.ts +7 -0
- package/Types/Permission.ts +309 -0
- package/Types/UserNotification/UserNotificationEventType.ts +1 -0
- package/Types/WhatsApp/WhatsAppTemplates.ts +20 -0
- package/Types/Workspace/NotificationRules/EventType.ts +1 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.ts +32 -3
- package/UI/Components/Accordion/Accordion.tsx +20 -2
- package/UI/Components/Alerts/Alert.tsx +1 -0
- package/UI/Components/Button/Button.tsx +29 -0
- package/UI/Components/CardSelect/CardSelect.tsx +5 -1
- package/UI/Components/Checkbox/Checkbox.tsx +7 -3
- package/UI/Components/ColorCircle/ColorCircle.tsx +2 -0
- package/UI/Components/ColorViewer/ColorViewer.tsx +19 -3
- package/UI/Components/CopyableButton/CopyableButton.tsx +22 -5
- package/UI/Components/Detail/Detail.tsx +1 -1
- package/UI/Components/Dropdown/Dropdown.tsx +14 -1
- package/UI/Components/Forms/Fields/FormField.tsx +28 -0
- package/UI/Components/FullPageModal/FullPageModal.tsx +35 -4
- package/UI/Components/Input/Input.tsx +14 -2
- package/UI/Components/Link/Link.tsx +1 -0
- package/UI/Components/Loader/Loader.tsx +8 -2
- package/UI/Components/Markdown.tsx/MarkdownViewer.tsx +76 -1
- package/UI/Components/Modal/Modal.tsx +47 -3
- package/UI/Components/ModelTable/BaseModelTable.tsx +42 -1
- package/UI/Components/MoreMenu/MoreMenu.tsx +84 -2
- package/UI/Components/OrderedStatesList/OrderedStatesList.tsx +30 -8
- package/UI/Components/Pagination/Pagination.tsx +113 -8
- package/UI/Components/ProgressBar/ProgressBar.tsx +12 -2
- package/UI/Components/Radio/Radio.tsx +21 -3
- package/UI/Components/SideMenu/CountModelSideMenuItem.tsx +54 -27
- package/UI/Components/StatusBubble/StatusBubble.tsx +7 -2
- package/UI/Components/Table/TableHeader.tsx +20 -3
- package/UI/Components/Tabs/Tab.tsx +16 -1
- package/UI/Components/Tabs/Tabs.tsx +12 -1
- package/UI/Components/TextArea/TextArea.tsx +12 -2
- package/UI/Components/Toggle/Toggle.tsx +14 -3
- package/UI/Components/Tooltip/Tooltip.tsx +11 -1
- package/UI/Components/TopAlert/TopAlert.tsx +2 -0
- package/build/dist/Models/DatabaseModels/Alert.js +77 -0
- package/build/dist/Models/DatabaseModels/Alert.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertEpisode.js +1225 -0
- package/build/dist/Models/DatabaseModels/AlertEpisode.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeFeed.js +553 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeFeed.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeInternalNote.js +467 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeInternalNote.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeMember.js +607 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeMember.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeOwnerTeam.js +437 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeOwnerUser.js +436 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeStateTimeline.js +546 -0
- package/build/dist/Models/DatabaseModels/AlertEpisodeStateTimeline.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AlertFeed.js +1 -0
- package/build/dist/Models/DatabaseModels/AlertFeed.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertGroupingRule.js +1437 -0
- package/build/dist/Models/DatabaseModels/AlertGroupingRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Index.js +16 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +69 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPageDomain.js +2 -0
- package/build/dist/Models/DatabaseModels/StatusPageDomain.js.map +1 -1
- package/build/dist/Models/DatabaseModels/WorkspaceNotificationLog.js +58 -0
- package/build/dist/Models/DatabaseModels/WorkspaceNotificationLog.js.map +1 -1
- package/build/dist/Server/API/SlackAPI.js +18 -0
- package/build/dist/Server/API/SlackAPI.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1768938069147-MigrationName.js +266 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1768938069147-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769125561322-MigrationName.js +20 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769125561322-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769170578688-MigrationName.js +16 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769170578688-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769172358833-MigrationName.js +68 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769172358833-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769176450526-MigrationName.js +30 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769176450526-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769190495840-MigrationName.js +18 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769190495840-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769199303656-MigrationName.js +16 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769199303656-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769202898645-MigrationName.js +16 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769202898645-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769428619414-MigrationName.js +18 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769428619414-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769428821686-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769428821686-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +20 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Services/AlertEpisodeFeedService.js +83 -0
- package/build/dist/Server/Services/AlertEpisodeFeedService.js.map +1 -0
- package/build/dist/Server/Services/AlertEpisodeInternalNoteService.js +70 -0
- package/build/dist/Server/Services/AlertEpisodeInternalNoteService.js.map +1 -0
- package/build/dist/Server/Services/AlertEpisodeMemberService.js +256 -0
- package/build/dist/Server/Services/AlertEpisodeMemberService.js.map +1 -0
- package/build/dist/Server/Services/AlertEpisodeOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/AlertEpisodeOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/AlertEpisodeOwnerUserService.js +9 -0
- package/build/dist/Server/Services/AlertEpisodeOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/AlertEpisodeService.js +885 -0
- package/build/dist/Server/Services/AlertEpisodeService.js.map +1 -0
- package/build/dist/Server/Services/AlertEpisodeStateTimelineService.js +494 -0
- package/build/dist/Server/Services/AlertEpisodeStateTimelineService.js.map +1 -0
- package/build/dist/Server/Services/AlertGroupingEngineService.js +893 -0
- package/build/dist/Server/Services/AlertGroupingEngineService.js.map +1 -0
- package/build/dist/Server/Services/AlertGroupingRuleService.js +13 -0
- package/build/dist/Server/Services/AlertGroupingRuleService.js.map +1 -0
- package/build/dist/Server/Services/AlertService.js +11 -0
- package/build/dist/Server/Services/AlertService.js.map +1 -1
- package/build/dist/Server/Services/CallService.js +11 -10
- package/build/dist/Server/Services/CallService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +18 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/MailService.js +3 -0
- package/build/dist/Server/Services/MailService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyService.js +3 -0
- package/build/dist/Server/Services/OnCallDutyPolicyService.js.map +1 -1
- package/build/dist/Server/Services/SmsService.js +11 -10
- package/build/dist/Server/Services/SmsService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationSettingService.js +9 -0
- package/build/dist/Server/Services/UserNotificationSettingService.js.map +1 -1
- package/build/dist/Server/Services/WhatsAppService.js +3 -0
- package/build/dist/Server/Services/WhatsAppService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js +25 -0
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Utils/AnalyticsDatabase/Statement.js +4 -2
- package/build/dist/Server/Utils/AnalyticsDatabase/Statement.js.map +1 -1
- package/build/dist/Server/Utils/WhatsAppTemplateUtil.js +8 -0
- package/build/dist/Server/Utils/WhatsAppTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/ActionTypes.js +17 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/ActionTypes.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/AlertEpisode.js +545 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/AlertEpisode.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js +13 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js +10 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/AlertEpisode.js +651 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/AlertEpisode.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/AlertEpisode.js +100 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/AlertEpisode.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/AlertEpisode.js +70 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/AlertEpisode.js.map +1 -0
- package/build/dist/Tests/Server/Services/AlertEpisodeMemberService.test.js +165 -0
- package/build/dist/Tests/Server/Services/AlertEpisodeMemberService.test.js.map +1 -0
- package/build/dist/Tests/Server/Services/AlertEpisodeService.test.js +193 -0
- package/build/dist/Tests/Server/Services/AlertEpisodeService.test.js.map +1 -0
- package/build/dist/Tests/Server/Services/AlertGroupingEngineService.test.js +412 -0
- package/build/dist/Tests/Server/Services/AlertGroupingEngineService.test.js.map +1 -0
- package/build/dist/Tests/Server/Services/AlertGroupingRuleService.test.js +308 -0
- package/build/dist/Tests/Server/Services/AlertGroupingRuleService.test.js.map +1 -0
- package/build/dist/Tests/Server/Utils/AnalyticsDatabase/StatementGenerator.test.js +1 -1
- package/build/dist/Tests/Server/Utils/AnalyticsDatabase/StatementGenerator.test.js.map +1 -1
- package/build/dist/Tests/UI/Components/Input.test.js +1 -1
- package/build/dist/Tests/UI/Components/Input.test.js.map +1 -1
- package/build/dist/Tests/UI/Components/TextArea.test.js +2 -2
- package/build/dist/Tests/UI/Components/TextArea.test.js.map +1 -1
- package/build/dist/Types/BaseDatabase/SortOrder.js +5 -0
- package/build/dist/Types/BaseDatabase/SortOrder.js.map +1 -1
- package/build/dist/Types/Email/EmailTemplateType.js +4 -0
- package/build/dist/Types/Email/EmailTemplateType.js.map +1 -1
- package/build/dist/Types/NotificationRule/NotificationRuleType.js +1 -0
- package/build/dist/Types/NotificationRule/NotificationRuleType.js.map +1 -1
- package/build/dist/Types/NotificationSetting/NotificationSettingEventType.js +5 -0
- package/build/dist/Types/NotificationSetting/NotificationSettingEventType.js.map +1 -1
- package/build/dist/Types/Permission.js +264 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/UserNotification/UserNotificationEventType.js +1 -0
- package/build/dist/Types/UserNotification/UserNotificationEventType.js.map +1 -1
- package/build/dist/Types/WhatsApp/WhatsAppTemplates.js +12 -0
- package/build/dist/Types/WhatsApp/WhatsAppTemplates.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/EventType.js +1 -0
- package/build/dist/Types/Workspace/NotificationRules/EventType.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js +28 -3
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js.map +1 -1
- package/build/dist/UI/Components/Accordion/Accordion.js +10 -3
- package/build/dist/UI/Components/Accordion/Accordion.js.map +1 -1
- package/build/dist/UI/Components/Alerts/Alert.js +1 -1
- package/build/dist/UI/Components/Alerts/Alert.js.map +1 -1
- package/build/dist/UI/Components/Button/Button.js +8 -2
- package/build/dist/UI/Components/Button/Button.js.map +1 -1
- package/build/dist/UI/Components/CardSelect/CardSelect.js +1 -1
- package/build/dist/UI/Components/CardSelect/CardSelect.js.map +1 -1
- package/build/dist/UI/Components/Checkbox/Checkbox.js +2 -2
- package/build/dist/UI/Components/Checkbox/Checkbox.js.map +1 -1
- package/build/dist/UI/Components/ColorCircle/ColorCircle.js +1 -1
- package/build/dist/UI/Components/ColorCircle/ColorCircle.js.map +1 -1
- package/build/dist/UI/Components/ColorViewer/ColorViewer.js +12 -3
- package/build/dist/UI/Components/ColorViewer/ColorViewer.js.map +1 -1
- package/build/dist/UI/Components/CopyableButton/CopyableButton.js +12 -5
- package/build/dist/UI/Components/CopyableButton/CopyableButton.js.map +1 -1
- package/build/dist/UI/Components/Detail/Detail.js +1 -1
- package/build/dist/UI/Components/Detail/Detail.js.map +1 -1
- package/build/dist/UI/Components/Dropdown/Dropdown.js +5 -3
- package/build/dist/UI/Components/Dropdown/Dropdown.js.map +1 -1
- package/build/dist/UI/Components/Forms/Fields/FormField.js +19 -1
- package/build/dist/UI/Components/Forms/Fields/FormField.js.map +1 -1
- package/build/dist/UI/Components/FullPageModal/FullPageModal.js +24 -5
- package/build/dist/UI/Components/FullPageModal/FullPageModal.js.map +1 -1
- package/build/dist/UI/Components/Input/Input.js +3 -3
- package/build/dist/UI/Components/Input/Input.js.map +1 -1
- package/build/dist/UI/Components/Link/Link.js +1 -1
- package/build/dist/UI/Components/Link/Link.js.map +1 -1
- package/build/dist/UI/Components/Loader/Loader.js +6 -4
- package/build/dist/UI/Components/Loader/Loader.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js +56 -3
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js.map +1 -1
- package/build/dist/UI/Components/Modal/Modal.js +28 -3
- package/build/dist/UI/Components/Modal/Modal.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js +23 -1
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
- package/build/dist/UI/Components/MoreMenu/MoreMenu.js +67 -6
- package/build/dist/UI/Components/MoreMenu/MoreMenu.js.map +1 -1
- package/build/dist/UI/Components/OrderedStatesList/OrderedStatesList.js +14 -3
- package/build/dist/UI/Components/OrderedStatesList/OrderedStatesList.js.map +1 -1
- package/build/dist/UI/Components/Pagination/Pagination.js +69 -13
- package/build/dist/UI/Components/Pagination/Pagination.js.map +1 -1
- package/build/dist/UI/Components/ProgressBar/ProgressBar.js +2 -2
- package/build/dist/UI/Components/ProgressBar/ProgressBar.js.map +1 -1
- package/build/dist/UI/Components/Radio/Radio.js +8 -5
- package/build/dist/UI/Components/Radio/Radio.js.map +1 -1
- package/build/dist/UI/Components/SideMenu/CountModelSideMenuItem.js +23 -4
- package/build/dist/UI/Components/SideMenu/CountModelSideMenuItem.js.map +1 -1
- package/build/dist/UI/Components/StatusBubble/StatusBubble.js +2 -2
- package/build/dist/UI/Components/StatusBubble/StatusBubble.js.map +1 -1
- package/build/dist/UI/Components/Table/TableHeader.js +12 -4
- package/build/dist/UI/Components/Table/TableHeader.js.map +1 -1
- package/build/dist/UI/Components/Tabs/Tab.js +8 -1
- package/build/dist/UI/Components/Tabs/Tab.js.map +1 -1
- package/build/dist/UI/Components/Tabs/Tabs.js +4 -3
- package/build/dist/UI/Components/Tabs/Tabs.js.map +1 -1
- package/build/dist/UI/Components/TextArea/TextArea.js +3 -3
- package/build/dist/UI/Components/TextArea/TextArea.js.map +1 -1
- package/build/dist/UI/Components/Toggle/Toggle.js +7 -4
- package/build/dist/UI/Components/Toggle/Toggle.js.map +1 -1
- package/build/dist/UI/Components/Tooltip/Tooltip.js +4 -1
- package/build/dist/UI/Components/Tooltip/Tooltip.js.map +1 -1
- package/build/dist/UI/Components/TopAlert/TopAlert.js +1 -1
- package/build/dist/UI/Components/TopAlert/TopAlert.js.map +1 -1
- package/package.json +2 -1
|
@@ -189,6 +189,15 @@ import AlertSeverity from "./AlertSeverity";
|
|
|
189
189
|
import AlertNoteTemplate from "./AlertNoteTemplate";
|
|
190
190
|
import AlertFeed from "./AlertFeed";
|
|
191
191
|
|
|
192
|
+
import AlertEpisode from "./AlertEpisode";
|
|
193
|
+
import AlertEpisodeMember from "./AlertEpisodeMember";
|
|
194
|
+
import AlertEpisodeStateTimeline from "./AlertEpisodeStateTimeline";
|
|
195
|
+
import AlertEpisodeOwnerUser from "./AlertEpisodeOwnerUser";
|
|
196
|
+
import AlertEpisodeOwnerTeam from "./AlertEpisodeOwnerTeam";
|
|
197
|
+
import AlertEpisodeInternalNote from "./AlertEpisodeInternalNote";
|
|
198
|
+
import AlertEpisodeFeed from "./AlertEpisodeFeed";
|
|
199
|
+
import AlertGroupingRule from "./AlertGroupingRule";
|
|
200
|
+
|
|
192
201
|
import TableView from "./TableView";
|
|
193
202
|
import Dashboard from "./Dashboard";
|
|
194
203
|
|
|
@@ -273,6 +282,15 @@ const AllModelTypes: Array<{
|
|
|
273
282
|
AlertSeverity,
|
|
274
283
|
AlertNoteTemplate,
|
|
275
284
|
|
|
285
|
+
AlertEpisode,
|
|
286
|
+
AlertEpisodeMember,
|
|
287
|
+
AlertEpisodeStateTimeline,
|
|
288
|
+
AlertEpisodeOwnerUser,
|
|
289
|
+
AlertEpisodeOwnerTeam,
|
|
290
|
+
AlertEpisodeInternalNote,
|
|
291
|
+
AlertEpisodeFeed,
|
|
292
|
+
AlertGroupingRule,
|
|
293
|
+
|
|
276
294
|
MonitorStatusTimeline,
|
|
277
295
|
|
|
278
296
|
File,
|
|
@@ -25,6 +25,7 @@ import Permission from "../../Types/Permission";
|
|
|
25
25
|
import UserNotificationEventType from "../../Types/UserNotification/UserNotificationEventType";
|
|
26
26
|
import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm";
|
|
27
27
|
import Alert from "./Alert";
|
|
28
|
+
import AlertEpisode from "./AlertEpisode";
|
|
28
29
|
import EnableWorkflow from "../../Types/Database/EnableWorkflow";
|
|
29
30
|
|
|
30
31
|
@TableBillingAccessControl({
|
|
@@ -342,6 +343,75 @@ export default class OnCallDutyPolicyExecutionLog extends BaseModel {
|
|
|
342
343
|
})
|
|
343
344
|
public triggeredByAlertId?: ObjectID = undefined;
|
|
344
345
|
|
|
346
|
+
@ColumnAccessControl({
|
|
347
|
+
create: [
|
|
348
|
+
Permission.ProjectOwner,
|
|
349
|
+
Permission.ProjectAdmin,
|
|
350
|
+
Permission.ProjectMember,
|
|
351
|
+
Permission.CreateProjectOnCallDutyPolicyExecutionLog,
|
|
352
|
+
],
|
|
353
|
+
read: [
|
|
354
|
+
Permission.ProjectOwner,
|
|
355
|
+
Permission.ProjectAdmin,
|
|
356
|
+
Permission.ProjectMember,
|
|
357
|
+
Permission.ReadProjectOnCallDutyPolicyExecutionLog,
|
|
358
|
+
],
|
|
359
|
+
update: [],
|
|
360
|
+
})
|
|
361
|
+
@TableColumn({
|
|
362
|
+
manyToOneRelationColumn: "triggeredByAlertEpisodeId",
|
|
363
|
+
type: TableColumnType.Entity,
|
|
364
|
+
modelType: AlertEpisode,
|
|
365
|
+
title: "Triggered By Alert Episode",
|
|
366
|
+
description:
|
|
367
|
+
"Relation to the alert episode which triggered this on-call escalation policy.",
|
|
368
|
+
})
|
|
369
|
+
@ManyToOne(
|
|
370
|
+
() => {
|
|
371
|
+
return AlertEpisode;
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
eager: false,
|
|
375
|
+
nullable: true,
|
|
376
|
+
onDelete: "CASCADE",
|
|
377
|
+
orphanedRowAction: "nullify",
|
|
378
|
+
},
|
|
379
|
+
)
|
|
380
|
+
@JoinColumn({ name: "triggeredByAlertEpisodeId" })
|
|
381
|
+
public triggeredByAlertEpisode?: AlertEpisode = undefined;
|
|
382
|
+
|
|
383
|
+
@ColumnAccessControl({
|
|
384
|
+
create: [
|
|
385
|
+
Permission.ProjectOwner,
|
|
386
|
+
Permission.ProjectAdmin,
|
|
387
|
+
Permission.ProjectMember,
|
|
388
|
+
Permission.CreateProjectOnCallDutyPolicyExecutionLog,
|
|
389
|
+
],
|
|
390
|
+
read: [
|
|
391
|
+
Permission.ProjectOwner,
|
|
392
|
+
Permission.ProjectAdmin,
|
|
393
|
+
Permission.ProjectMember,
|
|
394
|
+
Permission.ReadProjectOnCallDutyPolicyExecutionLog,
|
|
395
|
+
],
|
|
396
|
+
update: [],
|
|
397
|
+
})
|
|
398
|
+
@Index()
|
|
399
|
+
@TableColumn({
|
|
400
|
+
type: TableColumnType.ObjectID,
|
|
401
|
+
required: false,
|
|
402
|
+
canReadOnRelationQuery: true,
|
|
403
|
+
title: "Triggered By Alert Episode ID",
|
|
404
|
+
description:
|
|
405
|
+
"ID of the alert episode which triggered this on-call escalation policy.",
|
|
406
|
+
example: "a7b8c9d0-e1f2-3456-0123-567890123456",
|
|
407
|
+
})
|
|
408
|
+
@Column({
|
|
409
|
+
type: ColumnType.ObjectID,
|
|
410
|
+
nullable: true,
|
|
411
|
+
transformer: ObjectID.getDatabaseTransformer(),
|
|
412
|
+
})
|
|
413
|
+
public triggeredByAlertEpisodeId?: ObjectID = undefined;
|
|
414
|
+
|
|
345
415
|
@ColumnAccessControl({
|
|
346
416
|
create: [
|
|
347
417
|
Permission.ProjectOwner,
|
|
@@ -495,6 +495,7 @@ export default class StatusPageDomain extends BaseModel {
|
|
|
495
495
|
@TableColumn({
|
|
496
496
|
isDefaultValueColumn: true,
|
|
497
497
|
required: true,
|
|
498
|
+
computed: true,
|
|
498
499
|
type: TableColumnType.Boolean,
|
|
499
500
|
title: "SSL Ordered",
|
|
500
501
|
description: "Is SSL ordered?",
|
|
@@ -526,6 +527,7 @@ export default class StatusPageDomain extends BaseModel {
|
|
|
526
527
|
@TableColumn({
|
|
527
528
|
isDefaultValueColumn: true,
|
|
528
529
|
required: true,
|
|
530
|
+
computed: true,
|
|
529
531
|
type: TableColumnType.Boolean,
|
|
530
532
|
title: "SSL Provisioned",
|
|
531
533
|
description: "Is SSL provisioned?",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Project from "./Project";
|
|
2
2
|
import Incident from "./Incident";
|
|
3
3
|
import Alert from "./Alert";
|
|
4
|
+
import AlertEpisode from "./AlertEpisode";
|
|
4
5
|
import ScheduledMaintenance from "./ScheduledMaintenance";
|
|
5
6
|
import StatusPage from "./StatusPage";
|
|
6
7
|
import StatusPageAnnouncement from "./StatusPageAnnouncement";
|
|
@@ -482,6 +483,62 @@ export default class WorkspaceNotificationLog extends BaseModel {
|
|
|
482
483
|
})
|
|
483
484
|
public alertId?: ObjectID = undefined;
|
|
484
485
|
|
|
486
|
+
@ColumnAccessControl({
|
|
487
|
+
create: [],
|
|
488
|
+
read: [
|
|
489
|
+
Permission.ProjectOwner,
|
|
490
|
+
Permission.ProjectAdmin,
|
|
491
|
+
Permission.ProjectMember,
|
|
492
|
+
Permission.ReadPushLog,
|
|
493
|
+
],
|
|
494
|
+
update: [],
|
|
495
|
+
})
|
|
496
|
+
@TableColumn({
|
|
497
|
+
manyToOneRelationColumn: "alertEpisodeId",
|
|
498
|
+
type: TableColumnType.Entity,
|
|
499
|
+
modelType: AlertEpisode,
|
|
500
|
+
title: "Alert Episode",
|
|
501
|
+
description: "Alert Episode associated with this message (if any)",
|
|
502
|
+
})
|
|
503
|
+
@ManyToOne(
|
|
504
|
+
() => {
|
|
505
|
+
return AlertEpisode;
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
eager: false,
|
|
509
|
+
nullable: true,
|
|
510
|
+
onDelete: "CASCADE",
|
|
511
|
+
orphanedRowAction: "nullify",
|
|
512
|
+
},
|
|
513
|
+
)
|
|
514
|
+
@JoinColumn({ name: "alertEpisodeId" })
|
|
515
|
+
public alertEpisode?: AlertEpisode = undefined;
|
|
516
|
+
|
|
517
|
+
@ColumnAccessControl({
|
|
518
|
+
create: [],
|
|
519
|
+
read: [
|
|
520
|
+
Permission.ProjectOwner,
|
|
521
|
+
Permission.ProjectAdmin,
|
|
522
|
+
Permission.ProjectMember,
|
|
523
|
+
Permission.ReadPushLog,
|
|
524
|
+
],
|
|
525
|
+
update: [],
|
|
526
|
+
})
|
|
527
|
+
@Index()
|
|
528
|
+
@TableColumn({
|
|
529
|
+
type: TableColumnType.ObjectID,
|
|
530
|
+
required: false,
|
|
531
|
+
canReadOnRelationQuery: true,
|
|
532
|
+
title: "Alert Episode ID",
|
|
533
|
+
description: "ID of Alert Episode associated with this message (if any)",
|
|
534
|
+
})
|
|
535
|
+
@Column({
|
|
536
|
+
type: ColumnType.ObjectID,
|
|
537
|
+
nullable: true,
|
|
538
|
+
transformer: ObjectID.getDatabaseTransformer(),
|
|
539
|
+
})
|
|
540
|
+
public alertEpisodeId?: ObjectID = undefined;
|
|
541
|
+
|
|
485
542
|
@ColumnAccessControl({
|
|
486
543
|
create: [],
|
|
487
544
|
read: [
|
package/Server/API/SlackAPI.ts
CHANGED
|
@@ -31,6 +31,7 @@ import SlackAuthAction, {
|
|
|
31
31
|
} from "../Utils/Workspace/Slack/Actions/Auth";
|
|
32
32
|
import SlackIncidentActions from "../Utils/Workspace/Slack/Actions/Incident";
|
|
33
33
|
import SlackAlertActions from "../Utils/Workspace/Slack/Actions/Alert";
|
|
34
|
+
import SlackAlertEpisodeActions from "../Utils/Workspace/Slack/Actions/AlertEpisode";
|
|
34
35
|
import SlackScheduledMaintenanceActions from "../Utils/Workspace/Slack/Actions/ScheduledMaintenance";
|
|
35
36
|
import LIMIT_MAX from "../../Types/Database/LimitMax";
|
|
36
37
|
import SlackMonitorActions from "../Utils/Workspace/Slack/Actions/Monitor";
|
|
@@ -633,6 +634,19 @@ export default class SlackAPI {
|
|
|
633
634
|
});
|
|
634
635
|
}
|
|
635
636
|
|
|
637
|
+
if (
|
|
638
|
+
SlackAlertEpisodeActions.isAlertEpisodeAction({
|
|
639
|
+
actionType: action.actionType,
|
|
640
|
+
})
|
|
641
|
+
) {
|
|
642
|
+
return SlackAlertEpisodeActions.handleAlertEpisodeAction({
|
|
643
|
+
slackRequest: authResult,
|
|
644
|
+
action: action,
|
|
645
|
+
req: req,
|
|
646
|
+
res: res,
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
|
|
636
650
|
if (
|
|
637
651
|
SlackMonitorActions.isMonitorAction({
|
|
638
652
|
actionType: action.actionType,
|
|
@@ -816,6 +830,13 @@ export default class SlackAPI {
|
|
|
816
830
|
logger.error(err);
|
|
817
831
|
}
|
|
818
832
|
|
|
833
|
+
try {
|
|
834
|
+
await SlackAlertEpisodeActions.handleEmojiReaction(reactionData);
|
|
835
|
+
} catch (err) {
|
|
836
|
+
logger.error("Error handling alert episode emoji reaction:");
|
|
837
|
+
logger.error(err);
|
|
838
|
+
}
|
|
839
|
+
|
|
819
840
|
try {
|
|
820
841
|
await SlackScheduledMaintenanceActions.handleEmojiReaction(
|
|
821
842
|
reactionData,
|