@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import commonJsModule from "./ServerEmailEnvironment.js";
|
|
2
|
+
export default commonJsModule.default;
|
|
3
|
+
export const SERVER_EMAIL_AMAZON_SES_AUTHENTICATION_TYPE_VALUES = commonJsModule.SERVER_EMAIL_AMAZON_SES_AUTHENTICATION_TYPE_VALUES;
|
|
4
|
+
export const SERVER_EMAIL_COLUMNS = commonJsModule.SERVER_EMAIL_COLUMNS;
|
|
5
|
+
export const SERVER_EMAIL_ENVIRONMENT_ROUTE = commonJsModule.SERVER_EMAIL_ENVIRONMENT_ROUTE;
|
|
6
|
+
export const SERVER_EMAIL_ENVIRONMENT_VARIABLES = commonJsModule.SERVER_EMAIL_ENVIRONMENT_VARIABLES;
|
|
7
|
+
export const SERVER_EMAIL_MAILGUN_REGION_VALUES = commonJsModule.SERVER_EMAIL_MAILGUN_REGION_VALUES;
|
|
8
|
+
export const SERVER_EMAIL_SECRET_VARIABLES = commonJsModule.SERVER_EMAIL_SECRET_VARIABLES;
|
|
9
|
+
export const SERVER_EMAIL_SERVER_TYPE_VALUES = commonJsModule.SERVER_EMAIL_SERVER_TYPE_VALUES;
|
|
10
|
+
export const SERVER_EMAIL_SET_BY_ENVIRONMENT_MESSAGE = commonJsModule.SERVER_EMAIL_SET_BY_ENVIRONMENT_MESSAGE;
|
|
11
|
+
export const SERVER_EMAIL_SMTP_AUTH_TYPE_VALUES = commonJsModule.SERVER_EMAIL_SMTP_AUTH_TYPE_VALUES;
|
|
12
|
+
export const SERVER_EMAIL_SMTP_OAUTH_PROVIDER_TYPE_VALUES = commonJsModule.SERVER_EMAIL_SMTP_OAUTH_PROVIDER_TYPE_VALUES;
|
|
13
|
+
export const SERVER_EMAIL_SMTP_TRANSPORT_VALUES = commonJsModule.SERVER_EMAIL_SMTP_TRANSPORT_VALUES;
|
|
14
|
+
export const ServerEmailEnvironmentVariable = commonJsModule.ServerEmailEnvironmentVariable;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import BadDataExceptionWithDetails from "./BadDataExceptionWithDetails.mjs";
|
|
2
|
+
import { AiRunRefusalCode } from "../AI/AiRunRefusal.mjs";
|
|
3
|
+
export default class AiRunRefusalException extends BadDataExceptionWithDetails {
|
|
4
|
+
readonly refusalCode: AiRunRefusalCode;
|
|
5
|
+
constructor(refusalCode: AiRunRefusalCode);
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import BadDataExceptionWithDetails from "./BadDataExceptionWithDetails";
|
|
2
|
+
import { AiRunRefusalCode } from "../AI/AiRunRefusal";
|
|
3
|
+
export default class AiRunRefusalException extends BadDataExceptionWithDetails {
|
|
4
|
+
readonly refusalCode: AiRunRefusalCode;
|
|
5
|
+
constructor(refusalCode: AiRunRefusalCode);
|
|
6
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const BadDataExceptionWithDetails_1 = __importDefault(require("./BadDataExceptionWithDetails"));
|
|
7
|
+
const AiRunRefusal_1 = require("../AI/AiRunRefusal");
|
|
8
|
+
/*
|
|
9
|
+
* OneUptime AI did not start a run someone asked for (#7359): bad data
|
|
10
|
+
* (400) whose message is the refusal's English sentence, for the API and
|
|
11
|
+
* older Dashboards, with its code beside it -
|
|
12
|
+
* { message: "...", refusalCode: "ai_off" } - for the Dashboard to word
|
|
13
|
+
* in the reader's language.
|
|
14
|
+
*/
|
|
15
|
+
class AiRunRefusalException extends BadDataExceptionWithDetails_1.default {
|
|
16
|
+
constructor(refusalCode) {
|
|
17
|
+
super((0, AiRunRefusal_1.getAiRunRefusalMessage)(refusalCode), {
|
|
18
|
+
[AiRunRefusal_1.AI_RUN_REFUSAL_CODE_FIELD]: refusalCode,
|
|
19
|
+
});
|
|
20
|
+
this.refusalCode = refusalCode;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = AiRunRefusalException;
|
|
@@ -115,7 +115,7 @@ const SCHEDULED_MAINTENANCE_FIELDS = [
|
|
|
115
115
|
{
|
|
116
116
|
key: "title",
|
|
117
117
|
title: "Title",
|
|
118
|
-
description: "A one-line summary that becomes the
|
|
118
|
+
description: "A one-line summary that becomes the maintenance event's title.",
|
|
119
119
|
defaultLabel: "Title",
|
|
120
120
|
defaultHelpText: "A short summary of the maintenance.",
|
|
121
121
|
inputType: CustomFieldType_1.default.Text,
|
|
@@ -126,7 +126,7 @@ const SCHEDULED_MAINTENANCE_FIELDS = [
|
|
|
126
126
|
{
|
|
127
127
|
key: "description",
|
|
128
128
|
title: "Description",
|
|
129
|
-
description: "Rich text that becomes the
|
|
129
|
+
description: "Rich text that becomes the maintenance event's description.",
|
|
130
130
|
defaultLabel: "Description",
|
|
131
131
|
defaultHelpText: "What will change, and what people should expect.",
|
|
132
132
|
inputType: CustomFieldType_1.default.Markdown,
|
|
@@ -41,8 +41,8 @@ exports.FORM_TARGET_TYPE_TEXT = {
|
|
|
41
41
|
},
|
|
42
42
|
[FormTargetType.ScheduledMaintenance]: {
|
|
43
43
|
title: "Scheduled Maintenance",
|
|
44
|
-
noun: "
|
|
45
|
-
nounWithArticle: "a
|
|
44
|
+
noun: "maintenance event",
|
|
45
|
+
nounWithArticle: "a maintenance event",
|
|
46
46
|
description: "Each submission schedules a maintenance event. Use it for change and maintenance requests.",
|
|
47
47
|
},
|
|
48
48
|
};
|
package/Types/ListData.d.mts
CHANGED
|
@@ -7,11 +7,13 @@ export default class ListData {
|
|
|
7
7
|
skip: PositiveNumber;
|
|
8
8
|
limit: PositiveNumber;
|
|
9
9
|
hasMore?: boolean | undefined;
|
|
10
|
+
isCountCapped?: boolean | undefined;
|
|
10
11
|
});
|
|
11
12
|
data: JSONArray;
|
|
12
13
|
count: PositiveNumber;
|
|
13
14
|
skip: PositiveNumber;
|
|
14
15
|
limit: PositiveNumber;
|
|
15
16
|
hasMore?: boolean | undefined;
|
|
17
|
+
isCountCapped?: boolean | undefined;
|
|
16
18
|
toJSON(): JSONObject;
|
|
17
19
|
}
|
package/Types/ListData.d.ts
CHANGED
|
@@ -7,11 +7,13 @@ export default class ListData {
|
|
|
7
7
|
skip: PositiveNumber;
|
|
8
8
|
limit: PositiveNumber;
|
|
9
9
|
hasMore?: boolean | undefined;
|
|
10
|
+
isCountCapped?: boolean | undefined;
|
|
10
11
|
});
|
|
11
12
|
data: JSONArray;
|
|
12
13
|
count: PositiveNumber;
|
|
13
14
|
skip: PositiveNumber;
|
|
14
15
|
limit: PositiveNumber;
|
|
15
16
|
hasMore?: boolean | undefined;
|
|
17
|
+
isCountCapped?: boolean | undefined;
|
|
16
18
|
toJSON(): JSONObject;
|
|
17
19
|
}
|
package/Types/ListData.js
CHANGED
|
@@ -7,6 +7,7 @@ class ListData {
|
|
|
7
7
|
this.skip = obj.skip;
|
|
8
8
|
this.limit = obj.limit;
|
|
9
9
|
this.hasMore = obj.hasMore;
|
|
10
|
+
this.isCountCapped = obj.isCountCapped;
|
|
10
11
|
}
|
|
11
12
|
toJSON() {
|
|
12
13
|
const json = {
|
|
@@ -18,6 +19,9 @@ class ListData {
|
|
|
18
19
|
if (this.hasMore !== undefined) {
|
|
19
20
|
json["hasMore"] = this.hasMore;
|
|
20
21
|
}
|
|
22
|
+
if (this.isCountCapped) {
|
|
23
|
+
json["isCountCapped"] = true;
|
|
24
|
+
}
|
|
21
25
|
return json;
|
|
22
26
|
}
|
|
23
27
|
}
|
|
@@ -132,6 +132,15 @@ class MonitorCriteriaInstance extends DatabaseProperty_1.default {
|
|
|
132
132
|
* Dashboard/scripts/i18n/ExtractStrings.ts reads this file as a "keys"
|
|
133
133
|
* root: every template passed to translateTemplate, or marked with
|
|
134
134
|
* translationKey, is a key of the Dashboard's locale files.
|
|
135
|
+
*
|
|
136
|
+
* The server writes them in a person's language too, when it makes a
|
|
137
|
+
* monitor for them (Ask AI's set_up_website_monitoring, #7247): this file
|
|
138
|
+
* is one of the server locale set's DASHBOARD_SHARED_TEXT_SOURCES
|
|
139
|
+
* (Common/Scripts/I18n/ServerLocales), so after changing a sentence here
|
|
140
|
+
* and translating it in the Dashboard's files, run
|
|
141
|
+
* `npm run i18n:server-sync` from the repository's root: it copies the
|
|
142
|
+
* Dashboard's wording into Common/Server/Locales, and
|
|
143
|
+
* Tests/Server/Locales/ServerLocales fails until it is run.
|
|
135
144
|
*/
|
|
136
145
|
static getWordsTranslator(translator) {
|
|
137
146
|
return translator || ENGLISH_WORDS;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare enum MonitorNotCheckedReason {
|
|
2
|
+
MonitoringOff = "monitoringOff",
|
|
3
|
+
MonitorArchived = "monitorArchived"
|
|
4
|
+
}
|
|
5
|
+
export default MonitorNotCheckedReason;
|
|
6
|
+
export declare const MONITOR_NOT_CHECKED_REASONS: ReadonlyArray<MonitorNotCheckedReason>;
|
|
7
|
+
export declare function isMonitorNotCheckedReason(value: unknown): value is MonitorNotCheckedReason;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare enum MonitorNotCheckedReason {
|
|
2
|
+
MonitoringOff = "monitoringOff",
|
|
3
|
+
MonitorArchived = "monitorArchived"
|
|
4
|
+
}
|
|
5
|
+
export default MonitorNotCheckedReason;
|
|
6
|
+
export declare const MONITOR_NOT_CHECKED_REASONS: ReadonlyArray<MonitorNotCheckedReason>;
|
|
7
|
+
export declare function isMonitorNotCheckedReason(value: unknown): value is MonitorNotCheckedReason;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MONITOR_NOT_CHECKED_REASONS = void 0;
|
|
4
|
+
exports.isMonitorNotCheckedReason = isMonitorNotCheckedReason;
|
|
5
|
+
/*
|
|
6
|
+
* Why nothing checks a monitor, when nothing does: its monitoring is turned
|
|
7
|
+
* off (`disableActiveMonitoring`), or it is archived. A monitor that is
|
|
8
|
+
* checked has no reason at all.
|
|
9
|
+
*
|
|
10
|
+
* Decided by MonitoringOff.getNotCheckedReason (Utils/Monitor/MonitoringOff),
|
|
11
|
+
* where archived wins over turned off: unarchiving is what puts the monitor
|
|
12
|
+
* back, and its switch only matters after that. The values travel in JSON
|
|
13
|
+
* (the Network Map's device nodes carry one - NetworkTopology's
|
|
14
|
+
* NetworkTopologyMonitorNotChecked), so they are words, not numbers, and
|
|
15
|
+
* never change once written.
|
|
16
|
+
*/
|
|
17
|
+
var MonitorNotCheckedReason;
|
|
18
|
+
(function (MonitorNotCheckedReason) {
|
|
19
|
+
MonitorNotCheckedReason["MonitoringOff"] = "monitoringOff";
|
|
20
|
+
MonitorNotCheckedReason["MonitorArchived"] = "monitorArchived";
|
|
21
|
+
})(MonitorNotCheckedReason || (MonitorNotCheckedReason = {}));
|
|
22
|
+
exports.default = MonitorNotCheckedReason;
|
|
23
|
+
// Every reason, in the order a reader of a payload should accept them.
|
|
24
|
+
exports.MONITOR_NOT_CHECKED_REASONS = [
|
|
25
|
+
MonitorNotCheckedReason.MonitoringOff,
|
|
26
|
+
MonitorNotCheckedReason.MonitorArchived,
|
|
27
|
+
];
|
|
28
|
+
/*
|
|
29
|
+
* Whether a value read from a payload is one of the reasons. A payload from
|
|
30
|
+
* a newer or an older server may carry anything, so a reader asks this
|
|
31
|
+
* before it names a reason.
|
|
32
|
+
*/
|
|
33
|
+
function isMonitorNotCheckedReason(value) {
|
|
34
|
+
return (typeof value === "string" &&
|
|
35
|
+
exports.MONITOR_NOT_CHECKED_REASONS.includes(value));
|
|
36
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import MonitorNotCheckedReason from "../MonitorNotCheckedReason.mjs";
|
|
1
2
|
export type NetworkTopologyNodeStatus = "up" | "down" | "unknown";
|
|
2
3
|
export type NetworkTopologyLinkProtocol = "lldp" | "cdp" | "fdb" | "manual";
|
|
3
4
|
export type NetworkTopologyNodeKind = "device" | "unmanaged" | "endpoint";
|
|
@@ -15,11 +16,16 @@ export interface NetworkTopologyNodePlacementDiagnostics {
|
|
|
15
16
|
siteEndpointCollectorCount: number;
|
|
16
17
|
siteControllerDeviceCount: number;
|
|
17
18
|
}
|
|
19
|
+
export interface NetworkTopologyMonitorNotChecked {
|
|
20
|
+
monitorId: string;
|
|
21
|
+
reason: MonitorNotCheckedReason;
|
|
22
|
+
}
|
|
18
23
|
export interface NetworkTopologyNode {
|
|
19
24
|
id: string;
|
|
20
25
|
name: string;
|
|
21
26
|
isManaged: boolean;
|
|
22
27
|
status: NetworkTopologyNodeStatus;
|
|
28
|
+
monitorNotChecked?: NetworkTopologyMonitorNotChecked | undefined;
|
|
23
29
|
kind?: NetworkTopologyNodeKind | undefined;
|
|
24
30
|
role?: NetworkTopologyDeviceRole | undefined;
|
|
25
31
|
roleKey?: string | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import MonitorNotCheckedReason from "../MonitorNotCheckedReason";
|
|
1
2
|
export type NetworkTopologyNodeStatus = "up" | "down" | "unknown";
|
|
2
3
|
export type NetworkTopologyLinkProtocol = "lldp" | "cdp" | "fdb" | "manual";
|
|
3
4
|
export type NetworkTopologyNodeKind = "device" | "unmanaged" | "endpoint";
|
|
@@ -15,11 +16,16 @@ export interface NetworkTopologyNodePlacementDiagnostics {
|
|
|
15
16
|
siteEndpointCollectorCount: number;
|
|
16
17
|
siteControllerDeviceCount: number;
|
|
17
18
|
}
|
|
19
|
+
export interface NetworkTopologyMonitorNotChecked {
|
|
20
|
+
monitorId: string;
|
|
21
|
+
reason: MonitorNotCheckedReason;
|
|
22
|
+
}
|
|
18
23
|
export interface NetworkTopologyNode {
|
|
19
24
|
id: string;
|
|
20
25
|
name: string;
|
|
21
26
|
isManaged: boolean;
|
|
22
27
|
status: NetworkTopologyNodeStatus;
|
|
28
|
+
monitorNotChecked?: NetworkTopologyMonitorNotChecked | undefined;
|
|
23
29
|
kind?: NetworkTopologyNodeKind | undefined;
|
|
24
30
|
role?: NetworkTopologyDeviceRole | undefined;
|
|
25
31
|
roleKey?: string | undefined;
|
|
@@ -18,7 +18,7 @@ exports.DefaultUptimeHistoryLabels = {
|
|
|
18
18
|
close: "Close",
|
|
19
19
|
scheduledMaintenance: "Scheduled maintenance",
|
|
20
20
|
dayLabelWithMaintenance: "{{label}}, {{maintenance}}",
|
|
21
|
-
oneMaintenanceEvent: "1
|
|
22
|
-
maintenanceEvents: "{{total}}
|
|
21
|
+
oneMaintenanceEvent: "1 maintenance event",
|
|
22
|
+
maintenanceEvents: "{{total}} maintenance events",
|
|
23
23
|
moreMaintenance: "+{{total}} more",
|
|
24
24
|
};
|
|
@@ -3,6 +3,7 @@ import Permission from "../Permission.mjs";
|
|
|
3
3
|
export declare const GLOBAL_USER_OVERRIDE_HELD_OPTIONS: Readonly<HeldPermissionsOptions>;
|
|
4
4
|
export declare const GLOBAL_USER_OVERRIDE_ADD_REFUSAL: string;
|
|
5
5
|
export declare const GLOBAL_USER_OVERRIDE_DELETE_REFUSAL: string;
|
|
6
|
+
export declare const GLOBAL_USER_OVERRIDE_EDIT_REFUSAL: string;
|
|
6
7
|
export default class GlobalUserOverrideAccess {
|
|
7
8
|
static mayChange(held: HeldPermissions, permissions: ReadonlyArray<Permission>): boolean;
|
|
8
9
|
}
|
|
@@ -3,6 +3,7 @@ import Permission from "../Permission";
|
|
|
3
3
|
export declare const GLOBAL_USER_OVERRIDE_HELD_OPTIONS: Readonly<HeldPermissionsOptions>;
|
|
4
4
|
export declare const GLOBAL_USER_OVERRIDE_ADD_REFUSAL: string;
|
|
5
5
|
export declare const GLOBAL_USER_OVERRIDE_DELETE_REFUSAL: string;
|
|
6
|
+
export declare const GLOBAL_USER_OVERRIDE_EDIT_REFUSAL: string;
|
|
6
7
|
export default class GlobalUserOverrideAccess {
|
|
7
8
|
static mayChange(held: HeldPermissions, permissions: ReadonlyArray<Permission>): boolean;
|
|
8
9
|
}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GLOBAL_USER_OVERRIDE_DELETE_REFUSAL = exports.GLOBAL_USER_OVERRIDE_ADD_REFUSAL = exports.GLOBAL_USER_OVERRIDE_HELD_OPTIONS = void 0;
|
|
6
|
+
exports.GLOBAL_USER_OVERRIDE_EDIT_REFUSAL = exports.GLOBAL_USER_OVERRIDE_DELETE_REFUSAL = exports.GLOBAL_USER_OVERRIDE_ADD_REFUSAL = exports.GLOBAL_USER_OVERRIDE_HELD_OPTIONS = void 0;
|
|
7
7
|
const HeldPermissions_1 = __importDefault(require("../HeldPermissions"));
|
|
8
8
|
/*
|
|
9
9
|
* WHO MAY ADD OR REMOVE A GLOBAL USER OVERRIDE.
|
|
@@ -23,8 +23,9 @@ const HeldPermissions_1 = __importDefault(require("../HeldPermissions"));
|
|
|
23
23
|
* override as easily (issue #5617). Limited to owned policies, they could do
|
|
24
24
|
* neither: a record of no policy belongs to no owner.
|
|
25
25
|
*
|
|
26
|
-
* So adding a global override, or deleting one, takes a
|
|
27
|
-
* (
|
|
26
|
+
* So adding a global override, editing one or deleting one, takes a
|
|
27
|
+
* permission to add (to edit, to delete) user overrides that reaches the
|
|
28
|
+
* whole project
|
|
28
29
|
* (HeldPermissionsUtil, projectWideOnly): not one limited to labels or to
|
|
29
30
|
* owned policies, and not one a team's block with labels takes away from
|
|
30
31
|
* some policies, which the override would reach as well
|
|
@@ -32,9 +33,9 @@ const HeldPermissions_1 = __importDefault(require("../HeldPermissions"));
|
|
|
32
33
|
* team scoped to its own policies keeps adding them there, from each
|
|
33
34
|
* policy's own User Overrides page.
|
|
34
35
|
*
|
|
35
|
-
* The server holds every add and delete of the table to it
|
|
36
|
-
* (OnCallDutyPolicyUserOverrideService), and the dashboard locks Add
|
|
37
|
-
* Delete on the Global User Overrides page by it, with these words
|
|
36
|
+
* The server holds every add, edit and delete of the table to it
|
|
37
|
+
* (OnCallDutyPolicyUserOverrideService), and the dashboard locks Add, Edit
|
|
38
|
+
* and Delete on the Global User Overrides page by it, with these words
|
|
38
39
|
* (UserOverrideTable). Both read the caller's rows by the one rule
|
|
39
40
|
* (HeldPermissions).
|
|
40
41
|
*/
|
|
@@ -58,11 +59,13 @@ const translationKey = (text) => {
|
|
|
58
59
|
*/
|
|
59
60
|
exports.GLOBAL_USER_OVERRIDE_ADD_REFUSAL = translationKey("A global user override applies to every on-call policy in the project, and your permission to add user overrides covers only some of them. Add the override on the policy's own User Overrides page instead.");
|
|
60
61
|
exports.GLOBAL_USER_OVERRIDE_DELETE_REFUSAL = translationKey("A global user override applies to every on-call policy in the project, and your permission to delete user overrides covers only some of them. Someone whose permission covers every policy can delete it.");
|
|
62
|
+
exports.GLOBAL_USER_OVERRIDE_EDIT_REFUSAL = translationKey("A global user override applies to every on-call policy in the project, and your permission to edit user overrides covers only some of them. Someone whose permission covers every policy can edit it.");
|
|
61
63
|
class GlobalUserOverrideAccess {
|
|
62
64
|
/*
|
|
63
|
-
* Whether `held` adds - or, given the table's
|
|
64
|
-
* - a global user override: one of
|
|
65
|
-
* project, and no block on any of them,
|
|
65
|
+
* Whether `held` adds - or, given the table's update or delete
|
|
66
|
+
* permissions, edits or deletes - a global user override: one of
|
|
67
|
+
* `permissions` held over the whole project, and no block on any of them,
|
|
68
|
+
* with labels or without.
|
|
66
69
|
*/
|
|
67
70
|
static mayChange(held, permissions) {
|
|
68
71
|
return HeldPermissions_1.default.holdsAnyOf(held, permissions, exports.GLOBAL_USER_OVERRIDE_HELD_OPTIONS);
|
|
@@ -2,4 +2,5 @@ import commonJsModule from "./GlobalUserOverrideAccess.js";
|
|
|
2
2
|
export default commonJsModule.default;
|
|
3
3
|
export const GLOBAL_USER_OVERRIDE_ADD_REFUSAL = commonJsModule.GLOBAL_USER_OVERRIDE_ADD_REFUSAL;
|
|
4
4
|
export const GLOBAL_USER_OVERRIDE_DELETE_REFUSAL = commonJsModule.GLOBAL_USER_OVERRIDE_DELETE_REFUSAL;
|
|
5
|
+
export const GLOBAL_USER_OVERRIDE_EDIT_REFUSAL = commonJsModule.GLOBAL_USER_OVERRIDE_EDIT_REFUSAL;
|
|
5
6
|
export const GLOBAL_USER_OVERRIDE_HELD_OPTIONS = commonJsModule.GLOBAL_USER_OVERRIDE_HELD_OPTIONS;
|
|
@@ -2,13 +2,14 @@ import ObjectID from "../ObjectID.mjs";
|
|
|
2
2
|
import { OnCallPageAgainRun } from "./OnCallAcknowledgementTimeout.mjs";
|
|
3
3
|
import { OnCallObserverPageRun } from "./OnCallObserverPage.mjs";
|
|
4
4
|
import { OnCallPersonPageRun } from "./OnCallPersonPage.mjs";
|
|
5
|
+
import { OnCallPolicyStartedByHandRun } from "./OnCallPolicyStartedByHand.mjs";
|
|
5
6
|
export declare enum OnCallAcknowledgePageState {
|
|
6
7
|
Open = "Open",
|
|
7
8
|
AcknowledgedByYou = "AcknowledgedByYou",
|
|
8
9
|
AcknowledgedBySomeoneElse = "AcknowledgedBySomeoneElse",
|
|
9
10
|
Resolved = "Resolved"
|
|
10
11
|
}
|
|
11
|
-
export interface OnCallAcknowledgePageRun extends OnCallPageAgainRun, OnCallPersonPageRun, OnCallObserverPageRun {
|
|
12
|
+
export interface OnCallAcknowledgePageRun extends OnCallPageAgainRun, OnCallPersonPageRun, OnCallPolicyStartedByHandRun, OnCallObserverPageRun {
|
|
12
13
|
acknowledgedAt?: Date | string | null | undefined;
|
|
13
14
|
acknowledgedByUserId?: ObjectID | string | null | undefined;
|
|
14
15
|
acknowledgedByUser?: {
|
|
@@ -42,6 +43,7 @@ export interface OnCallAcknowledgePageAnswer {
|
|
|
42
43
|
isByYou?: true | undefined;
|
|
43
44
|
}
|
|
44
45
|
export declare function isOnCallPageEndedOnlyByAnAnswer(run: OnCallAcknowledgePageRun | null | undefined): boolean;
|
|
46
|
+
export declare function isOnCallPageAnsweredAsAPage(run: OnCallAcknowledgePageRun | null | undefined): boolean;
|
|
45
47
|
export declare function getOnCallAcknowledgePageAnswer(facts: OnCallAcknowledgePageFacts): OnCallAcknowledgePageAnswer;
|
|
46
48
|
export declare function isOnCallAcknowledgePageOpen(answer: OnCallAcknowledgePageAnswer): boolean;
|
|
47
49
|
export declare function getOnCallAcknowledgePagePersonName(user: {
|
|
@@ -2,13 +2,14 @@ import ObjectID from "../ObjectID";
|
|
|
2
2
|
import { OnCallPageAgainRun } from "./OnCallAcknowledgementTimeout";
|
|
3
3
|
import { OnCallObserverPageRun } from "./OnCallObserverPage";
|
|
4
4
|
import { OnCallPersonPageRun } from "./OnCallPersonPage";
|
|
5
|
+
import { OnCallPolicyStartedByHandRun } from "./OnCallPolicyStartedByHand";
|
|
5
6
|
export declare enum OnCallAcknowledgePageState {
|
|
6
7
|
Open = "Open",
|
|
7
8
|
AcknowledgedByYou = "AcknowledgedByYou",
|
|
8
9
|
AcknowledgedBySomeoneElse = "AcknowledgedBySomeoneElse",
|
|
9
10
|
Resolved = "Resolved"
|
|
10
11
|
}
|
|
11
|
-
export interface OnCallAcknowledgePageRun extends OnCallPageAgainRun, OnCallPersonPageRun, OnCallObserverPageRun {
|
|
12
|
+
export interface OnCallAcknowledgePageRun extends OnCallPageAgainRun, OnCallPersonPageRun, OnCallPolicyStartedByHandRun, OnCallObserverPageRun {
|
|
12
13
|
acknowledgedAt?: Date | string | null | undefined;
|
|
13
14
|
acknowledgedByUserId?: ObjectID | string | null | undefined;
|
|
14
15
|
acknowledgedByUser?: {
|
|
@@ -42,6 +43,7 @@ export interface OnCallAcknowledgePageAnswer {
|
|
|
42
43
|
isByYou?: true | undefined;
|
|
43
44
|
}
|
|
44
45
|
export declare function isOnCallPageEndedOnlyByAnAnswer(run: OnCallAcknowledgePageRun | null | undefined): boolean;
|
|
46
|
+
export declare function isOnCallPageAnsweredAsAPage(run: OnCallAcknowledgePageRun | null | undefined): boolean;
|
|
45
47
|
export declare function getOnCallAcknowledgePageAnswer(facts: OnCallAcknowledgePageFacts): OnCallAcknowledgePageAnswer;
|
|
46
48
|
export declare function isOnCallAcknowledgePageOpen(answer: OnCallAcknowledgePageAnswer): boolean;
|
|
47
49
|
export declare function getOnCallAcknowledgePagePersonName(user: {
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ON_CALL_ACKNOWLEDGE_PAGE_ALREADY_SEEN_TITLE = exports.ON_CALL_ACKNOWLEDGE_PAGE_ALREADY_RESOLVED_TITLE = exports.ON_CALL_ACKNOWLEDGE_PAGE_ALREADY_ACKNOWLEDGED_TITLE = exports.OnCallAcknowledgePageState = void 0;
|
|
7
7
|
exports.isOnCallPageEndedOnlyByAnAnswer = isOnCallPageEndedOnlyByAnAnswer;
|
|
8
|
+
exports.isOnCallPageAnsweredAsAPage = isOnCallPageAnsweredAsAPage;
|
|
8
9
|
exports.getOnCallAcknowledgePageAnswer = getOnCallAcknowledgePageAnswer;
|
|
9
10
|
exports.isOnCallAcknowledgePageOpen = isOnCallAcknowledgePageOpen;
|
|
10
11
|
exports.getOnCallAcknowledgePagePersonName = getOnCallAcknowledgePagePersonName;
|
|
@@ -17,6 +18,7 @@ const OnCallAcknowledgementTimeout_1 = require("./OnCallAcknowledgementTimeout")
|
|
|
17
18
|
const OnCallObserverPage_1 = require("./OnCallObserverPage");
|
|
18
19
|
const OnCallPagePassOn_1 = require("./OnCallPagePassOn");
|
|
19
20
|
const OnCallPersonPage_1 = require("./OnCallPersonPage");
|
|
21
|
+
const OnCallPolicyStartedByHand_1 = require("./OnCallPolicyStartedByHand");
|
|
20
22
|
/*
|
|
21
23
|
* WHAT THE ACKNOWLEDGE PAGE A MESSAGE'S LINK OPENS OFFERS.
|
|
22
24
|
*
|
|
@@ -42,10 +44,11 @@ const OnCallPersonPage_1 = require("./OnCallPersonPage");
|
|
|
42
44
|
* - a responder's page is over once its record is acknowledged - by the
|
|
43
45
|
* one rule, so a state after Acknowledged counts - whoever did it;
|
|
44
46
|
* - a page again (OnCallAcknowledgementTimeout), a page a person asked for
|
|
45
|
-
* (OnCallPersonPage)
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* of them
|
|
47
|
+
* (OnCallPersonPage), a policy a person started by hand
|
|
48
|
+
* (OnCallPolicyStartedByHand) and an observer's page (OnCallObserverPage)
|
|
49
|
+
* are about a record that is often acknowledged already, and go on until
|
|
50
|
+
* one of their people answers them: the record being acknowledged ends
|
|
51
|
+
* none of them.
|
|
49
52
|
*
|
|
50
53
|
* Once it is over, the page says so, with what it is about and the button
|
|
51
54
|
* that opens it in the Dashboard, and no Acknowledge - who took it, and when,
|
|
@@ -73,7 +76,8 @@ var OnCallAcknowledgePageState;
|
|
|
73
76
|
OnCallAcknowledgePageState["AcknowledgedByYou"] = "AcknowledgedByYou";
|
|
74
77
|
/*
|
|
75
78
|
* Somebody else took it: answered the page (a page again, a person's
|
|
76
|
-
* page, an observer's page), or acknowledged the
|
|
79
|
+
* page, a policy started by hand, an observer's page), or acknowledged the
|
|
80
|
+
* record (a responder's).
|
|
77
81
|
*/
|
|
78
82
|
OnCallAcknowledgePageState["AcknowledgedBySomeoneElse"] = "AcknowledgedBySomeoneElse";
|
|
79
83
|
// The record is resolved: every page of it is over.
|
|
@@ -82,13 +86,27 @@ var OnCallAcknowledgePageState;
|
|
|
82
86
|
/*
|
|
83
87
|
* Whether a run goes on until one of its people answers it, or its record is
|
|
84
88
|
* resolved - whoever acknowledges the record: a page again, a page a person
|
|
85
|
-
* asked for, an observer's page.
|
|
89
|
+
* asked for, a policy a person started by hand, an observer's page. The one
|
|
90
|
+
* rule the workers that page end runs by, and everything that says whether a
|
|
91
|
+
* page is still waiting for an answer.
|
|
86
92
|
*/
|
|
87
93
|
function isOnCallPageEndedOnlyByAnAnswer(run) {
|
|
88
94
|
return ((0, OnCallAcknowledgementTimeout_1.isOnCallPageAgainRun)(run) ||
|
|
89
95
|
(0, OnCallPersonPage_1.isOnCallPersonPage)(run) ||
|
|
96
|
+
(0, OnCallPolicyStartedByHand_1.isOnCallPolicyStartedByHand)(run) ||
|
|
90
97
|
(0, OnCallObserverPage_1.isOnCallObserverPage)(run));
|
|
91
98
|
}
|
|
99
|
+
/*
|
|
100
|
+
* Whether a person answers their page of a run as the page it is, once its
|
|
101
|
+
* record is acknowledged: a page again, a page a person asked for, a policy a
|
|
102
|
+
* person started by hand. The record's own Acknowledge is gone then, so the
|
|
103
|
+
* Dashboard and the app offer "Acknowledge again" for it
|
|
104
|
+
* (OnCallAcknowledgementTimeout.acknowledgePagesAgainForRecord). Not an
|
|
105
|
+
* observer's page: an observer says they have seen it instead.
|
|
106
|
+
*/
|
|
107
|
+
function isOnCallPageAnsweredAsAPage(run) {
|
|
108
|
+
return isOnCallPageEndedOnlyByAnAnswer(run) && !(0, OnCallObserverPage_1.isOnCallObserverPage)(run);
|
|
109
|
+
}
|
|
92
110
|
// What the acknowledge page offers, by the rule above.
|
|
93
111
|
function getOnCallAcknowledgePageAnswer(facts) {
|
|
94
112
|
var _a, _b;
|
|
@@ -9,4 +9,5 @@ export const getOnCallAcknowledgePageAnsweredSentence = commonJsModule.getOnCall
|
|
|
9
9
|
export const getOnCallAcknowledgePageMoment = commonJsModule.getOnCallAcknowledgePageMoment;
|
|
10
10
|
export const getOnCallAcknowledgePagePersonName = commonJsModule.getOnCallAcknowledgePagePersonName;
|
|
11
11
|
export const isOnCallAcknowledgePageOpen = commonJsModule.isOnCallAcknowledgePageOpen;
|
|
12
|
+
export const isOnCallPageAnsweredAsAPage = commonJsModule.isOnCallPageAnsweredAsAPage;
|
|
12
13
|
export const isOnCallPageEndedOnlyByAnAnswer = commonJsModule.isOnCallPageEndedOnlyByAnAnswer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import ObjectID from "../ObjectID.mjs";
|
|
2
|
+
import { OnCallPageAgainRun } from "./OnCallAcknowledgementTimeout.mjs";
|
|
3
|
+
import { OnCallObserverPageRun } from "./OnCallObserverPage.mjs";
|
|
4
|
+
import { OnCallTestPageRun } from "./OnCallTestPage.mjs";
|
|
5
|
+
export interface OnCallPolicyStartedByHandRun extends OnCallPageAgainRun, OnCallObserverPageRun, OnCallTestPageRun {
|
|
6
|
+
onCallDutyPolicyId?: ObjectID | string | null | undefined;
|
|
7
|
+
onCallDutyPolicy?: unknown;
|
|
8
|
+
triggeredByUserId?: ObjectID | string | null | undefined;
|
|
9
|
+
triggeredByWorkflowId?: ObjectID | string | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function isOnCallPolicyStartedByHand(run: OnCallPolicyStartedByHandRun | null | undefined): boolean;
|
|
12
|
+
export declare function getOnCallPolicyStartedOnResolvedRecordMessage(recordKind: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import ObjectID from "../ObjectID";
|
|
2
|
+
import { OnCallPageAgainRun } from "./OnCallAcknowledgementTimeout";
|
|
3
|
+
import { OnCallObserverPageRun } from "./OnCallObserverPage";
|
|
4
|
+
import { OnCallTestPageRun } from "./OnCallTestPage";
|
|
5
|
+
export interface OnCallPolicyStartedByHandRun extends OnCallPageAgainRun, OnCallObserverPageRun, OnCallTestPageRun {
|
|
6
|
+
onCallDutyPolicyId?: ObjectID | string | null | undefined;
|
|
7
|
+
onCallDutyPolicy?: unknown;
|
|
8
|
+
triggeredByUserId?: ObjectID | string | null | undefined;
|
|
9
|
+
triggeredByWorkflowId?: ObjectID | string | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function isOnCallPolicyStartedByHand(run: OnCallPolicyStartedByHandRun | null | undefined): boolean;
|
|
12
|
+
export declare function getOnCallPolicyStartedOnResolvedRecordMessage(recordKind: string): string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isOnCallPolicyStartedByHand = isOnCallPolicyStartedByHand;
|
|
4
|
+
exports.getOnCallPolicyStartedOnResolvedRecordMessage = getOnCallPolicyStartedOnResolvedRecordMessage;
|
|
5
|
+
const OnCallAcknowledgementTimeout_1 = require("./OnCallAcknowledgementTimeout");
|
|
6
|
+
const OnCallObserverPage_1 = require("./OnCallObserverPage");
|
|
7
|
+
const OnCallTestPage_1 = require("./OnCallTestPage");
|
|
8
|
+
/*
|
|
9
|
+
* Whether a run is an on-call policy a person started by hand: a policy, by
|
|
10
|
+
* its id or by the policy read with it, started by a person with no workflow
|
|
11
|
+
* behind it, that is not a page again, an observer's page or a test page.
|
|
12
|
+
* Asked only of a run read with every one of those columns: one read
|
|
13
|
+
* without them could look like one, or not look like one.
|
|
14
|
+
*/
|
|
15
|
+
function isOnCallPolicyStartedByHand(run) {
|
|
16
|
+
if (!run) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (!run.onCallDutyPolicyId && !run.onCallDutyPolicy) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if (!run.triggeredByUserId || run.triggeredByWorkflowId) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
return (!(0, OnCallAcknowledgementTimeout_1.isOnCallPageAgainRun)(run) &&
|
|
26
|
+
!(0, OnCallObserverPage_1.isOnCallObserverPage)(run) &&
|
|
27
|
+
!(0, OnCallTestPage_1.isOnCallTestPage)(run));
|
|
28
|
+
}
|
|
29
|
+
/*
|
|
30
|
+
* Why a person's request to start a policy for a resolved record started
|
|
31
|
+
* nothing - "This incident is resolved, so no on-call policy was started." -
|
|
32
|
+
* as Slack and Microsoft Teams say it of their own Execute On-Call Policy.
|
|
33
|
+
* `recordKind` is the record in words: "incident", "alert", "incident
|
|
34
|
+
* episode", "alert episode".
|
|
35
|
+
*/
|
|
36
|
+
function getOnCallPolicyStartedOnResolvedRecordMessage(recordKind) {
|
|
37
|
+
return `This ${recordKind} is resolved, so no on-call policy was started.`;
|
|
38
|
+
}
|