@oneuptime/common 8.0.5239 → 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/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/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
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* this class is the base class that all the component can implement
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
3
5
|
import BadDataException from "../../../Types/Exception/BadDataException";
|
|
4
6
|
import Exception from "../../../Types/Exception/Exception";
|
|
5
7
|
import { JSONArray, JSONObject, JSONValue } from "../../../Types/JSON";
|
|
@@ -55,9 +55,11 @@ export default class IfElse extends ComponentCode {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
try {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
/*
|
|
59
|
+
* Set timeout
|
|
60
|
+
* Inject args
|
|
61
|
+
* Inject dependencies
|
|
62
|
+
*/
|
|
61
63
|
|
|
62
64
|
for (const key in args) {
|
|
63
65
|
if (key === "operator") {
|
|
@@ -51,9 +51,11 @@ export default class JavaScriptCode extends ComponentCode {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
try {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
/*
|
|
55
|
+
* Set timeout
|
|
56
|
+
* Inject args
|
|
57
|
+
* Inject dependencies
|
|
58
|
+
*/
|
|
57
59
|
|
|
58
60
|
let scriptArgs: JSONObject | string =
|
|
59
61
|
(args["arguments"] as JSONObject | string) || {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* this class is the base class that all the component can implement
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
3
5
|
import { ExpressRouter } from "../../Utils/Express";
|
|
4
6
|
import ComponentCode, { RunOptions, RunReturnType } from "./ComponentCode";
|
|
5
7
|
import BadDataException from "../../../Types/Exception/BadDataException";
|
|
@@ -159,8 +159,10 @@ export class Statement implements BaseQueryParams {
|
|
|
159
159
|
private static toColumnType(
|
|
160
160
|
statementParam: StatementParameter | string,
|
|
161
161
|
): string {
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
/*
|
|
163
|
+
* ensure we have a mapping for all types (a missing mapping will
|
|
164
|
+
* be a compile error)
|
|
165
|
+
*/
|
|
164
166
|
const columnTypes: Dictionary<string> = {
|
|
165
167
|
[TableColumnType.Text]: "String",
|
|
166
168
|
[TableColumnType.ObjectID]: "String",
|
|
@@ -131,8 +131,10 @@ export default class StatementGenerator<TBaseModel extends AnalyticsBaseModel> {
|
|
|
131
131
|
records.push(record);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
/*
|
|
135
|
+
* we need async insert to be enabled for clickhouse to work.
|
|
136
|
+
* otherwise too many parts will be created.
|
|
137
|
+
*/
|
|
136
138
|
|
|
137
139
|
const statement: string = `INSERT INTO ${
|
|
138
140
|
this.database.getDatasourceOptions().database
|
|
@@ -263,9 +265,11 @@ export default class StatementGenerator<TBaseModel extends AnalyticsBaseModel> {
|
|
|
263
265
|
setStatement.append(SQL`, `);
|
|
264
266
|
}
|
|
265
267
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
268
|
+
/*
|
|
269
|
+
* special case - ClickHouse does not support using query
|
|
270
|
+
* parameters for column names in the SET statement so we
|
|
271
|
+
* have to trust the column names here.
|
|
272
|
+
*/
|
|
269
273
|
const keyStatement: string = column.key;
|
|
270
274
|
|
|
271
275
|
setStatement.append(keyStatement).append(
|
|
@@ -505,8 +509,10 @@ export default class StatementGenerator<TBaseModel extends AnalyticsBaseModel> {
|
|
|
505
509
|
statement: Statement;
|
|
506
510
|
columns: Array<string>;
|
|
507
511
|
} {
|
|
508
|
-
|
|
509
|
-
|
|
512
|
+
/*
|
|
513
|
+
* EXAMPLE:
|
|
514
|
+
* SELECT sum(Metric.value) as avg_value, date_trunc('hour', toStartOfInterval(createdAt, INTERVAL 1 hour)) as createdAt
|
|
515
|
+
*/
|
|
510
516
|
|
|
511
517
|
const selectStatement: Statement = new Statement();
|
|
512
518
|
|
|
@@ -578,8 +584,10 @@ export default class StatementGenerator<TBaseModel extends AnalyticsBaseModel> {
|
|
|
578
584
|
columns.append(SQL`, `);
|
|
579
585
|
}
|
|
580
586
|
|
|
581
|
-
|
|
582
|
-
|
|
587
|
+
/*
|
|
588
|
+
* special case - ClickHouse does not support using an a query parameter
|
|
589
|
+
* to specify the column name when creating the table
|
|
590
|
+
*/
|
|
583
591
|
const keyStatement: string = column.key;
|
|
584
592
|
|
|
585
593
|
columns
|
|
@@ -683,8 +691,10 @@ export default class StatementGenerator<TBaseModel extends AnalyticsBaseModel> {
|
|
|
683
691
|
this.model.tableColumns,
|
|
684
692
|
);
|
|
685
693
|
|
|
686
|
-
|
|
687
|
-
|
|
694
|
+
/*
|
|
695
|
+
* special case - ClickHouse does not support using a query parameter
|
|
696
|
+
* to specify the table engine
|
|
697
|
+
*/
|
|
688
698
|
const tableEngineStatement: string = this.model.tableEngine;
|
|
689
699
|
|
|
690
700
|
const partitionKey: string = this.model.partitionKey;
|
package/Server/Utils/Browser.ts
CHANGED
|
@@ -78,10 +78,12 @@ export default class BrowserUtil {
|
|
|
78
78
|
page = await browser.newPage();
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
/*
|
|
82
|
+
* if (data.browserType === BrowserType.Webkit) {
|
|
83
|
+
* browser = await webkit.launch();
|
|
84
|
+
* page = await browser.newPage();
|
|
85
|
+
* }
|
|
86
|
+
*/
|
|
85
87
|
|
|
86
88
|
await page?.setViewportSize({
|
|
87
89
|
width: viewport.width,
|
|
@@ -141,8 +141,10 @@ export default class GitHubUtil extends HostedCodeRepository {
|
|
|
141
141
|
page: page,
|
|
142
142
|
});
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
/*
|
|
145
|
+
* Fetch all pull requests by paginating through the results
|
|
146
|
+
* 100 pull requests per page is the limit of the GitHub API
|
|
147
|
+
*/
|
|
146
148
|
while (pullRequests.length === page * 100 || page === 1) {
|
|
147
149
|
pullRequests = await this.getPullRequestsByPage({
|
|
148
150
|
organizationName: data.organizationName,
|
|
@@ -218,4 +218,18 @@ export default class LocalFile {
|
|
|
218
218
|
},
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
|
+
|
|
222
|
+
@CaptureSpan()
|
|
223
|
+
public static async readAsBuffer(path: string): Promise<Buffer> {
|
|
224
|
+
return new Promise(
|
|
225
|
+
(resolve: (data: Buffer) => void, reject: PromiseRejectErrorFunction) => {
|
|
226
|
+
fs.readFile(path, (err: Error | null, data: Buffer) => {
|
|
227
|
+
if (!err) {
|
|
228
|
+
return resolve(data);
|
|
229
|
+
}
|
|
230
|
+
return reject(err);
|
|
231
|
+
});
|
|
232
|
+
},
|
|
233
|
+
);
|
|
234
|
+
}
|
|
221
235
|
}
|
|
@@ -572,8 +572,10 @@ export default class MonitorResourceUtil {
|
|
|
572
572
|
lastMonitorStatusTimeline.monitorStatusId.toString() ===
|
|
573
573
|
monitorSteps.data.defaultMonitorStatusId.toString()
|
|
574
574
|
) {
|
|
575
|
-
|
|
576
|
-
|
|
575
|
+
/*
|
|
576
|
+
* status is same as last status. do not create new status timeline.
|
|
577
|
+
* do nothing! status is same as last status.
|
|
578
|
+
*/
|
|
577
579
|
} else {
|
|
578
580
|
// if no criteria is met then update monitor to default state.
|
|
579
581
|
const monitorStatusTimeline: MonitorStatusTimeline =
|
|
@@ -634,9 +636,11 @@ export default class MonitorResourceUtil {
|
|
|
634
636
|
|
|
635
637
|
const itemsToSave: Array<Metric> = [];
|
|
636
638
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
639
|
+
/*
|
|
640
|
+
* Metric name to serviceId map
|
|
641
|
+
* example: "cpu.usage" -> [serviceId1, serviceId2]
|
|
642
|
+
* since these are monitor metrics. They dont belong to any service so we can keep the array empty.
|
|
643
|
+
*/
|
|
640
644
|
const metricNameServiceNameMap: Dictionary<MetricType> = {};
|
|
641
645
|
|
|
642
646
|
if (
|
|
@@ -1147,8 +1151,10 @@ export default class MonitorResourceUtil {
|
|
|
1147
1151
|
probeApiIngestResponse: ProbeApiIngestResponse;
|
|
1148
1152
|
criteriaInstance: MonitorCriteriaInstance;
|
|
1149
1153
|
}): Promise<string | null> {
|
|
1150
|
-
|
|
1151
|
-
|
|
1154
|
+
/*
|
|
1155
|
+
* returns root cause if any. Otherwise criteria is not met.
|
|
1156
|
+
* process monitor criteria instance here.
|
|
1157
|
+
*/
|
|
1152
1158
|
|
|
1153
1159
|
const rootCause: string | null =
|
|
1154
1160
|
await MonitorResourceUtil.isMonitorInstanceCriteriaFiltersMet({
|
|
@@ -1227,8 +1233,10 @@ export default class MonitorResourceUtil {
|
|
|
1227
1233
|
criteriaInstance: MonitorCriteriaInstance;
|
|
1228
1234
|
criteriaFilter: CriteriaFilter;
|
|
1229
1235
|
}): Promise<string | null> {
|
|
1230
|
-
|
|
1231
|
-
|
|
1236
|
+
/*
|
|
1237
|
+
* returns root cause if any. Otherwise criteria is not met.
|
|
1238
|
+
* process monitor criteria filter here.
|
|
1239
|
+
*/
|
|
1232
1240
|
|
|
1233
1241
|
if (input.criteriaFilter.checkOn === CheckOn.JavaScriptExpression) {
|
|
1234
1242
|
let storageMap: JSONObject = {};
|
package/Server/Utils/Realtime.ts
CHANGED
|
@@ -92,8 +92,10 @@ export default abstract class Realtime {
|
|
|
92
92
|
await this.init();
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
/*
|
|
96
|
+
* before joining room check the user token and check if the user has access to this tenant
|
|
97
|
+
* and to this model and to this event type
|
|
98
|
+
*/
|
|
97
99
|
|
|
98
100
|
logger.debug("Extracting user access token from socket");
|
|
99
101
|
const userAccessToken: string | undefined =
|
|
@@ -109,7 +109,7 @@ app.use((req: OneUptimeRequest, res: ExpressResponse, next: NextFunction) => {
|
|
|
109
109
|
|
|
110
110
|
req.on("end", () => {
|
|
111
111
|
const buffer: Buffer = Buffer.concat(buffers);
|
|
112
|
-
zlib.gunzip(buffer, (err: unknown, decoded: Buffer) => {
|
|
112
|
+
zlib.gunzip(buffer as Uint8Array, (err: unknown, decoded: Buffer) => {
|
|
113
113
|
if (err) {
|
|
114
114
|
logger.error(err);
|
|
115
115
|
return Response.sendErrorResponse(
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import OpenTelemetryAPI, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/*
|
|
3
|
+
* diag,
|
|
4
|
+
* DiagConsoleLogger,
|
|
5
|
+
* DiagLogLevel,
|
|
6
|
+
*/
|
|
5
7
|
Meter,
|
|
6
8
|
} from "@opentelemetry/api";
|
|
7
9
|
import { Logger, logs } from "@opentelemetry/api-logs";
|
|
@@ -33,8 +35,10 @@ import Dictionary from "../../Types/Dictionary";
|
|
|
33
35
|
import { DisableTelemetry } from "../EnvironmentConfig";
|
|
34
36
|
import logger from "./Logger";
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
/*
|
|
39
|
+
* Enable this line to see debug logs
|
|
40
|
+
* diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.DEBUG);
|
|
41
|
+
*/
|
|
38
42
|
|
|
39
43
|
export type Span = opentelemetry.api.Span;
|
|
40
44
|
export type SpanStatus = opentelemetry.api.SpanStatus;
|
|
@@ -203,10 +207,12 @@ export default class Telemetry {
|
|
|
203
207
|
nodeSdkConfiguration.traceExporter = traceExporter;
|
|
204
208
|
}
|
|
205
209
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
+
/*
|
|
211
|
+
* We will skip this becasue we're attachng this metric reader to the meter provider later.
|
|
212
|
+
* if (this.metricReader) {
|
|
213
|
+
* nodeSdkConfiguration.metricReader = this.metricReader;
|
|
214
|
+
* }
|
|
215
|
+
*/
|
|
210
216
|
|
|
211
217
|
if (logRecordProcessor) {
|
|
212
218
|
nodeSdkConfiguration.logRecordProcessor = logRecordProcessor;
|
|
@@ -3,9 +3,9 @@ import * as OTPAuth from "otpauth";
|
|
|
3
3
|
import CaptureSpan from "./Telemetry/CaptureSpan";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Utility class for handling
|
|
6
|
+
* Utility class for handling TOTP authentication.
|
|
7
7
|
*/
|
|
8
|
-
export default class
|
|
8
|
+
export default class TotpAuth {
|
|
9
9
|
/**
|
|
10
10
|
* Generates a random secret key for two-factor authentication.
|
|
11
11
|
* @returns The generated secret key.
|
|
@@ -1,38 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// Microsoft Teams Action Types for OneUptime Integration
|
|
2
|
+
|
|
3
|
+
// Incident Actions
|
|
4
|
+
export enum MicrosoftTeamsIncidentActionType {
|
|
5
|
+
AckIncident = "AcknowledgeIncident",
|
|
4
6
|
ResolveIncident = "ResolveIncident",
|
|
7
|
+
UnresolveIncident = "UnresolveIncident",
|
|
8
|
+
ViewIncident = "ViewIncident",
|
|
9
|
+
IncidentCreated = "IncidentCreated",
|
|
10
|
+
IncidentStateChanged = "IncidentStateChanged",
|
|
5
11
|
ViewAddIncidentNote = "ViewAddIncidentNote",
|
|
6
12
|
SubmitIncidentNote = "SubmitIncidentNote",
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
AddIncidentNote = "AddIncidentNote",
|
|
14
|
+
ExecuteIncidentOnCallPolicy = "ExecuteIncidentOnCallPolicy",
|
|
9
15
|
ViewExecuteIncidentOnCallPolicy = "ViewExecuteIncidentOnCallPolicy",
|
|
10
16
|
SubmitExecuteIncidentOnCallPolicy = "SubmitExecuteIncidentOnCallPolicy",
|
|
11
|
-
|
|
17
|
+
ViewChangeIncidentState = "ViewChangeIncidentState",
|
|
18
|
+
SubmitChangeIncidentState = "SubmitChangeIncidentState",
|
|
12
19
|
NewIncident = "/incident", // new incident slash command
|
|
13
20
|
SubmitNewIncident = "SubmitNewIncident",
|
|
21
|
+
}
|
|
14
22
|
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
// Alert Actions
|
|
24
|
+
export enum MicrosoftTeamsAlertActionType {
|
|
25
|
+
AckAlert = "AckAlert",
|
|
17
26
|
ResolveAlert = "ResolveAlert",
|
|
27
|
+
ViewAlert = "ViewAlert",
|
|
28
|
+
AlertCreated = "AlertCreated",
|
|
29
|
+
AlertStateChanged = "AlertStateChanged",
|
|
30
|
+
AddAlertNote = "AddAlertNote",
|
|
31
|
+
ExecuteAlertOnCallPolicy = "ExecuteAlertOnCallPolicy",
|
|
18
32
|
ViewAddAlertNote = "ViewAddAlertNote",
|
|
19
33
|
SubmitAlertNote = "SubmitAlertNote",
|
|
20
|
-
ViewChangeAlertState = "ViewChangeAlertState",
|
|
21
|
-
SubmitChangeAlertState = "SubmitChangeAlertState",
|
|
22
34
|
ViewExecuteAlertOnCallPolicy = "ViewExecuteAlertOnCallPolicy",
|
|
23
35
|
SubmitExecuteAlertOnCallPolicy = "SubmitExecuteAlertOnCallPolicy",
|
|
24
|
-
|
|
36
|
+
ViewChangeAlertState = "ViewChangeAlertState",
|
|
37
|
+
SubmitChangeAlertState = "SubmitChangeAlertState",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Monitor Actions
|
|
41
|
+
export enum MicrosoftTeamsMonitorActionType {
|
|
42
|
+
ViewMonitor = "ViewMonitor",
|
|
43
|
+
EnableMonitor = "EnableMonitor",
|
|
44
|
+
DisableMonitor = "DisableMonitor",
|
|
45
|
+
MonitorStatusChanged = "MonitorStatusChanged",
|
|
46
|
+
}
|
|
25
47
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
// Scheduled Maintenance Actions
|
|
49
|
+
export enum MicrosoftTeamsScheduledMaintenanceActionType {
|
|
50
|
+
ViewScheduledMaintenance = "ViewScheduledMaintenance",
|
|
51
|
+
MarkAsComplete = "MarkAsComplete",
|
|
52
|
+
MarkAsOngoing = "MarkAsOngoing",
|
|
53
|
+
ScheduledMaintenanceCreated = "ScheduledMaintenanceCreated",
|
|
54
|
+
ScheduledMaintenanceStateChanged = "ScheduledMaintenanceStateChanged",
|
|
55
|
+
AddScheduledMaintenanceNote = "AddScheduledMaintenanceNote",
|
|
29
56
|
ViewAddScheduledMaintenanceNote = "ViewAddScheduledMaintenanceNote",
|
|
30
57
|
SubmitScheduledMaintenanceNote = "SubmitScheduledMaintenanceNote",
|
|
31
58
|
ViewChangeScheduledMaintenanceState = "ViewChangeScheduledMaintenanceState",
|
|
32
59
|
SubmitChangeScheduledMaintenanceState = "SubmitChangeScheduledMaintenanceState",
|
|
33
|
-
ViewScheduledMaintenance = "ViewScheduledMaintenance",
|
|
34
60
|
NewScheduledMaintenance = "/maintenance", // new scheduled maintenance slash command
|
|
35
61
|
SubmitNewScheduledMaintenance = "SubmitNewScheduledMaintenance",
|
|
36
62
|
}
|
|
37
63
|
|
|
38
|
-
|
|
64
|
+
// On-Call Duty Actions
|
|
65
|
+
export enum MicrosoftTeamsOnCallDutyActionType {
|
|
66
|
+
ViewOnCallDuty = "ViewOnCallDuty",
|
|
67
|
+
EscalateOnCall = "EscalateOnCall",
|
|
68
|
+
OnCallDutyPolicyTriggered = "OnCallDutyPolicyTriggered",
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// General Actions
|
|
72
|
+
export enum MicrosoftTeamsGeneralActionType {
|
|
73
|
+
Help = "Help",
|
|
74
|
+
ViewDashboard = "ViewDashboard",
|
|
75
|
+
ViewProject = "ViewProject",
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Activity Types from Microsoft Teams
|
|
79
|
+
export enum TeamsActivityType {
|
|
80
|
+
Message = "message",
|
|
81
|
+
Invoke = "invoke",
|
|
82
|
+
InstallationUpdate = "installationUpdate",
|
|
83
|
+
MessageReaction = "messageReaction",
|
|
84
|
+
MembersAdded = "membersAdded",
|
|
85
|
+
MembersRemoved = "membersRemoved",
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// All action types combined
|
|
89
|
+
export type MicrosoftTeamsActionType =
|
|
90
|
+
| MicrosoftTeamsIncidentActionType
|
|
91
|
+
| MicrosoftTeamsAlertActionType
|
|
92
|
+
| MicrosoftTeamsMonitorActionType
|
|
93
|
+
| MicrosoftTeamsScheduledMaintenanceActionType
|
|
94
|
+
| MicrosoftTeamsOnCallDutyActionType
|
|
95
|
+
| MicrosoftTeamsGeneralActionType;
|
|
96
|
+
|
|
97
|
+
export default MicrosoftTeamsActionType;
|