@oneuptime/common 14.3.0 → 15.0.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/AIAgent.js +5 -1
- package/Models/DatabaseModels/AcmeCertificate.js +14 -0
- package/Models/DatabaseModels/Alert.js +6 -8
- package/Models/DatabaseModels/AlertEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/AlertSeverity.js +3 -12
- package/Models/DatabaseModels/ApiKey.d.mts +3 -1
- package/Models/DatabaseModels/ApiKey.d.ts +3 -1
- package/Models/DatabaseModels/ApiKey.js +67 -14
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +37 -4
- package/Models/DatabaseModels/CallLog.js +15 -3
- package/Models/DatabaseModels/CodeRepository.d.mts +1 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +1 -0
- package/Models/DatabaseModels/CodeRepository.js +45 -2
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.mts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.ts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.js +436 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.mjs +2 -0
- package/Models/DatabaseModels/Dashboard.js +10 -2
- package/Models/DatabaseModels/DashboardDomain.js +22 -27
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.js +30 -0
- package/Models/DatabaseModels/EmailLog.js +15 -3
- package/Models/DatabaseModels/File.js +4 -2
- package/Models/DatabaseModels/FormDomain.js +10 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +9 -1
- package/Models/DatabaseModels/GlobalConfig.d.ts +9 -1
- package/Models/DatabaseModels/GlobalConfig.js +186 -10
- package/Models/DatabaseModels/Incident.js +38 -44
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/IncidentPublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentSeverity.js +3 -12
- package/Models/DatabaseModels/IncidentStateTimeline.js +12 -16
- package/Models/DatabaseModels/IncidentTemplate.js +6 -11
- package/Models/DatabaseModels/IncomingRequestSecret.d.mts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.d.ts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.js +156 -29
- package/Models/DatabaseModels/Index.js +2 -5
- package/Models/DatabaseModels/Monitor.d.mts +1 -0
- package/Models/DatabaseModels/Monitor.d.ts +1 -0
- package/Models/DatabaseModels/Monitor.js +97 -22
- package/Models/DatabaseModels/MonitorNetworkDevice.js +4 -1
- package/Models/DatabaseModels/MonitorTemplate.js +3 -1
- package/Models/DatabaseModels/MonitorTest.js +3 -1
- package/Models/DatabaseModels/NetworkDevice.js +16 -3
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +45 -12
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +93 -5
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +43 -0
- package/Models/DatabaseModels/Probe.js +5 -1
- package/Models/DatabaseModels/Project.d.mts +1 -1
- package/Models/DatabaseModels/Project.d.ts +1 -1
- package/Models/DatabaseModels/Project.js +59 -64
- package/Models/DatabaseModels/ProjectSmtpConfig.js +44 -49
- package/Models/DatabaseModels/PushNotificationLog.js +15 -3
- package/Models/DatabaseModels/Reseller.js +2 -8
- package/Models/DatabaseModels/ResellerPlan.js +2 -8
- package/Models/DatabaseModels/RunbookExecution.js +4 -4
- package/Models/DatabaseModels/Runner.d.mts +1 -0
- package/Models/DatabaseModels/Runner.d.ts +1 -0
- package/Models/DatabaseModels/Runner.js +50 -0
- package/Models/DatabaseModels/ScheduledMaintenance.js +32 -24
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +11 -16
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +12 -16
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +9 -8
- package/Models/DatabaseModels/ServiceLevelObjective.js +7 -0
- package/Models/DatabaseModels/SmsLog.js +15 -3
- package/Models/DatabaseModels/StatusPage.js +30 -11
- package/Models/DatabaseModels/StatusPageAnnouncement.js +19 -24
- package/Models/DatabaseModels/StatusPageDomain.js +24 -27
- package/Models/DatabaseModels/StatusPageSubscriber.js +5 -4
- package/Models/DatabaseModels/TelegramLog.js +15 -3
- package/Models/DatabaseModels/User.d.mts +0 -3
- package/Models/DatabaseModels/User.d.ts +0 -3
- package/Models/DatabaseModels/User.js +5 -73
- package/Models/DatabaseModels/UserOnCallLog.d.mts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.d.ts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.js +52 -5
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -2
- package/Models/DatabaseModels/UserWebhook.js +14 -5
- package/Models/DatabaseModels/WebhookLog.js +15 -3
- package/Models/DatabaseModels/WhatsAppLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +10 -7
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.js +16 -2
- package/Models/DatabaseModels/WorkspaceUserAuthToken.js +13 -2
- package/Server/Services/DatabaseService.d.mts +57 -38
- package/Server/Services/DatabaseService.d.ts +57 -38
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.mts +123 -0
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.ts +123 -0
- package/Types/AI/AIActionWords.d.mts +14 -1
- package/Types/AI/AIActionWords.d.ts +14 -1
- package/Types/AI/AIActionWords.js +85 -1
- package/Types/AI/AIActionWords.mjs +4 -0
- package/Types/AI/AIAgentRunLimits.js +5 -4
- package/Types/AI/AIChatTypes.js +8 -3
- package/Types/AI/AIReadTableWords.js +7 -2
- package/Types/AI/AiActivityInsights.d.mts +1 -0
- package/Types/AI/AiActivityInsights.d.ts +1 -0
- package/Types/AI/CodeTask.d.mts +1 -0
- package/Types/AI/CodeTask.d.ts +1 -0
- package/Types/AI/CodeTask.js +7 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +4 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +4 -0
- package/Types/Accounts/MoreWaysToSignIn.d.mts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.d.ts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.js +11 -0
- package/Types/Accounts/MoreWaysToSignIn.mjs +2 -0
- package/Types/Accounts/SignInMessages.d.mts +5 -0
- package/Types/Accounts/SignInMessages.d.ts +5 -0
- package/Types/Accounts/SignInMessages.js +19 -1
- package/Types/Accounts/SignInMessages.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +7 -2
- package/Types/Analytics/ProductEvent.d.ts +7 -2
- package/Types/Analytics/ProductEvent.js +62 -12
- package/Types/ApiKey/ApiKeyShownOnce.d.mts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.d.ts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.js +78 -0
- package/Types/ApiKey/ApiKeyShownOnce.mjs +6 -0
- package/Types/AuditLog/AuditLogAction.d.mts +1 -0
- package/Types/AuditLog/AuditLogAction.d.ts +1 -0
- package/Types/AuditLog/AuditLogAction.js +11 -1
- package/Types/AuditLog/AuditLogActionLabel.js +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +1 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.js +107 -12
- package/Types/AuditLog/AuditLogSessionEvent.mjs +6 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.mts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.ts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.js +109 -0
- package/Types/AuditLog/AuditLogSignInFailure.mjs +8 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.mts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.ts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.js +106 -0
- package/Types/AuditLog/AuditLogStatusPageSession.mjs +9 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.mts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.ts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.js +57 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.mjs +5 -0
- package/Types/AutoRemediation/RemediationApprovals.d.mts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.d.ts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.js +174 -8
- package/Types/AutoRemediation/RemediationApprovals.mjs +9 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.mts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.ts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.js +131 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.mjs +6 -0
- package/Types/BaseDatabase/SortNulls.d.mts +5 -0
- package/Types/BaseDatabase/SortNulls.d.ts +5 -0
- package/Types/BaseDatabase/SortNulls.js +14 -0
- package/Types/BaseDatabase/SortNulls.mjs +2 -0
- package/Types/Billing/AdminProjectInvoice.d.mts +20 -0
- package/Types/Billing/AdminProjectInvoice.d.ts +20 -0
- package/Types/Billing/AdminProjectInvoice.js +85 -0
- package/Types/Billing/AdminProjectInvoice.mjs +6 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.mts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.d.ts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.js +28 -2
- package/Types/CloudConnection/CloudAiAgentCost.mjs +4 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +354 -16
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +17 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.mts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.ts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.js +69 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.mjs +11 -0
- package/Types/DataObservability/DataLineageMap.d.mts +147 -0
- package/Types/DataObservability/DataLineageMap.d.ts +147 -0
- package/Types/DataObservability/DataLineageMap.js +503 -0
- package/Types/DataObservability/DataLineageMap.mjs +20 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
- package/Types/Database/TableColumn.d.mts +1 -0
- package/Types/Database/TableColumn.d.ts +1 -0
- package/Types/Database/UserAttribution.js +7 -3
- package/Types/Date.d.mts +0 -2
- package/Types/Date.d.ts +0 -2
- package/Types/Date.js +12 -19
- package/Types/Email/EmailMessage.d.mts +2 -0
- package/Types/Email/EmailMessage.d.ts +2 -0
- package/Types/Email/EmailRecipients.d.mts +11 -0
- package/Types/Email/EmailRecipients.d.ts +11 -0
- package/Types/Email/EmailRecipients.js +84 -0
- package/Types/Email/EmailRecipients.mjs +6 -0
- package/Types/Email/EmailTemplateType.d.mts +2 -1
- package/Types/Email/EmailTemplateType.d.ts +2 -1
- package/Types/Email/EmailTemplateType.js +5 -0
- package/Types/IP/IP.js +27 -1
- package/Types/JoinedSerializableObjects.d.mts +6 -0
- package/Types/JoinedSerializableObjects.d.ts +6 -0
- package/Types/JoinedSerializableObjects.js +14 -0
- package/Types/JoinedSerializableObjects.mjs +3 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.mts +2 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.ts +2 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.mts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.ts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.js +81 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.mjs +5 -0
- package/Types/MeaningKeys.js +19 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.mts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.ts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.js +105 -4
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.mjs +7 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.mts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.ts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.js +28 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.mjs +3 -0
- package/Types/Monitor/MonitorCriteria.js +8 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +8 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.mts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.ts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.js +2 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.mjs +1 -0
- package/Types/Monitor/MonitorJsonTypes.d.mts +4 -0
- package/Types/Monitor/MonitorJsonTypes.d.ts +4 -0
- package/Types/Monitor/MonitorJsonTypes.js +31 -0
- package/Types/Monitor/MonitorJsonTypes.mjs +2 -0
- package/Types/Monitor/MonitorStep.js +8 -0
- package/Types/Monitor/MonitorSteps.js +8 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.js +21 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.mjs +2 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.js +24 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.mjs +2 -0
- package/Types/Monitor/UptimeHistoryLabels.d.mts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.d.ts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.js +4 -0
- package/Types/Monitor/WhoIsTold.d.mts +25 -0
- package/Types/Monitor/WhoIsTold.d.ts +25 -0
- package/Types/Monitor/WhoIsTold.js +171 -19
- package/Types/Monitor/WhoIsTold.mjs +3 -0
- package/Types/NoBreakSpaces.d.mts +5 -1
- package/Types/NoBreakSpaces.d.ts +5 -1
- package/Types/NoBreakSpaces.js +107 -52
- package/Types/NoBreakSpaces.mjs +1 -0
- package/Types/NotificationRule/PagingLadder.d.mts +2 -0
- package/Types/NotificationRule/PagingLadder.d.ts +2 -0
- package/Types/NotificationRule/PagingLadder.js +47 -1
- package/Types/NotificationRule/PagingLadder.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.mts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.ts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.js +6 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +41 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.mts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.ts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.js +60 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.mts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.ts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.js +192 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.mjs +14 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.js +142 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +13 -0
- package/Types/Password.d.mts +18 -12
- package/Types/Password.d.ts +18 -12
- package/Types/Password.js +63 -58
- package/Types/Password.mjs +3 -3
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +48 -0
- package/Types/PrivateRecord/PrivateRecordParts.js +50 -0
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +11 -0
- package/Types/Product/ProjectProducts.d.mts +1 -15
- package/Types/Product/ProjectProducts.d.ts +1 -15
- package/Types/Product/ProjectProducts.js +38 -129
- package/Types/Product/ProjectProducts.mjs +1 -5
- package/Types/Product/ProjectProductsAnswer.js +5 -6
- package/Types/ProductFeedback/ProductFeedback.d.mts +29 -4
- package/Types/ProductFeedback/ProductFeedback.d.ts +29 -4
- package/Types/ProductFeedback/ProductFeedback.js +176 -28
- package/Types/ProductFeedback/ProductFeedback.mjs +11 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +20 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +5 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +18 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +2 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +33 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +33 -0
- package/Types/Retention/ResolvedRecordRetention.js +211 -1
- package/Types/Retention/ResolvedRecordRetention.mjs +13 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.mts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.ts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.js +134 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.mjs +5 -0
- package/Types/Rules/RuleEmptiedLimit.d.mts +20 -0
- package/Types/Rules/RuleEmptiedLimit.d.ts +20 -0
- package/Types/Rules/RuleEmptiedLimit.js +131 -0
- package/Types/Rules/RuleEmptiedLimit.mjs +9 -0
- package/Types/Runbook/RunbookStepTimeout.js +11 -10
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.mts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.ts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.js +97 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.mjs +8 -0
- package/Types/Runner/GlobalRunnerSandbox.d.mts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.d.ts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.js +178 -0
- package/Types/Runner/GlobalRunnerSandbox.mjs +9 -0
- package/Types/Runner/GlobalRunnerWork.js +9 -4
- package/Types/Runner/RunnerCodeFixCapability.d.mts +14 -0
- package/Types/Runner/RunnerCodeFixCapability.d.ts +14 -0
- package/Types/Runner/RunnerCodeFixCapability.js +103 -0
- package/Types/Runner/RunnerCodeFixCapability.mjs +7 -0
- package/Types/Runner/RunnerCodeFixes.d.mts +3 -0
- package/Types/Runner/RunnerCodeFixes.d.ts +3 -0
- package/Types/Runner/RunnerCodeFixes.js +27 -4
- package/Types/Runner/RunnerCodeFixes.mjs +1 -0
- package/Types/SSO/SessionsWithoutSso.d.mts +10 -0
- package/Types/SSO/SessionsWithoutSso.d.ts +10 -0
- package/Types/SSO/SessionsWithoutSso.js +39 -0
- package/Types/SSO/SessionsWithoutSso.mjs +5 -0
- package/Types/SerializableObjectDictionary.js +11 -8
- package/Types/SetupHealth/SetupHealth.d.mts +47 -2
- package/Types/SetupHealth/SetupHealth.d.ts +47 -2
- package/Types/SetupHealth/SetupHealth.js +228 -1
- package/Types/SetupHealth/SetupHealth.mjs +12 -0
- package/Types/StatusPage/StatusPageReport.d.mts +5 -2
- package/Types/StatusPage/StatusPageReport.d.ts +5 -2
- package/Types/StatusPage/SubscriberNotificationTemplateVariables.js +2 -2
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +1 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +1 -0
- package/Types/Telemetry/LlmConventions.d.mts +1 -1
- package/Types/Telemetry/LlmConventions.d.ts +1 -1
- package/Types/Telemetry/LlmConventions.js +1 -1
- package/Types/Telemetry/ScrubRule.d.mts +1 -0
- package/Types/Telemetry/ScrubRule.d.ts +1 -0
- package/Types/Telemetry/ScrubRule.js +47 -0
- package/Types/Translator.d.mts +5 -2
- package/Types/Translator.d.ts +5 -2
- package/Types/Translator.js +43 -19
- package/Types/UsedBy/UsedBy.d.mts +107 -4
- package/Types/UsedBy/UsedBy.d.ts +107 -4
- package/Types/UsedBy/UsedBy.js +339 -6
- package/Types/UsedBy/UsedBy.mjs +12 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +5 -2
- package/Types/UsedBy/UsedByServerProducts.d.ts +5 -2
- package/Types/UsedBy/UsedByServerProducts.js +115 -6
- package/Types/UsedBy/UsedByServerProducts.mjs +1 -0
- package/Types/UserNotification/UserNotificationExecutionStatus.d.mts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.d.ts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +1 -0
- package/Types/UserSession/SessionEndCause.d.ts +1 -0
- package/Types/UserSession/SessionEndCause.js +8 -1
- package/Types/WelcomeChecklist/ProjectGoal.js +5 -5
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +63 -1
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +0 -3
- package/Types/Workflow/WatchedFields.d.mts +1 -0
- package/Types/Workflow/WatchedFields.d.ts +1 -0
- package/Types/Workflow/WatchedFields.js +10 -1
- package/Types/Workflow/WatchedFields.mjs +1 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.mts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.ts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.js +33 -0
- package/Types/Workflow/WorkflowPrivateRecords.mjs +3 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -0
- package/Types/Workspace/NotificationRules/EventType.js +4 -3
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +127 -8
- package/Types/Workspace/WorkspaceLiveMessageKey.d.mts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.d.ts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.js +12 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +6 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +6 -0
- package/Utils/API.d.mts +6 -7
- package/Utils/API.d.ts +6 -7
- package/Utils/API.js +57 -35
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +89 -1
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +4 -0
- package/Utils/Billing/InvoiceAmount.d.mts +4 -0
- package/Utils/Billing/InvoiceAmount.d.ts +4 -0
- package/Utils/Billing/InvoiceAmount.js +35 -0
- package/Utils/Billing/InvoiceAmount.mjs +2 -0
- package/Utils/CertificateReissue.js +4 -3
- package/Utils/CronScheduleText.js +10 -3
- package/Utils/CronTab.js +6 -33
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.js +54 -18
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -2
- package/Utils/LinearRegExp/LinearRegExp.d.mts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.d.ts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.js +17 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +477 -152
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/SlowMarkdown.js +168 -33
- package/Utils/Metrics/MetricFormulaEvaluator.d.mts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.d.ts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.js +233 -29
- package/Utils/Metrics/MetricResultUnitConverter.js +7 -1
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.mts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.ts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.js +27 -0
- package/Utils/Metrics/MetricZeroFill.d.mts +45 -0
- package/Utils/Metrics/MetricZeroFill.d.ts +45 -0
- package/Utils/Metrics/MetricZeroFill.js +145 -0
- package/Utils/Metrics/MetricZeroFill.mjs +2 -0
- package/Utils/ModelImportExport.js +4 -1
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +57 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.mts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.ts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.js +52 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.mjs +5 -0
- package/Utils/Monitor/MonitorFirstCheck.d.mts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.d.ts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.js +128 -0
- package/Utils/Monitor/MonitorFirstCheck.mjs +4 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.mts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.ts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.js +87 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.mjs +2 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.mts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.ts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.js +86 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.mjs +2 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +4 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +4 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +122 -4
- package/Utils/Monitor/MonitorRowStatus.d.mts +56 -0
- package/Utils/Monitor/MonitorRowStatus.d.ts +56 -0
- package/Utils/Monitor/MonitorRowStatus.js +189 -0
- package/Utils/Monitor/MonitorRowStatus.mjs +6 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +3 -2
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +14 -3
- package/Utils/NetworkDevice/TransceiverHealthUtil.js +2 -2
- package/Utils/Profiles/ProfileFrames.js +11 -4
- package/Utils/Profiles/ProfileFunctionNames.d.mts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.d.ts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.js +104 -0
- package/Utils/Profiles/ProfileFunctionNames.mjs +3 -0
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.d.mts +3 -0
- package/Utils/Project/TwilioAccount.d.ts +3 -0
- package/Utils/Project/TwilioAccount.js +58 -18
- package/Utils/Project/TwilioAccount.mjs +2 -0
- package/Utils/ResponseTooLarge.d.mts +5 -0
- package/Utils/ResponseTooLarge.d.ts +5 -0
- package/Utils/ResponseTooLarge.js +69 -0
- package/Utils/ResponseTooLarge.mjs +2 -0
- package/Utils/RetryAfter.d.mts +17 -0
- package/Utils/RetryAfter.d.ts +17 -0
- package/Utils/RetryAfter.js +251 -0
- package/Utils/RetryAfter.mjs +5 -0
- package/Utils/ScheduledMaintenanceStart.js +2 -3
- package/Utils/Schema/BaseSchema.d.mts +12 -5
- package/Utils/Schema/BaseSchema.d.ts +12 -5
- package/Utils/Schema/BaseSchema.js +43 -4
- package/Utils/Schema/BaseSchema.mjs +1 -0
- package/Utils/Schema/ModelSchema.d.mts +10 -0
- package/Utils/Schema/ModelSchema.d.ts +10 -0
- package/Utils/Schema/ModelSchema.js +251 -22
- package/Utils/Slo/SloMonthlyReport.d.mts +187 -0
- package/Utils/Slo/SloMonthlyReport.d.ts +187 -0
- package/Utils/Slo/SloMonthlyReport.js +945 -0
- package/Utils/Slo/SloMonthlyReport.mjs +35 -0
- package/Utils/Slo/SloOverviewText.js +7 -2
- package/Utils/Slo/SloProjection.js +2 -1
- package/Utils/Slo/SloUtil.d.mts +5 -0
- package/Utils/Slo/SloUtil.d.ts +5 -0
- package/Utils/Slo/SloUtil.js +5 -0
- package/Utils/Slo/SloWidgetFormat.js +3 -1
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +147 -12
- package/Utils/StatusPage/FrozenMonitorResources.mjs +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +3 -2
- package/Utils/StatusPage/HistoryChartBarColors.d.mts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.d.ts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.js +15 -1
- package/Utils/StatusPage/HistoryChartBarColors.mjs +2 -0
- package/Utils/StatusPage/Report.js +12 -4
- package/Utils/StatusPage/ReportText.d.mts +4 -0
- package/Utils/StatusPage/ReportText.d.ts +4 -0
- package/Utils/StatusPage/ReportText.js +22 -2
- package/Utils/StatusPage/ReportText.mjs +1 -0
- package/Utils/StatusPage/ResourceUptime.js +32 -25
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +17 -3
- package/Utils/Syslog/SyslogMessageParser.d.mts +25 -0
- package/Utils/Syslog/SyslogMessageParser.d.ts +25 -0
- package/Utils/Syslog/SyslogMessageParser.js +428 -100
- package/Utils/Syslog/SyslogMessageParser.mjs +3 -0
- package/Utils/Syslog/SyslogRawCopies.d.mts +20 -0
- package/Utils/Syslog/SyslogRawCopies.d.ts +20 -0
- package/Utils/Syslog/SyslogRawCopies.js +283 -0
- package/Utils/Syslog/SyslogRawCopies.mjs +2 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.mts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.ts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.js +118 -0
- package/Utils/Telemetry/CorrelationIdAttributes.mjs +5 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.mts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.ts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.js +505 -0
- package/Utils/Telemetry/ScrubJsonKeys.mjs +2 -0
- package/Utils/Telemetry/ScrubJsonText.d.mts +25 -0
- package/Utils/Telemetry/ScrubJsonText.d.ts +25 -0
- package/Utils/Telemetry/ScrubJsonText.js +568 -0
- package/Utils/Telemetry/ScrubJsonText.mjs +4 -0
- package/Utils/Telemetry/ScrubMask.d.mts +1 -0
- package/Utils/Telemetry/ScrubMask.d.ts +1 -0
- package/Utils/Telemetry/ScrubMask.js +54 -0
- package/Utils/Telemetry/ScrubMask.mjs +2 -0
- package/Utils/Telemetry/ScrubNestedValues.d.mts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.d.ts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.js +56 -9
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +91 -3
- package/Utils/Uptime/DayUptimeGraphUtil.mjs +1 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.mts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.ts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.js +188 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.mjs +2 -0
- package/package.json +1 -1
- package/Models/DatabaseModels/GreenlockCertificate.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.js +0 -143
- package/Models/DatabaseModels/GreenlockCertificate.mjs +0 -2
- package/Models/DatabaseModels/GreenlockChallenge.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.js +0 -144
- package/Models/DatabaseModels/GreenlockChallenge.mjs +0 -2
- package/Types/SampleProject/SampleProject.d.mts +0 -54
- package/Types/SampleProject/SampleProject.d.ts +0 -54
- package/Types/SampleProject/SampleProject.js +0 -177
- package/Types/SampleProject/SampleProject.mjs +0 -22
- package/Types/SampleProject/SampleProjectContent.d.mts +0 -127
- package/Types/SampleProject/SampleProjectContent.d.ts +0 -127
- package/Types/SampleProject/SampleProjectContent.js +0 -397
- package/Types/SampleProject/SampleProjectContent.mjs +0 -18
|
@@ -0,0 +1,189 @@
|
|
|
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
|
+
exports.MONITOR_ROW_STATUS_SELECT = exports.MONITOR_ROW_STATUS_COLORS = exports.MONITOR_ROW_STATUS_WORDS = exports.MonitorRowStatusKind = void 0;
|
|
7
|
+
const BrandColors_1 = require("../../Types/BrandColors");
|
|
8
|
+
const Color_1 = __importDefault(require("../../Types/Color"));
|
|
9
|
+
const Translator_1 = require("../../Types/Translator");
|
|
10
|
+
const MonitorFirstCheck_1 = __importDefault(require("./MonitorFirstCheck"));
|
|
11
|
+
const MonitorFirstCheckOverdue_1 = __importDefault(require("./MonitorFirstCheckOverdue"));
|
|
12
|
+
const MonitoringOff_1 = __importDefault(require("./MonitoringOff"));
|
|
13
|
+
/*
|
|
14
|
+
* WHAT A ROW SAYS A MONITOR'S STATUS IS.
|
|
15
|
+
*
|
|
16
|
+
* The Monitors list's Monitor Status column, the dashboard Monitor List
|
|
17
|
+
* widget's rows and its honeycomb's tiles - on a dashboard and on a public
|
|
18
|
+
* one - draw a monitor's status from its row, and say the same thing as its
|
|
19
|
+
* own page's hero (MonitorOverviewPresentationUtil) whenever the stored
|
|
20
|
+
* status is not one a check stands behind:
|
|
21
|
+
*
|
|
22
|
+
* - Archived: nothing checks it, and it has left every list but the
|
|
23
|
+
* Archived page.
|
|
24
|
+
* - Disabled: someone turned its monitoring off, so the status it holds is
|
|
25
|
+
* only what its last check saw (Utils/Monitor/MonitoringOff).
|
|
26
|
+
* - Probes Not Enabled, Probes Disconnected: no probe checks it.
|
|
27
|
+
* - Nothing has checked it yet (Utils/Monitor/MonitorFirstCheck, issue
|
|
28
|
+
* #8899), and it is still in the operational status it was created in:
|
|
29
|
+
* - Paused, while an incident declared by hand or a maintenance event
|
|
30
|
+
* holds its checks;
|
|
31
|
+
* - No results yet, once its first result is overdue
|
|
32
|
+
* (Utils/Monitor/MonitorFirstCheckOverdue);
|
|
33
|
+
* - Waiting for data, until then.
|
|
34
|
+
* The page draws the same badges, and leaves out its "Last recorded
|
|
35
|
+
* status" line for the same reason.
|
|
36
|
+
*
|
|
37
|
+
* Anything else is the monitor's own status, as stored: its name (looked up
|
|
38
|
+
* by its list, Common/Utils/DefaultRecordNames) and its colour, pulsing as
|
|
39
|
+
* a live status does.
|
|
40
|
+
*/
|
|
41
|
+
var MonitorRowStatusKind;
|
|
42
|
+
(function (MonitorRowStatusKind) {
|
|
43
|
+
MonitorRowStatusKind["Archived"] = "Archived";
|
|
44
|
+
MonitorRowStatusKind["MonitoringOff"] = "MonitoringOff";
|
|
45
|
+
MonitorRowStatusKind["NoProbeEnabled"] = "NoProbeEnabled";
|
|
46
|
+
MonitorRowStatusKind["ProbesDisconnected"] = "ProbesDisconnected";
|
|
47
|
+
// Never measured, and its checks held by an incident or maintenance.
|
|
48
|
+
MonitorRowStatusKind["PausedBeforeFirstCheck"] = "PausedBeforeFirstCheck";
|
|
49
|
+
// Never measured, and its first result is overdue.
|
|
50
|
+
MonitorRowStatusKind["NoResultsYet"] = "NoResultsYet";
|
|
51
|
+
// Never measured, and its first result not due yet (or never due).
|
|
52
|
+
MonitorRowStatusKind["WaitingForData"] = "WaitingForData";
|
|
53
|
+
// The monitor's own status.
|
|
54
|
+
MonitorRowStatusKind["Status"] = "Status";
|
|
55
|
+
// Read with no status at all.
|
|
56
|
+
MonitorRowStatusKind["NoStatus"] = "NoStatus";
|
|
57
|
+
})(MonitorRowStatusKind || (exports.MonitorRowStatusKind = MonitorRowStatusKind = {}));
|
|
58
|
+
// OneUptime's words for each kind that is not the monitor's own status.
|
|
59
|
+
exports.MONITOR_ROW_STATUS_WORDS = {
|
|
60
|
+
[MonitorRowStatusKind.Archived]: (0, Translator_1.translationKey)("Archived"),
|
|
61
|
+
[MonitorRowStatusKind.MonitoringOff]: (0, Translator_1.translationKey)("Disabled"),
|
|
62
|
+
[MonitorRowStatusKind.NoProbeEnabled]: (0, Translator_1.translationKey)("Probes Not Enabled"),
|
|
63
|
+
[MonitorRowStatusKind.ProbesDisconnected]: (0, Translator_1.translationKey)("Probes Disconnected"),
|
|
64
|
+
[MonitorRowStatusKind.PausedBeforeFirstCheck]: (0, Translator_1.translationKey)("Paused"),
|
|
65
|
+
[MonitorRowStatusKind.NoResultsYet]: (0, Translator_1.translationKey)("No results yet"),
|
|
66
|
+
[MonitorRowStatusKind.WaitingForData]: (0, Translator_1.translationKey)("Waiting for data"),
|
|
67
|
+
// The word the Monitors table has always drawn for a row with no status.
|
|
68
|
+
[MonitorRowStatusKind.NoStatus]: (0, Translator_1.translationKey)("Unknown"),
|
|
69
|
+
};
|
|
70
|
+
/*
|
|
71
|
+
* Gray for what says nothing about the monitor's health, red for no probe
|
|
72
|
+
* checking it, amber for a first check that is late: the page's badge tones
|
|
73
|
+
* (neutral, danger, warning).
|
|
74
|
+
*/
|
|
75
|
+
exports.MONITOR_ROW_STATUS_COLORS = {
|
|
76
|
+
[MonitorRowStatusKind.Archived]: BrandColors_1.Gray500,
|
|
77
|
+
[MonitorRowStatusKind.MonitoringOff]: BrandColors_1.Gray500,
|
|
78
|
+
[MonitorRowStatusKind.NoProbeEnabled]: BrandColors_1.Red500,
|
|
79
|
+
[MonitorRowStatusKind.ProbesDisconnected]: BrandColors_1.Red500,
|
|
80
|
+
[MonitorRowStatusKind.PausedBeforeFirstCheck]: BrandColors_1.Gray500,
|
|
81
|
+
[MonitorRowStatusKind.NoResultsYet]: BrandColors_1.Amber600,
|
|
82
|
+
[MonitorRowStatusKind.WaitingForData]: BrandColors_1.Gray500,
|
|
83
|
+
};
|
|
84
|
+
/*
|
|
85
|
+
* What a row is read with: every flag the rule reads, and the status with
|
|
86
|
+
* what tells the one a monitor starts in. Spread into a list's select.
|
|
87
|
+
*/
|
|
88
|
+
exports.MONITOR_ROW_STATUS_SELECT = {
|
|
89
|
+
isArchived: true,
|
|
90
|
+
disableActiveMonitoring: true,
|
|
91
|
+
disableActiveMonitoringBecauseOfManualIncident: true,
|
|
92
|
+
disableActiveMonitoringBecauseOfScheduledMaintenanceEvent: true,
|
|
93
|
+
isNoProbeEnabledOnThisMonitor: true,
|
|
94
|
+
isAllProbesDisconnectedFromThisMonitor: true,
|
|
95
|
+
monitorType: true,
|
|
96
|
+
firstMeasuredAt: true,
|
|
97
|
+
createdAt: true,
|
|
98
|
+
monitoringInterval: true,
|
|
99
|
+
currentMonitorStatus: {
|
|
100
|
+
name: true,
|
|
101
|
+
color: true,
|
|
102
|
+
isOperationalState: true,
|
|
103
|
+
isOfflineState: true,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
const ownWords = (kind) => {
|
|
107
|
+
return {
|
|
108
|
+
kind: kind,
|
|
109
|
+
text: exports.MONITOR_ROW_STATUS_WORDS[kind],
|
|
110
|
+
color: exports.MONITOR_ROW_STATUS_COLORS[kind],
|
|
111
|
+
isProductWords: true,
|
|
112
|
+
shouldAnimate: false,
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
const toColor = (color) => {
|
|
116
|
+
if (!color) {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
if (color instanceof Color_1.default) {
|
|
120
|
+
return color;
|
|
121
|
+
}
|
|
122
|
+
try {
|
|
123
|
+
return Color_1.default.fromString(color.toString());
|
|
124
|
+
}
|
|
125
|
+
catch (_a) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
class MonitorRowStatusUtil {
|
|
130
|
+
/*
|
|
131
|
+
* First match wins, in the page's own order: why nothing checks the
|
|
132
|
+
* monitor (archived, monitoring off, no probe), then why nothing has yet
|
|
133
|
+
* (paused, overdue, waiting), then its status. `now` decides whether a
|
|
134
|
+
* first result is overdue; it defaults to the current time.
|
|
135
|
+
*/
|
|
136
|
+
static getRowStatus(monitor, now) {
|
|
137
|
+
if (monitor.isArchived === true) {
|
|
138
|
+
return ownWords(MonitorRowStatusKind.Archived);
|
|
139
|
+
}
|
|
140
|
+
if (MonitoringOff_1.default.isOff(monitor)) {
|
|
141
|
+
return ownWords(MonitorRowStatusKind.MonitoringOff);
|
|
142
|
+
}
|
|
143
|
+
if (monitor.isNoProbeEnabledOnThisMonitor === true) {
|
|
144
|
+
return ownWords(MonitorRowStatusKind.NoProbeEnabled);
|
|
145
|
+
}
|
|
146
|
+
if (monitor.isAllProbesDisconnectedFromThisMonitor === true) {
|
|
147
|
+
return ownWords(MonitorRowStatusKind.ProbesDisconnected);
|
|
148
|
+
}
|
|
149
|
+
if (MonitorFirstCheck_1.default.isStatusUnmeasured(monitor)) {
|
|
150
|
+
if (monitor.disableActiveMonitoringBecauseOfManualIncident === true ||
|
|
151
|
+
monitor.disableActiveMonitoringBecauseOfScheduledMaintenanceEvent ===
|
|
152
|
+
true) {
|
|
153
|
+
return ownWords(MonitorRowStatusKind.PausedBeforeFirstCheck);
|
|
154
|
+
}
|
|
155
|
+
if (MonitorFirstCheckOverdue_1.default.isFirstCheckOverdue({
|
|
156
|
+
monitor: monitor,
|
|
157
|
+
now: now || new Date(),
|
|
158
|
+
})) {
|
|
159
|
+
return ownWords(MonitorRowStatusKind.NoResultsYet);
|
|
160
|
+
}
|
|
161
|
+
return ownWords(MonitorRowStatusKind.WaitingForData);
|
|
162
|
+
}
|
|
163
|
+
if (!monitor.currentMonitorStatus) {
|
|
164
|
+
return {
|
|
165
|
+
kind: MonitorRowStatusKind.NoStatus,
|
|
166
|
+
text: exports.MONITOR_ROW_STATUS_WORDS[MonitorRowStatusKind.NoStatus],
|
|
167
|
+
color: null,
|
|
168
|
+
isProductWords: true,
|
|
169
|
+
shouldAnimate: false,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
kind: MonitorRowStatusKind.Status,
|
|
174
|
+
text: monitor.currentMonitorStatus.name ||
|
|
175
|
+
exports.MONITOR_ROW_STATUS_WORDS[MonitorRowStatusKind.NoStatus],
|
|
176
|
+
color: toColor(monitor.currentMonitorStatus.color),
|
|
177
|
+
isProductWords: !monitor.currentMonitorStatus.name,
|
|
178
|
+
shouldAnimate: true,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
/*
|
|
182
|
+
* Whether the row stands for the monitor's own status - what a status
|
|
183
|
+
* filter matches it by - rather than for why it has none to show.
|
|
184
|
+
*/
|
|
185
|
+
static isOwnStatus(status) {
|
|
186
|
+
return status.kind === MonitorRowStatusKind.Status;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
exports.default = MonitorRowStatusUtil;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import commonJsModule from "./MonitorRowStatus.js";
|
|
2
|
+
export default commonJsModule.default;
|
|
3
|
+
export const MONITOR_ROW_STATUS_COLORS = commonJsModule.MONITOR_ROW_STATUS_COLORS;
|
|
4
|
+
export const MONITOR_ROW_STATUS_SELECT = commonJsModule.MONITOR_ROW_STATUS_SELECT;
|
|
5
|
+
export const MONITOR_ROW_STATUS_WORDS = commonJsModule.MONITOR_ROW_STATUS_WORDS;
|
|
6
|
+
export const MonitorRowStatusKind = commonJsModule.MonitorRowStatusKind;
|
|
@@ -43,8 +43,9 @@ const MonitorType_1 = __importStar(require("../../Types/Monitor/MonitorType"));
|
|
|
43
43
|
/*
|
|
44
44
|
* Synthetic monitors carry base64 screenshots, one per browser × screen
|
|
45
45
|
* size, and a single check can run to several megabytes. createdStateLog
|
|
46
|
-
* keeps none of them (StateChangeLogScreenshots),
|
|
47
|
-
* alerts opened before that
|
|
46
|
+
* keeps none of them (StateChangeLogScreenshots), and those incidents and
|
|
47
|
+
* alerts opened before that kept are cleared by the hourly job
|
|
48
|
+
* Monitor:ClearStoredLogScreenshots (StoredLogScreenshots); this column keeps
|
|
48
49
|
* them while they fit. Past the budget we drop the screenshots (the largest
|
|
49
50
|
* thing by far) and flag it, so the row stays a sane size and the view can
|
|
50
51
|
* say why the images are missing.
|
|
@@ -253,13 +253,18 @@ class MonitorUptimeSummaryUtil {
|
|
|
253
253
|
startDate: summary.startDate.toISOString(),
|
|
254
254
|
endDate: summary.endDate.toISOString(),
|
|
255
255
|
buckets: summary.buckets.map((bucket) => {
|
|
256
|
-
|
|
256
|
+
const json = {
|
|
257
257
|
bucketStart: bucket.bucketStart.toISOString(),
|
|
258
258
|
bucketEnd: bucket.bucketEnd.toISOString(),
|
|
259
259
|
daySeconds: bucket.daySeconds,
|
|
260
260
|
coveredSeconds: bucket.coveredSeconds,
|
|
261
261
|
statusDurations: durationsToJSON(bucket.statusDurations),
|
|
262
262
|
};
|
|
263
|
+
// Only for a day monitoring was off in (issue #7112).
|
|
264
|
+
if (bucket.monitoringOffSeconds && bucket.monitoringOffSeconds > 0) {
|
|
265
|
+
json["monitoringOffSeconds"] = bucket.monitoringOffSeconds;
|
|
266
|
+
}
|
|
267
|
+
return json;
|
|
263
268
|
}),
|
|
264
269
|
windows: summary.windows.map((window) => {
|
|
265
270
|
return {
|
|
@@ -321,13 +326,19 @@ class MonitorUptimeSummaryUtil {
|
|
|
321
326
|
if (!bucketStart || !bucketEnd) {
|
|
322
327
|
continue;
|
|
323
328
|
}
|
|
324
|
-
|
|
329
|
+
const parsed = {
|
|
325
330
|
bucketStart: bucketStart,
|
|
326
331
|
bucketEnd: bucketEnd,
|
|
327
332
|
daySeconds: toSeconds(bucket["daySeconds"]),
|
|
328
333
|
coveredSeconds: toSeconds(bucket["coveredSeconds"]),
|
|
329
334
|
statusDurations: durationsFromJSON(bucket["statusDurations"]),
|
|
330
|
-
}
|
|
335
|
+
};
|
|
336
|
+
// A day monitoring was off in (issue #7112); absent reads as none.
|
|
337
|
+
const monitoringOffSeconds = toSeconds(bucket["monitoringOffSeconds"]);
|
|
338
|
+
if (monitoringOffSeconds > 0) {
|
|
339
|
+
parsed.monitoringOffSeconds = monitoringOffSeconds;
|
|
340
|
+
}
|
|
341
|
+
buckets.push(parsed);
|
|
331
342
|
}
|
|
332
343
|
const windows = [];
|
|
333
344
|
const rawWindows = json["windows"];
|
|
@@ -604,9 +604,9 @@ class TransceiverHealthUtil {
|
|
|
604
604
|
case SnmpTransceiver_1.TransceiverReadingKind.Temperature:
|
|
605
605
|
return `${value.toFixed(1)}\u00A0°C`;
|
|
606
606
|
case SnmpTransceiver_1.TransceiverReadingKind.Voltage:
|
|
607
|
-
return `${value.toFixed(2)}
|
|
607
|
+
return `${value.toFixed(2)}\u00A0V`;
|
|
608
608
|
case SnmpTransceiver_1.TransceiverReadingKind.BiasCurrent:
|
|
609
|
-
return `${value.toFixed(2)}
|
|
609
|
+
return `${value.toFixed(2)}\u00A0mA`;
|
|
610
610
|
case SnmpTransceiver_1.TransceiverReadingKind.TxPower:
|
|
611
611
|
case SnmpTransceiver_1.TransceiverReadingKind.RxPower:
|
|
612
612
|
return value <= TransceiverUnitUtil_1.TRANSCEIVER_MIN_POWER_DBM
|
|
@@ -123,6 +123,9 @@ const RUNTIME_FUNCTION_PREFIXES = [
|
|
|
123
123
|
"com.sun.",
|
|
124
124
|
"System.",
|
|
125
125
|
"Microsoft.",
|
|
126
|
+
// V8's own frames, as the eBPF profiler names them in a Node.js process.
|
|
127
|
+
"V8::",
|
|
128
|
+
"v8::",
|
|
126
129
|
"(garbage collector)",
|
|
127
130
|
"(program)",
|
|
128
131
|
"(idle)",
|
|
@@ -174,13 +177,17 @@ function getProfileFrameOrigin(fileName, functionName, frameType) {
|
|
|
174
177
|
return ProfileFrameOrigin.Runtime;
|
|
175
178
|
}
|
|
176
179
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
/*
|
|
181
|
+
* An address the profiler could not name ("0x7f3a…") is code built
|
|
182
|
+
* without symbols, and nobody can tell whose: the eBPF profiler marks it
|
|
183
|
+
* "native" whether it is the system's or the application's own binary.
|
|
184
|
+
*/
|
|
181
185
|
if (name.startsWith("0x")) {
|
|
182
186
|
return ProfileFrameOrigin.Unknown;
|
|
183
187
|
}
|
|
188
|
+
if (NATIVE_FRAME_TYPES.includes(kind)) {
|
|
189
|
+
return ProfileFrameOrigin.Native;
|
|
190
|
+
}
|
|
184
191
|
return ProfileFrameOrigin.Own;
|
|
185
192
|
}
|
|
186
193
|
function isOwnProfileFrame(fileName, functionName, frameType) {
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* HOW A FUNCTION'S NAME IS SHOWN.
|
|
4
|
+
*
|
|
5
|
+
* Profilers name a function the way its runtime does, and that name is
|
|
6
|
+
* often a path: Go writes the module's import path before the package
|
|
7
|
+
* ("go.opentelemetry.io/otel/sdk/metric/aggregate.(*Builder).Sum"), Java
|
|
8
|
+
* its package ("org.springframework.web.servlet.DispatcherServlet.doDispatch").
|
|
9
|
+
* In a flame graph frame or a table row only the start of such a name
|
|
10
|
+
* fits, and the start is the part that says least. The short name keeps
|
|
11
|
+
* what a person reads code by - the package's last segment, the type and
|
|
12
|
+
* the method ("aggregate.(*Builder).Sum", "DispatcherServlet.doDispatch") -
|
|
13
|
+
* and the full name stays one hover away.
|
|
14
|
+
*
|
|
15
|
+
* Native code built without symbols has no name at all: the profiler
|
|
16
|
+
* records the address it ran at ("0x7f3a2c"). Such a frame is "unnamed":
|
|
17
|
+
* the Profiler groups those frames and says why they have no name, rather
|
|
18
|
+
* than drawing a forest of addresses.
|
|
19
|
+
*
|
|
20
|
+
* Pure: the server and the Dashboard import it alike.
|
|
21
|
+
*/
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.isUnnamedProfileFunction = isUnnamedProfileFunction;
|
|
24
|
+
exports.getShortProfileFunctionName = getShortProfileFunctionName;
|
|
25
|
+
// An address the profiler could not name: "0x270675".
|
|
26
|
+
const ADDRESS_PATTERN = /^0x[0-9a-f]+$/i;
|
|
27
|
+
// Names a profiler writes for a frame it knows nothing about.
|
|
28
|
+
const PLACEHOLDER_NAMES = ["<unknown>", "unknown"];
|
|
29
|
+
function isUnnamedProfileFunction(functionName) {
|
|
30
|
+
const name = (functionName || "").trim();
|
|
31
|
+
if (!name) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
return ADDRESS_PATTERN.test(name) || PLACEHOLDER_NAMES.includes(name);
|
|
35
|
+
}
|
|
36
|
+
/*
|
|
37
|
+
* The index of the last "/" that is not inside brackets or parentheses:
|
|
38
|
+
* a Go generic's type argument can hold a path of its own
|
|
39
|
+
* ("aggregate.Builder[go.opentelemetry.io/otel/attribute.Set].Sum").
|
|
40
|
+
*/
|
|
41
|
+
function lastTopLevelSlash(name) {
|
|
42
|
+
let depth = 0;
|
|
43
|
+
let found = -1;
|
|
44
|
+
for (let index = 0; index < name.length; index++) {
|
|
45
|
+
const character = name.charAt(index);
|
|
46
|
+
if (character === "[" || character === "(" || character === "<") {
|
|
47
|
+
depth++;
|
|
48
|
+
}
|
|
49
|
+
else if (character === "]" || character === ")" || character === ">") {
|
|
50
|
+
depth = Math.max(0, depth - 1);
|
|
51
|
+
}
|
|
52
|
+
else if (character === "/" && depth === 0) {
|
|
53
|
+
found = index;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return found;
|
|
57
|
+
}
|
|
58
|
+
// A Java (or Kotlin, Scala) package segment: lower case, no punctuation.
|
|
59
|
+
const PACKAGE_SEGMENT_PATTERN = /^[a-z][a-z0-9_]*$/;
|
|
60
|
+
// A class name: starts with a capital ("OrderService", "HashMap$Entry").
|
|
61
|
+
const CLASS_SEGMENT_PATTERN = /^[A-Z][A-Za-z0-9_$]*$/;
|
|
62
|
+
// A character no plain dotted (Java, Kotlin, Scala) name holds.
|
|
63
|
+
const NOT_A_DOTTED_NAME_PATTERN = /[^A-Za-z0-9_$.<>]/;
|
|
64
|
+
/*
|
|
65
|
+
* "com.example.shop.OrderService.parse" to "OrderService.parse": the
|
|
66
|
+
* package is dropped when at least two lower-case segments come before a
|
|
67
|
+
* class. One is no package to drop - Go's "json.Marshal" keeps its
|
|
68
|
+
* package, which is how Go code names it.
|
|
69
|
+
*/
|
|
70
|
+
function withoutJavaPackage(name) {
|
|
71
|
+
// Only a plain dotted name: anything else is some other language's.
|
|
72
|
+
if (NOT_A_DOTTED_NAME_PATTERN.test(name)) {
|
|
73
|
+
return name;
|
|
74
|
+
}
|
|
75
|
+
const segments = name.split(".");
|
|
76
|
+
let index = 0;
|
|
77
|
+
while (index < segments.length &&
|
|
78
|
+
PACKAGE_SEGMENT_PATTERN.test(segments[index] || "")) {
|
|
79
|
+
index++;
|
|
80
|
+
}
|
|
81
|
+
if (index < 2 ||
|
|
82
|
+
index >= segments.length - 1 ||
|
|
83
|
+
!CLASS_SEGMENT_PATTERN.test(segments[index] || "")) {
|
|
84
|
+
return name;
|
|
85
|
+
}
|
|
86
|
+
return segments.slice(index).join(".");
|
|
87
|
+
}
|
|
88
|
+
/*
|
|
89
|
+
* The name a person reads a function by. Unchanged when there is nothing
|
|
90
|
+
* to shorten, and never empty for a name that is not.
|
|
91
|
+
*/
|
|
92
|
+
function getShortProfileFunctionName(functionName) {
|
|
93
|
+
const name = (functionName || "").trim();
|
|
94
|
+
if (!name || isUnnamedProfileFunction(name)) {
|
|
95
|
+
return name;
|
|
96
|
+
}
|
|
97
|
+
let short = name;
|
|
98
|
+
const slash = lastTopLevelSlash(short);
|
|
99
|
+
if (slash >= 0 && slash < short.length - 1) {
|
|
100
|
+
short = short.substring(slash + 1);
|
|
101
|
+
}
|
|
102
|
+
short = withoutJavaPackage(short);
|
|
103
|
+
return short || name;
|
|
104
|
+
}
|
|
@@ -131,12 +131,12 @@ exports.getProjectBalanceTooLowMessage = getProjectBalanceTooLowMessage;
|
|
|
131
131
|
* sending its code again - needs balance for an SMS.
|
|
132
132
|
*/
|
|
133
133
|
exports.INCOMING_CALL_NUMBER_BALANCE_TOO_LOW_MESSAGE = `Numbers for incoming calls are verified by SMS, and this project's balance is too low to send SMS. ${(0, exports.getProjectBalanceWhoCanAddSentence)(ProjectBalanceType_1.default.SmsOrCall)}`;
|
|
134
|
-
// An amount of money, as the balance pages show it: "0.05 USD".
|
|
134
|
+
// An amount of money, as the balance pages show it: "0.05 USD", held to its unit (#8826).
|
|
135
135
|
const formatProjectBalanceAmount = (amountInUSDCents) => {
|
|
136
136
|
const cents = Number.isFinite(amountInUSDCents)
|
|
137
137
|
? amountInUSDCents
|
|
138
138
|
: 0;
|
|
139
|
-
return `${(cents / 100).toFixed(2)}
|
|
139
|
+
return `${(cents / 100).toFixed(2)}\u00A0USD`;
|
|
140
140
|
};
|
|
141
141
|
exports.formatProjectBalanceAmount = formatProjectBalanceAmount;
|
|
142
142
|
/*
|
|
@@ -8,8 +8,11 @@ export declare enum TwilioMessageKind {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE: string;
|
|
10
10
|
export declare const WHO_CAN_USE_THE_PROJECT_TWILIO_ACCOUNT_FOR_IT_SENTENCE: string;
|
|
11
|
+
export declare const SET_AS_PROJECT_DEFAULT_FOR: Readonly<Record<TwilioMessageKind, string>>;
|
|
12
|
+
export declare const getWhoCanSetAProjectDefaultForItSentence: (kind: TwilioMessageKind) => string;
|
|
11
13
|
export interface NoTwilioAccountContext {
|
|
12
14
|
projectConfigUse?: unknown;
|
|
15
|
+
isStatusPageConfig?: boolean | undefined;
|
|
13
16
|
}
|
|
14
17
|
export declare const getNoTwilioAccountMessage: (kind: TwilioMessageKind, context?: NoTwilioAccountContext | undefined) => string;
|
|
15
18
|
export declare const INCOMING_CALL_NUMBER_NO_TWILIO_ACCOUNT_MESSAGE: string;
|
|
@@ -8,8 +8,11 @@ export declare enum TwilioMessageKind {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE: string;
|
|
10
10
|
export declare const WHO_CAN_USE_THE_PROJECT_TWILIO_ACCOUNT_FOR_IT_SENTENCE: string;
|
|
11
|
+
export declare const SET_AS_PROJECT_DEFAULT_FOR: Readonly<Record<TwilioMessageKind, string>>;
|
|
12
|
+
export declare const getWhoCanSetAProjectDefaultForItSentence: (kind: TwilioMessageKind) => string;
|
|
11
13
|
export interface NoTwilioAccountContext {
|
|
12
14
|
projectConfigUse?: unknown;
|
|
15
|
+
isStatusPageConfig?: boolean | undefined;
|
|
13
16
|
}
|
|
14
17
|
export declare const getNoTwilioAccountMessage: (kind: TwilioMessageKind, context?: NoTwilioAccountContext | undefined) => string;
|
|
15
18
|
export declare const INCOMING_CALL_NUMBER_NO_TWILIO_ACCOUNT_MESSAGE: string;
|
|
@@ -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.getIncomingCallNumberNoTwilioAccountMessage = exports.INCOMING_CALL_NUMBER_NO_TWILIO_ACCOUNT_MESSAGE = exports.getNoTwilioAccountMessage = exports.WHO_CAN_USE_THE_PROJECT_TWILIO_ACCOUNT_FOR_IT_SENTENCE = exports.WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE = exports.TwilioMessageKind = exports.WHO_MAY_EDIT_A_PROJECT_TWILIO_ACCOUNT = exports.WHO_MAY_ADD_A_PROJECT_TWILIO_ACCOUNT = exports.PROJECT_TWILIO_SETTINGS_PAGE = exports.SERVER_TWILIO_SETTINGS_PAGE = void 0;
|
|
6
|
+
exports.getIncomingCallNumberNoTwilioAccountMessage = exports.INCOMING_CALL_NUMBER_NO_TWILIO_ACCOUNT_MESSAGE = exports.getNoTwilioAccountMessage = exports.getWhoCanSetAProjectDefaultForItSentence = exports.SET_AS_PROJECT_DEFAULT_FOR = exports.WHO_CAN_USE_THE_PROJECT_TWILIO_ACCOUNT_FOR_IT_SENTENCE = exports.WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE = exports.TwilioMessageKind = exports.WHO_MAY_EDIT_A_PROJECT_TWILIO_ACCOUNT = exports.WHO_MAY_ADD_A_PROJECT_TWILIO_ACCOUNT = exports.PROJECT_TWILIO_SETTINGS_PAGE = exports.SERVER_TWILIO_SETTINGS_PAGE = void 0;
|
|
7
7
|
const NotificationChannels_1 = require("./NotificationChannels");
|
|
8
8
|
const TwilioConfigUse_1 = __importDefault(require("../../Types/CallAndSMS/TwilioConfigUse"));
|
|
9
9
|
/*
|
|
@@ -68,12 +68,45 @@ const WHAT_NEEDS_IT = {
|
|
|
68
68
|
*/
|
|
69
69
|
exports.WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE = `The OneUptime server's administrator can add one in ${exports.SERVER_TWILIO_SETTINGS_PAGE}, or ${exports.WHO_MAY_ADD_A_PROJECT_TWILIO_ACCOUNT} can add this project's own in ${exports.PROJECT_TWILIO_SETTINGS_PAGE}.`;
|
|
70
70
|
/*
|
|
71
|
-
* What else can be done when a
|
|
72
|
-
* the message (TwilioConfigUse): the server's administrator can add an
|
|
73
|
-
* account for it, or someone who may edit the project's
|
|
74
|
-
* used for calls and SMS too.
|
|
71
|
+
* What else can be done when a status page's own Twilio config is not used
|
|
72
|
+
* for the message (TwilioConfigUse): the server's administrator can add an
|
|
73
|
+
* account for it, or someone who may edit the project's configs can have
|
|
74
|
+
* the config used for calls and SMS too.
|
|
75
75
|
*/
|
|
76
|
-
exports.WHO_CAN_USE_THE_PROJECT_TWILIO_ACCOUNT_FOR_IT_SENTENCE = `The OneUptime server's administrator can add one in ${exports.SERVER_TWILIO_SETTINGS_PAGE}, or ${exports.WHO_MAY_EDIT_A_PROJECT_TWILIO_ACCOUNT} can use this
|
|
76
|
+
exports.WHO_CAN_USE_THE_PROJECT_TWILIO_ACCOUNT_FOR_IT_SENTENCE = `The OneUptime server's administrator can add one in ${exports.SERVER_TWILIO_SETTINGS_PAGE}, or ${exports.WHO_MAY_EDIT_A_PROJECT_TWILIO_ACCOUNT} can use this config for calls and SMS in ${exports.PROJECT_TWILIO_SETTINGS_PAGE}.`;
|
|
77
|
+
/*
|
|
78
|
+
* The row action that makes a config the project's default for one kind of
|
|
79
|
+
* message, as the Twilio Config table names it for a config that would take
|
|
80
|
+
* only that kind - one used for SMS only, or for calls only
|
|
81
|
+
* (TwilioConfigDefaultCopy).
|
|
82
|
+
*/
|
|
83
|
+
exports.SET_AS_PROJECT_DEFAULT_FOR = {
|
|
84
|
+
[TwilioMessageKind.SMS]: "Set as Project Default for SMS",
|
|
85
|
+
[TwilioMessageKind.Call]: "Set as Project Default for Calls",
|
|
86
|
+
};
|
|
87
|
+
// What a config sends, as in "a config used for SMS only", "the default for calls".
|
|
88
|
+
const WHAT_A_CONFIG_SENDS = {
|
|
89
|
+
[TwilioMessageKind.SMS]: "SMS",
|
|
90
|
+
[TwilioMessageKind.Call]: "calls",
|
|
91
|
+
};
|
|
92
|
+
/*
|
|
93
|
+
* What else can be done when the project's default Twilio config is not
|
|
94
|
+
* used for the message: a project has one default for SMS and one for
|
|
95
|
+
* calls (TwilioConfigDefaults), so the fix is most often a second config,
|
|
96
|
+
* used for that kind only - numbers that cannot do both are why a project
|
|
97
|
+
* has a config for one kind only (issue #6574) - made the default for it.
|
|
98
|
+
* Or the default is used for calls and SMS. Or the server's administrator
|
|
99
|
+
* adds an account for it. "The OneUptime server's administrator can add one
|
|
100
|
+
* in ..., or a Project Owner, a Project Admin or someone with Edit Call and
|
|
101
|
+
* SMS can make a config used for calls only the project default for calls
|
|
102
|
+
* (Set as Project Default for Calls in its row's menu), or use this config
|
|
103
|
+
* for calls and SMS, in Project Settings > ...".
|
|
104
|
+
*/
|
|
105
|
+
const getWhoCanSetAProjectDefaultForItSentence = (kind) => {
|
|
106
|
+
const sends = WHAT_A_CONFIG_SENDS[kind];
|
|
107
|
+
return `The OneUptime server's administrator can add one in ${exports.SERVER_TWILIO_SETTINGS_PAGE}, or ${exports.WHO_MAY_EDIT_A_PROJECT_TWILIO_ACCOUNT} can make a config used for ${sends} only the project default for ${sends} (${exports.SET_AS_PROJECT_DEFAULT_FOR[kind]} in its row's menu), or use this config for calls and SMS, in ${exports.PROJECT_TWILIO_SETTINGS_PAGE}.`;
|
|
108
|
+
};
|
|
109
|
+
exports.getWhoCanSetAProjectDefaultForItSentence = getWhoCanSetAProjectDefaultForItSentence;
|
|
77
110
|
// Whether the project's own config was passed over: it is not used for this kind.
|
|
78
111
|
const isProjectConfigNotUsedFor = (kind, context) => {
|
|
79
112
|
if (!context ||
|
|
@@ -86,14 +119,21 @@ const isProjectConfigNotUsedFor = (kind, context) => {
|
|
|
86
119
|
: !TwilioConfigUse_1.default.makesCalls(context.projectConfigUse);
|
|
87
120
|
};
|
|
88
121
|
/*
|
|
89
|
-
* "This project's Twilio config is used for SMS only, and no other
|
|
90
|
-
* account is set up to make phone calls. The OneUptime server's
|
|
91
|
-
* administrator can add one in ..., or ... can
|
|
92
|
-
*
|
|
93
|
-
* used for
|
|
122
|
+
* "This project's default Twilio config is used for SMS only, and no other
|
|
123
|
+
* Twilio account is set up to make phone calls. The OneUptime server's
|
|
124
|
+
* administrator can add one in ..., or ... can make a config used for calls
|
|
125
|
+
* only the project default for calls (...), or use this config for calls
|
|
126
|
+
* and SMS, in ...": why a message the project's own config is not used for
|
|
127
|
+
* went nowhere. Only the project's default for the message was read - a
|
|
128
|
+
* project can have several configs - so it says "default". A status page's
|
|
129
|
+
* own config is the page's: "This status page's Twilio config ...".
|
|
94
130
|
*/
|
|
95
|
-
const getProjectConfigNotUsedForMessage = (kind,
|
|
96
|
-
|
|
131
|
+
const getProjectConfigNotUsedForMessage = (kind, context) => {
|
|
132
|
+
const whatItIsUsedFor = `is used for ${TwilioConfigUse_1.default.getUseInSentence(context.projectConfigUse)}, and no other Twilio account is set up to ${WHAT_NEEDS_IT[kind]}.`;
|
|
133
|
+
if (context.isStatusPageConfig) {
|
|
134
|
+
return `This status page's Twilio config ${whatItIsUsedFor} ${exports.WHO_CAN_USE_THE_PROJECT_TWILIO_ACCOUNT_FOR_IT_SENTENCE}`;
|
|
135
|
+
}
|
|
136
|
+
return `This project's default Twilio config ${whatItIsUsedFor} ${(0, exports.getWhoCanSetAProjectDefaultForItSentence)(kind)}`;
|
|
97
137
|
};
|
|
98
138
|
/*
|
|
99
139
|
* What is said when an SMS or a call cannot go anywhere because there is no
|
|
@@ -108,7 +148,7 @@ const getProjectConfigNotUsedForMessage = (kind, projectConfigUse) => {
|
|
|
108
148
|
*/
|
|
109
149
|
const getNoTwilioAccountMessage = (kind, context) => {
|
|
110
150
|
if (isProjectConfigNotUsedFor(kind, context)) {
|
|
111
|
-
return getProjectConfigNotUsedForMessage(kind, context
|
|
151
|
+
return getProjectConfigNotUsedForMessage(kind, context);
|
|
112
152
|
}
|
|
113
153
|
return `No Twilio account is set up to ${WHAT_NEEDS_IT[kind]}. ${exports.WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE}`;
|
|
114
154
|
};
|
|
@@ -119,14 +159,14 @@ exports.getNoTwilioAccountMessage = getNoTwilioAccountMessage;
|
|
|
119
159
|
*/
|
|
120
160
|
exports.INCOMING_CALL_NUMBER_NO_TWILIO_ACCOUNT_MESSAGE = `Numbers for incoming calls are verified by SMS, and no Twilio account is set up to send SMS. ${exports.WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE}`;
|
|
121
161
|
/*
|
|
122
|
-
* The same, saying why when the project's
|
|
162
|
+
* The same, saying why when the project's default config is used for calls
|
|
123
163
|
* only: "Numbers for incoming calls are verified by SMS. This project's
|
|
124
|
-
* Twilio config is used for calls only, and no other Twilio account
|
|
125
|
-
* up to send SMS. ..."
|
|
164
|
+
* default Twilio config is used for calls only, and no other Twilio account
|
|
165
|
+
* is set up to send SMS. ..."
|
|
126
166
|
*/
|
|
127
167
|
const getIncomingCallNumberNoTwilioAccountMessage = (context) => {
|
|
128
168
|
if (isProjectConfigNotUsedFor(TwilioMessageKind.SMS, context)) {
|
|
129
|
-
return `Numbers for incoming calls are verified by SMS. ${getProjectConfigNotUsedForMessage(TwilioMessageKind.SMS, context
|
|
169
|
+
return `Numbers for incoming calls are verified by SMS. ${getProjectConfigNotUsedForMessage(TwilioMessageKind.SMS, context)}`;
|
|
130
170
|
}
|
|
131
171
|
return exports.INCOMING_CALL_NUMBER_NO_TWILIO_ACCOUNT_MESSAGE;
|
|
132
172
|
};
|
|
@@ -2,6 +2,7 @@ import commonJsModule from "./TwilioAccount.js";
|
|
|
2
2
|
export const INCOMING_CALL_NUMBER_NO_TWILIO_ACCOUNT_MESSAGE = commonJsModule.INCOMING_CALL_NUMBER_NO_TWILIO_ACCOUNT_MESSAGE;
|
|
3
3
|
export const PROJECT_TWILIO_SETTINGS_PAGE = commonJsModule.PROJECT_TWILIO_SETTINGS_PAGE;
|
|
4
4
|
export const SERVER_TWILIO_SETTINGS_PAGE = commonJsModule.SERVER_TWILIO_SETTINGS_PAGE;
|
|
5
|
+
export const SET_AS_PROJECT_DEFAULT_FOR = commonJsModule.SET_AS_PROJECT_DEFAULT_FOR;
|
|
5
6
|
export const TwilioMessageKind = commonJsModule.TwilioMessageKind;
|
|
6
7
|
export const WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE = commonJsModule.WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE;
|
|
7
8
|
export const WHO_CAN_USE_THE_PROJECT_TWILIO_ACCOUNT_FOR_IT_SENTENCE = commonJsModule.WHO_CAN_USE_THE_PROJECT_TWILIO_ACCOUNT_FOR_IT_SENTENCE;
|
|
@@ -9,3 +10,4 @@ export const WHO_MAY_ADD_A_PROJECT_TWILIO_ACCOUNT = commonJsModule.WHO_MAY_ADD_A
|
|
|
9
10
|
export const WHO_MAY_EDIT_A_PROJECT_TWILIO_ACCOUNT = commonJsModule.WHO_MAY_EDIT_A_PROJECT_TWILIO_ACCOUNT;
|
|
10
11
|
export const getIncomingCallNumberNoTwilioAccountMessage = commonJsModule.getIncomingCallNumberNoTwilioAccountMessage;
|
|
11
12
|
export const getNoTwilioAccountMessage = commonJsModule.getNoTwilioAccountMessage;
|
|
13
|
+
export const getWhoCanSetAProjectDefaultForItSentence = commonJsModule.getWhoCanSetAProjectDefaultForItSentence;
|