@oneuptime/common 8.0.5237 → 8.0.5283
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/Index.ts +4 -2
- package/Models/DatabaseModels/OnCallDutyPolicy.ts +7 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.ts +7 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.ts +7 -0
- package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.ts +7 -0
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.ts +5 -3
- package/Models/DatabaseModels/Project.ts +4 -2
- package/Models/DatabaseModels/ProjectSmtpConfig.ts +4 -2
- package/Models/DatabaseModels/StatusPageDomain.ts +6 -4
- package/Models/DatabaseModels/User.ts +0 -46
- package/Models/DatabaseModels/{UserTwoFactorAuth.ts → UserTotpAuth.ts} +16 -16
- package/Models/DatabaseModels/UserWebAuthn.ts +244 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.ts +21 -0
- package/Server/API/BaseAPI.ts +4 -2
- package/Server/API/GlobalConfigAPI.ts +16 -12
- package/Server/API/MicrosoftTeamsAPI.ts +1240 -0
- package/Server/API/ProjectAPI.ts +4 -2
- package/Server/API/ResellerPlanAPI.ts +4 -2
- package/Server/API/SlackAPI.ts +54 -48
- package/Server/API/StatusPageAPI.ts +5 -3
- package/Server/API/UserOnCallLogTimelineAPI.ts +5 -3
- package/Server/API/{UserTwoFactorAuthAPI.ts → UserTotpAuthAPI.ts} +20 -20
- package/Server/API/UserWebAuthnAPI.ts +103 -0
- package/Server/EnvironmentConfig.ts +6 -0
- package/Server/Images/MicrosoftTeams/color.png +0 -0
- package/Server/Images/MicrosoftTeams/outline.png +0 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1753131488925-AddEnableCustomSubscriberEmailNotificationFooterText.ts +4 -2
- package/Server/Infrastructure/Postgres/SchemaMigrations/1759175457008-MigrationName.ts +27 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1759232954703-MigrationName.ts +25 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1759234532998-MigrationName.ts +15 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +6 -0
- package/Server/Infrastructure/Queue.ts +4 -2
- package/Server/Infrastructure/SocketIO.ts +4 -2
- package/Server/Middleware/ProjectAuthorization.ts +5 -3
- package/Server/Middleware/SlackAuthorization.ts +2 -2
- package/Server/Middleware/TelemetryIngest.ts +12 -6
- package/Server/Services/AlertStateTimelineService.ts +34 -18
- package/Server/Services/BillingInvoiceService.ts +8 -4
- package/Server/Services/BillingService.ts +13 -9
- package/Server/Services/DatabaseService.ts +42 -30
- package/Server/Services/IncidentService.ts +5 -3
- package/Server/Services/IncidentStateTimelineService.ts +34 -18
- package/Server/Services/Index.ts +4 -2
- package/Server/Services/MonitorStatusTimelineService.ts +34 -18
- package/Server/Services/OnCallDutyPolicyScheduleService.ts +4 -2
- package/Server/Services/ProjectService.ts +6 -4
- package/Server/Services/ScheduledMaintenanceStateTimelineService.ts +26 -14
- package/Server/Services/StatusPageService.ts +4 -2
- package/Server/Services/UserService.ts +21 -5
- package/Server/Services/{UserTwoFactorAuthService.ts → UserTotpAuthService.ts} +26 -7
- package/Server/Services/UserWebAuthnService.ts +419 -0
- package/Server/Services/WorkspaceNotificationRuleService.ts +257 -77
- package/Server/Services/WorkspaceProjectAuthTokenService.ts +2 -2
- package/Server/Types/AnalyticsDatabase/ModelPermission.ts +9 -5
- package/Server/Types/Database/Permissions/BasePermission.ts +4 -2
- package/Server/Types/Database/Permissions/TenantPermission.ts +5 -3
- package/Server/Types/Database/QueryHelper.ts +4 -2
- package/Server/Types/Markdown.ts +6 -4
- package/Server/Types/Workflow/ComponentCode.ts +4 -2
- package/Server/Types/Workflow/Components/Conditions/IfElse.ts +5 -3
- package/Server/Types/Workflow/Components/JavaScript.ts +5 -3
- package/Server/Types/Workflow/TriggerCode.ts +4 -2
- package/Server/Utils/AnalyticsDatabase/Statement.ts +4 -2
- package/Server/Utils/AnalyticsDatabase/StatementGenerator.ts +21 -11
- package/Server/Utils/Browser.ts +6 -4
- package/Server/Utils/CodeRepository/GitHub/GitHub.ts +4 -2
- package/Server/Utils/LocalFile.ts +14 -0
- package/Server/Utils/Monitor/MonitorResource.ts +17 -9
- package/Server/Utils/Realtime.ts +4 -2
- package/Server/Utils/StartServer.ts +1 -1
- package/Server/Utils/Telemetry.ts +15 -9
- package/Server/Utils/{TwoFactorAuth.ts → TotpAuth.ts} +2 -2
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/ActionTypes.ts +75 -16
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/Alert.ts +649 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/Auth.ts +237 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/Incident.ts +1321 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/Monitor.ts +155 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/OnCallDutyPolicy.ts +119 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/ScheduledMaintenance.ts +959 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Messages/Alert.ts +16 -14
- package/Server/Utils/Workspace/MicrosoftTeams/Messages/Incident.ts +17 -14
- package/Server/Utils/Workspace/MicrosoftTeams/Messages/ScheduledMaintenance.ts +18 -13
- package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.ts +2547 -14
- package/Server/Utils/Workspace/Slack/Actions/Alert.ts +4 -2
- package/Server/Utils/Workspace/Slack/Actions/Auth.ts +4 -2
- package/Server/Utils/Workspace/Slack/Actions/Incident.ts +14 -10
- package/Server/Utils/Workspace/Slack/Actions/Monitor.ts +4 -2
- package/Server/Utils/Workspace/Slack/Actions/OnCallDutyPolicy.ts +4 -2
- package/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.ts +14 -10
- package/Server/Utils/Workspace/Slack/Messages/Alert.ts +9 -7
- package/Server/Utils/Workspace/Slack/Messages/Incident.ts +9 -7
- package/Server/Utils/Workspace/Slack/Messages/Monitor.ts +9 -7
- package/Server/Utils/Workspace/Slack/Messages/ScheduledMaintenance.ts +9 -7
- package/Server/Utils/Workspace/Slack/Slack.ts +6 -0
- package/Server/Utils/Workspace/Workspace.ts +13 -10
- package/Server/Utils/Workspace/WorkspaceBase.ts +9 -0
- package/Tests/Server/API/BaseAPI.test.ts +64 -52
- package/Tests/Server/Services/BillingService.test.ts +4 -4
- package/Tests/Server/Services/TeamMemberService.test.ts +20 -12
- package/Tests/Server/TestingUtils/Services/BillingServiceHelper.ts +2 -2
- package/Tests/Types/OnCallDutyPolicy/LayerUtil.test.ts +8 -4
- package/Tests/UI/Components/DictionaryOfStrings.test.tsx +4 -2
- package/Tests/UI/Components/FilePicker.test.tsx +2 -2
- package/Tests/Utils/API.test.ts +9 -8
- package/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.ts +5 -3
- package/Types/Html.ts +5 -3
- package/Types/JSONFunctions.ts +5 -5
- package/Types/Metrics/MetricsQuery.ts +6 -4
- package/Types/Monitor/MonitorType.ts +8 -6
- package/Types/OnCallDutyPolicy/Layer.ts +29 -17
- package/Types/Phone.ts +5 -3
- package/Types/Workspace/NotificationRules/BaseNotificationRule.ts +1 -0
- package/Types/Workspace/NotificationRules/CreateChannelNotificationRule.ts +5 -2
- package/Types/Workspace/WorkspaceMessagePayload.ts +1 -0
- package/Types/Workspace/WorkspaceType.ts +13 -0
- package/UI/Components/Charts/Utils/DataPoint.ts +8 -6
- package/UI/Components/Detail/Detail.tsx +4 -1
- package/UI/Components/FilePicker/FilePicker.tsx +1 -1
- package/UI/Components/Forms/Types/Field.ts +4 -2
- package/UI/Components/Image/Image.tsx +1 -1
- package/UI/Components/JSONTable/JSONTable.tsx +4 -2
- package/UI/Components/ModelTable/BaseModelTable.tsx +5 -3
- package/UI/Components/SideMenu/SideMenu.tsx +4 -2
- package/UI/Components/SideMenu/SideMenuItem.tsx +69 -45
- package/UI/Config.ts +3 -0
- package/UI/Utils/API/API.ts +5 -3
- package/UI/Utils/Countries.ts +5 -3
- package/UI/Utils/Login.ts +6 -1
- package/Utils/Base64.ts +13 -0
- package/Utils/Schema/ModelSchema.ts +4 -2
- package/build/dist/Models/DatabaseModels/Index.js +4 -2
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicy.js +7 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicy.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +7 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicySchedule.js +7 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicySchedule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +7 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +5 -3
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Project.js +4 -2
- package/build/dist/Models/DatabaseModels/Project.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ProjectSmtpConfig.js +4 -2
- package/build/dist/Models/DatabaseModels/ProjectSmtpConfig.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPageDomain.js +6 -4
- package/build/dist/Models/DatabaseModels/StatusPageDomain.js.map +1 -1
- package/build/dist/Models/DatabaseModels/User.js +0 -49
- package/build/dist/Models/DatabaseModels/User.js.map +1 -1
- package/build/dist/Models/DatabaseModels/{UserTwoFactorAuth.js → UserTotpAuth.js} +27 -27
- package/build/dist/Models/DatabaseModels/UserTotpAuth.js.map +1 -0
- package/build/dist/Models/DatabaseModels/UserWebAuthn.js +270 -0
- package/build/dist/Models/DatabaseModels/UserWebAuthn.js.map +1 -0
- package/build/dist/Models/DatabaseModels/WorkspaceProjectAuthToken.js.map +1 -1
- package/build/dist/Server/API/BaseAPI.js +4 -2
- package/build/dist/Server/API/BaseAPI.js.map +1 -1
- package/build/dist/Server/API/GlobalConfigAPI.js +16 -12
- package/build/dist/Server/API/GlobalConfigAPI.js.map +1 -1
- package/build/dist/Server/API/MicrosoftTeamsAPI.js +771 -0
- package/build/dist/Server/API/MicrosoftTeamsAPI.js.map +1 -0
- package/build/dist/Server/API/ProjectAPI.js +4 -2
- package/build/dist/Server/API/ProjectAPI.js.map +1 -1
- package/build/dist/Server/API/ResellerPlanAPI.js +4 -2
- package/build/dist/Server/API/ResellerPlanAPI.js.map +1 -1
- package/build/dist/Server/API/SlackAPI.js +53 -47
- package/build/dist/Server/API/SlackAPI.js.map +1 -1
- package/build/dist/Server/API/StatusPageAPI.js +5 -3
- package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
- package/build/dist/Server/API/UserOnCallLogTimelineAPI.js +5 -3
- package/build/dist/Server/API/UserOnCallLogTimelineAPI.js.map +1 -1
- package/build/dist/Server/API/{UserTwoFactorAuthAPI.js → UserTotpAuthAPI.js} +16 -16
- package/build/dist/Server/API/UserTotpAuthAPI.js.map +1 -0
- package/build/dist/Server/API/UserWebAuthnAPI.js +65 -0
- package/build/dist/Server/API/UserWebAuthnAPI.js.map +1 -0
- package/build/dist/Server/EnvironmentConfig.js +3 -0
- package/build/dist/Server/EnvironmentConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1753131488925-AddEnableCustomSubscriberEmailNotificationFooterText.js +4 -2
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1753131488925-AddEnableCustomSubscriberEmailNotificationFooterText.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1759175457008-MigrationName.js +16 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1759175457008-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1759232954703-MigrationName.js +16 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1759232954703-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1759234532998-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1759234532998-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +6 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Infrastructure/Queue.js +4 -2
- package/build/dist/Server/Infrastructure/Queue.js.map +1 -1
- package/build/dist/Server/Infrastructure/SocketIO.js +4 -2
- package/build/dist/Server/Infrastructure/SocketIO.js.map +1 -1
- package/build/dist/Server/Middleware/ProjectAuthorization.js +5 -3
- package/build/dist/Server/Middleware/ProjectAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/SlackAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/TelemetryIngest.js +12 -6
- package/build/dist/Server/Middleware/TelemetryIngest.js.map +1 -1
- package/build/dist/Server/Services/AlertStateTimelineService.js +34 -18
- package/build/dist/Server/Services/AlertStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/BillingInvoiceService.js +8 -4
- package/build/dist/Server/Services/BillingInvoiceService.js.map +1 -1
- package/build/dist/Server/Services/BillingService.js +13 -9
- package/build/dist/Server/Services/BillingService.js.map +1 -1
- package/build/dist/Server/Services/DatabaseService.js +40 -28
- package/build/dist/Server/Services/DatabaseService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +5 -3
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/IncidentStateTimelineService.js +34 -18
- package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +4 -2
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/MonitorStatusTimelineService.js +34 -18
- package/build/dist/Server/Services/MonitorStatusTimelineService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js +4 -2
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js.map +1 -1
- package/build/dist/Server/Services/ProjectService.js +6 -4
- package/build/dist/Server/Services/ProjectService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js +26 -14
- package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageService.js +4 -2
- package/build/dist/Server/Services/StatusPageService.js.map +1 -1
- package/build/dist/Server/Services/UserService.js +16 -3
- package/build/dist/Server/Services/UserService.js.map +1 -1
- package/build/dist/Server/Services/{UserTwoFactorAuthService.js → UserTotpAuthService.js} +22 -8
- package/build/dist/Server/Services/UserTotpAuthService.js.map +1 -0
- package/build/dist/Server/Services/UserWebAuthnService.js +365 -0
- package/build/dist/Server/Services/UserWebAuthnService.js.map +1 -0
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js +142 -51
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js +9 -5
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/BasePermission.js +4 -2
- package/build/dist/Server/Types/Database/Permissions/BasePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.js +5 -3
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/QueryHelper.js +4 -2
- package/build/dist/Server/Types/Database/QueryHelper.js.map +1 -1
- package/build/dist/Server/Types/Markdown.js +6 -4
- package/build/dist/Server/Types/Markdown.js.map +1 -1
- package/build/dist/Server/Types/Workflow/ComponentCode.js +4 -2
- package/build/dist/Server/Types/Workflow/ComponentCode.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js +5 -3
- package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/JavaScript.js +5 -3
- package/build/dist/Server/Types/Workflow/Components/JavaScript.js.map +1 -1
- package/build/dist/Server/Types/Workflow/TriggerCode.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/AnalyticsDatabase/StatementGenerator.js +21 -11
- package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js.map +1 -1
- package/build/dist/Server/Utils/Browser.js +6 -4
- package/build/dist/Server/Utils/Browser.js.map +1 -1
- package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js +4 -2
- package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js.map +1 -1
- package/build/dist/Server/Utils/LocalFile.js +16 -0
- package/build/dist/Server/Utils/LocalFile.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorResource.js +17 -9
- package/build/dist/Server/Utils/Monitor/MonitorResource.js.map +1 -1
- package/build/dist/Server/Utils/Realtime.js +4 -2
- package/build/dist/Server/Utils/Realtime.js.map +1 -1
- package/build/dist/Server/Utils/StartServer.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry.js +6 -4
- package/build/dist/Server/Utils/Telemetry.js.map +1 -1
- package/build/dist/Server/Utils/{TwoFactorAuth.js → TotpAuth.js} +8 -8
- package/build/dist/Server/Utils/TotpAuth.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/ActionTypes.js +86 -36
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/ActionTypes.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Alert.js +531 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Alert.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Auth.js +206 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Auth.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Incident.js +1102 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Incident.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Monitor.js +136 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Monitor.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/OnCallDutyPolicy.js +107 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/OnCallDutyPolicy.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/ScheduledMaintenance.js +795 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/ScheduledMaintenance.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Alert.js +16 -14
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Incident.js +16 -14
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/ScheduledMaintenance.js +15 -13
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js +1982 -13
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js +4 -2
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Auth.js +4 -2
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Auth.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js +14 -10
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Monitor.js +4 -2
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Monitor.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/OnCallDutyPolicy.js +4 -2
- package/build/dist/Server/Utils/Workspace/Slack/Actions/OnCallDutyPolicy.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.js +14 -10
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Alert.js +9 -7
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Incident.js +9 -7
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Monitor.js +9 -7
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Monitor.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/ScheduledMaintenance.js +9 -7
- package/build/dist/Server/Utils/Workspace/Slack/Messages/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Slack.js +5 -0
- package/build/dist/Server/Utils/Workspace/Slack/Slack.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Workspace.js +12 -10
- package/build/dist/Server/Utils/Workspace/Workspace.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/WorkspaceBase.js.map +1 -1
- package/build/dist/Tests/Server/API/BaseAPI.test.js +59 -47
- package/build/dist/Tests/Server/API/BaseAPI.test.js.map +1 -1
- package/build/dist/Tests/Server/Services/BillingService.test.js +4 -4
- package/build/dist/Tests/Server/Services/BillingService.test.js.map +1 -1
- package/build/dist/Tests/Server/Services/TeamMemberService.test.js +20 -12
- package/build/dist/Tests/Server/Services/TeamMemberService.test.js.map +1 -1
- package/build/dist/Tests/Server/TestingUtils/Services/BillingServiceHelper.js +2 -2
- package/build/dist/Tests/Server/TestingUtils/Services/BillingServiceHelper.js.map +1 -1
- package/build/dist/Tests/Types/OnCallDutyPolicy/LayerUtil.test.js +8 -4
- package/build/dist/Tests/Types/OnCallDutyPolicy/LayerUtil.test.js.map +1 -1
- package/build/dist/Tests/UI/Components/DictionaryOfStrings.test.js +4 -2
- package/build/dist/Tests/UI/Components/DictionaryOfStrings.test.js.map +1 -1
- package/build/dist/Tests/UI/Components/FilePicker.test.js +2 -2
- package/build/dist/Tests/UI/Components/FilePicker.test.js.map +1 -1
- package/build/dist/Tests/Utils/API.test.js +8 -7
- package/build/dist/Tests/Utils/API.test.js.map +1 -1
- package/build/dist/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js +5 -3
- package/build/dist/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js.map +1 -1
- package/build/dist/Types/Html.js +5 -3
- package/build/dist/Types/Html.js.map +1 -1
- package/build/dist/Types/JSONFunctions.js +5 -5
- package/build/dist/Types/JSONFunctions.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorType.js +8 -6
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- package/build/dist/Types/OnCallDutyPolicy/Layer.js +29 -17
- package/build/dist/Types/OnCallDutyPolicy/Layer.js.map +1 -1
- package/build/dist/Types/Phone.js +5 -3
- package/build/dist/Types/Phone.js.map +1 -1
- package/build/dist/Types/Workspace/WorkspaceType.js +9 -0
- package/build/dist/Types/Workspace/WorkspaceType.js.map +1 -1
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js +8 -6
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js.map +1 -1
- package/build/dist/UI/Components/Detail/Detail.js +4 -1
- package/build/dist/UI/Components/Detail/Detail.js.map +1 -1
- package/build/dist/UI/Components/FilePicker/FilePicker.js +1 -1
- package/build/dist/UI/Components/FilePicker/FilePicker.js.map +1 -1
- package/build/dist/UI/Components/Image/Image.js +1 -1
- package/build/dist/UI/Components/Image/Image.js.map +1 -1
- package/build/dist/UI/Components/JSONTable/JSONTable.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
- package/build/dist/UI/Components/SideMenu/SideMenu.js +4 -2
- package/build/dist/UI/Components/SideMenu/SideMenu.js.map +1 -1
- package/build/dist/UI/Components/SideMenu/SideMenuItem.js +62 -38
- package/build/dist/UI/Components/SideMenu/SideMenuItem.js.map +1 -1
- package/build/dist/UI/Config.js +1 -0
- package/build/dist/UI/Config.js.map +1 -1
- package/build/dist/UI/Utils/API/API.js +5 -3
- package/build/dist/UI/Utils/API/API.js.map +1 -1
- package/build/dist/UI/Utils/Countries.js.map +1 -1
- package/build/dist/UI/Utils/Login.js +6 -1
- package/build/dist/UI/Utils/Login.js.map +1 -1
- package/build/dist/Utils/Base64.js +12 -0
- package/build/dist/Utils/Base64.js.map +1 -0
- package/build/dist/Utils/Schema/ModelSchema.js +4 -2
- package/build/dist/Utils/Schema/ModelSchema.js.map +1 -1
- package/package.json +5 -1
- package/build/dist/Models/DatabaseModels/UserTwoFactorAuth.js.map +0 -1
- package/build/dist/Server/API/UserTwoFactorAuthAPI.js.map +0 -1
- package/build/dist/Server/Services/UserTwoFactorAuthService.js.map +0 -1
- package/build/dist/Server/Utils/TwoFactorAuth.js.map +0 -1
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
WorkspacePayloadDivider,
|
|
8
8
|
} from "../../../../../Types/Workspace/WorkspaceMessagePayload";
|
|
9
9
|
import AlertService from "../../../../Services/AlertService";
|
|
10
|
-
import
|
|
10
|
+
import { MicrosoftTeamsAlertActionType } from "../../../../Utils/Workspace/MicrosoftTeams/Actions/ActionTypes";
|
|
11
11
|
import CaptureSpan from "../../../Telemetry/CaptureSpan";
|
|
12
12
|
|
|
13
13
|
export default class MicrosoftTeamsAlertMessages {
|
|
@@ -32,13 +32,15 @@ export default class MicrosoftTeamsAlertMessages {
|
|
|
32
32
|
|
|
33
33
|
blockMicrosoftTeams.push(dividerBlock);
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
/*
|
|
36
|
+
* now add buttons.
|
|
37
|
+
* View data.
|
|
38
|
+
* Execute On Call
|
|
39
|
+
* Acknowledge alert
|
|
40
|
+
* Resolve data.
|
|
41
|
+
* Change Alert State.
|
|
42
|
+
* Add Note.
|
|
43
|
+
*/
|
|
42
44
|
|
|
43
45
|
const buttons: Array<WorkspaceMessagePayloadButton> = [];
|
|
44
46
|
|
|
@@ -51,7 +53,7 @@ export default class MicrosoftTeamsAlertMessages {
|
|
|
51
53
|
data.alertId!,
|
|
52
54
|
),
|
|
53
55
|
value: data.alertId?.toString() || "",
|
|
54
|
-
actionId:
|
|
56
|
+
actionId: MicrosoftTeamsAlertActionType.ViewAlert,
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
buttons.push(viewAlertButton);
|
|
@@ -61,7 +63,7 @@ export default class MicrosoftTeamsAlertMessages {
|
|
|
61
63
|
_type: "WorkspaceMessagePayloadButton",
|
|
62
64
|
title: "📞 Execute On Call",
|
|
63
65
|
value: data.alertId?.toString() || "",
|
|
64
|
-
actionId:
|
|
66
|
+
actionId: MicrosoftTeamsAlertActionType.ExecuteAlertOnCallPolicy,
|
|
65
67
|
};
|
|
66
68
|
|
|
67
69
|
buttons.push(executeOnCallButton);
|
|
@@ -71,7 +73,7 @@ export default class MicrosoftTeamsAlertMessages {
|
|
|
71
73
|
_type: "WorkspaceMessagePayloadButton",
|
|
72
74
|
title: "👀 Acknowledge Alert",
|
|
73
75
|
value: data.alertId?.toString() || "",
|
|
74
|
-
actionId:
|
|
76
|
+
actionId: MicrosoftTeamsAlertActionType.AckAlert,
|
|
75
77
|
};
|
|
76
78
|
|
|
77
79
|
buttons.push(acknowledgeAlertButton);
|
|
@@ -81,7 +83,7 @@ export default class MicrosoftTeamsAlertMessages {
|
|
|
81
83
|
_type: "WorkspaceMessagePayloadButton",
|
|
82
84
|
title: "✅ Resolve Alert",
|
|
83
85
|
value: data.alertId?.toString() || "",
|
|
84
|
-
actionId:
|
|
86
|
+
actionId: MicrosoftTeamsAlertActionType.ResolveAlert,
|
|
85
87
|
};
|
|
86
88
|
|
|
87
89
|
buttons.push(resolveAlertButton);
|
|
@@ -91,7 +93,7 @@ export default class MicrosoftTeamsAlertMessages {
|
|
|
91
93
|
_type: "WorkspaceMessagePayloadButton",
|
|
92
94
|
title: "➡️ Change Alert State",
|
|
93
95
|
value: data.alertId?.toString() || "",
|
|
94
|
-
actionId:
|
|
96
|
+
actionId: MicrosoftTeamsAlertActionType.AlertStateChanged,
|
|
95
97
|
};
|
|
96
98
|
|
|
97
99
|
buttons.push(changeAlertStateButton);
|
|
@@ -101,7 +103,7 @@ export default class MicrosoftTeamsAlertMessages {
|
|
|
101
103
|
_type: "WorkspaceMessagePayloadButton",
|
|
102
104
|
title: "📄 Add Note",
|
|
103
105
|
value: data.alertId?.toString() || "",
|
|
104
|
-
actionId:
|
|
106
|
+
actionId: MicrosoftTeamsAlertActionType.AddAlertNote,
|
|
105
107
|
};
|
|
106
108
|
|
|
107
109
|
buttons.push(addNoteButton);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
WorkspacePayloadDivider,
|
|
8
8
|
} from "../../../../../Types/Workspace/WorkspaceMessagePayload";
|
|
9
9
|
import IncidentService from "../../../../Services/IncidentService";
|
|
10
|
-
import
|
|
10
|
+
import { MicrosoftTeamsIncidentActionType } from "../../../../Utils/Workspace/MicrosoftTeams/Actions/ActionTypes";
|
|
11
11
|
import CaptureSpan from "../../../Telemetry/CaptureSpan";
|
|
12
12
|
|
|
13
13
|
export default class MicrosoftTeamsIncidentMessages {
|
|
@@ -32,13 +32,15 @@ export default class MicrosoftTeamsIncidentMessages {
|
|
|
32
32
|
|
|
33
33
|
blockMicrosoftTeams.push(dividerBlock);
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
/*
|
|
36
|
+
* now add buttons.
|
|
37
|
+
* View data.
|
|
38
|
+
* Execute On Call
|
|
39
|
+
* Acknowledge incident
|
|
40
|
+
* Resolve data.
|
|
41
|
+
* Change Incident State.
|
|
42
|
+
* Add Note.
|
|
43
|
+
*/
|
|
42
44
|
|
|
43
45
|
const buttons: Array<WorkspaceMessagePayloadButton> = [];
|
|
44
46
|
|
|
@@ -51,7 +53,7 @@ export default class MicrosoftTeamsIncidentMessages {
|
|
|
51
53
|
data.incidentId!,
|
|
52
54
|
),
|
|
53
55
|
value: data.incidentId?.toString() || "",
|
|
54
|
-
actionId:
|
|
56
|
+
actionId: MicrosoftTeamsIncidentActionType.ViewIncident,
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
buttons.push(viewIncidentButton);
|
|
@@ -61,7 +63,8 @@ export default class MicrosoftTeamsIncidentMessages {
|
|
|
61
63
|
_type: "WorkspaceMessagePayloadButton",
|
|
62
64
|
title: "📞 Execute On Call",
|
|
63
65
|
value: data.incidentId?.toString() || "",
|
|
64
|
-
actionId:
|
|
66
|
+
actionId:
|
|
67
|
+
MicrosoftTeamsIncidentActionType.ViewExecuteIncidentOnCallPolicy,
|
|
65
68
|
};
|
|
66
69
|
|
|
67
70
|
buttons.push(executeOnCallButton);
|
|
@@ -71,7 +74,7 @@ export default class MicrosoftTeamsIncidentMessages {
|
|
|
71
74
|
_type: "WorkspaceMessagePayloadButton",
|
|
72
75
|
title: "👀 Acknowledge Incident",
|
|
73
76
|
value: data.incidentId?.toString() || "",
|
|
74
|
-
actionId:
|
|
77
|
+
actionId: MicrosoftTeamsIncidentActionType.AckIncident,
|
|
75
78
|
};
|
|
76
79
|
|
|
77
80
|
buttons.push(acknowledgeIncidentButton);
|
|
@@ -81,7 +84,7 @@ export default class MicrosoftTeamsIncidentMessages {
|
|
|
81
84
|
_type: "WorkspaceMessagePayloadButton",
|
|
82
85
|
title: "✅ Resolve Incident",
|
|
83
86
|
value: data.incidentId?.toString() || "",
|
|
84
|
-
actionId:
|
|
87
|
+
actionId: MicrosoftTeamsIncidentActionType.ResolveIncident,
|
|
85
88
|
};
|
|
86
89
|
|
|
87
90
|
buttons.push(resolveIncidentButton);
|
|
@@ -91,7 +94,7 @@ export default class MicrosoftTeamsIncidentMessages {
|
|
|
91
94
|
_type: "WorkspaceMessagePayloadButton",
|
|
92
95
|
title: "➡️ Change Incident State",
|
|
93
96
|
value: data.incidentId?.toString() || "",
|
|
94
|
-
actionId:
|
|
97
|
+
actionId: MicrosoftTeamsIncidentActionType.ViewChangeIncidentState,
|
|
95
98
|
};
|
|
96
99
|
|
|
97
100
|
buttons.push(changeIncidentStateButton);
|
|
@@ -101,7 +104,7 @@ export default class MicrosoftTeamsIncidentMessages {
|
|
|
101
104
|
_type: "WorkspaceMessagePayloadButton",
|
|
102
105
|
title: "📄 Add Note",
|
|
103
106
|
value: data.incidentId?.toString() || "",
|
|
104
|
-
actionId:
|
|
107
|
+
actionId: MicrosoftTeamsIncidentActionType.ViewAddIncidentNote,
|
|
105
108
|
};
|
|
106
109
|
|
|
107
110
|
buttons.push(addNoteButton);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
WorkspacePayloadDivider,
|
|
8
8
|
} from "../../../../../Types/Workspace/WorkspaceMessagePayload";
|
|
9
9
|
import ScheduledMaintenanceService from "../../../../Services/ScheduledMaintenanceService";
|
|
10
|
-
import
|
|
10
|
+
import { MicrosoftTeamsScheduledMaintenanceActionType } from "../../../../Utils/Workspace/MicrosoftTeams/Actions/ActionTypes";
|
|
11
11
|
import CaptureSpan from "../../../Telemetry/CaptureSpan";
|
|
12
12
|
|
|
13
13
|
export default class MicrosoftTeamsScheduledMaintenanceMessages {
|
|
@@ -32,13 +32,15 @@ export default class MicrosoftTeamsScheduledMaintenanceMessages {
|
|
|
32
32
|
|
|
33
33
|
blockMicrosoftTeams.push(dividerBlock);
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
/*
|
|
36
|
+
* now add buttons.
|
|
37
|
+
* View data.
|
|
38
|
+
* Execute On Call
|
|
39
|
+
* Acknowledge scheduledMaintenance
|
|
40
|
+
* Resolve data.
|
|
41
|
+
* Change ScheduledMaintenance State.
|
|
42
|
+
* Add Note.
|
|
43
|
+
*/
|
|
42
44
|
|
|
43
45
|
const buttons: Array<WorkspaceMessagePayloadButton> = [];
|
|
44
46
|
|
|
@@ -51,7 +53,8 @@ export default class MicrosoftTeamsScheduledMaintenanceMessages {
|
|
|
51
53
|
data.scheduledMaintenanceId!,
|
|
52
54
|
),
|
|
53
55
|
value: data.scheduledMaintenanceId?.toString() || "",
|
|
54
|
-
actionId:
|
|
56
|
+
actionId:
|
|
57
|
+
MicrosoftTeamsScheduledMaintenanceActionType.ViewScheduledMaintenance,
|
|
55
58
|
};
|
|
56
59
|
|
|
57
60
|
buttons.push(viewScheduledMaintenanceButton);
|
|
@@ -62,7 +65,7 @@ export default class MicrosoftTeamsScheduledMaintenanceMessages {
|
|
|
62
65
|
_type: "WorkspaceMessagePayloadButton",
|
|
63
66
|
title: "⌛ Mark as Ongoing",
|
|
64
67
|
value: data.scheduledMaintenanceId?.toString() || "",
|
|
65
|
-
actionId:
|
|
68
|
+
actionId: MicrosoftTeamsScheduledMaintenanceActionType.MarkAsOngoing,
|
|
66
69
|
};
|
|
67
70
|
|
|
68
71
|
buttons.push(acknowledgeScheduledMaintenanceButton);
|
|
@@ -72,7 +75,7 @@ export default class MicrosoftTeamsScheduledMaintenanceMessages {
|
|
|
72
75
|
_type: "WorkspaceMessagePayloadButton",
|
|
73
76
|
title: "✅ Mark as Completed",
|
|
74
77
|
value: data.scheduledMaintenanceId?.toString() || "",
|
|
75
|
-
actionId:
|
|
78
|
+
actionId: MicrosoftTeamsScheduledMaintenanceActionType.MarkAsComplete,
|
|
76
79
|
};
|
|
77
80
|
|
|
78
81
|
buttons.push(resolveScheduledMaintenanceButton);
|
|
@@ -83,7 +86,8 @@ export default class MicrosoftTeamsScheduledMaintenanceMessages {
|
|
|
83
86
|
_type: "WorkspaceMessagePayloadButton",
|
|
84
87
|
title: "➡️ Change Scheduled Maintenance State",
|
|
85
88
|
value: data.scheduledMaintenanceId?.toString() || "",
|
|
86
|
-
actionId:
|
|
89
|
+
actionId:
|
|
90
|
+
MicrosoftTeamsScheduledMaintenanceActionType.ScheduledMaintenanceStateChanged,
|
|
87
91
|
};
|
|
88
92
|
|
|
89
93
|
buttons.push(changeScheduledMaintenanceStateButton);
|
|
@@ -93,7 +97,8 @@ export default class MicrosoftTeamsScheduledMaintenanceMessages {
|
|
|
93
97
|
_type: "WorkspaceMessagePayloadButton",
|
|
94
98
|
title: "📄 Add Note",
|
|
95
99
|
value: data.scheduledMaintenanceId?.toString() || "",
|
|
96
|
-
actionId:
|
|
100
|
+
actionId:
|
|
101
|
+
MicrosoftTeamsScheduledMaintenanceActionType.AddScheduledMaintenanceNote,
|
|
97
102
|
};
|
|
98
103
|
|
|
99
104
|
buttons.push(addNoteButton);
|