@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,46 @@
|
|
|
1
|
+
import commonJsModule from "./SetupHealth.js";
|
|
2
|
+
export const DOMAIN_VERIFICATION_GRACE_IN_MS = commonJsModule.DOMAIN_VERIFICATION_GRACE_IN_MS;
|
|
3
|
+
export const MONITOR_OFF_FOR_LONG_IN_DAYS = commonJsModule.MONITOR_OFF_FOR_LONG_IN_DAYS;
|
|
4
|
+
export const SCHEDULE_GAP_LOOKAHEAD_IN_DAYS = commonJsModule.SCHEDULE_GAP_LOOKAHEAD_IN_DAYS;
|
|
5
|
+
export const SETUP_HEALTH_CACHE_TTL_IN_MS = commonJsModule.SETUP_HEALTH_CACHE_TTL_IN_MS;
|
|
6
|
+
export const SETUP_HEALTH_CHECK_ORDER = commonJsModule.SETUP_HEALTH_CHECK_ORDER;
|
|
7
|
+
export const SETUP_HEALTH_LEVELS_ON_HOME = commonJsModule.SETUP_HEALTH_LEVELS_ON_HOME;
|
|
8
|
+
export const SETUP_HEALTH_LEVEL_ORDER = commonJsModule.SETUP_HEALTH_LEVEL_ORDER;
|
|
9
|
+
export const SETUP_HEALTH_RESPONDER_REASON_ORDER = commonJsModule.SETUP_HEALTH_RESPONDER_REASON_ORDER;
|
|
10
|
+
export const SETUP_HEALTH_RULES = commonJsModule.SETUP_HEALTH_RULES;
|
|
11
|
+
export const SETUP_HEALTH_WORDS = commonJsModule.SETUP_HEALTH_WORDS;
|
|
12
|
+
export const SetupHealthCheck = commonJsModule.SetupHealthCheck;
|
|
13
|
+
export const SetupHealthEventKind = commonJsModule.SetupHealthEventKind;
|
|
14
|
+
export const SetupHealthFix = commonJsModule.SetupHealthFix;
|
|
15
|
+
export const SetupHealthLevel = commonJsModule.SetupHealthLevel;
|
|
16
|
+
export const SetupHealthMonitorReason = commonJsModule.SetupHealthMonitorReason;
|
|
17
|
+
export const SetupHealthRecordKind = commonJsModule.SetupHealthRecordKind;
|
|
18
|
+
export const SetupHealthResponderReason = commonJsModule.SetupHealthResponderReason;
|
|
19
|
+
export const SetupHealthScheduleReason = commonJsModule.SetupHealthScheduleReason;
|
|
20
|
+
export const applySetupHealthDismissals = commonJsModule.applySetupHealthDismissals;
|
|
21
|
+
export const compareSetupHealthFindings = commonJsModule.compareSetupHealthFindings;
|
|
22
|
+
export const findSetupHealthDismissal = commonJsModule.findSetupHealthDismissal;
|
|
23
|
+
export const formatEnglishTime = commonJsModule.formatEnglishTime;
|
|
24
|
+
export const formatEnglishUsd = commonJsModule.formatEnglishUsd;
|
|
25
|
+
export const getChainFindings = commonJsModule.getChainFindings;
|
|
26
|
+
export const getLowBalanceFindings = commonJsModule.getLowBalanceFindings;
|
|
27
|
+
export const getMonitorNotCheckedFindings = commonJsModule.getMonitorNotCheckedFindings;
|
|
28
|
+
export const getMonitorOffForLongFindings = commonJsModule.getMonitorOffForLongFindings;
|
|
29
|
+
export const getOwnerFindings = commonJsModule.getOwnerFindings;
|
|
30
|
+
export const getPolicyNotRunFindings = commonJsModule.getPolicyNotRunFindings;
|
|
31
|
+
export const getResponderFindings = commonJsModule.getResponderFindings;
|
|
32
|
+
export const getScheduleFindings = commonJsModule.getScheduleFindings;
|
|
33
|
+
export const getServerFindings = commonJsModule.getServerFindings;
|
|
34
|
+
export const getSetupHealthCounts = commonJsModule.getSetupHealthCounts;
|
|
35
|
+
export const getSetupHealthDismissalId = commonJsModule.getSetupHealthDismissalId;
|
|
36
|
+
export const getSetupHealthFindingKey = commonJsModule.getSetupHealthFindingKey;
|
|
37
|
+
export const getSetupHealthFindings = commonJsModule.getSetupHealthFindings;
|
|
38
|
+
export const getSetupHealthRecordIds = commonJsModule.getSetupHealthRecordIds;
|
|
39
|
+
export const getStatusPageDomainFindings = commonJsModule.getStatusPageDomainFindings;
|
|
40
|
+
export const getStatusPageFindings = commonJsModule.getStatusPageFindings;
|
|
41
|
+
export const getTelemetryFindings = commonJsModule.getTelemetryFindings;
|
|
42
|
+
export const getWorkspaceFindings = commonJsModule.getWorkspaceFindings;
|
|
43
|
+
export const isSetupHealthFindingReadable = commonJsModule.isSetupHealthFindingReadable;
|
|
44
|
+
export const makeSetupHealthFinding = commonJsModule.makeSetupHealthFinding;
|
|
45
|
+
export const redactSetupHealthFindings = commonJsModule.redactSetupHealthFindings;
|
|
46
|
+
export const usesPaidMessages = commonJsModule.usesPaidMessages;
|
|
@@ -102,6 +102,7 @@ class StatusPageSummaryUtil {
|
|
|
102
102
|
name: resource.name,
|
|
103
103
|
groupName: resource.groupName,
|
|
104
104
|
currentStatus: StatusPageSummaryUtil.statusToJSON(resource.currentStatus),
|
|
105
|
+
isMonitored: resource.isMonitored,
|
|
105
106
|
isUnderMaintenance: resource.isUnderMaintenance,
|
|
106
107
|
};
|
|
107
108
|
}),
|
|
@@ -155,6 +156,8 @@ class StatusPageSummaryUtil {
|
|
|
155
156
|
name: name,
|
|
156
157
|
groupName: readText(item["groupName"]),
|
|
157
158
|
currentStatus: StatusPageSummaryUtil.statusFromJSON(item["currentStatus"]),
|
|
159
|
+
// A server older than the field monitored every resource it listed.
|
|
160
|
+
isMonitored: item["isMonitored"] !== false,
|
|
158
161
|
isUnderMaintenance: item["isUnderMaintenance"] === true,
|
|
159
162
|
});
|
|
160
163
|
}
|
|
@@ -32,3 +32,28 @@ export interface UptimeDailyAggregate {
|
|
|
32
32
|
completeFrom: Date | null;
|
|
33
33
|
timezone?: string | undefined;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* One monitor group's reading for each day bucket: how long the GROUP spent
|
|
37
|
+
* in each status that day, in the same shape as a monitor's.
|
|
38
|
+
*
|
|
39
|
+
* A group is in the worst status among its monitors recorded at each
|
|
40
|
+
* instant, the page's downtime statuses outranking the rest (see
|
|
41
|
+
* MonitorStatusTimelineService.getMonitorGroupDailyUptimeAggregate). So a
|
|
42
|
+
* bucket's durations add up to its coveredSeconds - the time at least one
|
|
43
|
+
* of the group's monitors was recorded that day - and never to more than
|
|
44
|
+
* the day. Summing every monitor's buckets instead would count an hour two
|
|
45
|
+
* monitors spent Offline as two hours of the group's (issue #6697).
|
|
46
|
+
*/
|
|
47
|
+
export interface MonitorGroupUptimeDaily {
|
|
48
|
+
monitorGroupId: ObjectID;
|
|
49
|
+
buckets: Array<UptimeDayBucket>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Every monitor group's day buckets, for a status page request. Cut on the
|
|
53
|
+
* same day grid, in the same zone, as the monitors' UptimeDailyAggregate,
|
|
54
|
+
* so a group's bars line up with every monitor's.
|
|
55
|
+
*/
|
|
56
|
+
export interface MonitorGroupUptimeDailyAggregate {
|
|
57
|
+
monitorGroups: Array<MonitorGroupUptimeDaily>;
|
|
58
|
+
timezone?: string | undefined;
|
|
59
|
+
}
|
|
@@ -32,3 +32,28 @@ export interface UptimeDailyAggregate {
|
|
|
32
32
|
completeFrom: Date | null;
|
|
33
33
|
timezone?: string | undefined;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* One monitor group's reading for each day bucket: how long the GROUP spent
|
|
37
|
+
* in each status that day, in the same shape as a monitor's.
|
|
38
|
+
*
|
|
39
|
+
* A group is in the worst status among its monitors recorded at each
|
|
40
|
+
* instant, the page's downtime statuses outranking the rest (see
|
|
41
|
+
* MonitorStatusTimelineService.getMonitorGroupDailyUptimeAggregate). So a
|
|
42
|
+
* bucket's durations add up to its coveredSeconds - the time at least one
|
|
43
|
+
* of the group's monitors was recorded that day - and never to more than
|
|
44
|
+
* the day. Summing every monitor's buckets instead would count an hour two
|
|
45
|
+
* monitors spent Offline as two hours of the group's (issue #6697).
|
|
46
|
+
*/
|
|
47
|
+
export interface MonitorGroupUptimeDaily {
|
|
48
|
+
monitorGroupId: ObjectID;
|
|
49
|
+
buckets: Array<UptimeDayBucket>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Every monitor group's day buckets, for a status page request. Cut on the
|
|
53
|
+
* same day grid, in the same zone, as the monitors' UptimeDailyAggregate,
|
|
54
|
+
* so a group's bars line up with every monitor's.
|
|
55
|
+
*/
|
|
56
|
+
export interface MonitorGroupUptimeDailyAggregate {
|
|
57
|
+
monitorGroups: Array<MonitorGroupUptimeDaily>;
|
|
58
|
+
timezone?: string | undefined;
|
|
59
|
+
}
|
|
@@ -103,7 +103,7 @@ const KIND_TITLES = {
|
|
|
103
103
|
[LlmCallKind.Agent]: "Agent run",
|
|
104
104
|
[LlmCallKind.Tool]: "Tool",
|
|
105
105
|
[LlmCallKind.Embedding]: "Embedding",
|
|
106
|
-
[LlmCallKind.Retrieval]: "
|
|
106
|
+
[LlmCallKind.Retrieval]: "Retrieval",
|
|
107
107
|
[LlmCallKind.Other]: "Other",
|
|
108
108
|
};
|
|
109
109
|
class LlmCallKindUtil {
|
|
@@ -143,6 +143,7 @@ export interface TelemetryIngestionBudgetStatus {
|
|
|
143
143
|
project: TelemetryIngestionBudgetScopeStatus;
|
|
144
144
|
ingestionKeys: Array<TelemetryIngestionBudgetScopeStatus>;
|
|
145
145
|
}
|
|
146
|
+
export declare const readTelemetryIngestionBudgetStatus: (value: unknown) => TelemetryIngestionBudgetStatus | null;
|
|
146
147
|
export declare enum TelemetryIngestionBudgetRefusalKind {
|
|
147
148
|
DailyBudgetExhausted = "daily-budget-exhausted",
|
|
148
149
|
RateLimited = "rate-limited"
|
|
@@ -143,6 +143,7 @@ export interface TelemetryIngestionBudgetStatus {
|
|
|
143
143
|
project: TelemetryIngestionBudgetScopeStatus;
|
|
144
144
|
ingestionKeys: Array<TelemetryIngestionBudgetScopeStatus>;
|
|
145
145
|
}
|
|
146
|
+
export declare const readTelemetryIngestionBudgetStatus: (value: unknown) => TelemetryIngestionBudgetStatus | null;
|
|
146
147
|
export declare enum TelemetryIngestionBudgetRefusalKind {
|
|
147
148
|
DailyBudgetExhausted = "daily-budget-exhausted",
|
|
148
149
|
RateLimited = "rate-limited"
|
|
@@ -3,8 +3,8 @@ 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.
|
|
7
|
-
exports.TELEMETRY_INGESTION_BUDGET_PROJECT_LOCATION = void 0;
|
|
6
|
+
exports.TELEMETRY_INGESTION_BUDGET_PROJECT_ROUTE = exports.TelemetryIngestionBudgetRefusalKind = exports.readTelemetryIngestionBudgetStatus = exports.formatTelemetryIngestionBudgetMBPerSecond = exports.formatTelemetryIngestionBudgetGB = exports.getTelemetryIngestionBudgetState = exports.computeTelemetryIngestionBudgetPercentUsed = exports.TelemetryIngestionBudgetState = exports.getTelemetryIngestionBudgetWarningBytes = exports.getTelemetryIngestionBudgetDay = exports.getTelemetryIngestionBudgetWarningPercent = exports.getTelemetryIngestionBudgetTimezone = exports.getTelemetryIngestionBudgetResetTime = exports.getTelemetryIngestionBudgetWarningPercentProblem = exports.getTelemetryIngestionBudgetTimezoneProblem = exports.getTelemetryIngestionBudgetResetTimeProblem = exports.TELEMETRY_INGESTION_BUDGET_MAX_WARNING_PERCENT = exports.TELEMETRY_INGESTION_BUDGET_MIN_WARNING_PERCENT = exports.TELEMETRY_INGESTION_BUDGET_DEFAULT_WARNING_PERCENT = exports.TELEMETRY_INGESTION_BUDGET_DEFAULT_TIMEZONE = exports.TELEMETRY_INGESTION_BUDGET_DEFAULT_RESET_TIME = exports.normalizeTelemetryIngestionBudgetValue = exports.getTelemetryIngestionBudgetValueProblem = exports.TelemetryIngestionBudgetValueKind = exports.isTelemetryIngestionBudgetLimited = exports.resolveTelemetryIngestionBudget = exports.TelemetryIngestionBudgetLimitSource = exports.TelemetryIngestionBudgetScope = exports.hasAnyTelemetryIngestionBudgetSetting = exports.readTelemetryIngestionBudgetStoredSettings = exports.readTelemetryIngestionBudgetStoredValue = exports.getEmptyTelemetryIngestionBudgetStoredSettings = exports.telemetryIngestionBudgetMBToBytes = exports.telemetryIngestionBudgetGBToBytes = exports.TELEMETRY_INGESTION_BUDGET_MAX_RATE_MB_PER_SECOND = exports.TELEMETRY_INGESTION_BUDGET_MAX_DAILY_GB = exports.TELEMETRY_INGESTION_BUDGET_BYTES_PER_MB = exports.TELEMETRY_INGESTION_BUDGET_BYTES_PER_GB = exports.TELEMETRY_INGESTION_BUDGET_RESET_TIMEZONE_COLUMN = exports.TELEMETRY_INGESTION_BUDGET_RESET_TIME_COLUMN = exports.TELEMETRY_INGESTION_BUDGET_WARNING_PERCENT_COLUMN = exports.TELEMETRY_INGESTION_BUDGET_COLUMN_NAMES = exports.TELEMETRY_INGESTION_BUDGET_RATE_COLUMN_NAMES = exports.TELEMETRY_INGESTION_BUDGET_DAILY_COLUMN_NAMES = exports.TELEMETRY_INGESTION_BUDGET_COLUMNS = exports.getTelemetryIngestionBudgetSignalWords = exports.getTelemetryIngestionBudgetSignalFromSlug = exports.getTelemetryIngestionBudgetSignalSlug = exports.isTelemetryIngestionBudgetSignal = exports.TELEMETRY_INGESTION_BUDGET_SIGNALS = void 0;
|
|
7
|
+
exports.TELEMETRY_INGESTION_BUDGET_PROJECT_LOCATION = exports.TELEMETRY_INGESTION_BUDGET_ADMIN_PROJECTS_ROUTE = void 0;
|
|
8
8
|
const ProductType_1 = __importDefault(require("../MeteredPlan/ProductType"));
|
|
9
9
|
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
10
10
|
/*
|
|
@@ -582,6 +582,139 @@ const formatTelemetryIngestionBudgetMBPerSecond = (bytesPerSecond) => {
|
|
|
582
582
|
return `${formatAmount(bytesPerSecond / exports.TELEMETRY_INGESTION_BUDGET_BYTES_PER_MB)} MB per second`;
|
|
583
583
|
};
|
|
584
584
|
exports.formatTelemetryIngestionBudgetMBPerSecond = formatTelemetryIngestionBudgetMBPerSecond;
|
|
585
|
+
const isStatusRecord = (value) => {
|
|
586
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
587
|
+
};
|
|
588
|
+
// A figure the API sends as a number; anything else is not known (null).
|
|
589
|
+
const readStatusFigure = (value) => {
|
|
590
|
+
return typeof value === "number" && Number.isFinite(value) ? value : null;
|
|
591
|
+
};
|
|
592
|
+
// An ISO instant that reads as a date, else null.
|
|
593
|
+
const readStatusInstant = (value) => {
|
|
594
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
595
|
+
return null;
|
|
596
|
+
}
|
|
597
|
+
return Number.isFinite(Date.parse(value)) ? value : null;
|
|
598
|
+
};
|
|
599
|
+
const readStatusOneOf = (value, values) => {
|
|
600
|
+
return values.includes(value) ? value : null;
|
|
601
|
+
};
|
|
602
|
+
const STATUS_STATES = Object.values(TelemetryIngestionBudgetState);
|
|
603
|
+
const STATUS_SOURCES = Object.values(TelemetryIngestionBudgetLimitSource);
|
|
604
|
+
/*
|
|
605
|
+
* One signal of a scope, or null when it is not one: not an object, or a
|
|
606
|
+
* signal no budget is set for. A state the reader does not know is Unknown,
|
|
607
|
+
* which nothing alarms anyone about.
|
|
608
|
+
*/
|
|
609
|
+
const readSignalStatus = (value) => {
|
|
610
|
+
if (!isStatusRecord(value) ||
|
|
611
|
+
!(0, exports.isTelemetryIngestionBudgetSignal)(value["signal"])) {
|
|
612
|
+
return null;
|
|
613
|
+
}
|
|
614
|
+
return {
|
|
615
|
+
signal: value["signal"],
|
|
616
|
+
dailyBudgetBytes: readStatusFigure(value["dailyBudgetBytes"]),
|
|
617
|
+
dailyBudgetSource: readStatusOneOf(value["dailyBudgetSource"], STATUS_SOURCES),
|
|
618
|
+
rateLimitBytesPerSecond: readStatusFigure(value["rateLimitBytesPerSecond"]),
|
|
619
|
+
rateLimitSource: readStatusOneOf(value["rateLimitSource"], STATUS_SOURCES),
|
|
620
|
+
usedBytes: readStatusFigure(value["usedBytes"]),
|
|
621
|
+
droppedBytes: readStatusFigure(value["droppedBytes"]),
|
|
622
|
+
droppedRequests: readStatusFigure(value["droppedRequests"]),
|
|
623
|
+
throttledRequests: readStatusFigure(value["throttledRequests"]),
|
|
624
|
+
percentUsed: readStatusFigure(value["percentUsed"]),
|
|
625
|
+
state: readStatusOneOf(value["state"], STATUS_STATES) ||
|
|
626
|
+
TelemetryIngestionBudgetState.Unknown,
|
|
627
|
+
warningCrossedAt: readStatusInstant(value["warningCrossedAt"]),
|
|
628
|
+
exhaustedAt: readStatusInstant(value["exhaustedAt"]),
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
/*
|
|
632
|
+
* A scope with its signals, or null when it has no list of signals, or is a
|
|
633
|
+
* key with no id to tell it by. Where it sits says which scope it is: the
|
|
634
|
+
* project's own, or one of the keys. Each signal once, the first kept, as
|
|
635
|
+
* the server sends them: the budget card draws a row per key and signal,
|
|
636
|
+
* keyed by both, so a second row of either would be drawn over the first.
|
|
637
|
+
*/
|
|
638
|
+
const readScopeStatus = (value, scope) => {
|
|
639
|
+
if (!isStatusRecord(value) || !Array.isArray(value["signals"])) {
|
|
640
|
+
return null;
|
|
641
|
+
}
|
|
642
|
+
const isKey = scope === TelemetryIngestionBudgetScope.IngestionKey;
|
|
643
|
+
const keyId = value["ingestionKeyId"];
|
|
644
|
+
if (isKey && (typeof keyId !== "string" || keyId.trim() === "")) {
|
|
645
|
+
return null;
|
|
646
|
+
}
|
|
647
|
+
const signals = [];
|
|
648
|
+
for (const entry of value["signals"]) {
|
|
649
|
+
const signal = readSignalStatus(entry);
|
|
650
|
+
if (signal &&
|
|
651
|
+
!signals.some((read) => {
|
|
652
|
+
return read.signal === signal.signal;
|
|
653
|
+
})) {
|
|
654
|
+
signals.push(signal);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
const read = {
|
|
658
|
+
scope: scope,
|
|
659
|
+
signals: signals,
|
|
660
|
+
};
|
|
661
|
+
// Only a key has an id and a name: the project is told by its place.
|
|
662
|
+
if (isKey) {
|
|
663
|
+
read.ingestionKeyId = keyId;
|
|
664
|
+
if (typeof value["ingestionKeyName"] === "string") {
|
|
665
|
+
read.ingestionKeyName = value["ingestionKeyName"];
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
return read;
|
|
669
|
+
};
|
|
670
|
+
/*
|
|
671
|
+
* A status as the reading side gets it: off the network, where a proxy, an
|
|
672
|
+
* older server or a test double can answer anything at all. null when the
|
|
673
|
+
* answer is not a status - no project with a list of its signals, or no
|
|
674
|
+
* reset time to tell - so the explorers' banner draws nothing and the
|
|
675
|
+
* budget card says the read failed, instead of a page that throws while it
|
|
676
|
+
* draws. Lenient past that, field by field, as a read must be: a figure that
|
|
677
|
+
* is not a number is not known (null), a state or a source it does not know
|
|
678
|
+
* is Unknown or none, an entry that is not a signal or a key (a key has an
|
|
679
|
+
* id) is left out, as is a second entry for the same signal or key, and a
|
|
680
|
+
* time zone it does not know is UTC (the reset is an instant, written with
|
|
681
|
+
* its zone). A status the API sent reads back as itself.
|
|
682
|
+
*/
|
|
683
|
+
const readTelemetryIngestionBudgetStatus = (value) => {
|
|
684
|
+
if (!isStatusRecord(value)) {
|
|
685
|
+
return null;
|
|
686
|
+
}
|
|
687
|
+
const project = readScopeStatus(value["project"], TelemetryIngestionBudgetScope.Project);
|
|
688
|
+
const resetsAt = readStatusInstant(value["resetsAt"]);
|
|
689
|
+
if (!project || !resetsAt) {
|
|
690
|
+
return null;
|
|
691
|
+
}
|
|
692
|
+
const keyEntries = Array.isArray(value["ingestionKeys"])
|
|
693
|
+
? value["ingestionKeys"]
|
|
694
|
+
: [];
|
|
695
|
+
const ingestionKeys = [];
|
|
696
|
+
const keyIdsRead = new Set();
|
|
697
|
+
// Each key once, the first kept, as the server sends them.
|
|
698
|
+
for (const entry of keyEntries) {
|
|
699
|
+
const key = readScopeStatus(entry, TelemetryIngestionBudgetScope.IngestionKey);
|
|
700
|
+
if (key && key.ingestionKeyId && !keyIdsRead.has(key.ingestionKeyId)) {
|
|
701
|
+
keyIdsRead.add(key.ingestionKeyId);
|
|
702
|
+
ingestionKeys.push(key);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
return {
|
|
706
|
+
dayStartsAt: readStatusInstant(value["dayStartsAt"]) || "",
|
|
707
|
+
resetsAt: resetsAt,
|
|
708
|
+
resetTime: (0, exports.getTelemetryIngestionBudgetResetTime)(value["resetTime"]),
|
|
709
|
+
timezone: (0, exports.getTelemetryIngestionBudgetTimezone)(value["timezone"]),
|
|
710
|
+
warningPercent: (0, exports.getTelemetryIngestionBudgetWarningPercent)(value["warningPercent"]),
|
|
711
|
+
// Only an explicit false: it adds a warning, so nothing else implies it.
|
|
712
|
+
countersAvailable: value["countersAvailable"] !== false,
|
|
713
|
+
project: project,
|
|
714
|
+
ingestionKeys: ingestionKeys,
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
exports.readTelemetryIngestionBudgetStatus = readTelemetryIngestionBudgetStatus;
|
|
585
718
|
var TelemetryIngestionBudgetRefusalKind;
|
|
586
719
|
(function (TelemetryIngestionBudgetRefusalKind) {
|
|
587
720
|
// The daily budget is used up: not retryable before the reset.
|
|
@@ -45,6 +45,7 @@ export const hasAnyTelemetryIngestionBudgetSetting = commonJsModule.hasAnyTeleme
|
|
|
45
45
|
export const isTelemetryIngestionBudgetLimited = commonJsModule.isTelemetryIngestionBudgetLimited;
|
|
46
46
|
export const isTelemetryIngestionBudgetSignal = commonJsModule.isTelemetryIngestionBudgetSignal;
|
|
47
47
|
export const normalizeTelemetryIngestionBudgetValue = commonJsModule.normalizeTelemetryIngestionBudgetValue;
|
|
48
|
+
export const readTelemetryIngestionBudgetStatus = commonJsModule.readTelemetryIngestionBudgetStatus;
|
|
48
49
|
export const readTelemetryIngestionBudgetStoredSettings = commonJsModule.readTelemetryIngestionBudgetStoredSettings;
|
|
49
50
|
export const readTelemetryIngestionBudgetStoredValue = commonJsModule.readTelemetryIngestionBudgetStoredValue;
|
|
50
51
|
export const resolveTelemetryIngestionBudget = commonJsModule.resolveTelemetryIngestionBudget;
|
|
@@ -54,6 +54,7 @@ export declare const PAGERDUTY_REGION_EU: string;
|
|
|
54
54
|
export declare const GRAFANA_ONCALL_API_URL_EXAMPLE: string;
|
|
55
55
|
export declare const ToolImportCatalog: Record<ToolImportSource, ToolImportSourceDefinition>;
|
|
56
56
|
export declare function getToolImportSourceDefinition(source: ToolImportSource): ToolImportSourceDefinition;
|
|
57
|
+
export declare function getToolImportSourcesThatFill(kind: ToolImportResourceKind): Array<ToolImportSource>;
|
|
57
58
|
export declare function isToolImportAddressGiven(definition: ToolImportSourceDefinition): boolean;
|
|
58
59
|
export declare function isToolImportFileUpload(definition: ToolImportSourceDefinition): boolean;
|
|
59
60
|
export declare function isToolImportStatusPageHost(definition: ToolImportSourceDefinition): boolean;
|
|
@@ -54,6 +54,7 @@ export declare const PAGERDUTY_REGION_EU: string;
|
|
|
54
54
|
export declare const GRAFANA_ONCALL_API_URL_EXAMPLE: string;
|
|
55
55
|
export declare const ToolImportCatalog: Record<ToolImportSource, ToolImportSourceDefinition>;
|
|
56
56
|
export declare function getToolImportSourceDefinition(source: ToolImportSource): ToolImportSourceDefinition;
|
|
57
|
+
export declare function getToolImportSourcesThatFill(kind: ToolImportResourceKind): Array<ToolImportSource>;
|
|
57
58
|
export declare function isToolImportAddressGiven(definition: ToolImportSourceDefinition): boolean;
|
|
58
59
|
export declare function isToolImportFileUpload(definition: ToolImportSourceDefinition): boolean;
|
|
59
60
|
export declare function isToolImportStatusPageHost(definition: ToolImportSourceDefinition): boolean;
|
|
@@ -1,16 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
37
|
};
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.ToolImportCatalog = exports.GRAFANA_ONCALL_API_URL_EXAMPLE = exports.PAGERDUTY_REGION_EU = exports.PAGERDUTY_REGION_US = exports.OPSGENIE_REGION_EU = exports.OPSGENIE_REGION_US = exports.ATLASSIAN_STATUSPAGE_HOST = exports.STATUSCAKE_HOST = exports.BETTER_STACK_HOST = exports.PINGDOM_HOST = exports.UPTIMEROBOT_HOST = exports.SPLUNK_ON_CALL_HOST = exports.PAGERDUTY_EU_HOST = exports.PAGERDUTY_US_HOST = exports.INCIDENT_IO_HOST = exports.OPSGENIE_EU_HOST = exports.OPSGENIE_US_HOST = exports.ToolImportCredentialField = exports.ToolImportCategory = void 0;
|
|
7
40
|
exports.getToolImportSourceDefinition = getToolImportSourceDefinition;
|
|
41
|
+
exports.getToolImportSourcesThatFill = getToolImportSourcesThatFill;
|
|
8
42
|
exports.isToolImportAddressGiven = isToolImportAddressGiven;
|
|
9
43
|
exports.isToolImportFileUpload = isToolImportFileUpload;
|
|
10
44
|
exports.isToolImportStatusPageHost = isToolImportStatusPageHost;
|
|
11
45
|
exports.resolveToolImportRegion = resolveToolImportRegion;
|
|
12
46
|
const ToolImportResourceKind_1 = __importDefault(require("./ToolImportResourceKind"));
|
|
13
|
-
const ToolImportSource_1 =
|
|
47
|
+
const ToolImportSource_1 = __importStar(require("./ToolImportSource"));
|
|
14
48
|
/*
|
|
15
49
|
* Which group the page lists a tool in: the on-call and incident tools a
|
|
16
50
|
* team is paged from, or the uptime monitoring and status page tools.
|
|
@@ -283,6 +317,25 @@ exports.ToolImportCatalog = {
|
|
|
283
317
|
function getToolImportSourceDefinition(source) {
|
|
284
318
|
return exports.ToolImportCatalog[source];
|
|
285
319
|
}
|
|
320
|
+
/*
|
|
321
|
+
* The tools whose import fills a list of one kind of record, in the order
|
|
322
|
+
* the page offers them: what the Monitors, On-Call and Status Pages lists
|
|
323
|
+
* name when they offer the importer while empty, and the tools the
|
|
324
|
+
* importer opens on from there (Dashboard Components/ToolImport/
|
|
325
|
+
* ToolImportOffer). A tool that hosts status pages and checks nothing
|
|
326
|
+
* (Atlassian Statuspage) brings what its pages show as manual monitors,
|
|
327
|
+
* not checks, so it fills the Status Pages list and not the Monitors one.
|
|
328
|
+
*/
|
|
329
|
+
function getToolImportSourcesThatFill(kind) {
|
|
330
|
+
return ToolImportSource_1.AllToolImportSources.filter((source) => {
|
|
331
|
+
const definition = exports.ToolImportCatalog[source];
|
|
332
|
+
if (kind === ToolImportResourceKind_1.default.Monitor &&
|
|
333
|
+
definition.isStatusPageHost === true) {
|
|
334
|
+
return false;
|
|
335
|
+
}
|
|
336
|
+
return definition.kinds.includes(kind);
|
|
337
|
+
});
|
|
338
|
+
}
|
|
286
339
|
// Whether the person gives the tool's address (it is not fixed here).
|
|
287
340
|
function isToolImportAddressGiven(definition) {
|
|
288
341
|
return definition.credentialFields.includes(ToolImportCredentialField.ApiUrl);
|
|
@@ -19,6 +19,7 @@ export const ToolImportCategory = commonJsModule.ToolImportCategory;
|
|
|
19
19
|
export const ToolImportCredentialField = commonJsModule.ToolImportCredentialField;
|
|
20
20
|
export const UPTIMEROBOT_HOST = commonJsModule.UPTIMEROBOT_HOST;
|
|
21
21
|
export const getToolImportSourceDefinition = commonJsModule.getToolImportSourceDefinition;
|
|
22
|
+
export const getToolImportSourcesThatFill = commonJsModule.getToolImportSourcesThatFill;
|
|
22
23
|
export const isToolImportAddressGiven = commonJsModule.isToolImportAddressGiven;
|
|
23
24
|
export const isToolImportFileUpload = commonJsModule.isToolImportFileUpload;
|
|
24
25
|
export const isToolImportStatusPageHost = commonJsModule.isToolImportStatusPageHost;
|
package/Types/Translator.js
CHANGED
|
@@ -246,29 +246,62 @@ const englishTextValues = (values) => {
|
|
|
246
246
|
return result;
|
|
247
247
|
};
|
|
248
248
|
/*
|
|
249
|
-
*
|
|
250
|
-
* apart in a Unicode isolate where it could move the
|
|
251
|
-
* (ReadingDirection's setApartInSentence) - in a Persian
|
|
252
|
-
* Latin letters, an address, a time or a count; in an
|
|
253
|
-
* Persian name.
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
*
|
|
249
|
+
* `template` filled with `values` as a sentence that reads `direction`
|
|
250
|
+
* holds them: each set apart in a Unicode isolate where it could move the
|
|
251
|
+
* words around it (ReadingDirection's setApartInSentence) - in a Persian
|
|
252
|
+
* sentence a name in Latin letters, an address, a time or a count; in an
|
|
253
|
+
* English one a Persian name.
|
|
254
|
+
*
|
|
255
|
+
* A number the sentence writes against a sign the bidi algorithm reads
|
|
256
|
+
* with it - "{{online}}/{{count}}", "{{hours}}:{{minutes}}", Persian's
|
|
257
|
+
* "#{{number}}" behind its right-to-left mark - is left as it is: set
|
|
258
|
+
* apart, it was cut off from its sign, and "3/5" was drawn "5/3"
|
|
259
|
+
* (ReadingDirection's isNumberJoinedToASign, read on the sentence with
|
|
260
|
+
* every value as it is).
|
|
261
|
+
*
|
|
262
|
+
* A slot's marker (TranslatedSentence, translateTemplateAround) is set
|
|
263
|
+
* apart in a sentence read right to left when asked to (SentenceOptions'
|
|
264
|
+
* setsSlotsApart), so what is drawn there as an element is too; otherwise
|
|
265
|
+
* it is left as it is. As in fillTemplate, a placeholder with no value is
|
|
266
|
+
* left as it is, and each value goes in literally.
|
|
257
267
|
*/
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
const fillSettingValuesApart = (template, values, direction, setsSlotsApart) => {
|
|
269
|
+
var _a;
|
|
270
|
+
const pieces = [];
|
|
271
|
+
// The sentence with every value as it is: what a number's signs are read in.
|
|
272
|
+
let filled = "";
|
|
273
|
+
let at = 0;
|
|
274
|
+
const addPiece = (text, isValue) => {
|
|
275
|
+
pieces.push({ text, start: filled.length, isValue });
|
|
276
|
+
filled += text;
|
|
277
|
+
};
|
|
278
|
+
for (const match of template.matchAll(PLACEHOLDER)) {
|
|
279
|
+
const start = (_a = match.index) !== null && _a !== void 0 ? _a : 0;
|
|
280
|
+
const name = match[1] || "";
|
|
281
|
+
const isFilled = Object.prototype.hasOwnProperty.call(values, name);
|
|
282
|
+
addPiece(template.slice(at, start), false);
|
|
283
|
+
addPiece(isFilled ? values[name] : match[0], isFilled);
|
|
284
|
+
at = start + match[0].length;
|
|
270
285
|
}
|
|
271
|
-
|
|
286
|
+
addPiece(template.slice(at), false);
|
|
287
|
+
return pieces
|
|
288
|
+
.map((piece) => {
|
|
289
|
+
if (!piece.isValue) {
|
|
290
|
+
return piece.text;
|
|
291
|
+
}
|
|
292
|
+
if (isSlotMarker(piece.text)) {
|
|
293
|
+
return setsSlotsApart && direction === ReadingDirection_1.RIGHT_TO_LEFT
|
|
294
|
+
? `${ReadingDirection_1.FIRST_STRONG_ISOLATE}${piece.text}${ReadingDirection_1.POP_DIRECTIONAL_ISOLATE}`
|
|
295
|
+
: piece.text;
|
|
296
|
+
}
|
|
297
|
+
const end = piece.start + piece.text.length;
|
|
298
|
+
if (direction === ReadingDirection_1.RIGHT_TO_LEFT &&
|
|
299
|
+
(0, ReadingDirection_1.isNumberJoinedToASign)(piece.text, filled.slice(Math.max(0, piece.start - 2), piece.start), filled.slice(end, end + 2))) {
|
|
300
|
+
return piece.text;
|
|
301
|
+
}
|
|
302
|
+
return (0, ReadingDirection_1.setApartInSentence)(piece.text, direction);
|
|
303
|
+
})
|
|
304
|
+
.join("");
|
|
272
305
|
};
|
|
273
306
|
/*
|
|
274
307
|
* Fills {{key}} placeholders from values. A placeholder with no value is left
|
|
@@ -416,8 +449,8 @@ const createTranslator = (lookup, language) => {
|
|
|
416
449
|
* language and always takes the reader's words.
|
|
417
450
|
*
|
|
418
451
|
* Asked to (SentenceOptions), each value is set apart from the sentence
|
|
419
|
-
* where it could move the words around it (
|
|
420
|
-
* sentence reads: the reader's language's, or English's.
|
|
452
|
+
* where it could move the words around it (fillSettingValuesApart), by the
|
|
453
|
+
* way the sentence reads: the reader's language's, or English's.
|
|
421
454
|
*/
|
|
422
455
|
const fill = (stored, english, values, options) => {
|
|
423
456
|
const setsValuesApart = Boolean(options === null || options === void 0 ? void 0 : options.setsValuesApart);
|
|
@@ -430,16 +463,16 @@ const createTranslator = (lookup, language) => {
|
|
|
430
463
|
*/
|
|
431
464
|
if (hasWords(english)) {
|
|
432
465
|
return setsValuesApart
|
|
433
|
-
? (
|
|
466
|
+
? fillSettingValuesApart(punctuate(english), englishTextValues(values), ReadingDirection_1.LEFT_TO_RIGHT, setsSlotsApart)
|
|
434
467
|
: (0, exports.fillTemplate)(punctuate(english), englishDateValues(values));
|
|
435
468
|
}
|
|
436
|
-
return
|
|
437
|
-
?
|
|
438
|
-
: translatedValues(values));
|
|
469
|
+
return setsValuesApart
|
|
470
|
+
? fillSettingValuesApart(punctuate(english), translatedValues(values), readerDirection, setsSlotsApart)
|
|
471
|
+
: (0, exports.fillTemplate)(punctuate(english), translatedValues(values));
|
|
439
472
|
}
|
|
440
|
-
return
|
|
441
|
-
?
|
|
442
|
-
: translatedValues(values));
|
|
473
|
+
return setsValuesApart
|
|
474
|
+
? fillSettingValuesApart(punctuate(stored), translatedValues(values), readerDirection, setsSlotsApart)
|
|
475
|
+
: (0, exports.fillTemplate)(punctuate(stored), translatedValues(values));
|
|
443
476
|
};
|
|
444
477
|
const translateTemplate = (template, values = {}, options) => {
|
|
445
478
|
return fill(find(template), template, values, options);
|
|
@@ -645,7 +678,7 @@ const getSentencePartsAndLanguage = (data) => {
|
|
|
645
678
|
};
|
|
646
679
|
}
|
|
647
680
|
return {
|
|
648
|
-
parts: split((
|
|
681
|
+
parts: split(fillSettingValuesApart(englishTemplate, englishTextValues(englishValues), ReadingDirection_1.LEFT_TO_RIGHT, false)) || [
|
|
649
682
|
{
|
|
650
683
|
kind: "text",
|
|
651
684
|
text: (0, exports.fillTemplate)(englishTemplate, englishDateValues(Object.assign(Object.assign({}, (isPlural ? { count: data.translator.formatNumber(count) } : {})), (data.values || {})))),
|
|
@@ -2,6 +2,7 @@ declare enum UserNotificationEventType {
|
|
|
2
2
|
IncidentCreated = "Incident Created",
|
|
3
3
|
AlertCreated = "Alert Created",
|
|
4
4
|
AlertEpisodeCreated = "Alert Episode Created",
|
|
5
|
-
IncidentEpisodeCreated = "Incident Episode Created"
|
|
5
|
+
IncidentEpisodeCreated = "Incident Episode Created",
|
|
6
|
+
TestPage = "Test Page"
|
|
6
7
|
}
|
|
7
8
|
export default UserNotificationEventType;
|
|
@@ -2,6 +2,7 @@ declare enum UserNotificationEventType {
|
|
|
2
2
|
IncidentCreated = "Incident Created",
|
|
3
3
|
AlertCreated = "Alert Created",
|
|
4
4
|
AlertEpisodeCreated = "Alert Episode Created",
|
|
5
|
-
IncidentEpisodeCreated = "Incident Episode Created"
|
|
5
|
+
IncidentEpisodeCreated = "Incident Episode Created",
|
|
6
|
+
TestPage = "Test Page"
|
|
6
7
|
}
|
|
7
8
|
export default UserNotificationEventType;
|
|
@@ -6,5 +6,12 @@ var UserNotificationEventType;
|
|
|
6
6
|
UserNotificationEventType["AlertCreated"] = "Alert Created";
|
|
7
7
|
UserNotificationEventType["AlertEpisodeCreated"] = "Alert Episode Created";
|
|
8
8
|
UserNotificationEventType["IncidentEpisodeCreated"] = "Incident Episode Created";
|
|
9
|
+
/*
|
|
10
|
+
* A test page (Types/OnCallDutyPolicy/OnCallTestPage): a run, and every
|
|
11
|
+
* log under it, with no incident, alert or episode behind it. It reaches
|
|
12
|
+
* people through their own On-Call Rules for the kind of record and the
|
|
13
|
+
* severity it stands in for, and every message says it is a test.
|
|
14
|
+
*/
|
|
15
|
+
UserNotificationEventType["TestPage"] = "Test Page";
|
|
9
16
|
})(UserNotificationEventType || (UserNotificationEventType = {}));
|
|
10
17
|
exports.default = UserNotificationEventType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum SessionEndCause {
|
|
2
|
+
SignedOut = "SignedOut",
|
|
3
|
+
IdleTimeout = "IdleTimeout",
|
|
4
|
+
LengthReached = "LengthReached",
|
|
5
|
+
Expired = "Expired",
|
|
6
|
+
PasswordChanged = "PasswordChanged",
|
|
7
|
+
PasswordReset = "PasswordReset",
|
|
8
|
+
AccountBlocked = "AccountBlocked",
|
|
9
|
+
TwoFactorRequired = "TwoFactorRequired",
|
|
10
|
+
TwoFactorReset = "TwoFactorReset",
|
|
11
|
+
Other = "Other"
|
|
12
|
+
}
|
|
13
|
+
export type NamedSessionEndCause = Exclude<SessionEndCause, SessionEndCause.Other>;
|
|
14
|
+
export declare const SESSION_END_CAUSE_REVOKED_REASONS: Readonly<Record<NamedSessionEndCause, string>>;
|
|
15
|
+
export declare const getSessionEndCauseRevokedReason: (cause: NamedSessionEndCause) => string;
|
|
16
|
+
export declare const readSessionEndCause: (revokedReason: unknown) => SessionEndCause;
|
|
17
|
+
export declare const isSessionTimeoutCause: (cause: SessionEndCause) => boolean;
|