@oneuptime/common 14.0.107 → 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/DataBiConnection.d.mts +4 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +4 -0
- package/Models/DatabaseModels/DataBiConnection.js +59 -2
- 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 +9 -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/RumProductAnalyticsSavedView.d.mts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.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/WhatsAppLog.d.mts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.js +62 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +20 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +20 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +213 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +213 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +4 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +4 -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 +20 -1
- package/Types/AI/AIChatTypes.d.ts +20 -1
- package/Types/AI/AIChatTypes.js +46 -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/InvestigationNotStartedReason.d.mts +7 -0
- package/Types/AI/InvestigationNotStartedReason.d.ts +7 -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/CodeInSentence.d.mts +8 -0
- package/Types/CodeInSentence.d.ts +8 -0
- package/Types/CodeInSentence.js +875 -0
- package/Types/CodeInSentence.mjs +4 -0
- 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/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +7 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
- package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
- package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -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 +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
- package/Types/DataObservability/DataTableLineage.d.mts +29 -1
- package/Types/DataObservability/DataTableLineage.d.ts +29 -1
- package/Types/DataObservability/DataTableLineage.js +27 -7
- package/Types/DataObservability/DataTableLineage.mjs +3 -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/HashedString.js +9 -2
- 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 +18 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +18 -0
- package/Types/Monitor/CriteriaFilterValues.js +346 -0
- package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -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/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +22 -2
- package/Types/Monitor/MonitorStep.js +28 -11
- package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
- package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.js +117 -0
- package/Types/Monitor/MonitorStepRollingTime.mjs +2 -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/SeriesContext/SeriesLabelDisplay.js +11 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +7 -2
- 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/NotificationRule/NotificationRepeat.d.mts +10 -0
- package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
- package/Types/NotificationRule/NotificationRepeat.js +51 -0
- package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -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/OnCallEscalationWait.d.mts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -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/Probe/ProbeMonitorResponse.d.mts +1 -0
- package/Types/Probe/ProbeMonitorResponse.d.ts +1 -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 +4 -0
- package/Types/ReadingDirection.d.ts +4 -0
- package/Types/ReadingDirection.js +303 -26
- package/Types/ReadingDirection.mjs +4 -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 +8 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +8 -0
- package/Types/RollingTime/RollingTimeUtil.js +249 -71
- package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
- package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +116 -108
- 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/ServiceType.d.mts +1 -0
- package/Types/Telemetry/ServiceType.d.ts +1 -0
- package/Types/Telemetry/ServiceType.js +6 -0
- 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/Crypto.js +10 -3
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
- 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/Metrics/MetricQueryCloudAggregation.js +2 -4
- 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/MonitorRootCauseWording.js +28 -24
- 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/MonitorStepMetricQueries.js +2 -1
- package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -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/SloProjection.d.mts +18 -0
- package/Utils/Slo/SloProjection.d.ts +18 -0
- package/Utils/Slo/SloProjection.js +53 -12
- package/Utils/Slo/SloProjection.mjs +2 -0
- 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 -10
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -10
- package/Utils/StatusPage/ResourceExplorer.js +11 -29
- 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,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const Project_1 = __importDefault(require("./Project"));
|
|
16
|
+
const User_1 = __importDefault(require("./User"));
|
|
17
|
+
const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
|
|
18
|
+
const Route_1 = __importDefault(require("../../Types/API/Route"));
|
|
19
|
+
const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
|
|
20
|
+
const TableAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableAccessControl"));
|
|
21
|
+
const ColumnType_1 = __importDefault(require("../../Types/Database/ColumnType"));
|
|
22
|
+
const CrudApiEndpoint_1 = __importDefault(require("../../Types/Database/CrudApiEndpoint"));
|
|
23
|
+
const TableColumn_1 = __importDefault(require("../../Types/Database/TableColumn"));
|
|
24
|
+
const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
|
|
25
|
+
const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetadata"));
|
|
26
|
+
const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
|
|
27
|
+
const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
|
|
28
|
+
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
29
|
+
const typeorm_1 = require("typeorm");
|
|
30
|
+
/*
|
|
31
|
+
* What one person chose for themselves in one project (issue #6814): today,
|
|
32
|
+
* the products they pinned to the nav bar, beside Home and Products
|
|
33
|
+
* (Types/Product/ProductPins).
|
|
34
|
+
*
|
|
35
|
+
* One row per project and person, held so by the unique index below:
|
|
36
|
+
* ProjectProductsService writes it with INSERT ... ON CONFLICT DO UPDATE,
|
|
37
|
+
* so two tabs pinning at once never leave two rows. It is deleted with its
|
|
38
|
+
* project or its user.
|
|
39
|
+
*
|
|
40
|
+
* Kept on the server, not in the browser, so the pins follow the person to
|
|
41
|
+
* another browser and device. A row of its own rather than a column on
|
|
42
|
+
* Project or TeamMember: a person may be in several teams of a project, and
|
|
43
|
+
* Project is read on nearly every request, by every member.
|
|
44
|
+
*
|
|
45
|
+
* Nobody reads or writes it through the API: the person's own pins come
|
|
46
|
+
* with the products answer (GET /project-products, ProjectProductsAPI),
|
|
47
|
+
* and they change them through POST /project-products/pins, which only ever
|
|
48
|
+
* touches the caller's own row. Nobody else's pins are ever sent.
|
|
49
|
+
*/
|
|
50
|
+
let ProjectUserPreference = class ProjectUserPreference extends DatabaseBaseModel_1.default {
|
|
51
|
+
constructor() {
|
|
52
|
+
super(...arguments);
|
|
53
|
+
this.project = undefined;
|
|
54
|
+
this.projectId = undefined;
|
|
55
|
+
this.user = undefined;
|
|
56
|
+
this.userId = undefined;
|
|
57
|
+
this.pinnedProducts = undefined;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, ColumnAccessControl_1.default)({
|
|
62
|
+
create: [],
|
|
63
|
+
read: [],
|
|
64
|
+
update: [],
|
|
65
|
+
}),
|
|
66
|
+
(0, TableColumn_1.default)({
|
|
67
|
+
manyToOneRelationColumn: "projectId",
|
|
68
|
+
type: TableColumnType_1.default.Entity,
|
|
69
|
+
modelType: Project_1.default,
|
|
70
|
+
title: "Project",
|
|
71
|
+
description: "The project these choices are for.",
|
|
72
|
+
}),
|
|
73
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
74
|
+
return Project_1.default;
|
|
75
|
+
}, {
|
|
76
|
+
eager: false,
|
|
77
|
+
nullable: false,
|
|
78
|
+
onDelete: "CASCADE",
|
|
79
|
+
orphanedRowAction: "nullify",
|
|
80
|
+
}),
|
|
81
|
+
(0, typeorm_1.JoinColumn)({ name: "projectId" }),
|
|
82
|
+
__metadata("design:type", Project_1.default)
|
|
83
|
+
], ProjectUserPreference.prototype, "project", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, ColumnAccessControl_1.default)({
|
|
86
|
+
create: [],
|
|
87
|
+
read: [],
|
|
88
|
+
update: [],
|
|
89
|
+
}),
|
|
90
|
+
(0, TableColumn_1.default)({
|
|
91
|
+
type: TableColumnType_1.default.ObjectID,
|
|
92
|
+
required: true,
|
|
93
|
+
canReadOnRelationQuery: true,
|
|
94
|
+
title: "Project ID",
|
|
95
|
+
description: "ID of the project these choices are for.",
|
|
96
|
+
}),
|
|
97
|
+
(0, typeorm_1.Column)({
|
|
98
|
+
type: ColumnType_1.default.ObjectID,
|
|
99
|
+
nullable: false,
|
|
100
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
101
|
+
}),
|
|
102
|
+
__metadata("design:type", ObjectID_1.default)
|
|
103
|
+
], ProjectUserPreference.prototype, "projectId", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, ColumnAccessControl_1.default)({
|
|
106
|
+
create: [],
|
|
107
|
+
read: [],
|
|
108
|
+
update: [],
|
|
109
|
+
}),
|
|
110
|
+
(0, TableColumn_1.default)({
|
|
111
|
+
manyToOneRelationColumn: "userId",
|
|
112
|
+
type: TableColumnType_1.default.Entity,
|
|
113
|
+
modelType: User_1.default,
|
|
114
|
+
title: "User",
|
|
115
|
+
description: "The person who made these choices.",
|
|
116
|
+
}),
|
|
117
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
118
|
+
return User_1.default;
|
|
119
|
+
}, {
|
|
120
|
+
eager: false,
|
|
121
|
+
nullable: false,
|
|
122
|
+
onDelete: "CASCADE",
|
|
123
|
+
orphanedRowAction: "nullify",
|
|
124
|
+
}),
|
|
125
|
+
(0, typeorm_1.JoinColumn)({ name: "userId" }),
|
|
126
|
+
__metadata("design:type", User_1.default)
|
|
127
|
+
], ProjectUserPreference.prototype, "user", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, ColumnAccessControl_1.default)({
|
|
130
|
+
create: [],
|
|
131
|
+
read: [],
|
|
132
|
+
update: [],
|
|
133
|
+
}),
|
|
134
|
+
(0, TableColumn_1.default)({
|
|
135
|
+
type: TableColumnType_1.default.ObjectID,
|
|
136
|
+
required: true,
|
|
137
|
+
canReadOnRelationQuery: true,
|
|
138
|
+
title: "User ID",
|
|
139
|
+
description: "ID of the person who made these choices.",
|
|
140
|
+
}),
|
|
141
|
+
(0, typeorm_1.Column)({
|
|
142
|
+
type: ColumnType_1.default.ObjectID,
|
|
143
|
+
nullable: false,
|
|
144
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
145
|
+
}),
|
|
146
|
+
__metadata("design:type", ObjectID_1.default)
|
|
147
|
+
], ProjectUserPreference.prototype, "userId", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, ColumnAccessControl_1.default)({
|
|
150
|
+
create: [],
|
|
151
|
+
read: [],
|
|
152
|
+
update: [],
|
|
153
|
+
}),
|
|
154
|
+
(0, TableColumn_1.default)({
|
|
155
|
+
required: false,
|
|
156
|
+
type: TableColumnType_1.default.JSON,
|
|
157
|
+
title: "Pinned Products",
|
|
158
|
+
description: "The products this person pinned to the nav bar in this project, in the order they were pinned, by their product keys (at most five).",
|
|
159
|
+
example: '["monitors", "logs"]',
|
|
160
|
+
}),
|
|
161
|
+
(0, typeorm_1.Column)({
|
|
162
|
+
type: ColumnType_1.default.JSON,
|
|
163
|
+
nullable: true,
|
|
164
|
+
unique: false,
|
|
165
|
+
}),
|
|
166
|
+
__metadata("design:type", Array)
|
|
167
|
+
], ProjectUserPreference.prototype, "pinnedProducts", void 0);
|
|
168
|
+
ProjectUserPreference = __decorate([
|
|
169
|
+
(0, TenantColumn_1.default)("projectId"),
|
|
170
|
+
(0, TableAccessControl_1.default)({
|
|
171
|
+
create: [],
|
|
172
|
+
read: [],
|
|
173
|
+
delete: [],
|
|
174
|
+
update: [],
|
|
175
|
+
}),
|
|
176
|
+
(0, CrudApiEndpoint_1.default)(new Route_1.default("/project-user-preference")),
|
|
177
|
+
(0, TableMetadata_1.default)({
|
|
178
|
+
tableName: "ProjectUserPreference",
|
|
179
|
+
singularName: "Project User Preference",
|
|
180
|
+
pluralName: "Project User Preferences",
|
|
181
|
+
icon: IconProp_1.default.User,
|
|
182
|
+
tableDescription: "What a person chose for themselves in a project, such as the products they pinned to the nav bar. Only they see it.",
|
|
183
|
+
})
|
|
184
|
+
/*
|
|
185
|
+
* One row per person in a project. Also how every read finds a person's row
|
|
186
|
+
* (projectId leads), so the table needs no other index.
|
|
187
|
+
*/
|
|
188
|
+
,
|
|
189
|
+
(0, typeorm_1.Index)(["projectId", "userId"], { unique: true }),
|
|
190
|
+
(0, typeorm_1.Entity)({
|
|
191
|
+
name: "ProjectUserPreference",
|
|
192
|
+
})
|
|
193
|
+
], ProjectUserPreference);
|
|
194
|
+
exports.default = ProjectUserPreference;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Project from "./Project.mjs";
|
|
2
|
+
import RumApplication from "./RumApplication.mjs";
|
|
3
|
+
import User from "./User.mjs";
|
|
4
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
|
|
5
|
+
import { JSONObject } from "../../Types/JSON.mjs";
|
|
6
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
7
|
+
import { ProductAnalyticsSavedViewType } from "../../Types/Rum/ProductAnalyticsSavedViews.mjs";
|
|
8
|
+
export default class RumProductAnalyticsSavedView extends BaseModel {
|
|
9
|
+
project?: Project;
|
|
10
|
+
projectId?: ObjectID;
|
|
11
|
+
rumApplication?: RumApplication;
|
|
12
|
+
rumApplicationId?: ObjectID;
|
|
13
|
+
name?: string;
|
|
14
|
+
viewType?: ProductAnalyticsSavedViewType;
|
|
15
|
+
definition?: JSONObject;
|
|
16
|
+
createdByUser?: User;
|
|
17
|
+
createdByUserId?: ObjectID;
|
|
18
|
+
deletedByUser?: User;
|
|
19
|
+
deletedByUserId?: ObjectID;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Project from "./Project";
|
|
2
|
+
import RumApplication from "./RumApplication";
|
|
3
|
+
import User from "./User";
|
|
4
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
|
|
5
|
+
import { JSONObject } from "../../Types/JSON";
|
|
6
|
+
import ObjectID from "../../Types/ObjectID";
|
|
7
|
+
import { ProductAnalyticsSavedViewType } from "../../Types/Rum/ProductAnalyticsSavedViews";
|
|
8
|
+
export default class RumProductAnalyticsSavedView extends BaseModel {
|
|
9
|
+
project?: Project;
|
|
10
|
+
projectId?: ObjectID;
|
|
11
|
+
rumApplication?: RumApplication;
|
|
12
|
+
rumApplicationId?: ObjectID;
|
|
13
|
+
name?: string;
|
|
14
|
+
viewType?: ProductAnalyticsSavedViewType;
|
|
15
|
+
definition?: JSONObject;
|
|
16
|
+
createdByUser?: User;
|
|
17
|
+
createdByUserId?: ObjectID;
|
|
18
|
+
deletedByUser?: User;
|
|
19
|
+
deletedByUserId?: ObjectID;
|
|
20
|
+
}
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const Project_1 = __importDefault(require("./Project"));
|
|
16
|
+
const RumApplication_1 = __importDefault(require("./RumApplication"));
|
|
17
|
+
const User_1 = __importDefault(require("./User"));
|
|
18
|
+
const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
|
|
19
|
+
const Route_1 = __importDefault(require("../../Types/API/Route"));
|
|
20
|
+
const SubscriptionPlan_1 = require("../../Types/Billing/SubscriptionPlan");
|
|
21
|
+
const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
|
|
22
|
+
const TableAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableAccessControl"));
|
|
23
|
+
const TableBillingAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableBillingAccessControl"));
|
|
24
|
+
const ColumnLength_1 = __importDefault(require("../../Types/Database/ColumnLength"));
|
|
25
|
+
const ColumnType_1 = __importDefault(require("../../Types/Database/ColumnType"));
|
|
26
|
+
const CrudApiEndpoint_1 = __importDefault(require("../../Types/Database/CrudApiEndpoint"));
|
|
27
|
+
const EnableDocumentation_1 = __importDefault(require("../../Types/Database/EnableDocumentation"));
|
|
28
|
+
const TableColumn_1 = __importDefault(require("../../Types/Database/TableColumn"));
|
|
29
|
+
const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
|
|
30
|
+
const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetadata"));
|
|
31
|
+
const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
|
|
32
|
+
const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
|
|
33
|
+
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
34
|
+
const Permission_1 = __importDefault(require("../../Types/Permission"));
|
|
35
|
+
const ProductAnalyticsSavedViews_1 = require("../../Types/Rum/ProductAnalyticsSavedViews");
|
|
36
|
+
const typeorm_1 = require("typeorm");
|
|
37
|
+
/*
|
|
38
|
+
* A funnel or a retention table a team saved from a RUM application's
|
|
39
|
+
* Funnels or User Retention page (issue #6630), under a name: its
|
|
40
|
+
* definition (Types/Rum/ProductAnalyticsSavedViews), which the page opens
|
|
41
|
+
* again and a dashboard widget reads with the dashboard's time range.
|
|
42
|
+
*
|
|
43
|
+
* Who may see and keep them is who may read what they read. The product
|
|
44
|
+
* analytics reads are /list's (TelemetryAPI's requireSessionReplayListAccess
|
|
45
|
+
* and its SESSION_REPLAY_LIST_PERMISSIONS): whoever can read an
|
|
46
|
+
* application's funnels can save one, and nobody else lists them -
|
|
47
|
+
* Permission.Viewer and the RUM application's read permission are not
|
|
48
|
+
* among them, as they are not among the reads'. A role limited to labels
|
|
49
|
+
* reaches the saved definitions of the applications carrying them: the
|
|
50
|
+
* application the row names (rumApplicationId) carries its labels.
|
|
51
|
+
*
|
|
52
|
+
* The plan is the reads': saving what the project cannot read is not
|
|
53
|
+
* offered either.
|
|
54
|
+
*/
|
|
55
|
+
const ACCESS_PERMISSIONS = [
|
|
56
|
+
Permission_1.default.ProjectOwner,
|
|
57
|
+
Permission_1.default.ProjectAdmin,
|
|
58
|
+
Permission_1.default.TelemetryAdmin,
|
|
59
|
+
Permission_1.default.ReadRumSessionReplay,
|
|
60
|
+
Permission_1.default.ReadRumSessionReplayPayload,
|
|
61
|
+
];
|
|
62
|
+
let RumProductAnalyticsSavedView = class RumProductAnalyticsSavedView extends DatabaseBaseModel_1.default {
|
|
63
|
+
constructor() {
|
|
64
|
+
super(...arguments);
|
|
65
|
+
this.project = undefined;
|
|
66
|
+
this.projectId = undefined;
|
|
67
|
+
this.rumApplication = undefined;
|
|
68
|
+
/*
|
|
69
|
+
* Kept: a saved view is of its application, and moving it to another
|
|
70
|
+
* would carry events and properties that one may not have.
|
|
71
|
+
*/
|
|
72
|
+
this.rumApplicationId = undefined;
|
|
73
|
+
this.name = undefined;
|
|
74
|
+
/*
|
|
75
|
+
* What it is: a funnel or a retention table. Kept: its definition is
|
|
76
|
+
* read as one or the other, and a dashboard widget draws one kind.
|
|
77
|
+
*/
|
|
78
|
+
this.viewType = undefined;
|
|
79
|
+
this.definition = undefined;
|
|
80
|
+
this.createdByUser = undefined;
|
|
81
|
+
/*
|
|
82
|
+
* create: []: OneUptime writes who saved it (UserAttribution), never a
|
|
83
|
+
* request, so an API key cannot put a colleague's name on it.
|
|
84
|
+
*/
|
|
85
|
+
this.createdByUserId = undefined;
|
|
86
|
+
this.deletedByUser = undefined;
|
|
87
|
+
this.deletedByUserId = undefined;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, ColumnAccessControl_1.default)({
|
|
92
|
+
create: ACCESS_PERMISSIONS,
|
|
93
|
+
read: ACCESS_PERMISSIONS,
|
|
94
|
+
update: [],
|
|
95
|
+
}),
|
|
96
|
+
(0, TableColumn_1.default)({
|
|
97
|
+
manyToOneRelationColumn: "projectId",
|
|
98
|
+
type: TableColumnType_1.default.Entity,
|
|
99
|
+
modelType: Project_1.default,
|
|
100
|
+
title: "Project",
|
|
101
|
+
description: "Relation to the project this saved view belongs to.",
|
|
102
|
+
}),
|
|
103
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
104
|
+
return Project_1.default;
|
|
105
|
+
}, {
|
|
106
|
+
eager: false,
|
|
107
|
+
nullable: true,
|
|
108
|
+
onDelete: "CASCADE",
|
|
109
|
+
orphanedRowAction: "nullify",
|
|
110
|
+
}),
|
|
111
|
+
(0, typeorm_1.JoinColumn)({ name: "projectId" }),
|
|
112
|
+
__metadata("design:type", Project_1.default)
|
|
113
|
+
], RumProductAnalyticsSavedView.prototype, "project", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, ColumnAccessControl_1.default)({
|
|
116
|
+
create: ACCESS_PERMISSIONS,
|
|
117
|
+
read: ACCESS_PERMISSIONS,
|
|
118
|
+
update: [],
|
|
119
|
+
}),
|
|
120
|
+
(0, typeorm_1.Index)(),
|
|
121
|
+
(0, TableColumn_1.default)({
|
|
122
|
+
type: TableColumnType_1.default.ObjectID,
|
|
123
|
+
required: true,
|
|
124
|
+
canReadOnRelationQuery: true,
|
|
125
|
+
title: "Project ID",
|
|
126
|
+
description: "ID of the project this saved view belongs to.",
|
|
127
|
+
}),
|
|
128
|
+
(0, typeorm_1.Column)({
|
|
129
|
+
type: ColumnType_1.default.ObjectID,
|
|
130
|
+
nullable: false,
|
|
131
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
132
|
+
}),
|
|
133
|
+
__metadata("design:type", ObjectID_1.default)
|
|
134
|
+
], RumProductAnalyticsSavedView.prototype, "projectId", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, ColumnAccessControl_1.default)({
|
|
137
|
+
create: ACCESS_PERMISSIONS,
|
|
138
|
+
read: ACCESS_PERMISSIONS,
|
|
139
|
+
update: [],
|
|
140
|
+
}),
|
|
141
|
+
(0, TableColumn_1.default)({
|
|
142
|
+
manyToOneRelationColumn: "rumApplicationId",
|
|
143
|
+
type: TableColumnType_1.default.Entity,
|
|
144
|
+
modelType: RumApplication_1.default,
|
|
145
|
+
title: "RUM Application",
|
|
146
|
+
description: "The RUM application whose product analytics this saved view reads.",
|
|
147
|
+
}),
|
|
148
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
149
|
+
return RumApplication_1.default;
|
|
150
|
+
}, {
|
|
151
|
+
eager: false,
|
|
152
|
+
nullable: true,
|
|
153
|
+
onDelete: "CASCADE",
|
|
154
|
+
orphanedRowAction: "nullify",
|
|
155
|
+
}),
|
|
156
|
+
(0, typeorm_1.JoinColumn)({ name: "rumApplicationId" }),
|
|
157
|
+
__metadata("design:type", RumApplication_1.default)
|
|
158
|
+
], RumProductAnalyticsSavedView.prototype, "rumApplication", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, ColumnAccessControl_1.default)({
|
|
161
|
+
create: ACCESS_PERMISSIONS,
|
|
162
|
+
read: ACCESS_PERMISSIONS,
|
|
163
|
+
update: [],
|
|
164
|
+
}),
|
|
165
|
+
(0, typeorm_1.Index)(),
|
|
166
|
+
(0, TableColumn_1.default)({
|
|
167
|
+
type: TableColumnType_1.default.ObjectID,
|
|
168
|
+
required: true,
|
|
169
|
+
canReadOnRelationQuery: true,
|
|
170
|
+
title: "RUM Application ID",
|
|
171
|
+
description: "ID of the RUM application whose product analytics this saved view reads.",
|
|
172
|
+
}),
|
|
173
|
+
(0, typeorm_1.Column)({
|
|
174
|
+
type: ColumnType_1.default.ObjectID,
|
|
175
|
+
nullable: false,
|
|
176
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
177
|
+
}),
|
|
178
|
+
__metadata("design:type", ObjectID_1.default)
|
|
179
|
+
], RumProductAnalyticsSavedView.prototype, "rumApplicationId", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, ColumnAccessControl_1.default)({
|
|
182
|
+
create: ACCESS_PERMISSIONS,
|
|
183
|
+
read: ACCESS_PERMISSIONS,
|
|
184
|
+
update: ACCESS_PERMISSIONS,
|
|
185
|
+
}),
|
|
186
|
+
(0, TableColumn_1.default)({
|
|
187
|
+
required: true,
|
|
188
|
+
type: TableColumnType_1.default.ShortText,
|
|
189
|
+
canReadOnRelationQuery: true,
|
|
190
|
+
title: "Name",
|
|
191
|
+
description: "What the team calls this funnel or retention table.",
|
|
192
|
+
}),
|
|
193
|
+
(0, typeorm_1.Column)({
|
|
194
|
+
nullable: false,
|
|
195
|
+
type: ColumnType_1.default.ShortText,
|
|
196
|
+
length: ColumnLength_1.default.ShortText,
|
|
197
|
+
}),
|
|
198
|
+
__metadata("design:type", String)
|
|
199
|
+
], RumProductAnalyticsSavedView.prototype, "name", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, ColumnAccessControl_1.default)({
|
|
202
|
+
create: ACCESS_PERMISSIONS,
|
|
203
|
+
read: ACCESS_PERMISSIONS,
|
|
204
|
+
update: [],
|
|
205
|
+
}),
|
|
206
|
+
(0, TableColumn_1.default)({
|
|
207
|
+
required: true,
|
|
208
|
+
type: TableColumnType_1.default.ShortText,
|
|
209
|
+
allowedValues: Object.values(ProductAnalyticsSavedViews_1.ProductAnalyticsSavedViewType),
|
|
210
|
+
canReadOnRelationQuery: true,
|
|
211
|
+
title: "View Type",
|
|
212
|
+
description: "What this saved view is: a funnel (funnel) or a retention table (retention).",
|
|
213
|
+
}),
|
|
214
|
+
(0, typeorm_1.Column)({
|
|
215
|
+
nullable: false,
|
|
216
|
+
type: ColumnType_1.default.ShortText,
|
|
217
|
+
length: ColumnLength_1.default.ShortText,
|
|
218
|
+
}),
|
|
219
|
+
__metadata("design:type", String)
|
|
220
|
+
], RumProductAnalyticsSavedView.prototype, "viewType", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, ColumnAccessControl_1.default)({
|
|
223
|
+
create: ACCESS_PERMISSIONS,
|
|
224
|
+
read: ACCESS_PERMISSIONS,
|
|
225
|
+
update: ACCESS_PERMISSIONS,
|
|
226
|
+
}),
|
|
227
|
+
(0, TableColumn_1.default)({
|
|
228
|
+
required: true,
|
|
229
|
+
type: TableColumnType_1.default.JSON,
|
|
230
|
+
title: "Definition",
|
|
231
|
+
description: "What it reads. A funnel: its steps (each an event's kind and name), the time to finish it (windowMs) and its segment (filters). A retention table: its startEvent, returnEvent, period (day, week or month) and segment (filters). The time range is not part of it: a page keeps its own, and a dashboard widget reads the dashboard's.",
|
|
232
|
+
}),
|
|
233
|
+
(0, typeorm_1.Column)({
|
|
234
|
+
type: ColumnType_1.default.JSON,
|
|
235
|
+
nullable: false,
|
|
236
|
+
}),
|
|
237
|
+
__metadata("design:type", Object)
|
|
238
|
+
], RumProductAnalyticsSavedView.prototype, "definition", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, ColumnAccessControl_1.default)({
|
|
241
|
+
create: [],
|
|
242
|
+
read: ACCESS_PERMISSIONS,
|
|
243
|
+
update: [],
|
|
244
|
+
}),
|
|
245
|
+
(0, TableColumn_1.default)({
|
|
246
|
+
manyToOneRelationColumn: "createdByUserId",
|
|
247
|
+
type: TableColumnType_1.default.Entity,
|
|
248
|
+
modelType: User_1.default,
|
|
249
|
+
title: "Created By User",
|
|
250
|
+
description: "Relation to the user who saved this view.",
|
|
251
|
+
}),
|
|
252
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
253
|
+
return User_1.default;
|
|
254
|
+
}, {
|
|
255
|
+
eager: false,
|
|
256
|
+
nullable: true,
|
|
257
|
+
onDelete: "SET NULL",
|
|
258
|
+
orphanedRowAction: "nullify",
|
|
259
|
+
}),
|
|
260
|
+
(0, typeorm_1.JoinColumn)({ name: "createdByUserId" }),
|
|
261
|
+
__metadata("design:type", User_1.default)
|
|
262
|
+
], RumProductAnalyticsSavedView.prototype, "createdByUser", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, ColumnAccessControl_1.default)({
|
|
265
|
+
create: [],
|
|
266
|
+
read: ACCESS_PERMISSIONS,
|
|
267
|
+
update: [],
|
|
268
|
+
}),
|
|
269
|
+
(0, TableColumn_1.default)({
|
|
270
|
+
type: TableColumnType_1.default.ObjectID,
|
|
271
|
+
title: "Created By User ID",
|
|
272
|
+
description: "ID of the user who saved this view.",
|
|
273
|
+
}),
|
|
274
|
+
(0, typeorm_1.Column)({
|
|
275
|
+
type: ColumnType_1.default.ObjectID,
|
|
276
|
+
nullable: true,
|
|
277
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
278
|
+
}),
|
|
279
|
+
__metadata("design:type", ObjectID_1.default)
|
|
280
|
+
], RumProductAnalyticsSavedView.prototype, "createdByUserId", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
(0, ColumnAccessControl_1.default)({
|
|
283
|
+
create: [],
|
|
284
|
+
read: ACCESS_PERMISSIONS,
|
|
285
|
+
update: [],
|
|
286
|
+
}),
|
|
287
|
+
(0, TableColumn_1.default)({
|
|
288
|
+
manyToOneRelationColumn: "deletedByUserId",
|
|
289
|
+
type: TableColumnType_1.default.Entity,
|
|
290
|
+
modelType: User_1.default,
|
|
291
|
+
title: "Deleted By User",
|
|
292
|
+
description: "Relation to the user who deleted this saved view.",
|
|
293
|
+
}),
|
|
294
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
295
|
+
return User_1.default;
|
|
296
|
+
}, {
|
|
297
|
+
eager: false,
|
|
298
|
+
nullable: true,
|
|
299
|
+
onDelete: "SET NULL",
|
|
300
|
+
orphanedRowAction: "nullify",
|
|
301
|
+
}),
|
|
302
|
+
(0, typeorm_1.JoinColumn)({ name: "deletedByUserId" }),
|
|
303
|
+
__metadata("design:type", User_1.default)
|
|
304
|
+
], RumProductAnalyticsSavedView.prototype, "deletedByUser", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
(0, ColumnAccessControl_1.default)({
|
|
307
|
+
create: [],
|
|
308
|
+
read: ACCESS_PERMISSIONS,
|
|
309
|
+
update: [],
|
|
310
|
+
}),
|
|
311
|
+
(0, TableColumn_1.default)({
|
|
312
|
+
type: TableColumnType_1.default.ObjectID,
|
|
313
|
+
title: "Deleted By User ID",
|
|
314
|
+
description: "ID of the user who deleted this saved view.",
|
|
315
|
+
}),
|
|
316
|
+
(0, typeorm_1.Column)({
|
|
317
|
+
type: ColumnType_1.default.ObjectID,
|
|
318
|
+
nullable: true,
|
|
319
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
320
|
+
}),
|
|
321
|
+
__metadata("design:type", ObjectID_1.default)
|
|
322
|
+
], RumProductAnalyticsSavedView.prototype, "deletedByUserId", void 0);
|
|
323
|
+
RumProductAnalyticsSavedView = __decorate([
|
|
324
|
+
(0, EnableDocumentation_1.default)(),
|
|
325
|
+
(0, TableBillingAccessControl_1.default)({
|
|
326
|
+
create: SubscriptionPlan_1.PlanType.Growth,
|
|
327
|
+
read: SubscriptionPlan_1.PlanType.Growth,
|
|
328
|
+
update: SubscriptionPlan_1.PlanType.Growth,
|
|
329
|
+
delete: SubscriptionPlan_1.PlanType.Growth,
|
|
330
|
+
}),
|
|
331
|
+
(0, TenantColumn_1.default)("projectId"),
|
|
332
|
+
(0, TableAccessControl_1.default)({
|
|
333
|
+
create: ACCESS_PERMISSIONS,
|
|
334
|
+
read: ACCESS_PERMISSIONS,
|
|
335
|
+
update: ACCESS_PERMISSIONS,
|
|
336
|
+
delete: ACCESS_PERMISSIONS,
|
|
337
|
+
}),
|
|
338
|
+
(0, CrudApiEndpoint_1.default)(new Route_1.default("/rum-product-analytics-saved-view")),
|
|
339
|
+
(0, TableMetadata_1.default)({
|
|
340
|
+
tableName: "RumProductAnalyticsSavedView",
|
|
341
|
+
singularName: "Saved Product Analytics View",
|
|
342
|
+
pluralName: "Saved Product Analytics Views",
|
|
343
|
+
icon: IconProp_1.default.Bookmark,
|
|
344
|
+
tableDescription: "Funnels and retention tables saved from a RUM application's product analytics, by name, to open again or show on a dashboard.",
|
|
345
|
+
})
|
|
346
|
+
/* How a page lists them: one application's, of one kind. */
|
|
347
|
+
,
|
|
348
|
+
(0, typeorm_1.Index)(["projectId", "rumApplicationId", "viewType"]),
|
|
349
|
+
(0, typeorm_1.Entity)({
|
|
350
|
+
name: "RumProductAnalyticsSavedView",
|
|
351
|
+
})
|
|
352
|
+
], RumProductAnalyticsSavedView);
|
|
353
|
+
exports.default = RumProductAnalyticsSavedView;
|
|
@@ -300,7 +300,14 @@ __decorate([
|
|
|
300
300
|
create: CREATE_PERMISSIONS,
|
|
301
301
|
read: READ_PERMISSIONS,
|
|
302
302
|
update: [],
|
|
303
|
-
})
|
|
303
|
+
})
|
|
304
|
+
/*
|
|
305
|
+
* Indexed: deleting the record it points at finds these rows by it
|
|
306
|
+
* (the foreign key's ON DELETE), as the purge of resolved incidents
|
|
307
|
+
* and alerts does in batches (#6903), without reading the whole table.
|
|
308
|
+
*/
|
|
309
|
+
,
|
|
310
|
+
(0, typeorm_1.Index)(),
|
|
304
311
|
(0, TableColumn_1.default)({
|
|
305
312
|
type: TableColumnType_1.default.ObjectID,
|
|
306
313
|
required: false,
|
|
@@ -344,7 +351,14 @@ __decorate([
|
|
|
344
351
|
create: CREATE_PERMISSIONS,
|
|
345
352
|
read: READ_PERMISSIONS,
|
|
346
353
|
update: [],
|
|
347
|
-
})
|
|
354
|
+
})
|
|
355
|
+
/*
|
|
356
|
+
* Indexed: deleting the record it points at finds these rows by it
|
|
357
|
+
* (the foreign key's ON DELETE), as the purge of resolved incidents
|
|
358
|
+
* and alerts does in batches (#6903), without reading the whole table.
|
|
359
|
+
*/
|
|
360
|
+
,
|
|
361
|
+
(0, typeorm_1.Index)(),
|
|
348
362
|
(0, TableColumn_1.default)({
|
|
349
363
|
type: TableColumnType_1.default.ObjectID,
|
|
350
364
|
required: false,
|
|
@@ -332,7 +332,14 @@ __decorate([
|
|
|
332
332
|
__metadata("design:type", Incident_1.default)
|
|
333
333
|
], RumSessionReplayView.prototype, "linkedIncident", void 0);
|
|
334
334
|
__decorate([
|
|
335
|
-
(0, ColumnAccessControl_1.default)({ create: [], read: READ_PERMISSIONS, update: [] })
|
|
335
|
+
(0, ColumnAccessControl_1.default)({ create: [], read: READ_PERMISSIONS, update: [] })
|
|
336
|
+
/*
|
|
337
|
+
* Indexed: deleting the record it points at finds these rows by it
|
|
338
|
+
* (the foreign key's ON DELETE), as the purge of resolved incidents
|
|
339
|
+
* and alerts does in batches (#6903), without reading the whole table.
|
|
340
|
+
*/
|
|
341
|
+
,
|
|
342
|
+
(0, typeorm_1.Index)(),
|
|
336
343
|
(0, TableColumn_1.default)({
|
|
337
344
|
type: TableColumnType_1.default.ObjectID,
|
|
338
345
|
required: false,
|
|
@@ -949,7 +949,14 @@ __decorate([
|
|
|
949
949
|
__metadata("design:type", Incident_1.default)
|
|
950
950
|
], SecurityCase.prototype, "incident", void 0);
|
|
951
951
|
__decorate([
|
|
952
|
-
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess)
|
|
952
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess)
|
|
953
|
+
/*
|
|
954
|
+
* Indexed: deleting the record it points at finds these rows by it
|
|
955
|
+
* (the foreign key's ON DELETE), as the purge of resolved incidents
|
|
956
|
+
* and alerts does in batches (#6903), without reading the whole table.
|
|
957
|
+
*/
|
|
958
|
+
,
|
|
959
|
+
(0, typeorm_1.Index)(),
|
|
953
960
|
(0, TableColumn_1.default)({
|
|
954
961
|
type: TableColumnType_1.default.ObjectID,
|
|
955
962
|
canReadOnRelationQuery: true,
|