@oneuptime/common 14.3.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/AIAgent.js +5 -1
- package/Models/DatabaseModels/AcmeCertificate.js +14 -0
- package/Models/DatabaseModels/Alert.js +6 -8
- package/Models/DatabaseModels/AlertEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/AlertSeverity.js +3 -12
- package/Models/DatabaseModels/ApiKey.d.mts +3 -1
- package/Models/DatabaseModels/ApiKey.d.ts +3 -1
- package/Models/DatabaseModels/ApiKey.js +67 -14
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +37 -4
- package/Models/DatabaseModels/CallLog.js +15 -3
- package/Models/DatabaseModels/CodeRepository.d.mts +1 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +1 -0
- package/Models/DatabaseModels/CodeRepository.js +45 -2
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.mts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.ts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.js +436 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.mjs +2 -0
- package/Models/DatabaseModels/Dashboard.js +10 -2
- package/Models/DatabaseModels/DashboardDomain.js +22 -27
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.js +30 -0
- package/Models/DatabaseModels/EmailLog.js +15 -3
- package/Models/DatabaseModels/File.js +4 -2
- package/Models/DatabaseModels/FormDomain.js +10 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +9 -1
- package/Models/DatabaseModels/GlobalConfig.d.ts +9 -1
- package/Models/DatabaseModels/GlobalConfig.js +186 -10
- package/Models/DatabaseModels/Incident.js +38 -44
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/IncidentPublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentSeverity.js +3 -12
- package/Models/DatabaseModels/IncidentStateTimeline.js +12 -16
- package/Models/DatabaseModels/IncidentTemplate.js +6 -11
- package/Models/DatabaseModels/IncomingRequestSecret.d.mts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.d.ts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.js +156 -29
- package/Models/DatabaseModels/Index.js +2 -5
- package/Models/DatabaseModels/Monitor.d.mts +1 -0
- package/Models/DatabaseModels/Monitor.d.ts +1 -0
- package/Models/DatabaseModels/Monitor.js +97 -22
- package/Models/DatabaseModels/MonitorNetworkDevice.js +4 -1
- package/Models/DatabaseModels/MonitorTemplate.js +3 -1
- package/Models/DatabaseModels/MonitorTest.js +3 -1
- package/Models/DatabaseModels/NetworkDevice.js +16 -3
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +45 -12
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +93 -5
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +43 -0
- package/Models/DatabaseModels/Probe.js +5 -1
- package/Models/DatabaseModels/Project.d.mts +1 -1
- package/Models/DatabaseModels/Project.d.ts +1 -1
- package/Models/DatabaseModels/Project.js +59 -64
- package/Models/DatabaseModels/ProjectSmtpConfig.js +44 -49
- package/Models/DatabaseModels/PushNotificationLog.js +15 -3
- package/Models/DatabaseModels/Reseller.js +2 -8
- package/Models/DatabaseModels/ResellerPlan.js +2 -8
- package/Models/DatabaseModels/RunbookExecution.js +4 -4
- package/Models/DatabaseModels/Runner.d.mts +1 -0
- package/Models/DatabaseModels/Runner.d.ts +1 -0
- package/Models/DatabaseModels/Runner.js +50 -0
- package/Models/DatabaseModels/ScheduledMaintenance.js +32 -24
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +11 -16
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +12 -16
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +9 -8
- package/Models/DatabaseModels/ServiceLevelObjective.js +7 -0
- package/Models/DatabaseModels/SmsLog.js +15 -3
- package/Models/DatabaseModels/StatusPage.js +30 -11
- package/Models/DatabaseModels/StatusPageAnnouncement.js +19 -24
- package/Models/DatabaseModels/StatusPageDomain.js +24 -27
- package/Models/DatabaseModels/StatusPageSubscriber.js +5 -4
- package/Models/DatabaseModels/TelegramLog.js +15 -3
- package/Models/DatabaseModels/User.d.mts +0 -3
- package/Models/DatabaseModels/User.d.ts +0 -3
- package/Models/DatabaseModels/User.js +5 -73
- package/Models/DatabaseModels/UserOnCallLog.d.mts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.d.ts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.js +52 -5
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -2
- package/Models/DatabaseModels/UserWebhook.js +14 -5
- package/Models/DatabaseModels/WebhookLog.js +15 -3
- package/Models/DatabaseModels/WhatsAppLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +10 -7
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.js +16 -2
- package/Models/DatabaseModels/WorkspaceUserAuthToken.js +13 -2
- package/Server/Services/DatabaseService.d.mts +57 -38
- package/Server/Services/DatabaseService.d.ts +57 -38
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.mts +123 -0
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.ts +123 -0
- package/Types/AI/AIActionWords.d.mts +14 -1
- package/Types/AI/AIActionWords.d.ts +14 -1
- package/Types/AI/AIActionWords.js +85 -1
- package/Types/AI/AIActionWords.mjs +4 -0
- package/Types/AI/AIAgentRunLimits.js +5 -4
- package/Types/AI/AIChatTypes.js +8 -3
- package/Types/AI/AIReadTableWords.js +7 -2
- package/Types/AI/AiActivityInsights.d.mts +1 -0
- package/Types/AI/AiActivityInsights.d.ts +1 -0
- package/Types/AI/CodeTask.d.mts +1 -0
- package/Types/AI/CodeTask.d.ts +1 -0
- package/Types/AI/CodeTask.js +7 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +4 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +4 -0
- package/Types/Accounts/MoreWaysToSignIn.d.mts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.d.ts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.js +11 -0
- package/Types/Accounts/MoreWaysToSignIn.mjs +2 -0
- package/Types/Accounts/SignInMessages.d.mts +5 -0
- package/Types/Accounts/SignInMessages.d.ts +5 -0
- package/Types/Accounts/SignInMessages.js +19 -1
- package/Types/Accounts/SignInMessages.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +7 -2
- package/Types/Analytics/ProductEvent.d.ts +7 -2
- package/Types/Analytics/ProductEvent.js +62 -12
- package/Types/ApiKey/ApiKeyShownOnce.d.mts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.d.ts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.js +78 -0
- package/Types/ApiKey/ApiKeyShownOnce.mjs +6 -0
- package/Types/AuditLog/AuditLogAction.d.mts +1 -0
- package/Types/AuditLog/AuditLogAction.d.ts +1 -0
- package/Types/AuditLog/AuditLogAction.js +11 -1
- package/Types/AuditLog/AuditLogActionLabel.js +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +1 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.js +107 -12
- package/Types/AuditLog/AuditLogSessionEvent.mjs +6 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.mts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.ts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.js +109 -0
- package/Types/AuditLog/AuditLogSignInFailure.mjs +8 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.mts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.ts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.js +106 -0
- package/Types/AuditLog/AuditLogStatusPageSession.mjs +9 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.mts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.ts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.js +57 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.mjs +5 -0
- package/Types/AutoRemediation/RemediationApprovals.d.mts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.d.ts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.js +174 -8
- package/Types/AutoRemediation/RemediationApprovals.mjs +9 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.mts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.ts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.js +131 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.mjs +6 -0
- package/Types/BaseDatabase/SortNulls.d.mts +5 -0
- package/Types/BaseDatabase/SortNulls.d.ts +5 -0
- package/Types/BaseDatabase/SortNulls.js +14 -0
- package/Types/BaseDatabase/SortNulls.mjs +2 -0
- package/Types/Billing/AdminProjectInvoice.d.mts +20 -0
- package/Types/Billing/AdminProjectInvoice.d.ts +20 -0
- package/Types/Billing/AdminProjectInvoice.js +85 -0
- package/Types/Billing/AdminProjectInvoice.mjs +6 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.mts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.d.ts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.js +28 -2
- package/Types/CloudConnection/CloudAiAgentCost.mjs +4 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +354 -16
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +17 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.mts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.ts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.js +69 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.mjs +11 -0
- package/Types/DataObservability/DataLineageMap.d.mts +147 -0
- package/Types/DataObservability/DataLineageMap.d.ts +147 -0
- package/Types/DataObservability/DataLineageMap.js +503 -0
- package/Types/DataObservability/DataLineageMap.mjs +20 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
- package/Types/Database/TableColumn.d.mts +1 -0
- package/Types/Database/TableColumn.d.ts +1 -0
- package/Types/Database/UserAttribution.js +7 -3
- package/Types/Date.d.mts +0 -2
- package/Types/Date.d.ts +0 -2
- package/Types/Date.js +12 -19
- package/Types/Email/EmailMessage.d.mts +2 -0
- package/Types/Email/EmailMessage.d.ts +2 -0
- package/Types/Email/EmailRecipients.d.mts +11 -0
- package/Types/Email/EmailRecipients.d.ts +11 -0
- package/Types/Email/EmailRecipients.js +84 -0
- package/Types/Email/EmailRecipients.mjs +6 -0
- package/Types/Email/EmailTemplateType.d.mts +2 -1
- package/Types/Email/EmailTemplateType.d.ts +2 -1
- package/Types/Email/EmailTemplateType.js +5 -0
- package/Types/IP/IP.js +27 -1
- package/Types/JoinedSerializableObjects.d.mts +6 -0
- package/Types/JoinedSerializableObjects.d.ts +6 -0
- package/Types/JoinedSerializableObjects.js +14 -0
- package/Types/JoinedSerializableObjects.mjs +3 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.mts +2 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.ts +2 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.mts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.ts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.js +81 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.mjs +5 -0
- package/Types/MeaningKeys.js +19 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.mts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.ts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.js +105 -4
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.mjs +7 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.mts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.ts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.js +28 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.mjs +3 -0
- package/Types/Monitor/MonitorCriteria.js +8 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +8 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.mts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.ts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.js +2 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.mjs +1 -0
- package/Types/Monitor/MonitorJsonTypes.d.mts +4 -0
- package/Types/Monitor/MonitorJsonTypes.d.ts +4 -0
- package/Types/Monitor/MonitorJsonTypes.js +31 -0
- package/Types/Monitor/MonitorJsonTypes.mjs +2 -0
- package/Types/Monitor/MonitorStep.js +8 -0
- package/Types/Monitor/MonitorSteps.js +8 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.js +21 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.mjs +2 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.js +24 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.mjs +2 -0
- package/Types/Monitor/UptimeHistoryLabels.d.mts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.d.ts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.js +4 -0
- package/Types/Monitor/WhoIsTold.d.mts +25 -0
- package/Types/Monitor/WhoIsTold.d.ts +25 -0
- package/Types/Monitor/WhoIsTold.js +171 -19
- package/Types/Monitor/WhoIsTold.mjs +3 -0
- package/Types/NoBreakSpaces.d.mts +5 -1
- package/Types/NoBreakSpaces.d.ts +5 -1
- package/Types/NoBreakSpaces.js +107 -52
- package/Types/NoBreakSpaces.mjs +1 -0
- package/Types/NotificationRule/PagingLadder.d.mts +2 -0
- package/Types/NotificationRule/PagingLadder.d.ts +2 -0
- package/Types/NotificationRule/PagingLadder.js +47 -1
- package/Types/NotificationRule/PagingLadder.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.mts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.ts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.js +6 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +41 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.mts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.ts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.js +60 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.mts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.ts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.js +192 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.mjs +14 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.js +142 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +13 -0
- package/Types/Password.d.mts +18 -12
- package/Types/Password.d.ts +18 -12
- package/Types/Password.js +63 -58
- package/Types/Password.mjs +3 -3
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +48 -0
- package/Types/PrivateRecord/PrivateRecordParts.js +50 -0
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +11 -0
- package/Types/Product/ProjectProducts.d.mts +1 -15
- package/Types/Product/ProjectProducts.d.ts +1 -15
- package/Types/Product/ProjectProducts.js +38 -129
- package/Types/Product/ProjectProducts.mjs +1 -5
- package/Types/Product/ProjectProductsAnswer.js +5 -6
- package/Types/ProductFeedback/ProductFeedback.d.mts +29 -4
- package/Types/ProductFeedback/ProductFeedback.d.ts +29 -4
- package/Types/ProductFeedback/ProductFeedback.js +176 -28
- package/Types/ProductFeedback/ProductFeedback.mjs +11 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +20 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +5 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +18 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +2 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +33 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +33 -0
- package/Types/Retention/ResolvedRecordRetention.js +211 -1
- package/Types/Retention/ResolvedRecordRetention.mjs +13 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.mts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.ts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.js +134 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.mjs +5 -0
- package/Types/Rules/RuleEmptiedLimit.d.mts +20 -0
- package/Types/Rules/RuleEmptiedLimit.d.ts +20 -0
- package/Types/Rules/RuleEmptiedLimit.js +131 -0
- package/Types/Rules/RuleEmptiedLimit.mjs +9 -0
- package/Types/Runbook/RunbookStepTimeout.js +11 -10
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.mts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.ts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.js +97 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.mjs +8 -0
- package/Types/Runner/GlobalRunnerSandbox.d.mts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.d.ts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.js +178 -0
- package/Types/Runner/GlobalRunnerSandbox.mjs +9 -0
- package/Types/Runner/GlobalRunnerWork.js +9 -4
- package/Types/Runner/RunnerCodeFixCapability.d.mts +14 -0
- package/Types/Runner/RunnerCodeFixCapability.d.ts +14 -0
- package/Types/Runner/RunnerCodeFixCapability.js +103 -0
- package/Types/Runner/RunnerCodeFixCapability.mjs +7 -0
- package/Types/Runner/RunnerCodeFixes.d.mts +3 -0
- package/Types/Runner/RunnerCodeFixes.d.ts +3 -0
- package/Types/Runner/RunnerCodeFixes.js +27 -4
- package/Types/Runner/RunnerCodeFixes.mjs +1 -0
- package/Types/SSO/SessionsWithoutSso.d.mts +10 -0
- package/Types/SSO/SessionsWithoutSso.d.ts +10 -0
- package/Types/SSO/SessionsWithoutSso.js +39 -0
- package/Types/SSO/SessionsWithoutSso.mjs +5 -0
- package/Types/SerializableObjectDictionary.js +11 -8
- package/Types/SetupHealth/SetupHealth.d.mts +47 -2
- package/Types/SetupHealth/SetupHealth.d.ts +47 -2
- package/Types/SetupHealth/SetupHealth.js +228 -1
- package/Types/SetupHealth/SetupHealth.mjs +12 -0
- package/Types/StatusPage/StatusPageReport.d.mts +5 -2
- package/Types/StatusPage/StatusPageReport.d.ts +5 -2
- package/Types/StatusPage/SubscriberNotificationTemplateVariables.js +2 -2
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +1 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +1 -0
- package/Types/Telemetry/LlmConventions.d.mts +1 -1
- package/Types/Telemetry/LlmConventions.d.ts +1 -1
- package/Types/Telemetry/LlmConventions.js +1 -1
- package/Types/Telemetry/ScrubRule.d.mts +1 -0
- package/Types/Telemetry/ScrubRule.d.ts +1 -0
- package/Types/Telemetry/ScrubRule.js +47 -0
- package/Types/Translator.d.mts +5 -2
- package/Types/Translator.d.ts +5 -2
- package/Types/Translator.js +43 -19
- package/Types/UsedBy/UsedBy.d.mts +107 -4
- package/Types/UsedBy/UsedBy.d.ts +107 -4
- package/Types/UsedBy/UsedBy.js +339 -6
- package/Types/UsedBy/UsedBy.mjs +12 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +5 -2
- package/Types/UsedBy/UsedByServerProducts.d.ts +5 -2
- package/Types/UsedBy/UsedByServerProducts.js +115 -6
- package/Types/UsedBy/UsedByServerProducts.mjs +1 -0
- package/Types/UserNotification/UserNotificationExecutionStatus.d.mts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.d.ts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +1 -0
- package/Types/UserSession/SessionEndCause.d.ts +1 -0
- package/Types/UserSession/SessionEndCause.js +8 -1
- package/Types/WelcomeChecklist/ProjectGoal.js +5 -5
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +63 -1
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +0 -3
- package/Types/Workflow/WatchedFields.d.mts +1 -0
- package/Types/Workflow/WatchedFields.d.ts +1 -0
- package/Types/Workflow/WatchedFields.js +10 -1
- package/Types/Workflow/WatchedFields.mjs +1 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.mts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.ts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.js +33 -0
- package/Types/Workflow/WorkflowPrivateRecords.mjs +3 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -0
- package/Types/Workspace/NotificationRules/EventType.js +4 -3
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +127 -8
- package/Types/Workspace/WorkspaceLiveMessageKey.d.mts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.d.ts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.js +12 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +6 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +6 -0
- package/Utils/API.d.mts +6 -7
- package/Utils/API.d.ts +6 -7
- package/Utils/API.js +57 -35
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +89 -1
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +4 -0
- package/Utils/Billing/InvoiceAmount.d.mts +4 -0
- package/Utils/Billing/InvoiceAmount.d.ts +4 -0
- package/Utils/Billing/InvoiceAmount.js +35 -0
- package/Utils/Billing/InvoiceAmount.mjs +2 -0
- package/Utils/CertificateReissue.js +4 -3
- package/Utils/CronScheduleText.js +10 -3
- package/Utils/CronTab.js +6 -33
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.js +54 -18
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -2
- package/Utils/LinearRegExp/LinearRegExp.d.mts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.d.ts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.js +17 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +477 -152
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/SlowMarkdown.js +168 -33
- package/Utils/Metrics/MetricFormulaEvaluator.d.mts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.d.ts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.js +233 -29
- package/Utils/Metrics/MetricResultUnitConverter.js +7 -1
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.mts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.ts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.js +27 -0
- package/Utils/Metrics/MetricZeroFill.d.mts +45 -0
- package/Utils/Metrics/MetricZeroFill.d.ts +45 -0
- package/Utils/Metrics/MetricZeroFill.js +145 -0
- package/Utils/Metrics/MetricZeroFill.mjs +2 -0
- package/Utils/ModelImportExport.js +4 -1
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +57 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.mts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.ts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.js +52 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.mjs +5 -0
- package/Utils/Monitor/MonitorFirstCheck.d.mts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.d.ts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.js +128 -0
- package/Utils/Monitor/MonitorFirstCheck.mjs +4 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.mts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.ts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.js +87 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.mjs +2 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.mts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.ts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.js +86 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.mjs +2 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +4 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +4 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +122 -4
- package/Utils/Monitor/MonitorRowStatus.d.mts +56 -0
- package/Utils/Monitor/MonitorRowStatus.d.ts +56 -0
- package/Utils/Monitor/MonitorRowStatus.js +189 -0
- package/Utils/Monitor/MonitorRowStatus.mjs +6 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +3 -2
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +14 -3
- package/Utils/NetworkDevice/TransceiverHealthUtil.js +2 -2
- package/Utils/Profiles/ProfileFrames.js +11 -4
- package/Utils/Profiles/ProfileFunctionNames.d.mts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.d.ts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.js +104 -0
- package/Utils/Profiles/ProfileFunctionNames.mjs +3 -0
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.d.mts +3 -0
- package/Utils/Project/TwilioAccount.d.ts +3 -0
- package/Utils/Project/TwilioAccount.js +58 -18
- package/Utils/Project/TwilioAccount.mjs +2 -0
- package/Utils/ResponseTooLarge.d.mts +5 -0
- package/Utils/ResponseTooLarge.d.ts +5 -0
- package/Utils/ResponseTooLarge.js +69 -0
- package/Utils/ResponseTooLarge.mjs +2 -0
- package/Utils/RetryAfter.d.mts +17 -0
- package/Utils/RetryAfter.d.ts +17 -0
- package/Utils/RetryAfter.js +251 -0
- package/Utils/RetryAfter.mjs +5 -0
- package/Utils/ScheduledMaintenanceStart.js +2 -3
- package/Utils/Schema/BaseSchema.d.mts +12 -5
- package/Utils/Schema/BaseSchema.d.ts +12 -5
- package/Utils/Schema/BaseSchema.js +43 -4
- package/Utils/Schema/BaseSchema.mjs +1 -0
- package/Utils/Schema/ModelSchema.d.mts +10 -0
- package/Utils/Schema/ModelSchema.d.ts +10 -0
- package/Utils/Schema/ModelSchema.js +251 -22
- package/Utils/Slo/SloMonthlyReport.d.mts +187 -0
- package/Utils/Slo/SloMonthlyReport.d.ts +187 -0
- package/Utils/Slo/SloMonthlyReport.js +945 -0
- package/Utils/Slo/SloMonthlyReport.mjs +35 -0
- package/Utils/Slo/SloOverviewText.js +7 -2
- package/Utils/Slo/SloProjection.js +2 -1
- package/Utils/Slo/SloUtil.d.mts +5 -0
- package/Utils/Slo/SloUtil.d.ts +5 -0
- package/Utils/Slo/SloUtil.js +5 -0
- package/Utils/Slo/SloWidgetFormat.js +3 -1
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +147 -12
- package/Utils/StatusPage/FrozenMonitorResources.mjs +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +3 -2
- package/Utils/StatusPage/HistoryChartBarColors.d.mts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.d.ts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.js +15 -1
- package/Utils/StatusPage/HistoryChartBarColors.mjs +2 -0
- package/Utils/StatusPage/Report.js +12 -4
- package/Utils/StatusPage/ReportText.d.mts +4 -0
- package/Utils/StatusPage/ReportText.d.ts +4 -0
- package/Utils/StatusPage/ReportText.js +22 -2
- package/Utils/StatusPage/ReportText.mjs +1 -0
- package/Utils/StatusPage/ResourceUptime.js +32 -25
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +17 -3
- package/Utils/Syslog/SyslogMessageParser.d.mts +25 -0
- package/Utils/Syslog/SyslogMessageParser.d.ts +25 -0
- package/Utils/Syslog/SyslogMessageParser.js +428 -100
- package/Utils/Syslog/SyslogMessageParser.mjs +3 -0
- package/Utils/Syslog/SyslogRawCopies.d.mts +20 -0
- package/Utils/Syslog/SyslogRawCopies.d.ts +20 -0
- package/Utils/Syslog/SyslogRawCopies.js +283 -0
- package/Utils/Syslog/SyslogRawCopies.mjs +2 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.mts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.ts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.js +118 -0
- package/Utils/Telemetry/CorrelationIdAttributes.mjs +5 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.mts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.ts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.js +505 -0
- package/Utils/Telemetry/ScrubJsonKeys.mjs +2 -0
- package/Utils/Telemetry/ScrubJsonText.d.mts +25 -0
- package/Utils/Telemetry/ScrubJsonText.d.ts +25 -0
- package/Utils/Telemetry/ScrubJsonText.js +568 -0
- package/Utils/Telemetry/ScrubJsonText.mjs +4 -0
- package/Utils/Telemetry/ScrubMask.d.mts +1 -0
- package/Utils/Telemetry/ScrubMask.d.ts +1 -0
- package/Utils/Telemetry/ScrubMask.js +54 -0
- package/Utils/Telemetry/ScrubMask.mjs +2 -0
- package/Utils/Telemetry/ScrubNestedValues.d.mts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.d.ts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.js +56 -9
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +91 -3
- package/Utils/Uptime/DayUptimeGraphUtil.mjs +1 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.mts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.ts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.js +188 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.mjs +2 -0
- package/package.json +1 -1
- package/Models/DatabaseModels/GreenlockCertificate.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.js +0 -143
- package/Models/DatabaseModels/GreenlockCertificate.mjs +0 -2
- package/Models/DatabaseModels/GreenlockChallenge.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.js +0 -144
- package/Models/DatabaseModels/GreenlockChallenge.mjs +0 -2
- package/Types/SampleProject/SampleProject.d.mts +0 -54
- package/Types/SampleProject/SampleProject.d.ts +0 -54
- package/Types/SampleProject/SampleProject.js +0 -177
- package/Types/SampleProject/SampleProject.mjs +0 -22
- package/Types/SampleProject/SampleProjectContent.d.mts +0 -127
- package/Types/SampleProject/SampleProjectContent.d.ts +0 -127
- package/Types/SampleProject/SampleProjectContent.js +0 -397
- package/Types/SampleProject/SampleProjectContent.mjs +0 -18
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import ProductKey from "./ProductKey.mjs";
|
|
2
|
-
import ProjectGoal from "../WelcomeChecklist/ProjectGoal.mjs";
|
|
3
2
|
import { JSONObject } from "../JSON.mjs";
|
|
4
|
-
export declare const ESSENTIAL_PRODUCTS: ReadonlyArray<ProductKey>;
|
|
5
3
|
export declare const ALWAYS_SHOWN_PRODUCTS: ReadonlyArray<ProductKey>;
|
|
6
4
|
export declare const isHideableProduct: (product: ProductKey) => boolean;
|
|
7
5
|
export declare const HIDEABLE_PRODUCTS: ReadonlyArray<ProductKey>;
|
|
8
|
-
export declare const PRODUCTS_OF_GOAL: Readonly<Record<ProjectGoal, ReadonlyArray<ProductKey>>>;
|
|
9
|
-
export declare const GOALS_THAT_SHOW_EVERYTHING: ReadonlyArray<ProjectGoal>;
|
|
10
6
|
export declare enum ProjectProductsChosenBy {
|
|
11
|
-
Goals = "goals",
|
|
12
7
|
Member = "member"
|
|
13
8
|
}
|
|
9
|
+
export declare const LEGACY_GOALS_CHOSEN_BY: string;
|
|
14
10
|
export interface ProjectProductSettings {
|
|
15
11
|
hidden: Array<ProductKey>;
|
|
16
12
|
keptHiddenWithData: Array<ProductKey>;
|
|
@@ -22,16 +18,6 @@ export declare const parseProjectProductSettings: (value: unknown) => ProjectPro
|
|
|
22
18
|
export declare const toProjectProductSettingsJSON: (settings: ProjectProductSettings) => JSONObject;
|
|
23
19
|
export declare const getHiddenProducts: (settings: ProjectProductSettings | null) => Array<ProductKey>;
|
|
24
20
|
export declare const isProductHidden: (settings: ProjectProductSettings | null, product: ProductKey) => boolean;
|
|
25
|
-
export declare const getProductsHiddenByGoals: (data: {
|
|
26
|
-
goals: ReadonlyArray<ProjectGoal> | null;
|
|
27
|
-
inUse: ReadonlyArray<ProductKey>;
|
|
28
|
-
}) => Array<ProductKey>;
|
|
29
|
-
export declare const getProjectProductSettingsFromGoals: (data: {
|
|
30
|
-
current: ProjectProductSettings | null;
|
|
31
|
-
goals: ReadonlyArray<ProjectGoal> | null;
|
|
32
|
-
inUse: ReadonlyArray<ProductKey>;
|
|
33
|
-
now: Date;
|
|
34
|
-
}) => ProjectProductSettings | null;
|
|
35
21
|
export declare const withProductShown: (data: {
|
|
36
22
|
current: ProjectProductSettings | null;
|
|
37
23
|
product: ProductKey;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import ProductKey from "./ProductKey";
|
|
2
|
-
import ProjectGoal from "../WelcomeChecklist/ProjectGoal";
|
|
3
2
|
import { JSONObject } from "../JSON";
|
|
4
|
-
export declare const ESSENTIAL_PRODUCTS: ReadonlyArray<ProductKey>;
|
|
5
3
|
export declare const ALWAYS_SHOWN_PRODUCTS: ReadonlyArray<ProductKey>;
|
|
6
4
|
export declare const isHideableProduct: (product: ProductKey) => boolean;
|
|
7
5
|
export declare const HIDEABLE_PRODUCTS: ReadonlyArray<ProductKey>;
|
|
8
|
-
export declare const PRODUCTS_OF_GOAL: Readonly<Record<ProjectGoal, ReadonlyArray<ProductKey>>>;
|
|
9
|
-
export declare const GOALS_THAT_SHOW_EVERYTHING: ReadonlyArray<ProjectGoal>;
|
|
10
6
|
export declare enum ProjectProductsChosenBy {
|
|
11
|
-
Goals = "goals",
|
|
12
7
|
Member = "member"
|
|
13
8
|
}
|
|
9
|
+
export declare const LEGACY_GOALS_CHOSEN_BY: string;
|
|
14
10
|
export interface ProjectProductSettings {
|
|
15
11
|
hidden: Array<ProductKey>;
|
|
16
12
|
keptHiddenWithData: Array<ProductKey>;
|
|
@@ -22,16 +18,6 @@ export declare const parseProjectProductSettings: (value: unknown) => ProjectPro
|
|
|
22
18
|
export declare const toProjectProductSettingsJSON: (settings: ProjectProductSettings) => JSONObject;
|
|
23
19
|
export declare const getHiddenProducts: (settings: ProjectProductSettings | null) => Array<ProductKey>;
|
|
24
20
|
export declare const isProductHidden: (settings: ProjectProductSettings | null, product: ProductKey) => boolean;
|
|
25
|
-
export declare const getProductsHiddenByGoals: (data: {
|
|
26
|
-
goals: ReadonlyArray<ProjectGoal> | null;
|
|
27
|
-
inUse: ReadonlyArray<ProductKey>;
|
|
28
|
-
}) => Array<ProductKey>;
|
|
29
|
-
export declare const getProjectProductSettingsFromGoals: (data: {
|
|
30
|
-
current: ProjectProductSettings | null;
|
|
31
|
-
goals: ReadonlyArray<ProjectGoal> | null;
|
|
32
|
-
inUse: ReadonlyArray<ProductKey>;
|
|
33
|
-
now: Date;
|
|
34
|
-
}) => ProjectProductSettings | null;
|
|
35
21
|
export declare const withProductShown: (data: {
|
|
36
22
|
current: ProjectProductSettings | null;
|
|
37
23
|
product: ProductKey;
|
|
@@ -33,9 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.getProductPlacement = exports.ProductPlacement = exports.getHiddenProductsWithData = exports.withEveryProductShown = exports.withProductShown = exports.
|
|
36
|
+
exports.getProductPlacement = exports.ProductPlacement = exports.getHiddenProductsWithData = exports.withEveryProductShown = exports.withProductShown = exports.isProductHidden = exports.getHiddenProducts = exports.toProjectProductSettingsJSON = exports.parseProjectProductSettings = exports.LEGACY_GOALS_CHOSEN_BY = exports.ProjectProductsChosenBy = exports.HIDEABLE_PRODUCTS = exports.isHideableProduct = exports.ALWAYS_SHOWN_PRODUCTS = void 0;
|
|
37
37
|
const ProductKey_1 = __importStar(require("./ProductKey"));
|
|
38
|
-
const ProjectGoal_1 = __importStar(require("../WelcomeChecklist/ProjectGoal"));
|
|
39
38
|
/*
|
|
40
39
|
* THE PRODUCTS A PROJECT SHOWS (#6814).
|
|
41
40
|
*
|
|
@@ -44,6 +43,12 @@ const ProjectGoal_1 = __importStar(require("../WelcomeChecklist/ProjectGoal"));
|
|
|
44
43
|
* use (Project Settings > Products), so its menu, Home and Search's list
|
|
45
44
|
* show what it uses.
|
|
46
45
|
*
|
|
46
|
+
* Only a member hides a product. Every product is shown until someone who
|
|
47
|
+
* may edit the project hides it on Project Settings > Products. Nothing
|
|
48
|
+
* hides one by itself: not the project's goals (what it came to do, as
|
|
49
|
+
* answered on Home), not a product that is not set up yet, not one nobody
|
|
50
|
+
* has opened.
|
|
51
|
+
*
|
|
47
52
|
* Hidden is not off. A hidden product is left out of the products menu's
|
|
48
53
|
* categories, the Recently visited row, Home's Explore and Your project
|
|
49
54
|
* card, Search's list while browsing and the keyboard shortcuts list. It is
|
|
@@ -56,15 +61,13 @@ const ProjectGoal_1 = __importStar(require("../WelcomeChecklist/ProjectGoal"));
|
|
|
56
61
|
* file's ProjectProductSettings. Read it with parseProjectProductSettings,
|
|
57
62
|
* never as it is stored:
|
|
58
63
|
*
|
|
59
|
-
* null nothing chosen: every product is shown.
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* - "member": somebody changed it on Project Settings > Products.
|
|
67
|
-
* The goals never change it again.
|
|
64
|
+
* null nothing chosen: every product is shown.
|
|
65
|
+
* {...} the products a member hid on Project Settings > Products.
|
|
66
|
+
*
|
|
67
|
+
* Choosing a project's goals used to hide every product they did not name,
|
|
68
|
+
* in a list marked "goals" (LEGACY_GOALS_CHOSEN_BY). Nobody chose that
|
|
69
|
+
* list, so it reads as nothing chosen: every product is shown again, and a
|
|
70
|
+
* member's first change starts from every product shown.
|
|
68
71
|
*
|
|
69
72
|
* A server can switch products off for every project (#6815). That is a
|
|
70
73
|
* layer on top of this one, stronger than the project's choice and than a
|
|
@@ -72,16 +75,6 @@ const ProjectGoal_1 = __importStar(require("../WelcomeChecklist/ProjectGoal"));
|
|
|
72
75
|
*
|
|
73
76
|
* Pure: the server, the Dashboard and their tests read it.
|
|
74
77
|
*/
|
|
75
|
-
// The products a problem flows through, shown in every project's menu by default.
|
|
76
|
-
exports.ESSENTIAL_PRODUCTS = [
|
|
77
|
-
ProductKey_1.default.Monitors,
|
|
78
|
-
ProductKey_1.default.Incidents,
|
|
79
|
-
ProductKey_1.default.Alerts,
|
|
80
|
-
ProductKey_1.default.OnCall,
|
|
81
|
-
ProductKey_1.default.StatusPages,
|
|
82
|
-
ProductKey_1.default.ScheduledMaintenance,
|
|
83
|
-
ProductKey_1.default.Slos,
|
|
84
|
-
];
|
|
85
78
|
/*
|
|
86
79
|
* The project's own settings, which can never be hidden: hiding Project
|
|
87
80
|
* Settings would hide the page that shows it again.
|
|
@@ -97,56 +90,18 @@ const isHideableProduct = (product) => {
|
|
|
97
90
|
exports.isHideableProduct = isHideableProduct;
|
|
98
91
|
// Every product a project may hide, in the menu's order.
|
|
99
92
|
exports.HIDEABLE_PRODUCTS = ProductKey_1.PRODUCT_KEYS.filter(exports.isHideableProduct);
|
|
100
|
-
/*
|
|
101
|
-
* What each goal needs beyond Essentials (#6803's question "What do you want
|
|
102
|
-
* to do first?"). Uptime, on-call and status pages are Essentials already.
|
|
103
|
-
* Telemetry is what "See my logs, metrics and traces" opens on, and what a
|
|
104
|
-
* team that sends it looks at next; infrastructure is the platforms most
|
|
105
|
-
* people watch first, with the metrics and dashboards they report into.
|
|
106
|
-
* Everything else is one click away under More products, and comes back by
|
|
107
|
-
* itself once it has data (getProductsHiddenByGoals never hides what is in
|
|
108
|
-
* use).
|
|
109
|
-
*/
|
|
110
|
-
exports.PRODUCTS_OF_GOAL = {
|
|
111
|
-
[ProjectGoal_1.default.Uptime]: [],
|
|
112
|
-
[ProjectGoal_1.default.OnCall]: [],
|
|
113
|
-
[ProjectGoal_1.default.StatusPage]: [],
|
|
114
|
-
[ProjectGoal_1.default.Telemetry]: [
|
|
115
|
-
ProductKey_1.default.Logs,
|
|
116
|
-
ProductKey_1.default.Metrics,
|
|
117
|
-
ProductKey_1.default.Traces,
|
|
118
|
-
ProductKey_1.default.Exceptions,
|
|
119
|
-
ProductKey_1.default.Services,
|
|
120
|
-
ProductKey_1.default.Dashboards,
|
|
121
|
-
],
|
|
122
|
-
[ProjectGoal_1.default.Infrastructure]: [
|
|
123
|
-
ProductKey_1.default.Metrics,
|
|
124
|
-
ProductKey_1.default.Hosts,
|
|
125
|
-
ProductKey_1.default.Kubernetes,
|
|
126
|
-
ProductKey_1.default.Docker,
|
|
127
|
-
ProductKey_1.default.Cloud,
|
|
128
|
-
ProductKey_1.default.Dashboards,
|
|
129
|
-
],
|
|
130
|
-
// What an import brings is in use once it lands, so it is never hidden.
|
|
131
|
-
[ProjectGoal_1.default.Import]: [],
|
|
132
|
-
// Explore hides nothing: see GOALS_THAT_SHOW_EVERYTHING.
|
|
133
|
-
[ProjectGoal_1.default.Explore]: [],
|
|
134
|
-
};
|
|
135
|
-
// A project "just looking around" sees everything.
|
|
136
|
-
exports.GOALS_THAT_SHOW_EVERYTHING = [
|
|
137
|
-
ProjectGoal_1.default.Explore,
|
|
138
|
-
];
|
|
139
93
|
var ProjectProductsChosenBy;
|
|
140
94
|
(function (ProjectProductsChosenBy) {
|
|
141
|
-
//
|
|
142
|
-
ProjectProductsChosenBy["Goals"] = "goals";
|
|
143
|
-
// Changed by a member on Project Settings > Products.
|
|
95
|
+
// Changed by a member on Project Settings > Products: the only source.
|
|
144
96
|
ProjectProductsChosenBy["Member"] = "member";
|
|
145
97
|
})(ProjectProductsChosenBy || (exports.ProjectProductsChosenBy = ProjectProductsChosenBy = {}));
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
98
|
+
/*
|
|
99
|
+
* How a list the project's goals set used to be marked (#6814's first
|
|
100
|
+
* version). Still found in projects that chose their goals then, and in
|
|
101
|
+
* answers a browser remembered: read as nothing chosen, since nobody chose
|
|
102
|
+
* it. Never written.
|
|
103
|
+
*/
|
|
104
|
+
exports.LEGACY_GOALS_CHOSEN_BY = "goals";
|
|
150
105
|
const toKeptHidden = (kept, hidden) => {
|
|
151
106
|
return ProductKey_1.PRODUCT_KEYS.filter((product) => {
|
|
152
107
|
return kept.includes(product) && hidden.includes(product);
|
|
@@ -155,14 +110,16 @@ const toKeptHidden = (kept, hidden) => {
|
|
|
155
110
|
/*
|
|
156
111
|
* The project's settings as stored, or null when nothing was chosen (every
|
|
157
112
|
* product shown). Unknown products and products that can never be hidden
|
|
158
|
-
* are left out, so a stored value never hides Project Settings.
|
|
113
|
+
* are left out, so a stored value never hides Project Settings. A list the
|
|
114
|
+
* goals set (LEGACY_GOALS_CHOSEN_BY) is null too: nobody chose it.
|
|
159
115
|
*/
|
|
160
116
|
const parseProjectProductSettings = (value) => {
|
|
161
117
|
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
162
118
|
return null;
|
|
163
119
|
}
|
|
164
120
|
const json = value;
|
|
165
|
-
if (!Array.isArray(json["hidden"])
|
|
121
|
+
if (!Array.isArray(json["hidden"]) ||
|
|
122
|
+
json["chosenBy"] === exports.LEGACY_GOALS_CHOSEN_BY) {
|
|
166
123
|
return null;
|
|
167
124
|
}
|
|
168
125
|
const hidden = ProductKey_1.PRODUCT_KEYS.filter((product) => {
|
|
@@ -172,9 +129,8 @@ const parseProjectProductSettings = (value) => {
|
|
|
172
129
|
return {
|
|
173
130
|
hidden: hidden,
|
|
174
131
|
keptHiddenWithData: toKeptHidden((0, ProductKey_1.parseProductKeys)(json["keptHiddenWithData"]), hidden),
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
: ProjectProductsChosenBy.Member,
|
|
132
|
+
// A member's, whatever it says: nothing else writes one.
|
|
133
|
+
chosenBy: ProjectProductsChosenBy.Member,
|
|
178
134
|
changedAt: typeof json["changedAt"] === "string" ? json["changedAt"] : null,
|
|
179
135
|
changedByUserId: typeof json["changedByUserId"] === "string"
|
|
180
136
|
? json["changedByUserId"]
|
|
@@ -202,59 +158,10 @@ const isProductHidden = (settings, product) => {
|
|
|
202
158
|
};
|
|
203
159
|
exports.isProductHidden = isProductHidden;
|
|
204
160
|
/*
|
|
205
|
-
* The
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*/
|
|
210
|
-
const getProductsHiddenByGoals = (data) => {
|
|
211
|
-
const goals = (0, ProjectGoal_1.parseProjectGoals)(data.goals ? [...data.goals] : null) || [];
|
|
212
|
-
if (goals.length === 0 ||
|
|
213
|
-
goals.some((goal) => {
|
|
214
|
-
return exports.GOALS_THAT_SHOW_EVERYTHING.includes(goal);
|
|
215
|
-
})) {
|
|
216
|
-
return [];
|
|
217
|
-
}
|
|
218
|
-
const shown = new Set([
|
|
219
|
-
...exports.ESSENTIAL_PRODUCTS,
|
|
220
|
-
...data.inUse,
|
|
221
|
-
]);
|
|
222
|
-
for (const goal of goals) {
|
|
223
|
-
for (const product of exports.PRODUCTS_OF_GOAL[goal]) {
|
|
224
|
-
shown.add(product);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
return exports.HIDEABLE_PRODUCTS.filter((product) => {
|
|
228
|
-
return !shown.has(product);
|
|
229
|
-
});
|
|
230
|
-
};
|
|
231
|
-
exports.getProductsHiddenByGoals = getProductsHiddenByGoals;
|
|
232
|
-
/*
|
|
233
|
-
* The settings a project's goals give it, or null when it should be left
|
|
234
|
-
* alone: a member already chose its products, which the goals never undo.
|
|
235
|
-
* A project whose goals hide nothing keeps settings that say so, still
|
|
236
|
-
* "goals", so a later change of goals can hide what the new ones do not
|
|
237
|
-
* need.
|
|
238
|
-
*/
|
|
239
|
-
const getProjectProductSettingsFromGoals = (data) => {
|
|
240
|
-
if (data.current &&
|
|
241
|
-
data.current.chosenBy === ProjectProductsChosenBy.Member) {
|
|
242
|
-
return null;
|
|
243
|
-
}
|
|
244
|
-
return {
|
|
245
|
-
hidden: (0, exports.getProductsHiddenByGoals)({ goals: data.goals, inUse: data.inUse }),
|
|
246
|
-
keptHiddenWithData: [],
|
|
247
|
-
chosenBy: ProjectProductsChosenBy.Goals,
|
|
248
|
-
changedAt: data.now.toISOString(),
|
|
249
|
-
changedByUserId: null,
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
exports.getProjectProductSettingsFromGoals = getProjectProductSettingsFromGoals;
|
|
253
|
-
/*
|
|
254
|
-
* The settings after a member shows or hides one product. Hiding a product
|
|
255
|
-
* that has data keeps it hidden on purpose (Home does not ask about it);
|
|
256
|
-
* showing one forgets that. A product that can never be hidden is left as
|
|
257
|
-
* it is.
|
|
161
|
+
* The settings after a member shows or hides one product: only that product
|
|
162
|
+
* changes. Hiding a product that has data keeps it hidden on purpose (Home
|
|
163
|
+
* does not ask about it); showing one forgets that. A product that can
|
|
164
|
+
* never be hidden is left as it is.
|
|
258
165
|
*/
|
|
259
166
|
const withProductShown = (data) => {
|
|
260
167
|
const hidden = new Set((0, exports.getHiddenProducts)(data.current));
|
|
@@ -283,7 +190,7 @@ const withProductShown = (data) => {
|
|
|
283
190
|
};
|
|
284
191
|
};
|
|
285
192
|
exports.withProductShown = withProductShown;
|
|
286
|
-
// Every product shown again, by a member
|
|
193
|
+
// Every product shown again, by a member.
|
|
287
194
|
const withEveryProductShown = (data) => {
|
|
288
195
|
return {
|
|
289
196
|
hidden: [],
|
|
@@ -314,9 +221,11 @@ exports.getHiddenProductsWithData = getHiddenProductsWithData;
|
|
|
314
221
|
*
|
|
315
222
|
* 1. Off: switched off on the server (#6815). Never drawn, not even
|
|
316
223
|
* pinned or under More products; #6815 also blocks its pages and API.
|
|
317
|
-
* 2. Hidden:
|
|
318
|
-
* still pinned by whoever pinned it - the
|
|
319
|
-
*
|
|
224
|
+
* 2. Hidden: a member hid it on Project Settings > Products. Under More
|
|
225
|
+
* products, found by Search, still pinned by whoever pinned it - the
|
|
226
|
+
* same menu for every member.
|
|
227
|
+
* 3. Listed: in its category, on Home and in Search's list. Every other
|
|
228
|
+
* product, whether it is in use, not set up yet or never opened.
|
|
320
229
|
*/
|
|
321
230
|
var ProductPlacement;
|
|
322
231
|
(function (ProductPlacement) {
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import commonJsModule from "./ProjectProducts.js";
|
|
2
2
|
export const ALWAYS_SHOWN_PRODUCTS = commonJsModule.ALWAYS_SHOWN_PRODUCTS;
|
|
3
|
-
export const ESSENTIAL_PRODUCTS = commonJsModule.ESSENTIAL_PRODUCTS;
|
|
4
|
-
export const GOALS_THAT_SHOW_EVERYTHING = commonJsModule.GOALS_THAT_SHOW_EVERYTHING;
|
|
5
3
|
export const HIDEABLE_PRODUCTS = commonJsModule.HIDEABLE_PRODUCTS;
|
|
6
|
-
export const
|
|
4
|
+
export const LEGACY_GOALS_CHOSEN_BY = commonJsModule.LEGACY_GOALS_CHOSEN_BY;
|
|
7
5
|
export const ProductPlacement = commonJsModule.ProductPlacement;
|
|
8
6
|
export const ProjectProductsChosenBy = commonJsModule.ProjectProductsChosenBy;
|
|
9
7
|
export const getHiddenProducts = commonJsModule.getHiddenProducts;
|
|
10
8
|
export const getHiddenProductsWithData = commonJsModule.getHiddenProductsWithData;
|
|
11
9
|
export const getProductPlacement = commonJsModule.getProductPlacement;
|
|
12
|
-
export const getProductsHiddenByGoals = commonJsModule.getProductsHiddenByGoals;
|
|
13
|
-
export const getProjectProductSettingsFromGoals = commonJsModule.getProjectProductSettingsFromGoals;
|
|
14
10
|
export const isHideableProduct = commonJsModule.isHideableProduct;
|
|
15
11
|
export const isProductHidden = commonJsModule.isProductHidden;
|
|
16
12
|
export const parseProjectProductSettings = commonJsModule.parseProjectProductSettings;
|
|
@@ -111,21 +111,20 @@ const parseNeededPlans = (value) => {
|
|
|
111
111
|
};
|
|
112
112
|
/*
|
|
113
113
|
* An answer as sent or stored, read safely: anything unknown is left out,
|
|
114
|
-
* and a value that is not an answer at all reads as null.
|
|
114
|
+
* and a value that is not an answer at all reads as null. One a browser
|
|
115
|
+
* remembered from when the goals hid products (LEGACY_GOALS_CHOSEN_BY)
|
|
116
|
+
* hides nothing, as the server now answers for that project.
|
|
115
117
|
*/
|
|
116
118
|
const parseProjectProductsAnswer = (value) => {
|
|
117
119
|
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
118
120
|
return null;
|
|
119
121
|
}
|
|
120
122
|
const json = value;
|
|
121
|
-
const hidden = parseHidden(json["hidden"]);
|
|
122
123
|
const chosenBy = json["chosenBy"];
|
|
124
|
+
const hidden = chosenBy === ProjectProducts_1.LEGACY_GOALS_CHOSEN_BY ? [] : parseHidden(json["hidden"]);
|
|
123
125
|
return {
|
|
124
126
|
hidden: hidden,
|
|
125
|
-
chosenBy: chosenBy === ProjectProducts_1.ProjectProductsChosenBy.
|
|
126
|
-
chosenBy === ProjectProducts_1.ProjectProductsChosenBy.Member
|
|
127
|
-
? chosenBy
|
|
128
|
-
: null,
|
|
127
|
+
chosenBy: chosenBy === ProjectProducts_1.ProjectProductsChosenBy.Member ? chosenBy : null,
|
|
129
128
|
pinned: (0, ProductPins_1.parsePinnedProducts)(json["pinned"]),
|
|
130
129
|
usage: parseUsage(json["usage"]),
|
|
131
130
|
neededPlans: parseNeededPlans(json["neededPlans"]),
|
|
@@ -26,7 +26,33 @@ export declare const CHECK_IN_FIRST_DAY: number;
|
|
|
26
26
|
export declare const CHECK_IN_LAST_DAY: number;
|
|
27
27
|
export declare const PRODUCT_FEEDBACK_DETAILS_WINDOW_MINUTES: number;
|
|
28
28
|
export declare const CHECK_IN_TOPIC: string;
|
|
29
|
-
export declare
|
|
29
|
+
export declare enum GiveFeedbackCategory {
|
|
30
|
+
Broken = "broken",
|
|
31
|
+
Confusing = "confusing",
|
|
32
|
+
Idea = "idea",
|
|
33
|
+
Other = "other"
|
|
34
|
+
}
|
|
35
|
+
export declare const GIVE_FEEDBACK_CATEGORIES: ReadonlyArray<GiveFeedbackCategory>;
|
|
36
|
+
export declare const DEFAULT_GIVE_FEEDBACK_CATEGORY: GiveFeedbackCategory;
|
|
37
|
+
export declare const GIVE_FEEDBACK_CATEGORY_TITLES: Readonly<Record<GiveFeedbackCategory, string>>;
|
|
38
|
+
export declare const isGiveFeedbackCategory: (value: unknown) => value is GiveFeedbackCategory;
|
|
39
|
+
export declare const toGiveFeedbackCategory: (value: unknown) => GiveFeedbackCategory;
|
|
40
|
+
export declare enum GiveFeedbackDestination {
|
|
41
|
+
OneUptimeTeam = "oneuptime_team",
|
|
42
|
+
ServerAdminsByEmail = "server_admins_by_email",
|
|
43
|
+
ServerAdmins = "server_admins"
|
|
44
|
+
}
|
|
45
|
+
export declare const ONEUPTIME_SUPPORT_EMAIL: string;
|
|
46
|
+
export declare const getGiveFeedbackDestination: (data: {
|
|
47
|
+
isOneUptimeCloud: boolean;
|
|
48
|
+
adminNotificationEmail: string | null | undefined;
|
|
49
|
+
}) => GiveFeedbackDestination;
|
|
50
|
+
export declare const isGiveFeedbackEmailed: (destination: GiveFeedbackDestination) => boolean;
|
|
51
|
+
export interface GiveFeedbackReceipt {
|
|
52
|
+
isEmailed: boolean;
|
|
53
|
+
copyTo: string | null;
|
|
54
|
+
}
|
|
55
|
+
export declare const readGiveFeedbackReceipt: (value: unknown) => GiveFeedbackReceipt;
|
|
30
56
|
export declare const PRODUCT_FEEDBACK_GITHUB_LABEL: string;
|
|
31
57
|
export declare const toFeedbackTopic: (value: string) => string;
|
|
32
58
|
export declare const toFeedbackPage: (value: unknown) => string;
|
|
@@ -61,8 +87,7 @@ export declare enum FeedbackQuestionDecision {
|
|
|
61
87
|
PersonOff = "person_off",
|
|
62
88
|
AlreadyAsked = "already_asked",
|
|
63
89
|
IncidentOpen = "incident_open",
|
|
64
|
-
AskedRecently = "asked_recently"
|
|
65
|
-
SampleProject = "sample_project"
|
|
90
|
+
AskedRecently = "asked_recently"
|
|
66
91
|
}
|
|
67
92
|
export declare const decideFeedbackQuestion: (data: {
|
|
68
93
|
key: string;
|
|
@@ -71,7 +96,6 @@ export declare const decideFeedbackQuestion: (data: {
|
|
|
71
96
|
asked: Record<string, string>;
|
|
72
97
|
isIncidentOpen: boolean;
|
|
73
98
|
now: Date;
|
|
74
|
-
isSampleProject?: boolean | undefined;
|
|
75
99
|
}) => FeedbackQuestionDecision;
|
|
76
100
|
export declare const isCheckInDue: (data: {
|
|
77
101
|
projectCreatedAt: Date | string | null | undefined;
|
|
@@ -80,6 +104,7 @@ export declare const isCheckInDue: (data: {
|
|
|
80
104
|
export interface ProductFeedbackSettings {
|
|
81
105
|
isOn: boolean;
|
|
82
106
|
isAskingMe: boolean;
|
|
107
|
+
giveFeedbackGoesTo?: GiveFeedbackDestination | undefined;
|
|
83
108
|
}
|
|
84
109
|
export declare const readProductFeedbackSettings: (value: unknown) => ProductFeedbackSettings | null;
|
|
85
110
|
export declare const PRODUCT_FEEDBACK_SUMMARY_DAYS: number;
|
|
@@ -26,7 +26,33 @@ export declare const CHECK_IN_FIRST_DAY: number;
|
|
|
26
26
|
export declare const CHECK_IN_LAST_DAY: number;
|
|
27
27
|
export declare const PRODUCT_FEEDBACK_DETAILS_WINDOW_MINUTES: number;
|
|
28
28
|
export declare const CHECK_IN_TOPIC: string;
|
|
29
|
-
export declare
|
|
29
|
+
export declare enum GiveFeedbackCategory {
|
|
30
|
+
Broken = "broken",
|
|
31
|
+
Confusing = "confusing",
|
|
32
|
+
Idea = "idea",
|
|
33
|
+
Other = "other"
|
|
34
|
+
}
|
|
35
|
+
export declare const GIVE_FEEDBACK_CATEGORIES: ReadonlyArray<GiveFeedbackCategory>;
|
|
36
|
+
export declare const DEFAULT_GIVE_FEEDBACK_CATEGORY: GiveFeedbackCategory;
|
|
37
|
+
export declare const GIVE_FEEDBACK_CATEGORY_TITLES: Readonly<Record<GiveFeedbackCategory, string>>;
|
|
38
|
+
export declare const isGiveFeedbackCategory: (value: unknown) => value is GiveFeedbackCategory;
|
|
39
|
+
export declare const toGiveFeedbackCategory: (value: unknown) => GiveFeedbackCategory;
|
|
40
|
+
export declare enum GiveFeedbackDestination {
|
|
41
|
+
OneUptimeTeam = "oneuptime_team",
|
|
42
|
+
ServerAdminsByEmail = "server_admins_by_email",
|
|
43
|
+
ServerAdmins = "server_admins"
|
|
44
|
+
}
|
|
45
|
+
export declare const ONEUPTIME_SUPPORT_EMAIL: string;
|
|
46
|
+
export declare const getGiveFeedbackDestination: (data: {
|
|
47
|
+
isOneUptimeCloud: boolean;
|
|
48
|
+
adminNotificationEmail: string | null | undefined;
|
|
49
|
+
}) => GiveFeedbackDestination;
|
|
50
|
+
export declare const isGiveFeedbackEmailed: (destination: GiveFeedbackDestination) => boolean;
|
|
51
|
+
export interface GiveFeedbackReceipt {
|
|
52
|
+
isEmailed: boolean;
|
|
53
|
+
copyTo: string | null;
|
|
54
|
+
}
|
|
55
|
+
export declare const readGiveFeedbackReceipt: (value: unknown) => GiveFeedbackReceipt;
|
|
30
56
|
export declare const PRODUCT_FEEDBACK_GITHUB_LABEL: string;
|
|
31
57
|
export declare const toFeedbackTopic: (value: string) => string;
|
|
32
58
|
export declare const toFeedbackPage: (value: unknown) => string;
|
|
@@ -61,8 +87,7 @@ export declare enum FeedbackQuestionDecision {
|
|
|
61
87
|
PersonOff = "person_off",
|
|
62
88
|
AlreadyAsked = "already_asked",
|
|
63
89
|
IncidentOpen = "incident_open",
|
|
64
|
-
AskedRecently = "asked_recently"
|
|
65
|
-
SampleProject = "sample_project"
|
|
90
|
+
AskedRecently = "asked_recently"
|
|
66
91
|
}
|
|
67
92
|
export declare const decideFeedbackQuestion: (data: {
|
|
68
93
|
key: string;
|
|
@@ -71,7 +96,6 @@ export declare const decideFeedbackQuestion: (data: {
|
|
|
71
96
|
asked: Record<string, string>;
|
|
72
97
|
isIncidentOpen: boolean;
|
|
73
98
|
now: Date;
|
|
74
|
-
isSampleProject?: boolean | undefined;
|
|
75
99
|
}) => FeedbackQuestionDecision;
|
|
76
100
|
export declare const isCheckInDue: (data: {
|
|
77
101
|
projectCreatedAt: Date | string | null | undefined;
|
|
@@ -80,6 +104,7 @@ export declare const isCheckInDue: (data: {
|
|
|
80
104
|
export interface ProductFeedbackSettings {
|
|
81
105
|
isOn: boolean;
|
|
82
106
|
isAskingMe: boolean;
|
|
107
|
+
giveFeedbackGoesTo?: GiveFeedbackDestination | undefined;
|
|
83
108
|
}
|
|
84
109
|
export declare const readProductFeedbackSettings: (value: unknown) => ProductFeedbackSettings | null;
|
|
85
110
|
export declare const PRODUCT_FEEDBACK_SUMMARY_DAYS: number;
|