@oneuptime/common 14.0.110 → 14.1.0
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/AIRunRecording.d.mts +12 -0
- package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
- package/Models/DatabaseModels/AIRunRecording.js +181 -0
- package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
- package/Models/DatabaseModels/Alert.js +18 -2
- package/Models/DatabaseModels/DataStore.js +9 -0
- package/Models/DatabaseModels/EmailLog.js +2 -2
- package/Models/DatabaseModels/Form.js +3 -3
- package/Models/DatabaseModels/FormSubmission.js +4 -4
- package/Models/DatabaseModels/GlobalConfig.js +46 -45
- package/Models/DatabaseModels/Incident.js +18 -2
- package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
- package/Models/DatabaseModels/Index.js +4 -0
- package/Models/DatabaseModels/InventoryItem.js +11 -0
- package/Models/DatabaseModels/Monitor.js +51 -17
- package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
- package/Models/DatabaseModels/MonitorProbe.js +22 -5
- package/Models/DatabaseModels/NetworkDevice.js +23 -7
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
- package/Models/DatabaseModels/NetworkInterface.js +5 -5
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +19 -5
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
- package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
- package/Models/DatabaseModels/Project.d.mts +1 -0
- package/Models/DatabaseModels/Project.d.ts +1 -0
- package/Models/DatabaseModels/Project.js +46 -3
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
- package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
- package/Models/DatabaseModels/RunbookExecution.js +2 -2
- package/Models/DatabaseModels/RunbookRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenance.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
- package/Models/DatabaseModels/TeamMember.js +10 -1
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
- package/Server/Services/DatabaseService.d.mts +4 -1
- package/Server/Services/DatabaseService.d.ts +4 -1
- package/Server/Types/Database/CountBy.d.mts +1 -0
- package/Server/Types/Database/CountBy.d.ts +1 -0
- package/Server/Types/Database/UpdateLimit.d.mts +6 -0
- package/Server/Types/Database/UpdateLimit.d.ts +6 -0
- package/Types/AI/AIActionWords.d.mts +25 -1
- package/Types/AI/AIActionWords.d.ts +25 -1
- package/Types/AI/AIActionWords.js +166 -3
- package/Types/AI/AIActionWords.mjs +6 -0
- package/Types/AI/AIChatTypes.d.mts +2 -1
- package/Types/AI/AIChatTypes.d.ts +2 -1
- package/Types/AI/AiOutcomes.d.mts +57 -0
- package/Types/AI/AiOutcomes.d.ts +57 -0
- package/Types/AI/AiOutcomes.js +67 -0
- package/Types/AI/AiOutcomes.mjs +10 -0
- package/Types/AI/AiRunRefusal.d.mts +45 -0
- package/Types/AI/AiRunRefusal.d.ts +45 -0
- package/Types/AI/AiRunRefusal.js +187 -0
- package/Types/AI/AiRunRefusal.mjs +12 -0
- package/Types/AI/InvestigationRecording.d.mts +46 -0
- package/Types/AI/InvestigationRecording.d.ts +46 -0
- package/Types/AI/InvestigationRecording.js +42 -0
- package/Types/AI/InvestigationRecording.mjs +7 -0
- package/Types/API/HTTPResponse.d.mts +3 -0
- package/Types/API/HTTPResponse.d.ts +3 -0
- package/Types/API/HTTPResponse.js +15 -0
- package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
- package/Types/BaseDatabase/ListResult.d.mts +1 -0
- package/Types/BaseDatabase/ListResult.d.ts +1 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
- package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
- package/Types/Date.d.mts +6 -1
- package/Types/Date.d.ts +6 -1
- package/Types/Date.js +39 -7
- package/Types/Date.mjs +1 -0
- package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
- package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
- package/Types/Email/ServerEmailEnvironment.js +793 -0
- package/Types/Email/ServerEmailEnvironment.mjs +14 -0
- package/Types/Exception/AiRunRefusalException.d.mts +6 -0
- package/Types/Exception/AiRunRefusalException.d.ts +6 -0
- package/Types/Exception/AiRunRefusalException.js +23 -0
- package/Types/Exception/AiRunRefusalException.mjs +2 -0
- package/Types/Form/FormTargetCatalog.js +2 -2
- package/Types/Form/FormTargetType.js +2 -2
- package/Types/ListData.d.mts +2 -0
- package/Types/ListData.d.ts +2 -0
- package/Types/ListData.js +4 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
- package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
- package/Types/Monitor/UptimeHistoryLabels.js +2 -2
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
- package/Types/Permission.js +2 -2
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +10 -0
- package/Types/ReaderLanguage.d.mts +1 -0
- package/Types/ReaderLanguage.d.ts +1 -0
- package/Types/ReaderLanguage.js +13 -1
- package/Types/ReaderLanguage.mjs +1 -0
- package/Types/Rules/RuleRun.js +2 -2
- package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
- package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
- package/Types/ServerSending/ServerSendingStatus.js +49 -2
- package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
- package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
- package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
- package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
- package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
- package/Types/Telemetry/CompatibleIngest.js +123 -0
- package/Types/Telemetry/CompatibleIngest.mjs +21 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.js +48 -7
- package/Types/TimezoneAlias.d.mts +1 -0
- package/Types/TimezoneAlias.d.ts +1 -0
- package/Types/TimezoneAlias.js +13 -0
- package/Types/Translator.js +374 -48
- package/Types/Workflow/RunRecord.js +1 -1
- package/Types/Workflow/Templates.js +2 -2
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +26 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +26 -1
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
- package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
- package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
- package/Utils/HostAddressUtil.d.mts +1 -0
- package/Utils/HostAddressUtil.d.ts +1 -0
- package/Utils/HostAddressUtil.js +30 -0
- package/Utils/LinearRegExp/LinearRegExp.js +5 -1
- package/Utils/Milliseconds.d.mts +7 -0
- package/Utils/Milliseconds.d.ts +7 -0
- package/Utils/Milliseconds.js +60 -0
- package/Utils/Milliseconds.mjs +4 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +91 -21
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
- package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
- package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
- package/Utils/Monitor/MonitoringOff.d.mts +2 -0
- package/Utils/Monitor/MonitoringOff.d.ts +2 -0
- package/Utils/Monitor/MonitoringOff.js +21 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
- package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
- package/Utils/Monitor/ProbeFailureReading.js +137 -0
- package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
- package/Utils/Project/NextNumber.js +1 -1
- package/Utils/PromQL/PromQLAst.d.mts +159 -0
- package/Utils/PromQL/PromQLAst.d.ts +159 -0
- package/Utils/PromQL/PromQLAst.js +118 -0
- package/Utils/PromQL/PromQLAst.mjs +12 -0
- package/Utils/PromQL/PromQLDuration.d.mts +2 -0
- package/Utils/PromQL/PromQLDuration.d.ts +2 -0
- package/Utils/PromQL/PromQLDuration.js +78 -0
- package/Utils/PromQL/PromQLDuration.mjs +3 -0
- package/Utils/PromQL/PromQLEngine.d.mts +15 -0
- package/Utils/PromQL/PromQLEngine.d.ts +15 -0
- package/Utils/PromQL/PromQLEngine.js +965 -0
- package/Utils/PromQL/PromQLEngine.mjs +7 -0
- package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.js +10 -0
- package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
- package/Utils/PromQL/PromQLError.d.mts +11 -0
- package/Utils/PromQL/PromQLError.d.ts +11 -0
- package/Utils/PromQL/PromQLError.js +27 -0
- package/Utils/PromQL/PromQLError.mjs +3 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
- package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
- package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
- package/Utils/PromQL/PromQLFunctions.js +127 -0
- package/Utils/PromQL/PromQLFunctions.mjs +4 -0
- package/Utils/PromQL/PromQLLabels.d.mts +11 -0
- package/Utils/PromQL/PromQLLabels.d.ts +11 -0
- package/Utils/PromQL/PromQLLabels.js +218 -0
- package/Utils/PromQL/PromQLLabels.mjs +9 -0
- package/Utils/PromQL/PromQLLexer.d.mts +39 -0
- package/Utils/PromQL/PromQLLexer.d.ts +39 -0
- package/Utils/PromQL/PromQLLexer.js +391 -0
- package/Utils/PromQL/PromQLLexer.mjs +3 -0
- package/Utils/PromQL/PromQLMath.d.mts +19 -0
- package/Utils/PromQL/PromQLMath.d.ts +19 -0
- package/Utils/PromQL/PromQLMath.js +200 -0
- package/Utils/PromQL/PromQLMath.mjs +9 -0
- package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
- package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
- package/Utils/PromQL/PromQLMetricNames.js +199 -0
- package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
- package/Utils/PromQL/PromQLParser.d.mts +4 -0
- package/Utils/PromQL/PromQLParser.d.ts +4 -0
- package/Utils/PromQL/PromQLParser.js +831 -0
- package/Utils/PromQL/PromQLParser.mjs +4 -0
- package/Utils/PromQL/PromQLRegex.d.mts +9 -0
- package/Utils/PromQL/PromQLRegex.d.ts +9 -0
- package/Utils/PromQL/PromQLRegex.js +74 -0
- package/Utils/PromQL/PromQLRegex.mjs +2 -0
- package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
- package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
- package/Utils/PromQL/PrometheusResponse.js +90 -0
- package/Utils/PromQL/PrometheusResponse.mjs +3 -0
- package/Utils/Rum/PathInSentence.d.mts +5 -0
- package/Utils/Rum/PathInSentence.d.ts +5 -0
- package/Utils/Rum/PathInSentence.js +46 -0
- package/Utils/Rum/PathInSentence.mjs +6 -0
- package/Utils/Rum/UrlScrubber.d.mts +4 -0
- package/Utils/Rum/UrlScrubber.d.ts +4 -0
- package/Utils/Rum/UrlScrubber.js +143 -3
- package/Utils/Rum/UserFlow.d.mts +1 -1
- package/Utils/Rum/UserFlow.d.ts +1 -1
- package/Utils/Rum/UserFlow.js +180 -25
- package/Utils/Rum/UserFlow.mjs +1 -1
- package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.js +30 -0
- package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
- package/Utils/Schema/TypeSchemas.js +6 -0
- package/Utils/Slo/SloDuration.d.mts +5 -2
- package/Utils/Slo/SloDuration.d.ts +5 -2
- package/Utils/Slo/SloDuration.js +11 -6
- package/Utils/Slo/SloHealth.js +1 -1
- package/Utils/StateOrder.js +1 -4
- package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
- package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
- package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import IncidentState from "../../../Models/DatabaseModels/IncidentState.mjs";
|
|
|
5
5
|
import Label from "../../../Models/DatabaseModels/Label.mjs";
|
|
6
6
|
import Monitor from "../../../Models/DatabaseModels/Monitor.mjs";
|
|
7
7
|
import MonitorStatus from "../../../Models/DatabaseModels/MonitorStatus.mjs";
|
|
8
|
+
import OnCallDutyPolicy from "../../../Models/DatabaseModels/OnCallDutyPolicy.mjs";
|
|
8
9
|
import ScheduledMaintenanceState from "../../../Models/DatabaseModels/ScheduledMaintenanceState.mjs";
|
|
9
10
|
import ServiceLevelObjective from "../../../Models/DatabaseModels/ServiceLevelObjective.mjs";
|
|
10
11
|
import { DropdownOption } from "../../../UI/Components/Dropdown/Dropdown.mjs";
|
|
@@ -46,6 +47,7 @@ export declare enum NotificationRuleConditionCheckOn {
|
|
|
46
47
|
OnCallDutyPolicyName = "On Call Duty Policy Name",
|
|
47
48
|
OnCallDutyPolicyDescription = "On Call Duty Policy Description",
|
|
48
49
|
OnCallDutyPolicyLabels = "On Call Duty Policy Labels",
|
|
50
|
+
OnCallDutyPolicies = "On-Call Policy",
|
|
49
51
|
SecurityCaseTitle = "Security Case Title",
|
|
50
52
|
SecurityCaseDescription = "Security Case Description",
|
|
51
53
|
SecurityCasePriority = "Security Case Priority",
|
|
@@ -56,8 +58,21 @@ export declare enum NotificationRuleConditionCheckOn {
|
|
|
56
58
|
SloName = "SLO Name",
|
|
57
59
|
Slos = "SLOs",
|
|
58
60
|
SloLabels = "SLO Labels",
|
|
59
|
-
SloErrorBudgetPolicyChange = "Error Budget Policy Change"
|
|
61
|
+
SloErrorBudgetPolicyChange = "Error Budget Policy Change",
|
|
62
|
+
IncidentOwners = "Incident Owner",
|
|
63
|
+
AlertOwners = "Alert Owner",
|
|
64
|
+
IncidentEpisodeOwners = "Incident Episode Owner",
|
|
65
|
+
AlertEpisodeOwners = "Alert Episode Owner",
|
|
66
|
+
ScheduledMaintenanceOwners = "Scheduled Maintenance Owner",
|
|
67
|
+
MonitorOwners = "Monitor Owner",
|
|
68
|
+
OnCallDutyPolicyOwners = "On-Call Policy Owner",
|
|
69
|
+
SloOwners = "SLO Owner"
|
|
60
70
|
}
|
|
71
|
+
export type NotificationRuleConditionValues = {
|
|
72
|
+
[key in NotificationRuleConditionCheckOn]: string | Array<string> | undefined;
|
|
73
|
+
};
|
|
74
|
+
export declare const OWNER_CHECK_ON_BY_EVENT_TYPE: Readonly<Partial<Record<NotificationRuleEventType, NotificationRuleConditionCheckOn>>>;
|
|
75
|
+
export declare const OWNER_CHECK_ONS: ReadonlyArray<NotificationRuleConditionCheckOn>;
|
|
61
76
|
export declare const CHECK_ON_LABELS: Readonly<Partial<Record<NotificationRuleConditionCheckOn, string>>>;
|
|
62
77
|
export declare function getCheckOnLabel(checkOn: NotificationRuleConditionCheckOn): string;
|
|
63
78
|
export declare enum ConditionType {
|
|
@@ -107,6 +122,14 @@ export declare class NotificationRuleConditionUtil {
|
|
|
107
122
|
checkOn: NotificationRuleConditionCheckOn | undefined;
|
|
108
123
|
conditionType: ConditionType | undefined;
|
|
109
124
|
}): boolean;
|
|
125
|
+
static isPeopleValueField(data: {
|
|
126
|
+
checkOn: NotificationRuleConditionCheckOn | undefined;
|
|
127
|
+
conditionType: ConditionType | undefined;
|
|
128
|
+
}): boolean;
|
|
129
|
+
static isOwnerCheckOn(checkOn: NotificationRuleConditionCheckOn | undefined): boolean;
|
|
130
|
+
static getValues(values: Partial<NotificationRuleConditionValues>): NotificationRuleConditionValues;
|
|
131
|
+
static getCheckOnsUsed(filters: Array<NotificationRuleCondition> | undefined | null): Set<NotificationRuleConditionCheckOn>;
|
|
132
|
+
static getValueIds(condition: NotificationRuleCondition | undefined | null): Array<string>;
|
|
110
133
|
static getDropdownOptionsByCheckOn(data: {
|
|
111
134
|
alertSeverities: Array<AlertSeverity>;
|
|
112
135
|
alertStates: Array<AlertState>;
|
|
@@ -119,6 +142,8 @@ export declare class NotificationRuleConditionUtil {
|
|
|
119
142
|
securityCasePriorities?: Array<SecurityCasePriority> | undefined;
|
|
120
143
|
securityCaseStatuses?: Array<SecurityCaseStatus> | undefined;
|
|
121
144
|
serviceLevelObjectives?: Array<ServiceLevelObjective> | undefined;
|
|
145
|
+
onCallDutyPolicies?: Array<OnCallDutyPolicy> | undefined;
|
|
146
|
+
keptIds?: Array<string> | undefined;
|
|
122
147
|
checkOn: NotificationRuleConditionCheckOn;
|
|
123
148
|
}): Array<DropdownOption>;
|
|
124
149
|
static getCheckOnByEventType(eventType: NotificationRuleEventType): Array<NotificationRuleConditionCheckOn>;
|
|
@@ -5,6 +5,7 @@ import IncidentState from "../../../Models/DatabaseModels/IncidentState";
|
|
|
5
5
|
import Label from "../../../Models/DatabaseModels/Label";
|
|
6
6
|
import Monitor from "../../../Models/DatabaseModels/Monitor";
|
|
7
7
|
import MonitorStatus from "../../../Models/DatabaseModels/MonitorStatus";
|
|
8
|
+
import OnCallDutyPolicy from "../../../Models/DatabaseModels/OnCallDutyPolicy";
|
|
8
9
|
import ScheduledMaintenanceState from "../../../Models/DatabaseModels/ScheduledMaintenanceState";
|
|
9
10
|
import ServiceLevelObjective from "../../../Models/DatabaseModels/ServiceLevelObjective";
|
|
10
11
|
import { DropdownOption } from "../../../UI/Components/Dropdown/Dropdown";
|
|
@@ -46,6 +47,7 @@ export declare enum NotificationRuleConditionCheckOn {
|
|
|
46
47
|
OnCallDutyPolicyName = "On Call Duty Policy Name",
|
|
47
48
|
OnCallDutyPolicyDescription = "On Call Duty Policy Description",
|
|
48
49
|
OnCallDutyPolicyLabels = "On Call Duty Policy Labels",
|
|
50
|
+
OnCallDutyPolicies = "On-Call Policy",
|
|
49
51
|
SecurityCaseTitle = "Security Case Title",
|
|
50
52
|
SecurityCaseDescription = "Security Case Description",
|
|
51
53
|
SecurityCasePriority = "Security Case Priority",
|
|
@@ -56,8 +58,21 @@ export declare enum NotificationRuleConditionCheckOn {
|
|
|
56
58
|
SloName = "SLO Name",
|
|
57
59
|
Slos = "SLOs",
|
|
58
60
|
SloLabels = "SLO Labels",
|
|
59
|
-
SloErrorBudgetPolicyChange = "Error Budget Policy Change"
|
|
61
|
+
SloErrorBudgetPolicyChange = "Error Budget Policy Change",
|
|
62
|
+
IncidentOwners = "Incident Owner",
|
|
63
|
+
AlertOwners = "Alert Owner",
|
|
64
|
+
IncidentEpisodeOwners = "Incident Episode Owner",
|
|
65
|
+
AlertEpisodeOwners = "Alert Episode Owner",
|
|
66
|
+
ScheduledMaintenanceOwners = "Scheduled Maintenance Owner",
|
|
67
|
+
MonitorOwners = "Monitor Owner",
|
|
68
|
+
OnCallDutyPolicyOwners = "On-Call Policy Owner",
|
|
69
|
+
SloOwners = "SLO Owner"
|
|
60
70
|
}
|
|
71
|
+
export type NotificationRuleConditionValues = {
|
|
72
|
+
[key in NotificationRuleConditionCheckOn]: string | Array<string> | undefined;
|
|
73
|
+
};
|
|
74
|
+
export declare const OWNER_CHECK_ON_BY_EVENT_TYPE: Readonly<Partial<Record<NotificationRuleEventType, NotificationRuleConditionCheckOn>>>;
|
|
75
|
+
export declare const OWNER_CHECK_ONS: ReadonlyArray<NotificationRuleConditionCheckOn>;
|
|
61
76
|
export declare const CHECK_ON_LABELS: Readonly<Partial<Record<NotificationRuleConditionCheckOn, string>>>;
|
|
62
77
|
export declare function getCheckOnLabel(checkOn: NotificationRuleConditionCheckOn): string;
|
|
63
78
|
export declare enum ConditionType {
|
|
@@ -107,6 +122,14 @@ export declare class NotificationRuleConditionUtil {
|
|
|
107
122
|
checkOn: NotificationRuleConditionCheckOn | undefined;
|
|
108
123
|
conditionType: ConditionType | undefined;
|
|
109
124
|
}): boolean;
|
|
125
|
+
static isPeopleValueField(data: {
|
|
126
|
+
checkOn: NotificationRuleConditionCheckOn | undefined;
|
|
127
|
+
conditionType: ConditionType | undefined;
|
|
128
|
+
}): boolean;
|
|
129
|
+
static isOwnerCheckOn(checkOn: NotificationRuleConditionCheckOn | undefined): boolean;
|
|
130
|
+
static getValues(values: Partial<NotificationRuleConditionValues>): NotificationRuleConditionValues;
|
|
131
|
+
static getCheckOnsUsed(filters: Array<NotificationRuleCondition> | undefined | null): Set<NotificationRuleConditionCheckOn>;
|
|
132
|
+
static getValueIds(condition: NotificationRuleCondition | undefined | null): Array<string>;
|
|
110
133
|
static getDropdownOptionsByCheckOn(data: {
|
|
111
134
|
alertSeverities: Array<AlertSeverity>;
|
|
112
135
|
alertStates: Array<AlertState>;
|
|
@@ -119,6 +142,8 @@ export declare class NotificationRuleConditionUtil {
|
|
|
119
142
|
securityCasePriorities?: Array<SecurityCasePriority> | undefined;
|
|
120
143
|
securityCaseStatuses?: Array<SecurityCaseStatus> | undefined;
|
|
121
144
|
serviceLevelObjectives?: Array<ServiceLevelObjective> | undefined;
|
|
145
|
+
onCallDutyPolicies?: Array<OnCallDutyPolicy> | undefined;
|
|
146
|
+
keptIds?: Array<string> | undefined;
|
|
122
147
|
checkOn: NotificationRuleConditionCheckOn;
|
|
123
148
|
}): Array<DropdownOption>;
|
|
124
149
|
static getCheckOnByEventType(eventType: NotificationRuleEventType): Array<NotificationRuleConditionCheckOn>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import BaseNotificationRule from "./BaseNotificationRule.mjs";
|
|
2
|
+
import NotificationRuleEventType from "./EventType.mjs";
|
|
3
|
+
import NotificationRuleWorkspaceChannel from "./NotificationRuleWorkspaceChannel.mjs";
|
|
4
|
+
export declare enum NotificationRuleUpdateKind {
|
|
5
|
+
Created = "Created",
|
|
6
|
+
VideoCallStarted = "VideoCallStarted",
|
|
7
|
+
ResolvedAndReopened = "ResolvedAndReopened",
|
|
8
|
+
StateChanges = "StateChanges",
|
|
9
|
+
SeverityChanges = "SeverityChanges",
|
|
10
|
+
PublicNotes = "PublicNotes",
|
|
11
|
+
PrivateNotes = "PrivateNotes",
|
|
12
|
+
Owners = "Owners",
|
|
13
|
+
Paging = "Paging",
|
|
14
|
+
EpisodeMembers = "EpisodeMembers",
|
|
15
|
+
Postmortem = "Postmortem",
|
|
16
|
+
AI = "AI",
|
|
17
|
+
Edits = "Edits",
|
|
18
|
+
Other = "Other",
|
|
19
|
+
OnCallNow = "OnCallNow",
|
|
20
|
+
OnCallNext = "OnCallNext",
|
|
21
|
+
NobodyOnCall = "NobodyOnCall",
|
|
22
|
+
Overrides = "Overrides",
|
|
23
|
+
PolicyChanges = "PolicyChanges"
|
|
24
|
+
}
|
|
25
|
+
export declare enum NotificationRuleUpdatesChoice {
|
|
26
|
+
EveryUpdate = "EveryUpdate",
|
|
27
|
+
KeyUpdates = "KeyUpdates",
|
|
28
|
+
ChosenUpdates = "ChosenUpdates"
|
|
29
|
+
}
|
|
30
|
+
export declare const ALWAYS_POSTED_UPDATE_KINDS: ReadonlyArray<NotificationRuleUpdateKind>;
|
|
31
|
+
export type RuleWithUpdates = Partial<Pick<BaseNotificationRule, "updatesToPost">>;
|
|
32
|
+
export type StoredRuleUpdates = RuleWithUpdates | null | undefined;
|
|
33
|
+
export interface RuleOfChannel {
|
|
34
|
+
id: string;
|
|
35
|
+
rule: StoredRuleUpdates;
|
|
36
|
+
}
|
|
37
|
+
export default class NotificationRuleUpdates {
|
|
38
|
+
static isUpdateKind(value: unknown): value is NotificationRuleUpdateKind;
|
|
39
|
+
static isAlwaysPosted(kind: NotificationRuleUpdateKind): boolean;
|
|
40
|
+
static getChoosableKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
|
|
41
|
+
static canChooseUpdates(eventType: NotificationRuleEventType | undefined): boolean;
|
|
42
|
+
static getNewRuleUpdatesToPost(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind> | undefined;
|
|
43
|
+
static getNewRuleUpdates(eventType: NotificationRuleEventType | undefined): RuleWithUpdates;
|
|
44
|
+
static getKeyKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
|
|
45
|
+
static getChosenKinds(rule: StoredRuleUpdates): Array<NotificationRuleUpdateKind> | undefined;
|
|
46
|
+
static getChoice(data: {
|
|
47
|
+
rule: StoredRuleUpdates;
|
|
48
|
+
eventType: NotificationRuleEventType | undefined;
|
|
49
|
+
}): NotificationRuleUpdatesChoice;
|
|
50
|
+
static getPostedKinds(data: {
|
|
51
|
+
rule: StoredRuleUpdates;
|
|
52
|
+
eventType: NotificationRuleEventType | undefined;
|
|
53
|
+
}): Array<NotificationRuleUpdateKind>;
|
|
54
|
+
static withChosenKinds<T extends RuleWithUpdates>(data: {
|
|
55
|
+
rule: T | undefined;
|
|
56
|
+
eventType: NotificationRuleEventType | undefined;
|
|
57
|
+
kinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
58
|
+
}): T;
|
|
59
|
+
static withChoice<T extends RuleWithUpdates>(data: {
|
|
60
|
+
rule: T | undefined;
|
|
61
|
+
eventType: NotificationRuleEventType | undefined;
|
|
62
|
+
choice: NotificationRuleUpdatesChoice;
|
|
63
|
+
kinds?: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
64
|
+
}): T;
|
|
65
|
+
static isPostedEverywhere(updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined): boolean;
|
|
66
|
+
static wantsUpdate(data: {
|
|
67
|
+
rule: StoredRuleUpdates;
|
|
68
|
+
updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
69
|
+
}): boolean;
|
|
70
|
+
static isWantedInChannel(data: {
|
|
71
|
+
channel: Partial<Pick<NotificationRuleWorkspaceChannel, "notificationRuleId" | "notificationRuleIds">>;
|
|
72
|
+
rules: ReadonlyArray<RuleOfChannel>;
|
|
73
|
+
updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
74
|
+
}): boolean;
|
|
75
|
+
static getStateChangeKind(data: {
|
|
76
|
+
isResolved: boolean;
|
|
77
|
+
wasResolved: boolean;
|
|
78
|
+
}): NotificationRuleUpdateKind;
|
|
79
|
+
static getValidationError(data: {
|
|
80
|
+
eventType: NotificationRuleEventType | undefined;
|
|
81
|
+
updatesToPost: unknown;
|
|
82
|
+
}): string | null;
|
|
83
|
+
private static isSameKinds;
|
|
84
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import BaseNotificationRule from "./BaseNotificationRule";
|
|
2
|
+
import NotificationRuleEventType from "./EventType";
|
|
3
|
+
import NotificationRuleWorkspaceChannel from "./NotificationRuleWorkspaceChannel";
|
|
4
|
+
export declare enum NotificationRuleUpdateKind {
|
|
5
|
+
Created = "Created",
|
|
6
|
+
VideoCallStarted = "VideoCallStarted",
|
|
7
|
+
ResolvedAndReopened = "ResolvedAndReopened",
|
|
8
|
+
StateChanges = "StateChanges",
|
|
9
|
+
SeverityChanges = "SeverityChanges",
|
|
10
|
+
PublicNotes = "PublicNotes",
|
|
11
|
+
PrivateNotes = "PrivateNotes",
|
|
12
|
+
Owners = "Owners",
|
|
13
|
+
Paging = "Paging",
|
|
14
|
+
EpisodeMembers = "EpisodeMembers",
|
|
15
|
+
Postmortem = "Postmortem",
|
|
16
|
+
AI = "AI",
|
|
17
|
+
Edits = "Edits",
|
|
18
|
+
Other = "Other",
|
|
19
|
+
OnCallNow = "OnCallNow",
|
|
20
|
+
OnCallNext = "OnCallNext",
|
|
21
|
+
NobodyOnCall = "NobodyOnCall",
|
|
22
|
+
Overrides = "Overrides",
|
|
23
|
+
PolicyChanges = "PolicyChanges"
|
|
24
|
+
}
|
|
25
|
+
export declare enum NotificationRuleUpdatesChoice {
|
|
26
|
+
EveryUpdate = "EveryUpdate",
|
|
27
|
+
KeyUpdates = "KeyUpdates",
|
|
28
|
+
ChosenUpdates = "ChosenUpdates"
|
|
29
|
+
}
|
|
30
|
+
export declare const ALWAYS_POSTED_UPDATE_KINDS: ReadonlyArray<NotificationRuleUpdateKind>;
|
|
31
|
+
export type RuleWithUpdates = Partial<Pick<BaseNotificationRule, "updatesToPost">>;
|
|
32
|
+
export type StoredRuleUpdates = RuleWithUpdates | null | undefined;
|
|
33
|
+
export interface RuleOfChannel {
|
|
34
|
+
id: string;
|
|
35
|
+
rule: StoredRuleUpdates;
|
|
36
|
+
}
|
|
37
|
+
export default class NotificationRuleUpdates {
|
|
38
|
+
static isUpdateKind(value: unknown): value is NotificationRuleUpdateKind;
|
|
39
|
+
static isAlwaysPosted(kind: NotificationRuleUpdateKind): boolean;
|
|
40
|
+
static getChoosableKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
|
|
41
|
+
static canChooseUpdates(eventType: NotificationRuleEventType | undefined): boolean;
|
|
42
|
+
static getNewRuleUpdatesToPost(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind> | undefined;
|
|
43
|
+
static getNewRuleUpdates(eventType: NotificationRuleEventType | undefined): RuleWithUpdates;
|
|
44
|
+
static getKeyKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
|
|
45
|
+
static getChosenKinds(rule: StoredRuleUpdates): Array<NotificationRuleUpdateKind> | undefined;
|
|
46
|
+
static getChoice(data: {
|
|
47
|
+
rule: StoredRuleUpdates;
|
|
48
|
+
eventType: NotificationRuleEventType | undefined;
|
|
49
|
+
}): NotificationRuleUpdatesChoice;
|
|
50
|
+
static getPostedKinds(data: {
|
|
51
|
+
rule: StoredRuleUpdates;
|
|
52
|
+
eventType: NotificationRuleEventType | undefined;
|
|
53
|
+
}): Array<NotificationRuleUpdateKind>;
|
|
54
|
+
static withChosenKinds<T extends RuleWithUpdates>(data: {
|
|
55
|
+
rule: T | undefined;
|
|
56
|
+
eventType: NotificationRuleEventType | undefined;
|
|
57
|
+
kinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
58
|
+
}): T;
|
|
59
|
+
static withChoice<T extends RuleWithUpdates>(data: {
|
|
60
|
+
rule: T | undefined;
|
|
61
|
+
eventType: NotificationRuleEventType | undefined;
|
|
62
|
+
choice: NotificationRuleUpdatesChoice;
|
|
63
|
+
kinds?: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
64
|
+
}): T;
|
|
65
|
+
static isPostedEverywhere(updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined): boolean;
|
|
66
|
+
static wantsUpdate(data: {
|
|
67
|
+
rule: StoredRuleUpdates;
|
|
68
|
+
updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
69
|
+
}): boolean;
|
|
70
|
+
static isWantedInChannel(data: {
|
|
71
|
+
channel: Partial<Pick<NotificationRuleWorkspaceChannel, "notificationRuleId" | "notificationRuleIds">>;
|
|
72
|
+
rules: ReadonlyArray<RuleOfChannel>;
|
|
73
|
+
updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
74
|
+
}): boolean;
|
|
75
|
+
static getStateChangeKind(data: {
|
|
76
|
+
isResolved: boolean;
|
|
77
|
+
wasResolved: boolean;
|
|
78
|
+
}): NotificationRuleUpdateKind;
|
|
79
|
+
static getValidationError(data: {
|
|
80
|
+
eventType: NotificationRuleEventType | undefined;
|
|
81
|
+
updatesToPost: unknown;
|
|
82
|
+
}): string | null;
|
|
83
|
+
private static isSameKinds;
|
|
84
|
+
}
|