@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,517 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getProductFeedbackTopicTitle = exports.PRODUCT_FEEDBACK_KIND_TITLES = exports.GUIDED_SETUP_TITLES = exports.summarizeProductFeedback = exports.ASK_AI_RATED_DOWN_LIST_SIZE = exports.ASK_AI_QUESTION_PREVIEW_LENGTH = exports.PRODUCT_FEEDBACK_LIST_MAX_PAGE_SIZE = exports.PRODUCT_FEEDBACK_LIST_PAGE_SIZE = exports.PRODUCT_FEEDBACK_SUMMARY_DAYS = exports.readProductFeedbackSettings = exports.isCheckInDue = exports.decideFeedbackQuestion = exports.FeedbackQuestionDecision = exports.withAskedQuestion = exports.readAskedQuestions = exports.FEEDBACK_QUESTIONS_KEPT = exports.readFeedbackQuestionKey = exports.getFeedbackQuestionKey = exports.readProductFeedbackSubmission = exports.PRODUCT_FEEDBACK_SUBMISSION_FIELDS = exports.toFeedbackDetails = exports.toFeedbackVersion = exports.toFeedbackPage = exports.toFeedbackTopic = exports.PRODUCT_FEEDBACK_GITHUB_LABEL = exports.GENERAL_FEEDBACK_TOPIC = exports.CHECK_IN_TOPIC = exports.PRODUCT_FEEDBACK_DETAILS_WINDOW_MINUTES = exports.CHECK_IN_LAST_DAY = exports.CHECK_IN_FIRST_DAY = exports.FEEDBACK_QUESTION_GAP_DAYS = exports.PRODUCT_FEEDBACK_HARD_SCORE = exports.PRODUCT_FEEDBACK_SCORES = exports.PRODUCT_FEEDBACK_HIGHEST_SCORE = exports.PRODUCT_FEEDBACK_LOWEST_SCORE = exports.PRODUCT_FEEDBACK_VERSION_MAX_LENGTH = exports.PRODUCT_FEEDBACK_PAGE_MAX_LENGTH = exports.PRODUCT_FEEDBACK_TOPIC_MAX_LENGTH = exports.PRODUCT_FEEDBACK_DETAILS_MAX_LENGTH = exports.PRODUCT_FEEDBACK_ADMIN_LIST_ROUTE = exports.PRODUCT_FEEDBACK_ADMIN_SUMMARY_ROUTE = exports.PRODUCT_FEEDBACK_ASK_ROUTE = exports.PRODUCT_FEEDBACK_SETTINGS_ROUTE = exports.PRODUCT_FEEDBACK_DETAILS_ROUTE = exports.PRODUCT_FEEDBACK_ROUTE = exports.isProductFeedbackKind = exports.PRODUCT_FEEDBACK_KINDS = exports.ProductFeedbackKind = void 0;
|
|
15
|
+
/*
|
|
16
|
+
* ASKING PEOPLE (issue #6832): how a person tells OneUptime "this was
|
|
17
|
+
* hard", and the rules for when OneUptime asks.
|
|
18
|
+
*
|
|
19
|
+
* Four ways in, each a kind of answer:
|
|
20
|
+
*
|
|
21
|
+
* - setup_flow "How easy was that?" at the end of a guided setup
|
|
22
|
+
* (GuidedSetupFrame), one click on 1 to 5, then an optional
|
|
23
|
+
* "What got in the way?". The setup's key is the topic.
|
|
24
|
+
* - general "Give feedback" in Help, on every page: what the person
|
|
25
|
+
* was trying to do and what happened.
|
|
26
|
+
* - explanation "Was this clear?" under How OneUptime works and a term's
|
|
27
|
+
* definition: thumbs up or down. The explanation is the
|
|
28
|
+
* topic (`how_oneuptime_works`, `term.criteria`).
|
|
29
|
+
* - check_in "Is OneUptime set up the way you wanted?", once, on Home,
|
|
30
|
+
* for the project's creator in its first weeks.
|
|
31
|
+
*
|
|
32
|
+
* WHERE ANSWERS GO
|
|
33
|
+
*
|
|
34
|
+
* Into this server's own database (Models/DatabaseModels/ProductFeedback),
|
|
35
|
+
* read by the server's master admins in the Admin Dashboard (Feedback).
|
|
36
|
+
* On a self-hosted server nothing leaves the server; the form offers a
|
|
37
|
+
* pre-filled GitHub issue the person reads before sending, or not. On
|
|
38
|
+
* OneUptime Cloud the master admins are the OneUptime team, and the
|
|
39
|
+
* Dashboard also sends `feedback/given` (Types/Analytics/ProductEvent):
|
|
40
|
+
* the kind, topic, score and page, never the words.
|
|
41
|
+
*
|
|
42
|
+
* WHAT AN ANSWER CARRIES
|
|
43
|
+
*
|
|
44
|
+
* The answer itself, the page as a route pattern with no ids
|
|
45
|
+
* (`/dashboard/:projectId/monitors/:id`) and the product version - nothing
|
|
46
|
+
* else: no person, no project, no address. readProductFeedbackSubmission
|
|
47
|
+
* takes only those fields from what is posted, and scrubs the page again.
|
|
48
|
+
*
|
|
49
|
+
* WHEN ONEUPTIME ASKS (decideFeedbackQuestion)
|
|
50
|
+
*
|
|
51
|
+
* A question (the setup's, the check-in) is asked once per person, at most
|
|
52
|
+
* one question a week, never while the project has an open incident or
|
|
53
|
+
* alert, and never once the person or the server switched questions off.
|
|
54
|
+
* What the person opens themselves - Give feedback, "Stuck?" under a
|
|
55
|
+
* setup's steps, the thumbs - is not a question OneUptime asks.
|
|
56
|
+
*
|
|
57
|
+
* React-free and server-free, so the server, the Dashboard and the tests
|
|
58
|
+
* read the same rules.
|
|
59
|
+
*/
|
|
60
|
+
var ProductFeedbackKind;
|
|
61
|
+
(function (ProductFeedbackKind) {
|
|
62
|
+
ProductFeedbackKind["SetupFlow"] = "setup_flow";
|
|
63
|
+
ProductFeedbackKind["General"] = "general";
|
|
64
|
+
ProductFeedbackKind["Explanation"] = "explanation";
|
|
65
|
+
ProductFeedbackKind["CheckIn"] = "check_in";
|
|
66
|
+
})(ProductFeedbackKind || (exports.ProductFeedbackKind = ProductFeedbackKind = {}));
|
|
67
|
+
exports.PRODUCT_FEEDBACK_KINDS = Object.values(ProductFeedbackKind);
|
|
68
|
+
const isProductFeedbackKind = (value) => {
|
|
69
|
+
return (typeof value === "string" &&
|
|
70
|
+
exports.PRODUCT_FEEDBACK_KINDS.includes(value));
|
|
71
|
+
};
|
|
72
|
+
exports.isProductFeedbackKind = isProductFeedbackKind;
|
|
73
|
+
// The routes (under /api). Server/API/ProductFeedbackAPI.ts serves them.
|
|
74
|
+
exports.PRODUCT_FEEDBACK_ROUTE = "/product-feedback";
|
|
75
|
+
exports.PRODUCT_FEEDBACK_DETAILS_ROUTE = "/product-feedback/details";
|
|
76
|
+
exports.PRODUCT_FEEDBACK_SETTINGS_ROUTE = "/product-feedback/settings";
|
|
77
|
+
exports.PRODUCT_FEEDBACK_ASK_ROUTE = "/product-feedback/ask";
|
|
78
|
+
exports.PRODUCT_FEEDBACK_ADMIN_SUMMARY_ROUTE = "/product-feedback/admin/summary";
|
|
79
|
+
exports.PRODUCT_FEEDBACK_ADMIN_LIST_ROUTE = "/product-feedback/admin/list";
|
|
80
|
+
// What a person may write: a few sentences, not an essay.
|
|
81
|
+
exports.PRODUCT_FEEDBACK_DETAILS_MAX_LENGTH = 2000;
|
|
82
|
+
// A topic is a word the code chose: a setup's key, an explanation's.
|
|
83
|
+
exports.PRODUCT_FEEDBACK_TOPIC_MAX_LENGTH = 100;
|
|
84
|
+
exports.PRODUCT_FEEDBACK_PAGE_MAX_LENGTH = 200;
|
|
85
|
+
exports.PRODUCT_FEEDBACK_VERSION_MAX_LENGTH = 40;
|
|
86
|
+
// "How easy was that?": 1 is very hard, 5 is very easy.
|
|
87
|
+
exports.PRODUCT_FEEDBACK_LOWEST_SCORE = 1;
|
|
88
|
+
exports.PRODUCT_FEEDBACK_HIGHEST_SCORE = 5;
|
|
89
|
+
exports.PRODUCT_FEEDBACK_SCORES = [1, 2, 3, 4, 5];
|
|
90
|
+
// A score this low or lower is "hard" in the Admin Dashboard's summary.
|
|
91
|
+
exports.PRODUCT_FEEDBACK_HARD_SCORE = 2;
|
|
92
|
+
// At most one question a week per person.
|
|
93
|
+
exports.FEEDBACK_QUESTION_GAP_DAYS = 7;
|
|
94
|
+
/*
|
|
95
|
+
* The first-week check-in: from the 7th day after a project was made, and
|
|
96
|
+
* no later than the 30th - an older project is long past its first week.
|
|
97
|
+
*/
|
|
98
|
+
exports.CHECK_IN_FIRST_DAY = 7;
|
|
99
|
+
exports.CHECK_IN_LAST_DAY = 30;
|
|
100
|
+
// Details can be added to an answer this long after it was given.
|
|
101
|
+
exports.PRODUCT_FEEDBACK_DETAILS_WINDOW_MINUTES = 60;
|
|
102
|
+
// The topic of the first-week check-in and of Give feedback.
|
|
103
|
+
exports.CHECK_IN_TOPIC = "first_week";
|
|
104
|
+
exports.GENERAL_FEEDBACK_TOPIC = "help";
|
|
105
|
+
// The pre-filled GitHub issue a self-hosted form offers (NewGitHubIssue).
|
|
106
|
+
exports.PRODUCT_FEEDBACK_GITHUB_LABEL = "feedback";
|
|
107
|
+
const MS_PER_DAY = 24 * 60 * 60 * 1000;
|
|
108
|
+
const TOKEN_UNSAFE_CHARACTERS = /[^a-z0-9_.-]/g;
|
|
109
|
+
/*
|
|
110
|
+
* A topic as it is kept: a word the code chose, lower case, anything but
|
|
111
|
+
* a-z, 0-9, _, . and - as _, cut to PRODUCT_FEEDBACK_TOPIC_MAX_LENGTH.
|
|
112
|
+
*/
|
|
113
|
+
const toFeedbackTopic = (value) => {
|
|
114
|
+
return value
|
|
115
|
+
.trim()
|
|
116
|
+
.toLowerCase()
|
|
117
|
+
.replace(TOKEN_UNSAFE_CHARACTERS, "_")
|
|
118
|
+
.slice(0, exports.PRODUCT_FEEDBACK_TOPIC_MAX_LENGTH);
|
|
119
|
+
};
|
|
120
|
+
exports.toFeedbackTopic = toFeedbackTopic;
|
|
121
|
+
const UUID_LIKE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
122
|
+
const HAS_DIGIT = /[0-9]/;
|
|
123
|
+
const ROUTE_PARAMETER = /^:[a-zA-Z][a-zA-Z0-9]*$/;
|
|
124
|
+
const PLAIN_SEGMENT = /^[a-z][a-z-]*$/;
|
|
125
|
+
// The longest segment a page keeps as written: a word, not a value.
|
|
126
|
+
const PAGE_SEGMENT_MAX_LENGTH = 40;
|
|
127
|
+
/*
|
|
128
|
+
* The page an answer was given on, as a route pattern with no ids or
|
|
129
|
+
* values: `/dashboard/:projectId/monitors/:id`. The Dashboard sends the
|
|
130
|
+
* pattern of the route it matched (Feedback/FeedbackPage); this scrubs
|
|
131
|
+
* whatever arrives again, so a full address never reaches the table:
|
|
132
|
+
*
|
|
133
|
+
* - the query and the fragment are dropped;
|
|
134
|
+
* - a route parameter (`:projectId`) stays;
|
|
135
|
+
* - a word of lower-case letters and hyphens stays (`monitors`,
|
|
136
|
+
* `on-call-duty`);
|
|
137
|
+
* - anything else - an id, a number, a name, an address, anything with a
|
|
138
|
+
* digit, a capital, a dot, an @ or an encoded character - becomes `:id`.
|
|
139
|
+
*/
|
|
140
|
+
const toFeedbackPage = (value) => {
|
|
141
|
+
if (typeof value !== "string") {
|
|
142
|
+
return "/";
|
|
143
|
+
}
|
|
144
|
+
const path = value.split(/[?#]/)[0] || "";
|
|
145
|
+
const segments = path
|
|
146
|
+
.split("/")
|
|
147
|
+
.filter((segment) => {
|
|
148
|
+
return segment.length > 0;
|
|
149
|
+
})
|
|
150
|
+
.map((segment) => {
|
|
151
|
+
if (ROUTE_PARAMETER.test(segment)) {
|
|
152
|
+
return segment;
|
|
153
|
+
}
|
|
154
|
+
if (segment.length <= PAGE_SEGMENT_MAX_LENGTH &&
|
|
155
|
+
PLAIN_SEGMENT.test(segment) &&
|
|
156
|
+
!UUID_LIKE.test(segment) &&
|
|
157
|
+
!HAS_DIGIT.test(segment)) {
|
|
158
|
+
return segment;
|
|
159
|
+
}
|
|
160
|
+
return ":id";
|
|
161
|
+
});
|
|
162
|
+
const page = `/${segments.join("/")}`;
|
|
163
|
+
if (page.length <= exports.PRODUCT_FEEDBACK_PAGE_MAX_LENGTH) {
|
|
164
|
+
return page;
|
|
165
|
+
}
|
|
166
|
+
// Cut at a segment, never in the middle of one.
|
|
167
|
+
const cut = page.slice(0, exports.PRODUCT_FEEDBACK_PAGE_MAX_LENGTH);
|
|
168
|
+
return cut.slice(0, Math.max(1, cut.lastIndexOf("/")));
|
|
169
|
+
};
|
|
170
|
+
exports.toFeedbackPage = toFeedbackPage;
|
|
171
|
+
const VERSION_PATTERN = /^[0-9A-Za-z.+-]+$/;
|
|
172
|
+
// The product version as written ("14.0.108"), or "" for anything else.
|
|
173
|
+
const toFeedbackVersion = (value) => {
|
|
174
|
+
if (typeof value !== "string" ||
|
|
175
|
+
value.length === 0 ||
|
|
176
|
+
value.length > exports.PRODUCT_FEEDBACK_VERSION_MAX_LENGTH ||
|
|
177
|
+
!VERSION_PATTERN.test(value)) {
|
|
178
|
+
return "";
|
|
179
|
+
}
|
|
180
|
+
return value;
|
|
181
|
+
};
|
|
182
|
+
exports.toFeedbackVersion = toFeedbackVersion;
|
|
183
|
+
// What a person wrote, trimmed and cut to the most it may be; null for nothing.
|
|
184
|
+
const toFeedbackDetails = (value) => {
|
|
185
|
+
if (typeof value !== "string") {
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
const details = value
|
|
189
|
+
.trim()
|
|
190
|
+
.slice(0, exports.PRODUCT_FEEDBACK_DETAILS_MAX_LENGTH);
|
|
191
|
+
return details.length > 0 ? details : null;
|
|
192
|
+
};
|
|
193
|
+
exports.toFeedbackDetails = toFeedbackDetails;
|
|
194
|
+
// The names readProductFeedbackSubmission reads; anything else posted is dropped.
|
|
195
|
+
exports.PRODUCT_FEEDBACK_SUBMISSION_FIELDS = [
|
|
196
|
+
"kind",
|
|
197
|
+
"topic",
|
|
198
|
+
"score",
|
|
199
|
+
"isPositive",
|
|
200
|
+
"details",
|
|
201
|
+
"page",
|
|
202
|
+
"version",
|
|
203
|
+
];
|
|
204
|
+
const isWholeScore = (value) => {
|
|
205
|
+
return (typeof value === "number" &&
|
|
206
|
+
Number.isInteger(value) &&
|
|
207
|
+
value >= exports.PRODUCT_FEEDBACK_LOWEST_SCORE &&
|
|
208
|
+
value <= exports.PRODUCT_FEEDBACK_HIGHEST_SCORE);
|
|
209
|
+
};
|
|
210
|
+
/*
|
|
211
|
+
* An answer as the Dashboard posts it, or a sentence that says what is
|
|
212
|
+
* wrong with it (the server answers 400 with it). Each kind carries what
|
|
213
|
+
* it asks and nothing more:
|
|
214
|
+
*
|
|
215
|
+
* - setup_flow a topic and a score of 1 to 5; details optional;
|
|
216
|
+
* - general details (what the person was trying to do); no score;
|
|
217
|
+
* - explanation a topic and thumbs up or down;
|
|
218
|
+
* - check_in yes or not yet; details optional.
|
|
219
|
+
*/
|
|
220
|
+
const readProductFeedbackSubmission = (body) => {
|
|
221
|
+
if (!body || typeof body !== "object" || Array.isArray(body)) {
|
|
222
|
+
return "Send the answer as a JSON object with its kind, then try again.";
|
|
223
|
+
}
|
|
224
|
+
const data = body;
|
|
225
|
+
const kind = data["kind"];
|
|
226
|
+
if (!(0, exports.isProductFeedbackKind)(kind)) {
|
|
227
|
+
return `Set kind to one of ${exports.PRODUCT_FEEDBACK_KINDS.join(", ")}, then send the answer again.`;
|
|
228
|
+
}
|
|
229
|
+
const topic = typeof data["topic"] === "string" ? (0, exports.toFeedbackTopic)(data["topic"]) : "";
|
|
230
|
+
const details = (0, exports.toFeedbackDetails)(data["details"]);
|
|
231
|
+
const page = (0, exports.toFeedbackPage)(data["page"]);
|
|
232
|
+
const version = (0, exports.toFeedbackVersion)(data["version"]);
|
|
233
|
+
const base = {
|
|
234
|
+
kind: kind,
|
|
235
|
+
topic: topic,
|
|
236
|
+
details: details,
|
|
237
|
+
page: page,
|
|
238
|
+
version: version,
|
|
239
|
+
};
|
|
240
|
+
if (kind === ProductFeedbackKind.SetupFlow) {
|
|
241
|
+
if (!topic) {
|
|
242
|
+
return "Name the guided setup in topic, then send the answer again.";
|
|
243
|
+
}
|
|
244
|
+
if (!isWholeScore(data["score"])) {
|
|
245
|
+
return `Set score to a whole number from ${exports.PRODUCT_FEEDBACK_LOWEST_SCORE} to ${exports.PRODUCT_FEEDBACK_HIGHEST_SCORE}, then send the answer again.`;
|
|
246
|
+
}
|
|
247
|
+
return Object.assign(Object.assign({}, base), { score: data["score"], isPositive: null });
|
|
248
|
+
}
|
|
249
|
+
if (kind === ProductFeedbackKind.General) {
|
|
250
|
+
if (!details) {
|
|
251
|
+
return "Write what you were trying to do and what happened, then send it again.";
|
|
252
|
+
}
|
|
253
|
+
return Object.assign(Object.assign({}, base), { topic: topic || exports.GENERAL_FEEDBACK_TOPIC, score: null, isPositive: null });
|
|
254
|
+
}
|
|
255
|
+
if (typeof data["isPositive"] !== "boolean") {
|
|
256
|
+
return "Set isPositive to true or false, then send the answer again.";
|
|
257
|
+
}
|
|
258
|
+
if (kind === ProductFeedbackKind.Explanation) {
|
|
259
|
+
if (!topic) {
|
|
260
|
+
return "Name the explanation in topic, then send the answer again.";
|
|
261
|
+
}
|
|
262
|
+
// Thumbs carry no words.
|
|
263
|
+
return Object.assign(Object.assign({}, base), { details: null, score: null, isPositive: data["isPositive"] });
|
|
264
|
+
}
|
|
265
|
+
return Object.assign(Object.assign({}, base), { topic: exports.CHECK_IN_TOPIC, score: null, isPositive: data["isPositive"] });
|
|
266
|
+
};
|
|
267
|
+
exports.readProductFeedbackSubmission = readProductFeedbackSubmission;
|
|
268
|
+
/*
|
|
269
|
+
* QUESTIONS ONEUPTIME ASKS
|
|
270
|
+
*
|
|
271
|
+
* A question is the setup's end question or the check-in. Its key names
|
|
272
|
+
* what was asked: `setup_flow:website_down`, `check_in:<project id>`. Each
|
|
273
|
+
* person's keys and when each was asked are kept on their user record
|
|
274
|
+
* (User.feedbackQuestionsAsked), so another browser asks nothing twice.
|
|
275
|
+
*/
|
|
276
|
+
const getFeedbackQuestionKey = (data) => {
|
|
277
|
+
return `${data.kind}:${(0, exports.toFeedbackTopic)(data.topic)}`;
|
|
278
|
+
};
|
|
279
|
+
exports.getFeedbackQuestionKey = getFeedbackQuestionKey;
|
|
280
|
+
// A key as the Dashboard posts it, or null for anything else.
|
|
281
|
+
const readFeedbackQuestionKey = (value) => {
|
|
282
|
+
if (typeof value !== "string") {
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
const separator = value.indexOf(":");
|
|
286
|
+
if (separator < 0) {
|
|
287
|
+
return null;
|
|
288
|
+
}
|
|
289
|
+
const kind = value.slice(0, separator);
|
|
290
|
+
const topic = value.slice(separator + 1);
|
|
291
|
+
// Only the questions OneUptime asks: a setup's, and the check-in.
|
|
292
|
+
if (kind !== ProductFeedbackKind.SetupFlow &&
|
|
293
|
+
kind !== ProductFeedbackKind.CheckIn) {
|
|
294
|
+
return null;
|
|
295
|
+
}
|
|
296
|
+
if (!topic || (0, exports.toFeedbackTopic)(topic) !== topic) {
|
|
297
|
+
return null;
|
|
298
|
+
}
|
|
299
|
+
return `${kind}:${topic}`;
|
|
300
|
+
};
|
|
301
|
+
exports.readFeedbackQuestionKey = readFeedbackQuestionKey;
|
|
302
|
+
// The most question keys a person's record keeps; the oldest go first.
|
|
303
|
+
exports.FEEDBACK_QUESTIONS_KEPT = 100;
|
|
304
|
+
/*
|
|
305
|
+
* The questions a person was asked, read from their record: key to when
|
|
306
|
+
* (an ISO date). Anything that is not a key and a date is dropped.
|
|
307
|
+
*/
|
|
308
|
+
const readAskedQuestions = (value) => {
|
|
309
|
+
const asked = {};
|
|
310
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
311
|
+
return asked;
|
|
312
|
+
}
|
|
313
|
+
for (const [key, when] of Object.entries(value)) {
|
|
314
|
+
if ((0, exports.readFeedbackQuestionKey)(key) === key &&
|
|
315
|
+
typeof when === "string" &&
|
|
316
|
+
!Number.isNaN(new Date(when).getTime())) {
|
|
317
|
+
asked[key] = when;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return asked;
|
|
321
|
+
};
|
|
322
|
+
exports.readAskedQuestions = readAskedQuestions;
|
|
323
|
+
// The asked questions with one more, keeping the newest FEEDBACK_QUESTIONS_KEPT.
|
|
324
|
+
const withAskedQuestion = (data) => {
|
|
325
|
+
const entries = Object.entries(Object.assign(Object.assign({}, data.asked), { [data.key]: data.now.toISOString() })).sort((a, b) => {
|
|
326
|
+
return new Date(b[1]).getTime() - new Date(a[1]).getTime();
|
|
327
|
+
});
|
|
328
|
+
return Object.fromEntries(entries.slice(0, exports.FEEDBACK_QUESTIONS_KEPT));
|
|
329
|
+
};
|
|
330
|
+
exports.withAskedQuestion = withAskedQuestion;
|
|
331
|
+
var FeedbackQuestionDecision;
|
|
332
|
+
(function (FeedbackQuestionDecision) {
|
|
333
|
+
FeedbackQuestionDecision["Ask"] = "ask";
|
|
334
|
+
// The server's master admins switched questions off (Admin > Feedback).
|
|
335
|
+
FeedbackQuestionDecision["ServerOff"] = "server_off";
|
|
336
|
+
// The person switched them off (User Profile, or "Don't ask me again").
|
|
337
|
+
FeedbackQuestionDecision["PersonOff"] = "person_off";
|
|
338
|
+
// This question was asked before.
|
|
339
|
+
FeedbackQuestionDecision["AlreadyAsked"] = "already_asked";
|
|
340
|
+
// The project has an open incident or alert: not now.
|
|
341
|
+
FeedbackQuestionDecision["IncidentOpen"] = "incident_open";
|
|
342
|
+
// Another question was asked in the last FEEDBACK_QUESTION_GAP_DAYS days.
|
|
343
|
+
FeedbackQuestionDecision["AskedRecently"] = "asked_recently";
|
|
344
|
+
})(FeedbackQuestionDecision || (exports.FeedbackQuestionDecision = FeedbackQuestionDecision = {}));
|
|
345
|
+
// Whether to ask a question now, and if not, why not.
|
|
346
|
+
const decideFeedbackQuestion = (data) => {
|
|
347
|
+
if (!data.isServerOn) {
|
|
348
|
+
return FeedbackQuestionDecision.ServerOff;
|
|
349
|
+
}
|
|
350
|
+
if (!data.isPersonOn) {
|
|
351
|
+
return FeedbackQuestionDecision.PersonOff;
|
|
352
|
+
}
|
|
353
|
+
if (data.asked[data.key]) {
|
|
354
|
+
return FeedbackQuestionDecision.AlreadyAsked;
|
|
355
|
+
}
|
|
356
|
+
if (data.isIncidentOpen) {
|
|
357
|
+
return FeedbackQuestionDecision.IncidentOpen;
|
|
358
|
+
}
|
|
359
|
+
const gapMs = exports.FEEDBACK_QUESTION_GAP_DAYS * MS_PER_DAY;
|
|
360
|
+
const askedRecently = Object.values(data.asked).some((when) => {
|
|
361
|
+
const askedAtMs = new Date(when).getTime();
|
|
362
|
+
return data.now.getTime() - askedAtMs < gapMs;
|
|
363
|
+
});
|
|
364
|
+
if (askedRecently) {
|
|
365
|
+
return FeedbackQuestionDecision.AskedRecently;
|
|
366
|
+
}
|
|
367
|
+
return FeedbackQuestionDecision.Ask;
|
|
368
|
+
};
|
|
369
|
+
exports.decideFeedbackQuestion = decideFeedbackQuestion;
|
|
370
|
+
/*
|
|
371
|
+
* Whether a project is in its check-in window: from CHECK_IN_FIRST_DAY
|
|
372
|
+
* days after it was made to CHECK_IN_LAST_DAY.
|
|
373
|
+
*/
|
|
374
|
+
const isCheckInDue = (data) => {
|
|
375
|
+
if (!data.projectCreatedAt) {
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
const createdAtMs = new Date(data.projectCreatedAt).getTime();
|
|
379
|
+
if (Number.isNaN(createdAtMs)) {
|
|
380
|
+
return false;
|
|
381
|
+
}
|
|
382
|
+
const ageMs = data.now.getTime() - createdAtMs;
|
|
383
|
+
return (ageMs >= exports.CHECK_IN_FIRST_DAY * MS_PER_DAY &&
|
|
384
|
+
ageMs <= exports.CHECK_IN_LAST_DAY * MS_PER_DAY);
|
|
385
|
+
};
|
|
386
|
+
exports.isCheckInDue = isCheckInDue;
|
|
387
|
+
const readProductFeedbackSettings = (value) => {
|
|
388
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
389
|
+
return null;
|
|
390
|
+
}
|
|
391
|
+
const data = value;
|
|
392
|
+
if (typeof data["isOn"] !== "boolean" ||
|
|
393
|
+
typeof data["isAskingMe"] !== "boolean") {
|
|
394
|
+
return null;
|
|
395
|
+
}
|
|
396
|
+
return { isOn: data["isOn"], isAskingMe: data["isAskingMe"] };
|
|
397
|
+
};
|
|
398
|
+
exports.readProductFeedbackSettings = readProductFeedbackSettings;
|
|
399
|
+
/*
|
|
400
|
+
* THE ADMIN DASHBOARD'S VIEW (Feedback): one answer as listed, and the
|
|
401
|
+
* summary of the last PRODUCT_FEEDBACK_SUMMARY_DAYS days.
|
|
402
|
+
*/
|
|
403
|
+
exports.PRODUCT_FEEDBACK_SUMMARY_DAYS = 90;
|
|
404
|
+
exports.PRODUCT_FEEDBACK_LIST_PAGE_SIZE = 25;
|
|
405
|
+
exports.PRODUCT_FEEDBACK_LIST_MAX_PAGE_SIZE = 100;
|
|
406
|
+
exports.ASK_AI_QUESTION_PREVIEW_LENGTH = 300;
|
|
407
|
+
exports.ASK_AI_RATED_DOWN_LIST_SIZE = 25;
|
|
408
|
+
/*
|
|
409
|
+
* The answers, by question: setups first (hardest first, by average
|
|
410
|
+
* score), then the check-in, then explanations (least clear first), then
|
|
411
|
+
* Give feedback.
|
|
412
|
+
*/
|
|
413
|
+
const summarizeProductFeedback = (rows) => {
|
|
414
|
+
const byQuestion = new Map();
|
|
415
|
+
for (const row of rows) {
|
|
416
|
+
const key = `${row.kind}:${row.topic}`;
|
|
417
|
+
let summary = byQuestion.get(key);
|
|
418
|
+
if (!summary) {
|
|
419
|
+
summary = {
|
|
420
|
+
kind: row.kind,
|
|
421
|
+
topic: row.topic,
|
|
422
|
+
answers: 0,
|
|
423
|
+
averageScore: null,
|
|
424
|
+
hardAnswers: 0,
|
|
425
|
+
positiveAnswers: 0,
|
|
426
|
+
negativeAnswers: 0,
|
|
427
|
+
answersWithDetails: 0,
|
|
428
|
+
scoreTotal: 0,
|
|
429
|
+
scoreCount: 0,
|
|
430
|
+
};
|
|
431
|
+
byQuestion.set(key, summary);
|
|
432
|
+
}
|
|
433
|
+
summary.answers++;
|
|
434
|
+
if (isWholeScore(row.score)) {
|
|
435
|
+
summary.scoreTotal += row.score;
|
|
436
|
+
summary.scoreCount++;
|
|
437
|
+
if (row.score <= exports.PRODUCT_FEEDBACK_HARD_SCORE) {
|
|
438
|
+
summary.hardAnswers++;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
if (row.isPositive === true) {
|
|
442
|
+
summary.positiveAnswers++;
|
|
443
|
+
}
|
|
444
|
+
else if (row.isPositive === false) {
|
|
445
|
+
summary.negativeAnswers++;
|
|
446
|
+
}
|
|
447
|
+
if (row.hasDetails) {
|
|
448
|
+
summary.answersWithDetails++;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
const kindOrder = [
|
|
452
|
+
ProductFeedbackKind.SetupFlow,
|
|
453
|
+
ProductFeedbackKind.CheckIn,
|
|
454
|
+
ProductFeedbackKind.Explanation,
|
|
455
|
+
ProductFeedbackKind.General,
|
|
456
|
+
];
|
|
457
|
+
return Array.from(byQuestion.values())
|
|
458
|
+
.map((summary) => {
|
|
459
|
+
const { scoreTotal, scoreCount } = summary, rest = __rest(summary, ["scoreTotal", "scoreCount"]);
|
|
460
|
+
return Object.assign(Object.assign({}, rest), { averageScore: scoreCount > 0
|
|
461
|
+
? Math.round((scoreTotal / scoreCount) * 10) / 10
|
|
462
|
+
: null });
|
|
463
|
+
})
|
|
464
|
+
.sort((a, b) => {
|
|
465
|
+
var _a, _b;
|
|
466
|
+
const byKind = kindOrder.indexOf(a.kind) - kindOrder.indexOf(b.kind);
|
|
467
|
+
if (byKind !== 0) {
|
|
468
|
+
return byKind;
|
|
469
|
+
}
|
|
470
|
+
if (a.kind === ProductFeedbackKind.SetupFlow) {
|
|
471
|
+
return ((_a = a.averageScore) !== null && _a !== void 0 ? _a : 0) - ((_b = b.averageScore) !== null && _b !== void 0 ? _b : 0);
|
|
472
|
+
}
|
|
473
|
+
if (a.kind === ProductFeedbackKind.Explanation) {
|
|
474
|
+
return (b.negativeAnswers / b.answers - a.negativeAnswers / a.answers ||
|
|
475
|
+
b.answers - a.answers);
|
|
476
|
+
}
|
|
477
|
+
return b.answers - a.answers;
|
|
478
|
+
});
|
|
479
|
+
};
|
|
480
|
+
exports.summarizeProductFeedback = summarizeProductFeedback;
|
|
481
|
+
/*
|
|
482
|
+
* WHAT AN ANSWER WAS ABOUT, IN WORDS (the Admin Dashboard's Feedback page):
|
|
483
|
+
* a guided setup by its name, How OneUptime works, a term of the Glossary,
|
|
484
|
+
* the check-in, and where Give feedback was opened. English: the page
|
|
485
|
+
* translates what it shows.
|
|
486
|
+
*/
|
|
487
|
+
exports.GUIDED_SETUP_TITLES = {
|
|
488
|
+
website_down: "Know when my website or API is down",
|
|
489
|
+
on_call: "Page the right person when something breaks",
|
|
490
|
+
status_page: "Publish a status page",
|
|
491
|
+
telemetry: "Send logs, metrics and traces, then get alerted",
|
|
492
|
+
};
|
|
493
|
+
exports.PRODUCT_FEEDBACK_KIND_TITLES = {
|
|
494
|
+
[ProductFeedbackKind.SetupFlow]: "Guided setup",
|
|
495
|
+
[ProductFeedbackKind.General]: "Give feedback",
|
|
496
|
+
[ProductFeedbackKind.Explanation]: "Was this clear?",
|
|
497
|
+
[ProductFeedbackKind.CheckIn]: "First-week check-in",
|
|
498
|
+
};
|
|
499
|
+
const getProductFeedbackTopicTitle = (data) => {
|
|
500
|
+
if (data.kind === ProductFeedbackKind.SetupFlow) {
|
|
501
|
+
return exports.GUIDED_SETUP_TITLES[data.topic] || data.topic;
|
|
502
|
+
}
|
|
503
|
+
if (data.kind === ProductFeedbackKind.Explanation) {
|
|
504
|
+
if (data.topic === "how_oneuptime_works") {
|
|
505
|
+
return "How OneUptime works";
|
|
506
|
+
}
|
|
507
|
+
if (data.topic.startsWith("term.")) {
|
|
508
|
+
return `Glossary: ${data.topic.slice("term.".length).replace(/-/g, " ")}`;
|
|
509
|
+
}
|
|
510
|
+
return data.topic;
|
|
511
|
+
}
|
|
512
|
+
if (data.kind === ProductFeedbackKind.CheckIn) {
|
|
513
|
+
return "Is OneUptime set up the way you wanted?";
|
|
514
|
+
}
|
|
515
|
+
return data.topic;
|
|
516
|
+
};
|
|
517
|
+
exports.getProductFeedbackTopicTitle = getProductFeedbackTopicTitle;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import commonJsModule from "./ProductFeedback.js";
|
|
2
|
+
export const ASK_AI_QUESTION_PREVIEW_LENGTH = commonJsModule.ASK_AI_QUESTION_PREVIEW_LENGTH;
|
|
3
|
+
export const ASK_AI_RATED_DOWN_LIST_SIZE = commonJsModule.ASK_AI_RATED_DOWN_LIST_SIZE;
|
|
4
|
+
export const CHECK_IN_FIRST_DAY = commonJsModule.CHECK_IN_FIRST_DAY;
|
|
5
|
+
export const CHECK_IN_LAST_DAY = commonJsModule.CHECK_IN_LAST_DAY;
|
|
6
|
+
export const CHECK_IN_TOPIC = commonJsModule.CHECK_IN_TOPIC;
|
|
7
|
+
export const FEEDBACK_QUESTIONS_KEPT = commonJsModule.FEEDBACK_QUESTIONS_KEPT;
|
|
8
|
+
export const FEEDBACK_QUESTION_GAP_DAYS = commonJsModule.FEEDBACK_QUESTION_GAP_DAYS;
|
|
9
|
+
export const FeedbackQuestionDecision = commonJsModule.FeedbackQuestionDecision;
|
|
10
|
+
export const GENERAL_FEEDBACK_TOPIC = commonJsModule.GENERAL_FEEDBACK_TOPIC;
|
|
11
|
+
export const GUIDED_SETUP_TITLES = commonJsModule.GUIDED_SETUP_TITLES;
|
|
12
|
+
export const PRODUCT_FEEDBACK_ADMIN_LIST_ROUTE = commonJsModule.PRODUCT_FEEDBACK_ADMIN_LIST_ROUTE;
|
|
13
|
+
export const PRODUCT_FEEDBACK_ADMIN_SUMMARY_ROUTE = commonJsModule.PRODUCT_FEEDBACK_ADMIN_SUMMARY_ROUTE;
|
|
14
|
+
export const PRODUCT_FEEDBACK_ASK_ROUTE = commonJsModule.PRODUCT_FEEDBACK_ASK_ROUTE;
|
|
15
|
+
export const PRODUCT_FEEDBACK_DETAILS_MAX_LENGTH = commonJsModule.PRODUCT_FEEDBACK_DETAILS_MAX_LENGTH;
|
|
16
|
+
export const PRODUCT_FEEDBACK_DETAILS_ROUTE = commonJsModule.PRODUCT_FEEDBACK_DETAILS_ROUTE;
|
|
17
|
+
export const PRODUCT_FEEDBACK_DETAILS_WINDOW_MINUTES = commonJsModule.PRODUCT_FEEDBACK_DETAILS_WINDOW_MINUTES;
|
|
18
|
+
export const PRODUCT_FEEDBACK_GITHUB_LABEL = commonJsModule.PRODUCT_FEEDBACK_GITHUB_LABEL;
|
|
19
|
+
export const PRODUCT_FEEDBACK_HARD_SCORE = commonJsModule.PRODUCT_FEEDBACK_HARD_SCORE;
|
|
20
|
+
export const PRODUCT_FEEDBACK_HIGHEST_SCORE = commonJsModule.PRODUCT_FEEDBACK_HIGHEST_SCORE;
|
|
21
|
+
export const PRODUCT_FEEDBACK_KINDS = commonJsModule.PRODUCT_FEEDBACK_KINDS;
|
|
22
|
+
export const PRODUCT_FEEDBACK_KIND_TITLES = commonJsModule.PRODUCT_FEEDBACK_KIND_TITLES;
|
|
23
|
+
export const PRODUCT_FEEDBACK_LIST_MAX_PAGE_SIZE = commonJsModule.PRODUCT_FEEDBACK_LIST_MAX_PAGE_SIZE;
|
|
24
|
+
export const PRODUCT_FEEDBACK_LIST_PAGE_SIZE = commonJsModule.PRODUCT_FEEDBACK_LIST_PAGE_SIZE;
|
|
25
|
+
export const PRODUCT_FEEDBACK_LOWEST_SCORE = commonJsModule.PRODUCT_FEEDBACK_LOWEST_SCORE;
|
|
26
|
+
export const PRODUCT_FEEDBACK_PAGE_MAX_LENGTH = commonJsModule.PRODUCT_FEEDBACK_PAGE_MAX_LENGTH;
|
|
27
|
+
export const PRODUCT_FEEDBACK_ROUTE = commonJsModule.PRODUCT_FEEDBACK_ROUTE;
|
|
28
|
+
export const PRODUCT_FEEDBACK_SCORES = commonJsModule.PRODUCT_FEEDBACK_SCORES;
|
|
29
|
+
export const PRODUCT_FEEDBACK_SETTINGS_ROUTE = commonJsModule.PRODUCT_FEEDBACK_SETTINGS_ROUTE;
|
|
30
|
+
export const PRODUCT_FEEDBACK_SUBMISSION_FIELDS = commonJsModule.PRODUCT_FEEDBACK_SUBMISSION_FIELDS;
|
|
31
|
+
export const PRODUCT_FEEDBACK_SUMMARY_DAYS = commonJsModule.PRODUCT_FEEDBACK_SUMMARY_DAYS;
|
|
32
|
+
export const PRODUCT_FEEDBACK_TOPIC_MAX_LENGTH = commonJsModule.PRODUCT_FEEDBACK_TOPIC_MAX_LENGTH;
|
|
33
|
+
export const PRODUCT_FEEDBACK_VERSION_MAX_LENGTH = commonJsModule.PRODUCT_FEEDBACK_VERSION_MAX_LENGTH;
|
|
34
|
+
export const ProductFeedbackKind = commonJsModule.ProductFeedbackKind;
|
|
35
|
+
export const decideFeedbackQuestion = commonJsModule.decideFeedbackQuestion;
|
|
36
|
+
export const getFeedbackQuestionKey = commonJsModule.getFeedbackQuestionKey;
|
|
37
|
+
export const getProductFeedbackTopicTitle = commonJsModule.getProductFeedbackTopicTitle;
|
|
38
|
+
export const isCheckInDue = commonJsModule.isCheckInDue;
|
|
39
|
+
export const isProductFeedbackKind = commonJsModule.isProductFeedbackKind;
|
|
40
|
+
export const readAskedQuestions = commonJsModule.readAskedQuestions;
|
|
41
|
+
export const readFeedbackQuestionKey = commonJsModule.readFeedbackQuestionKey;
|
|
42
|
+
export const readProductFeedbackSettings = commonJsModule.readProductFeedbackSettings;
|
|
43
|
+
export const readProductFeedbackSubmission = commonJsModule.readProductFeedbackSubmission;
|
|
44
|
+
export const summarizeProductFeedback = commonJsModule.summarizeProductFeedback;
|
|
45
|
+
export const toFeedbackDetails = commonJsModule.toFeedbackDetails;
|
|
46
|
+
export const toFeedbackPage = commonJsModule.toFeedbackPage;
|
|
47
|
+
export const toFeedbackTopic = commonJsModule.toFeedbackTopic;
|
|
48
|
+
export const toFeedbackVersion = commonJsModule.toFeedbackVersion;
|
|
49
|
+
export const withAskedQuestion = commonJsModule.withAskedQuestion;
|
|
@@ -13,4 +13,6 @@ export declare const FIRST_STRONG_ISOLATE: string;
|
|
|
13
13
|
export declare const POP_DIRECTIONAL_ISOLATE: string;
|
|
14
14
|
export declare const isSetApartInSentence: (value: string, sentenceDirection: ReadingDirection) => boolean;
|
|
15
15
|
export declare const setApartInSentence: (value: string, sentenceDirection: ReadingDirection) => string;
|
|
16
|
+
export declare const isNumberAlone: (value: string) => boolean;
|
|
17
|
+
export declare const isNumberJoinedToASign: (value: string, before: string, after: string) => boolean;
|
|
16
18
|
export declare const getTextReadingDirection: (text: string | null | undefined) => ReadingDirection | null;
|
|
@@ -13,4 +13,6 @@ export declare const FIRST_STRONG_ISOLATE: string;
|
|
|
13
13
|
export declare const POP_DIRECTIONAL_ISOLATE: string;
|
|
14
14
|
export declare const isSetApartInSentence: (value: string, sentenceDirection: ReadingDirection) => boolean;
|
|
15
15
|
export declare const setApartInSentence: (value: string, sentenceDirection: ReadingDirection) => string;
|
|
16
|
+
export declare const isNumberAlone: (value: string) => boolean;
|
|
17
|
+
export declare const isNumberJoinedToASign: (value: string, before: string, after: string) => boolean;
|
|
16
18
|
export declare const getTextReadingDirection: (text: string | null | undefined) => ReadingDirection | null;
|