@oneuptime/common 14.0.108 → 14.0.109
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/AnalyticsModels/AuditLog.js +1 -1
- package/Models/DatabaseModels/CloudApp.d.mts +5 -0
- package/Models/DatabaseModels/CloudApp.d.ts +5 -0
- package/Models/DatabaseModels/CloudApp.js +112 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +111 -0
- package/Models/DatabaseModels/Index.js +7 -0
- package/Models/DatabaseModels/Monitor.js +14 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
- package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
- package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
- package/Models/DatabaseModels/ProductFeedback.js +203 -0
- package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
- package/Models/DatabaseModels/Project.d.mts +6 -0
- package/Models/DatabaseModels/Project.d.ts +6 -0
- package/Models/DatabaseModels/Project.js +237 -0
- package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.js +207 -0
- package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
- package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- package/Models/DatabaseModels/User.d.mts +2 -0
- package/Models/DatabaseModels/User.d.ts +2 -0
- package/Models/DatabaseModels/User.js +52 -0
- package/Models/DatabaseModels/UserOnCallLog.js +32 -4
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +9 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +9 -0
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +2 -1
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +2 -1
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
- package/Types/AI/AIActionWords.d.mts +167 -7
- package/Types/AI/AIActionWords.d.ts +167 -7
- package/Types/AI/AIActionWords.js +474 -17
- package/Types/AI/AIActionWords.mjs +22 -0
- package/Types/AI/AIChatMessageStatus.js +3 -2
- package/Types/AI/AIChatRecordSeen.d.mts +6 -2
- package/Types/AI/AIChatRecordSeen.d.ts +6 -2
- package/Types/AI/AIChatRecordSeen.js +48 -9
- package/Types/AI/AIChatRecordSeen.mjs +2 -0
- package/Types/AI/AIChatTypes.d.mts +19 -1
- package/Types/AI/AIChatTypes.d.ts +19 -1
- package/Types/AI/AIChatTypes.js +44 -1
- package/Types/AI/AIChatTypes.mjs +3 -0
- package/Types/AI/AIRunAttempt.d.mts +8 -0
- package/Types/AI/AIRunAttempt.d.ts +8 -0
- package/Types/AI/AIRunAttempt.js +60 -6
- package/Types/AI/AIRunAttempt.mjs +3 -0
- package/Types/AI/AISetupActions.d.mts +9 -0
- package/Types/AI/AISetupActions.d.ts +9 -0
- package/Types/AI/AISetupActions.js +56 -0
- package/Types/AI/AISetupActions.mjs +10 -0
- package/Types/AI/CodeTask.d.mts +14 -0
- package/Types/AI/CodeTask.d.ts +14 -0
- package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
- package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
- package/Types/AI/RecordAiTokenLimit.js +153 -0
- package/Types/AI/RecordAiTokenLimit.mjs +8 -0
- package/Types/Accounts/SignInMessages.d.mts +8 -0
- package/Types/Accounts/SignInMessages.d.ts +8 -0
- package/Types/Accounts/SignInMessages.js +28 -0
- package/Types/Accounts/SignInMessages.mjs +5 -0
- package/Types/Analytics/ActivationMilestone.d.mts +48 -0
- package/Types/Analytics/ActivationMilestone.d.ts +48 -0
- package/Types/Analytics/ActivationMilestone.js +247 -0
- package/Types/Analytics/ActivationMilestone.mjs +16 -0
- package/Types/Analytics/ChecklistProgress.d.mts +11 -0
- package/Types/Analytics/ChecklistProgress.d.ts +11 -0
- package/Types/Analytics/ChecklistProgress.js +32 -0
- package/Types/Analytics/ChecklistProgress.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +61 -0
- package/Types/Analytics/ProductEvent.d.ts +61 -0
- package/Types/Analytics/ProductEvent.js +430 -0
- package/Types/Analytics/ProductEvent.mjs +14 -0
- package/Types/AuditLog/AuditLogAction.d.mts +5 -1
- package/Types/AuditLog/AuditLogAction.d.ts +5 -1
- package/Types/AuditLog/AuditLogAction.js +11 -0
- package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.js +30 -0
- package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
- package/Types/AuditLog/AuditLogCoverage.js +8 -1
- package/Types/AuditLog/AuditLogRetention.js +7 -4
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
- package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
- package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
- package/Types/AutoRemediation/RemediationRound.js +19 -2
- package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.js +5 -0
- package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
- package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
- package/Types/Cloud/CloudPlatform.js +7 -1
- package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
- package/Types/CodeRepository/CodeFileSeen.js +142 -27
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
- package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.js +175 -0
- package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
- package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
- package/Types/DataObservability/DataCheckType.d.mts +4 -0
- package/Types/DataObservability/DataCheckType.d.ts +4 -0
- package/Types/DataObservability/DataCheckType.js +17 -0
- package/Types/DataObservability/DataCheckType.mjs +1 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
- package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
- package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
- package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
- package/Types/DataObservability/DataLineageExpansion.js +166 -0
- package/Types/DataObservability/DataLineageExpansion.mjs +4 -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/DataObservability/DataTableLineage.d.mts +7 -0
- package/Types/DataObservability/DataTableLineage.d.ts +7 -0
- package/Types/DataObservability/DataTableLineage.js +15 -3
- package/Types/DataObservability/DataTableLineage.mjs +1 -0
- package/Types/Date.d.mts +22 -0
- package/Types/Date.d.ts +22 -0
- package/Types/Date.js +72 -3
- package/Types/DateLanguage.d.mts +7 -0
- package/Types/DateLanguage.d.ts +7 -0
- package/Types/DateLanguage.js +44 -1
- package/Types/DateLanguage.mjs +1 -0
- package/Types/Docs/DocsLanguage.d.mts +2 -0
- package/Types/Docs/DocsLanguage.d.ts +2 -0
- package/Types/Docs/DocsLanguage.js +23 -1
- package/Types/Docs/DocsLanguage.mjs +2 -0
- package/Types/Docs/GlossaryTerm.d.mts +82 -0
- package/Types/Docs/GlossaryTerm.d.ts +82 -0
- package/Types/Docs/GlossaryTerm.js +126 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -0
- package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.js +40 -0
- package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
- package/Types/Email/EmailServer.d.mts +2 -0
- package/Types/Email/EmailServer.d.ts +2 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
- package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
- package/Types/Exception/ErrorMessageRule.d.mts +4 -0
- package/Types/Exception/ErrorMessageRule.d.ts +4 -0
- package/Types/Exception/ErrorMessageRule.js +143 -0
- package/Types/Exception/ErrorMessageRule.mjs +5 -0
- package/Types/Exception/UnexplainedError.d.mts +45 -0
- package/Types/Exception/UnexplainedError.d.ts +45 -0
- package/Types/Exception/UnexplainedError.js +179 -0
- package/Types/Exception/UnexplainedError.mjs +11 -0
- package/Types/Icon/IconProp.d.mts +4 -1
- package/Types/Icon/IconProp.d.ts +4 -1
- package/Types/Icon/IconProp.js +6 -0
- package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
- package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
- package/Types/InstallationHealth/InstallationHealth.js +513 -0
- package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
- package/Types/LLM/LLMProviderExchange.d.mts +17 -0
- package/Types/LLM/LLMProviderExchange.d.ts +17 -0
- package/Types/LLM/LLMProviderExchange.js +70 -0
- package/Types/LLM/LLMProviderExchange.mjs +5 -0
- package/Types/Monitor/CriteriaFilter.d.mts +1 -0
- package/Types/Monitor/CriteriaFilter.d.ts +1 -0
- package/Types/Monitor/CriteriaFilter.js +3 -1
- package/Types/Monitor/CriteriaFilterTerms.js +1 -0
- package/Types/Monitor/CriteriaFilterValues.d.mts +2 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +2 -0
- package/Types/Monitor/CriteriaFilterValues.js +22 -0
- package/Types/Monitor/EvaluationSentence.d.mts +1 -0
- package/Types/Monitor/EvaluationSentence.d.ts +1 -0
- package/Types/Monitor/EvaluationSentence.js +34 -3
- package/Types/Monitor/EvaluationSentence.mjs +1 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
- package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
- package/Types/Monitor/WhoIsTold.d.mts +165 -0
- package/Types/Monitor/WhoIsTold.d.ts +165 -0
- package/Types/Monitor/WhoIsTold.js +582 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
- package/Types/PhoneNumberDirection.d.mts +6 -0
- package/Types/PhoneNumberDirection.d.ts +6 -0
- package/Types/PhoneNumberDirection.js +123 -0
- package/Types/PhoneNumberDirection.mjs +6 -0
- package/Types/Product/ProductKey.d.mts +58 -0
- package/Types/Product/ProductKey.d.ts +58 -0
- package/Types/Product/ProductKey.js +175 -0
- package/Types/Product/ProductKey.mjs +8 -0
- package/Types/Product/ProductPins.d.mts +10 -0
- package/Types/Product/ProductPins.d.ts +10 -0
- package/Types/Product/ProductPins.js +65 -0
- package/Types/Product/ProductPins.mjs +6 -0
- package/Types/Product/ProductUsage.d.mts +21 -0
- package/Types/Product/ProductUsage.d.ts +21 -0
- package/Types/Product/ProductUsage.js +175 -0
- package/Types/Product/ProductUsage.mjs +10 -0
- package/Types/Product/ProjectProducts.d.mts +60 -0
- package/Types/Product/ProjectProducts.d.ts +60 -0
- package/Types/Product/ProjectProducts.js +336 -0
- package/Types/Product/ProjectProducts.mjs +19 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
- package/Types/Product/ProjectProductsAnswer.js +139 -0
- package/Types/Product/ProjectProductsAnswer.mjs +7 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
- package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
- package/Types/ProductFeedback/ProductFeedback.js +517 -0
- package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
- package/Types/ReadingDirection.d.mts +2 -0
- package/Types/ReadingDirection.d.ts +2 -0
- package/Types/ReadingDirection.js +83 -2
- package/Types/ReadingDirection.mjs +2 -0
- package/Types/Recommendation/RecommendationType.d.mts +2 -1
- package/Types/Recommendation/RecommendationType.d.ts +2 -1
- package/Types/Recommendation/RecommendationType.js +6 -0
- package/Types/Reminder/ReminderInterval.d.mts +7 -0
- package/Types/Reminder/ReminderInterval.d.ts +7 -0
- package/Types/Reminder/ReminderInterval.js +110 -0
- package/Types/Reminder/ReminderInterval.mjs +8 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
- package/Types/Retention/ResolvedRecordRetention.js +124 -0
- package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
- package/Types/RollingTime/RollingTimeUtil.d.mts +1 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +1 -0
- package/Types/RollingTime/RollingTimeUtil.js +9 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +108 -101
- package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
- package/Types/ServerSending/ServerSendingStatus.js +281 -0
- package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
- package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
- package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
- package/Types/ServerSending/ServerSendingWords.js +95 -0
- package/Types/ServerSending/ServerSendingWords.mjs +7 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
- package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
- package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
- package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
- package/Types/ServerSetup/ServerTestSend.js +160 -0
- package/Types/ServerSetup/ServerTestSend.mjs +10 -0
- package/Types/SetupHealth/SetupHealth.d.mts +283 -0
- package/Types/SetupHealth/SetupHealth.d.ts +283 -0
- package/Types/SetupHealth/SetupHealth.js +1047 -0
- package/Types/SetupHealth/SetupHealth.mjs +46 -0
- package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
- package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
- package/Types/StatusPage/StatusPageSummary.js +3 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
- package/Types/Telemetry/LlmCallKind.js +1 -1
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
- package/Types/ToolImport/ToolImportCatalog.js +54 -1
- package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
- package/Types/Translator.js +64 -31
- package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
- package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
- package/Types/UserNotification/UserNotificationEventType.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +17 -0
- package/Types/UserSession/SessionEndCause.d.ts +17 -0
- package/Types/UserSession/SessionEndCause.js +79 -0
- package/Types/UserSession/SessionEndCause.mjs +6 -0
- package/Types/UserSession/SessionSignIn.d.mts +44 -0
- package/Types/UserSession/SessionSignIn.d.ts +44 -0
- package/Types/UserSession/SessionSignIn.js +174 -0
- package/Types/UserSession/SessionSignIn.mjs +17 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
- package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
- package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
- package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
- package/Utils/API.js +10 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
- package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
- package/Utils/Markdown/InlineImageDataUri.js +17 -1
- package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
- package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
- package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
- package/Utils/Monitor/MonitoringOff.d.mts +20 -0
- package/Utils/Monitor/MonitoringOff.d.ts +20 -0
- package/Utils/Monitor/MonitoringOff.js +81 -0
- package/Utils/Monitor/MonitoringOff.mjs +4 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
- package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
- package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
- package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
- package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
- package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
- package/Utils/Slo/SloListWidgetFormat.js +20 -26
- package/Utils/Slo/SloOverviewText.d.mts +6 -1
- package/Utils/Slo/SloOverviewText.d.ts +6 -1
- package/Utils/Slo/SloOverviewText.js +3 -3
- package/Utils/Slo/SloUtil.d.mts +18 -9
- package/Utils/Slo/SloUtil.d.ts +18 -9
- package/Utils/Slo/SloUtil.js +47 -10
- package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
- package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
- package/Utils/Slo/SloWidgetFormat.js +198 -50
- package/Utils/Slo/SloWidgetFormat.mjs +7 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
- package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
- package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +12 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
- package/Utils/StatusPage/ResourceExplorer.d.mts +1 -0
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -0
- package/Utils/StatusPage/ResourceExplorer.js +11 -1
- package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
- package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
- package/Utils/StatusPage/ResourceUptime.js +31 -6
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
- package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
- package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
- package/Utils/Uptime/UptimeUtil.d.mts +38 -1
- package/Utils/Uptime/UptimeUtil.d.ts +38 -1
- package/Utils/Uptime/UptimeUtil.js +270 -75
- package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.js +190 -0
- package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
- package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
- package/package.json +1 -1
- package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
- package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnCallTestPageRecordKind } from "./OnCallTestPage";
|
|
2
|
+
import { Translator } from "../Translator";
|
|
3
|
+
export declare const getOnCallTestPageHeadline: (translator: Translator, productName: string) => string;
|
|
4
|
+
export declare const getOnCallTestPageWhatItTests: (translator: Translator, data: {
|
|
5
|
+
recordKind: OnCallTestPageRecordKind;
|
|
6
|
+
projectName: string;
|
|
7
|
+
severityName: string;
|
|
8
|
+
}) => string;
|
|
9
|
+
export declare const getOnCallTestPageAskToAcknowledge: (translator: Translator) => string;
|
|
10
|
+
export declare const getOnCallTestPageAcknowledgeLabel: (translator: Translator) => string;
|
|
11
|
+
export declare const getOnCallTestPageSentBy: (translator: Translator, data: {
|
|
12
|
+
isSentBySelf: boolean;
|
|
13
|
+
senderName: string;
|
|
14
|
+
policyName?: string | undefined;
|
|
15
|
+
}) => string;
|
|
16
|
+
export declare const getOnCallTestPageSmsText: (translator: Translator, data: {
|
|
17
|
+
productName: string;
|
|
18
|
+
projectName: string;
|
|
19
|
+
link: string;
|
|
20
|
+
}) => string;
|
|
21
|
+
export declare const getOnCallTestPageEmailSubject: (translator: Translator, projectName: string) => string;
|
|
22
|
+
export declare const ON_CALL_TEST_PAGE_CALL_GREETING: string;
|
|
23
|
+
export declare const getOnCallTestPageCallWhatItTests: (data: {
|
|
24
|
+
recordKind: OnCallTestPageRecordKind;
|
|
25
|
+
projectName: string;
|
|
26
|
+
severityName: string;
|
|
27
|
+
}) => string;
|
|
28
|
+
export declare const ON_CALL_TEST_PAGE_CALL_PROMPT: string;
|
|
29
|
+
export declare const ON_CALL_TEST_PAGE_CALL_ACKNOWLEDGED: string;
|
|
30
|
+
export declare const ON_CALL_TEST_PAGE_CALL_NO_INPUT: string;
|
|
31
|
+
export declare const ON_CALL_TEST_PAGE_CALL_INVALID_INPUT: string;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ON_CALL_TEST_PAGE_CALL_INVALID_INPUT = exports.ON_CALL_TEST_PAGE_CALL_NO_INPUT = exports.ON_CALL_TEST_PAGE_CALL_ACKNOWLEDGED = exports.ON_CALL_TEST_PAGE_CALL_PROMPT = exports.getOnCallTestPageCallWhatItTests = exports.ON_CALL_TEST_PAGE_CALL_GREETING = exports.getOnCallTestPageEmailSubject = exports.getOnCallTestPageSmsText = exports.getOnCallTestPageSentBy = exports.getOnCallTestPageAcknowledgeLabel = exports.getOnCallTestPageAskToAcknowledge = exports.getOnCallTestPageWhatItTests = exports.getOnCallTestPageHeadline = void 0;
|
|
4
|
+
const OnCallTestPage_1 = require("./OnCallTestPage");
|
|
5
|
+
const OnCallPageWords_1 = require("./OnCallPageWords");
|
|
6
|
+
const Translator_1 = require("../Translator");
|
|
7
|
+
/*
|
|
8
|
+
* WHAT A TEST PAGE SAYS, IN THE LANGUAGE OF THE PERSON IT PAGES.
|
|
9
|
+
*
|
|
10
|
+
* A test page (OnCallTestPage) reaches a person through the same channels a
|
|
11
|
+
* real page does, and every message says TEST in its first words - in the
|
|
12
|
+
* person's language, as every page's words are (Types/UserLanguage,
|
|
13
|
+
* Common/Server/Locales) - and that nothing is wrong. Each sentence is a
|
|
14
|
+
* whole sentence for each kind of record the test stands in for, so a
|
|
15
|
+
* language words "an incident" and "an alert" its own way.
|
|
16
|
+
*
|
|
17
|
+
* A call stays English, as every call does: it is spoken by a voice that
|
|
18
|
+
* speaks English. WhatsApp sends the test message Meta approved.
|
|
19
|
+
*
|
|
20
|
+
* Pure, with no Node, browser or database APIs.
|
|
21
|
+
*/
|
|
22
|
+
// "TEST page from OneUptime": the first words of every message.
|
|
23
|
+
const getOnCallTestPageHeadline = (translator, productName) => {
|
|
24
|
+
return translator.translateTemplate((0, Translator_1.translationKey)("TEST page from {{product}}"), { product: productName });
|
|
25
|
+
};
|
|
26
|
+
exports.getOnCallTestPageHeadline = getOnCallTestPageHeadline;
|
|
27
|
+
/*
|
|
28
|
+
* What the test is, and that nothing is wrong: "Nothing is wrong. This
|
|
29
|
+
* tests how Acme pages you for an incident of severity Critical."
|
|
30
|
+
*/
|
|
31
|
+
const getOnCallTestPageWhatItTests = (translator, data) => {
|
|
32
|
+
const values = {
|
|
33
|
+
project: data.projectName,
|
|
34
|
+
severity: data.severityName,
|
|
35
|
+
};
|
|
36
|
+
return data.recordKind === OnCallTestPage_1.OnCallTestPageRecordKind.Alert
|
|
37
|
+
? translator.translateTemplate((0, Translator_1.translationKey)("Nothing is wrong. This tests how {{project}} pages you for an alert of severity {{severity}}."), values)
|
|
38
|
+
: translator.translateTemplate((0, Translator_1.translationKey)("Nothing is wrong. This tests how {{project}} pages you for an incident of severity {{severity}}."), values);
|
|
39
|
+
};
|
|
40
|
+
exports.getOnCallTestPageWhatItTests = getOnCallTestPageWhatItTests;
|
|
41
|
+
// What the person is asked to do.
|
|
42
|
+
const getOnCallTestPageAskToAcknowledge = (translator) => {
|
|
43
|
+
const sentence = (0, Translator_1.translationKey)("Acknowledge it to finish the test.");
|
|
44
|
+
return translator.translateText(sentence) || sentence;
|
|
45
|
+
};
|
|
46
|
+
exports.getOnCallTestPageAskToAcknowledge = getOnCallTestPageAskToAcknowledge;
|
|
47
|
+
// The link, or the button, that acknowledges a test page.
|
|
48
|
+
const getOnCallTestPageAcknowledgeLabel = (translator) => {
|
|
49
|
+
const sentence = (0, Translator_1.translationKey)("Acknowledge test page");
|
|
50
|
+
return translator.translateText(sentence) || sentence;
|
|
51
|
+
};
|
|
52
|
+
exports.getOnCallTestPageAcknowledgeLabel = getOnCallTestPageAcknowledgeLabel;
|
|
53
|
+
/*
|
|
54
|
+
* Who sent the test, and why this person: themselves, an admin, or a test
|
|
55
|
+
* of a policy that pages them. Empty when nobody is known to have sent it.
|
|
56
|
+
*/
|
|
57
|
+
const getOnCallTestPageSentBy = (translator, data) => {
|
|
58
|
+
const senderName = data.senderName.trim();
|
|
59
|
+
const policyName = (data.policyName || "").trim();
|
|
60
|
+
if (policyName) {
|
|
61
|
+
return translator.translateTemplate((0, Translator_1.translationKey)("{{name}} is testing the on-call policy {{policy}}, which pages you."), { name: senderName || "OneUptime", policy: policyName });
|
|
62
|
+
}
|
|
63
|
+
if (data.isSentBySelf) {
|
|
64
|
+
const sentence = (0, Translator_1.translationKey)("You sent yourself this test page.");
|
|
65
|
+
return translator.translateText(sentence) || sentence;
|
|
66
|
+
}
|
|
67
|
+
if (!senderName) {
|
|
68
|
+
return "";
|
|
69
|
+
}
|
|
70
|
+
return translator.translateTemplate((0, Translator_1.translationKey)("{{name}} sent you this test page."), { name: senderName });
|
|
71
|
+
};
|
|
72
|
+
exports.getOnCallTestPageSentBy = getOnCallTestPageSentBy;
|
|
73
|
+
/*
|
|
74
|
+
* The test's text message, whole: TEST first, the project, that nothing is
|
|
75
|
+
* wrong, and the link to acknowledge it. The link goes in as it is, after a
|
|
76
|
+
* space, in every language, so a phone makes it a link.
|
|
77
|
+
*/
|
|
78
|
+
const getOnCallTestPageSmsText = (translator, data) => {
|
|
79
|
+
return translator.translateTemplate((0, Translator_1.translationKey)("TEST page from {{product}} for {{project}}: nothing is wrong. Acknowledge: {{link}}"), {
|
|
80
|
+
product: data.productName,
|
|
81
|
+
project: data.projectName,
|
|
82
|
+
link: data.link,
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
exports.getOnCallTestPageSmsText = getOnCallTestPageSmsText;
|
|
86
|
+
// The test's email subject.
|
|
87
|
+
const getOnCallTestPageEmailSubject = (translator, projectName) => {
|
|
88
|
+
return translator.translateTemplate((0, Translator_1.translationKey)("TEST page from {{project}}: nothing is wrong"), { project: projectName });
|
|
89
|
+
};
|
|
90
|
+
exports.getOnCallTestPageEmailSubject = getOnCallTestPageEmailSubject;
|
|
91
|
+
/*
|
|
92
|
+
* THE CALL, in English, as every call is: what it is, that nothing is
|
|
93
|
+
* wrong, what it tests, and to press 1 to acknowledge it.
|
|
94
|
+
*/
|
|
95
|
+
exports.ON_CALL_TEST_PAGE_CALL_GREETING = "This is a test page from OneUptime. Nothing is wrong.";
|
|
96
|
+
const getOnCallTestPageCallWhatItTests = (data) => {
|
|
97
|
+
return (0, exports.getOnCallTestPageWhatItTests)((0, OnCallPageWords_1.getEnglishPageTranslator)(), data)
|
|
98
|
+
.replace(/^Nothing is wrong\. /, "")
|
|
99
|
+
.trim();
|
|
100
|
+
};
|
|
101
|
+
exports.getOnCallTestPageCallWhatItTests = getOnCallTestPageCallWhatItTests;
|
|
102
|
+
exports.ON_CALL_TEST_PAGE_CALL_PROMPT = "To acknowledge this test page, press 1.";
|
|
103
|
+
exports.ON_CALL_TEST_PAGE_CALL_ACKNOWLEDGED = "You have acknowledged this test page. It works. Good bye";
|
|
104
|
+
exports.ON_CALL_TEST_PAGE_CALL_NO_INPUT = "You have not entered any input. Good bye";
|
|
105
|
+
exports.ON_CALL_TEST_PAGE_CALL_INVALID_INPUT = "Invalid input. Good bye";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import commonJsModule from "./OnCallTestPageWords.js";
|
|
2
|
+
export const ON_CALL_TEST_PAGE_CALL_ACKNOWLEDGED = commonJsModule.ON_CALL_TEST_PAGE_CALL_ACKNOWLEDGED;
|
|
3
|
+
export const ON_CALL_TEST_PAGE_CALL_GREETING = commonJsModule.ON_CALL_TEST_PAGE_CALL_GREETING;
|
|
4
|
+
export const ON_CALL_TEST_PAGE_CALL_INVALID_INPUT = commonJsModule.ON_CALL_TEST_PAGE_CALL_INVALID_INPUT;
|
|
5
|
+
export const ON_CALL_TEST_PAGE_CALL_NO_INPUT = commonJsModule.ON_CALL_TEST_PAGE_CALL_NO_INPUT;
|
|
6
|
+
export const ON_CALL_TEST_PAGE_CALL_PROMPT = commonJsModule.ON_CALL_TEST_PAGE_CALL_PROMPT;
|
|
7
|
+
export const getOnCallTestPageAcknowledgeLabel = commonJsModule.getOnCallTestPageAcknowledgeLabel;
|
|
8
|
+
export const getOnCallTestPageAskToAcknowledge = commonJsModule.getOnCallTestPageAskToAcknowledge;
|
|
9
|
+
export const getOnCallTestPageCallWhatItTests = commonJsModule.getOnCallTestPageCallWhatItTests;
|
|
10
|
+
export const getOnCallTestPageEmailSubject = commonJsModule.getOnCallTestPageEmailSubject;
|
|
11
|
+
export const getOnCallTestPageHeadline = commonJsModule.getOnCallTestPageHeadline;
|
|
12
|
+
export const getOnCallTestPageSentBy = commonJsModule.getOnCallTestPageSentBy;
|
|
13
|
+
export const getOnCallTestPageSmsText = commonJsModule.getOnCallTestPageSmsText;
|
|
14
|
+
export const getOnCallTestPageWhatItTests = commonJsModule.getOnCallTestPageWhatItTests;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReadingDirection } from "./ReadingDirection.mjs";
|
|
2
|
+
export declare const getPhoneNumberDirection: (phoneNumber: string | null | undefined) => ReadingDirection;
|
|
3
|
+
export declare const getPhoneNumberValueText: (value: unknown) => string;
|
|
4
|
+
export declare const getPhoneNumbersOfValue: (value: unknown) => Array<string>;
|
|
5
|
+
export declare const phoneNumberInLine: (phoneNumber: string | null | undefined, pageLanguage: string | null | undefined) => string;
|
|
6
|
+
export declare const phoneNumberListInLine: (phoneNumbers: ReadonlyArray<string>, pageLanguage: string | null | undefined) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReadingDirection } from "./ReadingDirection";
|
|
2
|
+
export declare const getPhoneNumberDirection: (phoneNumber: string | null | undefined) => ReadingDirection;
|
|
3
|
+
export declare const getPhoneNumberValueText: (value: unknown) => string;
|
|
4
|
+
export declare const getPhoneNumbersOfValue: (value: unknown) => Array<string>;
|
|
5
|
+
export declare const phoneNumberInLine: (phoneNumber: string | null | undefined, pageLanguage: string | null | undefined) => string;
|
|
6
|
+
export declare const phoneNumberListInLine: (phoneNumbers: ReadonlyArray<string>, pageLanguage: string | null | undefined) => string;
|
|
@@ -0,0 +1,123 @@
|
|
|
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.phoneNumberListInLine = exports.phoneNumberInLine = exports.getPhoneNumbersOfValue = exports.getPhoneNumberValueText = exports.getPhoneNumberDirection = void 0;
|
|
7
|
+
const TwilioPhoneNumbers_1 = __importDefault(require("./CallAndSMS/TwilioPhoneNumbers"));
|
|
8
|
+
const DatabaseProperty_1 = __importDefault(require("./Database/DatabaseProperty"));
|
|
9
|
+
const JSON_1 = require("./JSON");
|
|
10
|
+
const ReadingDirection_1 = require("./ReadingDirection");
|
|
11
|
+
const Translator_1 = require("./Translator");
|
|
12
|
+
/*
|
|
13
|
+
* A PHONE NUMBER READS +447700900123 IN EVERY LANGUAGE.
|
|
14
|
+
*
|
|
15
|
+
* A phone number is written left to right whatever the language around it:
|
|
16
|
+
* its plus sign first, then the country code, then the rest. A number is a
|
|
17
|
+
* run of digits after a "+" with no letter to say which way it reads, so on
|
|
18
|
+
* a page read right to left (Persian, Arabic) it takes the page's way, and
|
|
19
|
+
* the bidi algorithm puts the "+" at the visual end of the digits:
|
|
20
|
+
* +447700900123 was drawn 447700900123+ in the Twilio Config table, and
|
|
21
|
+
* "+1 ••• ••• 4821" was drawn "4821 ••• ••• 1+".
|
|
22
|
+
*
|
|
23
|
+
* So every number the product prints is set apart in an isolate that reads
|
|
24
|
+
* left to right: drawn as an element, PhoneNumberText (Common/UI/Components/
|
|
25
|
+
* PhoneNumber) - a <bdi dir="ltr">, as the IDs, hidden values and code are
|
|
26
|
+
* drawn - and in a line that can only be text (a sentence's value, a native
|
|
27
|
+
* tooltip, a dropdown's label), phoneNumberInLine below.
|
|
28
|
+
*
|
|
29
|
+
* A name given in a number's place - a Twilio number's friendly name,
|
|
30
|
+
* "Support line" - reads the way most of its letters do, as any value
|
|
31
|
+
* someone wrote (IsolatedText): only a value with no letter at all is a
|
|
32
|
+
* number, and reads left to right.
|
|
33
|
+
*/
|
|
34
|
+
/*
|
|
35
|
+
* LEFT-TO-RIGHT ISOLATE and RIGHT-TO-LEFT ISOLATE: what follows one, up to
|
|
36
|
+
* its PDI, reads that way. Written here, not read from CodeInSentence: that
|
|
37
|
+
* module loads only with Arabic or Persian words, and every table and
|
|
38
|
+
* detail card loads this one (Tests/UI/SignInFirstLoadBuild).
|
|
39
|
+
*/
|
|
40
|
+
const LEFT_TO_RIGHT_ISOLATE = String.fromCharCode(0x2066);
|
|
41
|
+
const RIGHT_TO_LEFT_ISOLATE = String.fromCharCode(0x2067);
|
|
42
|
+
/*
|
|
43
|
+
* The way a phone number reads: left to right - or, for a name in its
|
|
44
|
+
* place, the way most of its letters do.
|
|
45
|
+
*/
|
|
46
|
+
const getPhoneNumberDirection = (phoneNumber) => {
|
|
47
|
+
return (0, ReadingDirection_1.getTextReadingDirectionByMostLetters)(phoneNumber) || ReadingDirection_1.LEFT_TO_RIGHT;
|
|
48
|
+
};
|
|
49
|
+
exports.getPhoneNumberDirection = getPhoneNumberDirection;
|
|
50
|
+
/*
|
|
51
|
+
* The number a stored value holds, as text: a Phone (any DatabaseProperty),
|
|
52
|
+
* a string, or the { _type: "Phone", value } a record carries before it is
|
|
53
|
+
* read into its model. Empty for anything else - never "[object Object]".
|
|
54
|
+
*/
|
|
55
|
+
const getPhoneNumberValueText = (value) => {
|
|
56
|
+
if (value === null || value === undefined) {
|
|
57
|
+
return "";
|
|
58
|
+
}
|
|
59
|
+
if (typeof value === "string") {
|
|
60
|
+
return value.trim();
|
|
61
|
+
}
|
|
62
|
+
if (value instanceof DatabaseProperty_1.default) {
|
|
63
|
+
return value.toString().trim();
|
|
64
|
+
}
|
|
65
|
+
if (typeof value === "object" && !Array.isArray(value)) {
|
|
66
|
+
const json = value;
|
|
67
|
+
if (json["_type"] === JSON_1.ObjectType.Phone &&
|
|
68
|
+
typeof json["value"] === "string") {
|
|
69
|
+
return json["value"].trim();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return "";
|
|
73
|
+
};
|
|
74
|
+
exports.getPhoneNumberValueText = getPhoneNumberValueText;
|
|
75
|
+
/*
|
|
76
|
+
* The numbers a stored value holds: one, or each of a list typed as one
|
|
77
|
+
* value ("+6581234567, +447700900123" - a Twilio account's SMS numbers,
|
|
78
|
+
* separated by commas, semicolons or lines). No phone number has one of
|
|
79
|
+
* those in it, so a value with one is a list. None for an empty value.
|
|
80
|
+
*/
|
|
81
|
+
const getPhoneNumbersOfValue = (value) => {
|
|
82
|
+
return TwilioPhoneNumbers_1.default.getListEntries((0, exports.getPhoneNumberValueText)(value));
|
|
83
|
+
};
|
|
84
|
+
exports.getPhoneNumbersOfValue = getPhoneNumbersOfValue;
|
|
85
|
+
/*
|
|
86
|
+
* A phone number in a line that can only be text: a sentence's value
|
|
87
|
+
* ("Twilio is calling from {{phoneNumber}}."), a native tooltip (title), a
|
|
88
|
+
* dropdown's label. Where it reads the other way from the page - a number
|
|
89
|
+
* on a Persian or Arabic page - it is set apart in an isolate of its way
|
|
90
|
+
* (LRI ... PDI), so it reads +447700900123 inside the page's words. Where
|
|
91
|
+
* it reads the page's way it is left exactly as it is, so a number copied
|
|
92
|
+
* from an English page carries nothing it cannot be typed back in with.
|
|
93
|
+
*/
|
|
94
|
+
const phoneNumberInLine = (phoneNumber, pageLanguage) => {
|
|
95
|
+
const text = (phoneNumber || "").trim();
|
|
96
|
+
if (!text) {
|
|
97
|
+
return "";
|
|
98
|
+
}
|
|
99
|
+
const direction = (0, exports.getPhoneNumberDirection)(text);
|
|
100
|
+
if (direction === (0, ReadingDirection_1.getReadingDirection)(pageLanguage)) {
|
|
101
|
+
return text;
|
|
102
|
+
}
|
|
103
|
+
return `${direction === ReadingDirection_1.LEFT_TO_RIGHT ? LEFT_TO_RIGHT_ISOLATE : RIGHT_TO_LEFT_ISOLATE}${text}${ReadingDirection_1.POP_DIRECTIONAL_ISOLATE}`;
|
|
104
|
+
};
|
|
105
|
+
exports.phoneNumberInLine = phoneNumberInLine;
|
|
106
|
+
/*
|
|
107
|
+
* Phone numbers listed in a line that can only be text - "+2 more"'s
|
|
108
|
+
* tooltip - each set apart as phoneNumberInLine sets one, separated the
|
|
109
|
+
* reader's way (", ", "، " in Persian and Arabic, "、" in Japanese and
|
|
110
|
+
* Chinese). Joined into one plain string on a Persian page, every number's
|
|
111
|
+
* "+" stood at its end and the list read from its last number.
|
|
112
|
+
*/
|
|
113
|
+
const phoneNumberListInLine = (phoneNumbers, pageLanguage) => {
|
|
114
|
+
return phoneNumbers
|
|
115
|
+
.map((phoneNumber) => {
|
|
116
|
+
return (0, exports.phoneNumberInLine)(phoneNumber, pageLanguage);
|
|
117
|
+
})
|
|
118
|
+
.filter((phoneNumber) => {
|
|
119
|
+
return phoneNumber.length > 0;
|
|
120
|
+
})
|
|
121
|
+
.join((0, Translator_1.getListSeparator)(pageLanguage || undefined));
|
|
122
|
+
};
|
|
123
|
+
exports.phoneNumberListInLine = phoneNumberListInLine;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import commonJsModule from "./PhoneNumberDirection.js";
|
|
2
|
+
export const getPhoneNumberDirection = commonJsModule.getPhoneNumberDirection;
|
|
3
|
+
export const getPhoneNumberValueText = commonJsModule.getPhoneNumberValueText;
|
|
4
|
+
export const getPhoneNumbersOfValue = commonJsModule.getPhoneNumbersOfValue;
|
|
5
|
+
export const phoneNumberInLine = commonJsModule.phoneNumberInLine;
|
|
6
|
+
export const phoneNumberListInLine = commonJsModule.phoneNumberListInLine;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare enum ProductKey {
|
|
2
|
+
Monitors = "monitors",
|
|
3
|
+
Incidents = "incidents",
|
|
4
|
+
Alerts = "alerts",
|
|
5
|
+
OnCall = "on-call",
|
|
6
|
+
StatusPages = "status-pages",
|
|
7
|
+
ScheduledMaintenance = "scheduled-maintenance",
|
|
8
|
+
Slos = "slos",
|
|
9
|
+
Logs = "logs",
|
|
10
|
+
Metrics = "metrics",
|
|
11
|
+
Traces = "traces",
|
|
12
|
+
Profiles = "profiles",
|
|
13
|
+
Exceptions = "exceptions",
|
|
14
|
+
Llm = "llm",
|
|
15
|
+
DataObservability = "data-observability",
|
|
16
|
+
Topology = "topology",
|
|
17
|
+
SecurityEvents = "security-events",
|
|
18
|
+
DataSecurity = "data-security",
|
|
19
|
+
AIChat = "ai-chat",
|
|
20
|
+
AIInsights = "ai-insights",
|
|
21
|
+
Code = "code",
|
|
22
|
+
Inventory = "inventory",
|
|
23
|
+
Services = "services",
|
|
24
|
+
Databases = "databases",
|
|
25
|
+
Queues = "queues",
|
|
26
|
+
Rum = "rum",
|
|
27
|
+
Hosts = "hosts",
|
|
28
|
+
Kubernetes = "kubernetes",
|
|
29
|
+
Docker = "docker",
|
|
30
|
+
DockerSwarm = "docker-swarm",
|
|
31
|
+
Podman = "podman",
|
|
32
|
+
Proxmox = "proxmox",
|
|
33
|
+
OpenStack = "openstack",
|
|
34
|
+
VMware = "vmware",
|
|
35
|
+
Ceph = "ceph",
|
|
36
|
+
StorageArrays = "storage-arrays",
|
|
37
|
+
Network = "network",
|
|
38
|
+
IoT = "iot",
|
|
39
|
+
Cloud = "cloud",
|
|
40
|
+
AppPlatforms = "app-platforms",
|
|
41
|
+
Serverless = "serverless",
|
|
42
|
+
Dashboards = "dashboards",
|
|
43
|
+
Workflows = "workflows",
|
|
44
|
+
Runbooks = "runbooks",
|
|
45
|
+
Forms = "forms",
|
|
46
|
+
Users = "users",
|
|
47
|
+
Teams = "teams",
|
|
48
|
+
ProjectSettings = "project-settings"
|
|
49
|
+
}
|
|
50
|
+
export default ProductKey;
|
|
51
|
+
export declare const PRODUCT_KEYS: ReadonlyArray<ProductKey>;
|
|
52
|
+
export type NotOnboardedProductKey = ProductKey.AIChat | ProductKey.Users | ProductKey.Teams | ProductKey.ProjectSettings;
|
|
53
|
+
export type OnboardedProductKey = Exclude<ProductKey, NotOnboardedProductKey>;
|
|
54
|
+
export declare const NOT_ONBOARDED_PRODUCT_KEYS: ReadonlyArray<NotOnboardedProductKey>;
|
|
55
|
+
export declare const ONBOARDED_PRODUCT_KEYS: ReadonlyArray<OnboardedProductKey>;
|
|
56
|
+
export declare const isProductKey: (value: unknown) => value is ProductKey;
|
|
57
|
+
export declare const parseProductKeys: (value: unknown) => Array<ProductKey>;
|
|
58
|
+
export declare const sortProductKeys: (keys: ReadonlyArray<ProductKey>) => Array<ProductKey>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare enum ProductKey {
|
|
2
|
+
Monitors = "monitors",
|
|
3
|
+
Incidents = "incidents",
|
|
4
|
+
Alerts = "alerts",
|
|
5
|
+
OnCall = "on-call",
|
|
6
|
+
StatusPages = "status-pages",
|
|
7
|
+
ScheduledMaintenance = "scheduled-maintenance",
|
|
8
|
+
Slos = "slos",
|
|
9
|
+
Logs = "logs",
|
|
10
|
+
Metrics = "metrics",
|
|
11
|
+
Traces = "traces",
|
|
12
|
+
Profiles = "profiles",
|
|
13
|
+
Exceptions = "exceptions",
|
|
14
|
+
Llm = "llm",
|
|
15
|
+
DataObservability = "data-observability",
|
|
16
|
+
Topology = "topology",
|
|
17
|
+
SecurityEvents = "security-events",
|
|
18
|
+
DataSecurity = "data-security",
|
|
19
|
+
AIChat = "ai-chat",
|
|
20
|
+
AIInsights = "ai-insights",
|
|
21
|
+
Code = "code",
|
|
22
|
+
Inventory = "inventory",
|
|
23
|
+
Services = "services",
|
|
24
|
+
Databases = "databases",
|
|
25
|
+
Queues = "queues",
|
|
26
|
+
Rum = "rum",
|
|
27
|
+
Hosts = "hosts",
|
|
28
|
+
Kubernetes = "kubernetes",
|
|
29
|
+
Docker = "docker",
|
|
30
|
+
DockerSwarm = "docker-swarm",
|
|
31
|
+
Podman = "podman",
|
|
32
|
+
Proxmox = "proxmox",
|
|
33
|
+
OpenStack = "openstack",
|
|
34
|
+
VMware = "vmware",
|
|
35
|
+
Ceph = "ceph",
|
|
36
|
+
StorageArrays = "storage-arrays",
|
|
37
|
+
Network = "network",
|
|
38
|
+
IoT = "iot",
|
|
39
|
+
Cloud = "cloud",
|
|
40
|
+
AppPlatforms = "app-platforms",
|
|
41
|
+
Serverless = "serverless",
|
|
42
|
+
Dashboards = "dashboards",
|
|
43
|
+
Workflows = "workflows",
|
|
44
|
+
Runbooks = "runbooks",
|
|
45
|
+
Forms = "forms",
|
|
46
|
+
Users = "users",
|
|
47
|
+
Teams = "teams",
|
|
48
|
+
ProjectSettings = "project-settings"
|
|
49
|
+
}
|
|
50
|
+
export default ProductKey;
|
|
51
|
+
export declare const PRODUCT_KEYS: ReadonlyArray<ProductKey>;
|
|
52
|
+
export type NotOnboardedProductKey = ProductKey.AIChat | ProductKey.Users | ProductKey.Teams | ProductKey.ProjectSettings;
|
|
53
|
+
export type OnboardedProductKey = Exclude<ProductKey, NotOnboardedProductKey>;
|
|
54
|
+
export declare const NOT_ONBOARDED_PRODUCT_KEYS: ReadonlyArray<NotOnboardedProductKey>;
|
|
55
|
+
export declare const ONBOARDED_PRODUCT_KEYS: ReadonlyArray<OnboardedProductKey>;
|
|
56
|
+
export declare const isProductKey: (value: unknown) => value is ProductKey;
|
|
57
|
+
export declare const parseProductKeys: (value: unknown) => Array<ProductKey>;
|
|
58
|
+
export declare const sortProductKeys: (keys: ReadonlyArray<ProductKey>) => Array<ProductKey>;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sortProductKeys = exports.parseProductKeys = exports.isProductKey = exports.ONBOARDED_PRODUCT_KEYS = exports.NOT_ONBOARDED_PRODUCT_KEYS = exports.PRODUCT_KEYS = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* EVERY ENTRY OF THE PRODUCTS MENU, BY A NAME THAT NEVER CHANGES (#6814).
|
|
6
|
+
*
|
|
7
|
+
* The products menu (the Dashboard's Utils/NavigationItems) lists 47
|
|
8
|
+
* entries: 43 products, Chat (Ask AI) and the three entries of Settings.
|
|
9
|
+
* Each carries one of these values as its `key`, so the menu, Search, Home,
|
|
10
|
+
* Project Settings > Products and the server name a product the same way in
|
|
11
|
+
* every language - a title is translated, a key is not.
|
|
12
|
+
*
|
|
13
|
+
* A key is stored - in Project.productSettings (the products a project
|
|
14
|
+
* hides) and UserProjectPreference.pinnedProducts (the products a person
|
|
15
|
+
* pinned) - and sent to product analytics. Never rename one, and never
|
|
16
|
+
* reuse one for another product. A product added to the menu gets a new
|
|
17
|
+
* value here, at the end of its category in PRODUCT_KEYS.
|
|
18
|
+
*
|
|
19
|
+
* The first 43 are the products that explain themselves
|
|
20
|
+
* (Components/ProductOnboarding, ONBOARDED_PRODUCT_KEYS): the same values
|
|
21
|
+
* the "How it works" registry always used. Chat, Users, Teams and Project
|
|
22
|
+
* Settings have no first page to explain.
|
|
23
|
+
*
|
|
24
|
+
* Pure: the server, the Dashboard and their tests read it.
|
|
25
|
+
*/
|
|
26
|
+
var ProductKey;
|
|
27
|
+
(function (ProductKey) {
|
|
28
|
+
// Essentials.
|
|
29
|
+
ProductKey["Monitors"] = "monitors";
|
|
30
|
+
ProductKey["Incidents"] = "incidents";
|
|
31
|
+
ProductKey["Alerts"] = "alerts";
|
|
32
|
+
ProductKey["OnCall"] = "on-call";
|
|
33
|
+
ProductKey["StatusPages"] = "status-pages";
|
|
34
|
+
ProductKey["ScheduledMaintenance"] = "scheduled-maintenance";
|
|
35
|
+
ProductKey["Slos"] = "slos";
|
|
36
|
+
// Observability.
|
|
37
|
+
ProductKey["Logs"] = "logs";
|
|
38
|
+
ProductKey["Metrics"] = "metrics";
|
|
39
|
+
ProductKey["Traces"] = "traces";
|
|
40
|
+
ProductKey["Profiles"] = "profiles";
|
|
41
|
+
ProductKey["Exceptions"] = "exceptions";
|
|
42
|
+
ProductKey["Llm"] = "llm";
|
|
43
|
+
ProductKey["DataObservability"] = "data-observability";
|
|
44
|
+
ProductKey["Topology"] = "topology";
|
|
45
|
+
// Security.
|
|
46
|
+
ProductKey["SecurityEvents"] = "security-events";
|
|
47
|
+
ProductKey["DataSecurity"] = "data-security";
|
|
48
|
+
// AI.
|
|
49
|
+
ProductKey["AIChat"] = "ai-chat";
|
|
50
|
+
ProductKey["AIInsights"] = "ai-insights";
|
|
51
|
+
// Code.
|
|
52
|
+
ProductKey["Code"] = "code";
|
|
53
|
+
// Resources.
|
|
54
|
+
ProductKey["Inventory"] = "inventory";
|
|
55
|
+
ProductKey["Services"] = "services";
|
|
56
|
+
ProductKey["Databases"] = "databases";
|
|
57
|
+
ProductKey["Queues"] = "queues";
|
|
58
|
+
ProductKey["Rum"] = "rum";
|
|
59
|
+
// Infrastructure.
|
|
60
|
+
ProductKey["Hosts"] = "hosts";
|
|
61
|
+
ProductKey["Kubernetes"] = "kubernetes";
|
|
62
|
+
ProductKey["Docker"] = "docker";
|
|
63
|
+
ProductKey["DockerSwarm"] = "docker-swarm";
|
|
64
|
+
ProductKey["Podman"] = "podman";
|
|
65
|
+
ProductKey["Proxmox"] = "proxmox";
|
|
66
|
+
ProductKey["OpenStack"] = "openstack";
|
|
67
|
+
ProductKey["VMware"] = "vmware";
|
|
68
|
+
ProductKey["Ceph"] = "ceph";
|
|
69
|
+
ProductKey["StorageArrays"] = "storage-arrays";
|
|
70
|
+
ProductKey["Network"] = "network";
|
|
71
|
+
ProductKey["IoT"] = "iot";
|
|
72
|
+
// Cloud.
|
|
73
|
+
ProductKey["Cloud"] = "cloud";
|
|
74
|
+
ProductKey["AppPlatforms"] = "app-platforms";
|
|
75
|
+
ProductKey["Serverless"] = "serverless";
|
|
76
|
+
// Dashboards & Automation.
|
|
77
|
+
ProductKey["Dashboards"] = "dashboards";
|
|
78
|
+
ProductKey["Workflows"] = "workflows";
|
|
79
|
+
ProductKey["Runbooks"] = "runbooks";
|
|
80
|
+
ProductKey["Forms"] = "forms";
|
|
81
|
+
// Settings.
|
|
82
|
+
ProductKey["Users"] = "users";
|
|
83
|
+
ProductKey["Teams"] = "teams";
|
|
84
|
+
ProductKey["ProjectSettings"] = "project-settings";
|
|
85
|
+
})(ProductKey || (ProductKey = {}));
|
|
86
|
+
exports.default = ProductKey;
|
|
87
|
+
// Every key, in the order the products menu lists its entries.
|
|
88
|
+
exports.PRODUCT_KEYS = [
|
|
89
|
+
ProductKey.Monitors,
|
|
90
|
+
ProductKey.Incidents,
|
|
91
|
+
ProductKey.Alerts,
|
|
92
|
+
ProductKey.OnCall,
|
|
93
|
+
ProductKey.StatusPages,
|
|
94
|
+
ProductKey.ScheduledMaintenance,
|
|
95
|
+
ProductKey.Slos,
|
|
96
|
+
ProductKey.Logs,
|
|
97
|
+
ProductKey.Metrics,
|
|
98
|
+
ProductKey.Traces,
|
|
99
|
+
ProductKey.Profiles,
|
|
100
|
+
ProductKey.Exceptions,
|
|
101
|
+
ProductKey.Llm,
|
|
102
|
+
ProductKey.DataObservability,
|
|
103
|
+
ProductKey.Topology,
|
|
104
|
+
ProductKey.SecurityEvents,
|
|
105
|
+
ProductKey.DataSecurity,
|
|
106
|
+
ProductKey.AIChat,
|
|
107
|
+
ProductKey.AIInsights,
|
|
108
|
+
ProductKey.Code,
|
|
109
|
+
ProductKey.Inventory,
|
|
110
|
+
ProductKey.Services,
|
|
111
|
+
ProductKey.Databases,
|
|
112
|
+
ProductKey.Queues,
|
|
113
|
+
ProductKey.Rum,
|
|
114
|
+
ProductKey.Hosts,
|
|
115
|
+
ProductKey.Kubernetes,
|
|
116
|
+
ProductKey.Docker,
|
|
117
|
+
ProductKey.DockerSwarm,
|
|
118
|
+
ProductKey.Podman,
|
|
119
|
+
ProductKey.Proxmox,
|
|
120
|
+
ProductKey.OpenStack,
|
|
121
|
+
ProductKey.VMware,
|
|
122
|
+
ProductKey.Ceph,
|
|
123
|
+
ProductKey.StorageArrays,
|
|
124
|
+
ProductKey.Network,
|
|
125
|
+
ProductKey.IoT,
|
|
126
|
+
ProductKey.Cloud,
|
|
127
|
+
ProductKey.AppPlatforms,
|
|
128
|
+
ProductKey.Serverless,
|
|
129
|
+
ProductKey.Dashboards,
|
|
130
|
+
ProductKey.Workflows,
|
|
131
|
+
ProductKey.Runbooks,
|
|
132
|
+
ProductKey.Forms,
|
|
133
|
+
ProductKey.Users,
|
|
134
|
+
ProductKey.Teams,
|
|
135
|
+
ProductKey.ProjectSettings,
|
|
136
|
+
];
|
|
137
|
+
exports.NOT_ONBOARDED_PRODUCT_KEYS = [
|
|
138
|
+
ProductKey.AIChat,
|
|
139
|
+
ProductKey.Users,
|
|
140
|
+
ProductKey.Teams,
|
|
141
|
+
ProductKey.ProjectSettings,
|
|
142
|
+
];
|
|
143
|
+
exports.ONBOARDED_PRODUCT_KEYS = exports.PRODUCT_KEYS.filter((key) => {
|
|
144
|
+
return !exports.NOT_ONBOARDED_PRODUCT_KEYS.includes(key);
|
|
145
|
+
});
|
|
146
|
+
const isProductKey = (value) => {
|
|
147
|
+
return (typeof value === "string" &&
|
|
148
|
+
exports.PRODUCT_KEYS.includes(value));
|
|
149
|
+
};
|
|
150
|
+
exports.isProductKey = isProductKey;
|
|
151
|
+
/*
|
|
152
|
+
* The products a stored or sent list names: each known key once, in the
|
|
153
|
+
* order the list gives them, anything else left out. A value that is not a
|
|
154
|
+
* list holds none.
|
|
155
|
+
*/
|
|
156
|
+
const parseProductKeys = (value) => {
|
|
157
|
+
if (!Array.isArray(value)) {
|
|
158
|
+
return [];
|
|
159
|
+
}
|
|
160
|
+
const keys = [];
|
|
161
|
+
for (const item of value) {
|
|
162
|
+
if ((0, exports.isProductKey)(item) && !keys.includes(item)) {
|
|
163
|
+
keys.push(item);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return keys;
|
|
167
|
+
};
|
|
168
|
+
exports.parseProductKeys = parseProductKeys;
|
|
169
|
+
// The same keys, in the products menu's order.
|
|
170
|
+
const sortProductKeys = (keys) => {
|
|
171
|
+
return exports.PRODUCT_KEYS.filter((key) => {
|
|
172
|
+
return keys.includes(key);
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
exports.sortProductKeys = sortProductKeys;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import commonJsModule from "./ProductKey.js";
|
|
2
|
+
export default commonJsModule.default;
|
|
3
|
+
export const NOT_ONBOARDED_PRODUCT_KEYS = commonJsModule.NOT_ONBOARDED_PRODUCT_KEYS;
|
|
4
|
+
export const ONBOARDED_PRODUCT_KEYS = commonJsModule.ONBOARDED_PRODUCT_KEYS;
|
|
5
|
+
export const PRODUCT_KEYS = commonJsModule.PRODUCT_KEYS;
|
|
6
|
+
export const isProductKey = commonJsModule.isProductKey;
|
|
7
|
+
export const parseProductKeys = commonJsModule.parseProductKeys;
|
|
8
|
+
export const sortProductKeys = commonJsModule.sortProductKeys;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ProductKey from "./ProductKey.mjs";
|
|
2
|
+
export declare const MAX_PINNED_PRODUCTS: number;
|
|
3
|
+
export declare const parsePinnedProducts: (value: unknown) => Array<ProductKey>;
|
|
4
|
+
export declare const canPinAnotherProduct: (pinned: ReadonlyArray<ProductKey>) => boolean;
|
|
5
|
+
export declare const isProductPinned: (pinned: ReadonlyArray<ProductKey>, product: ProductKey) => boolean;
|
|
6
|
+
export declare const withProductPinned: (data: {
|
|
7
|
+
pinned: ReadonlyArray<ProductKey>;
|
|
8
|
+
product: ProductKey;
|
|
9
|
+
isPinned: boolean;
|
|
10
|
+
}) => Array<ProductKey>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ProductKey from "./ProductKey";
|
|
2
|
+
export declare const MAX_PINNED_PRODUCTS: number;
|
|
3
|
+
export declare const parsePinnedProducts: (value: unknown) => Array<ProductKey>;
|
|
4
|
+
export declare const canPinAnotherProduct: (pinned: ReadonlyArray<ProductKey>) => boolean;
|
|
5
|
+
export declare const isProductPinned: (pinned: ReadonlyArray<ProductKey>, product: ProductKey) => boolean;
|
|
6
|
+
export declare const withProductPinned: (data: {
|
|
7
|
+
pinned: ReadonlyArray<ProductKey>;
|
|
8
|
+
product: ProductKey;
|
|
9
|
+
isPinned: boolean;
|
|
10
|
+
}) => Array<ProductKey>;
|