@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,539 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.forEachBracketedLabel = exports.getLinkReferenceDefinitions = exports.normalizeLinkLabel = void 0;
|
|
4
|
+
const RegExpCharacterClasses_1 = require("../RegExpCharacterClasses");
|
|
5
|
+
const SPACE = 0x20;
|
|
6
|
+
const TAB = 0x09;
|
|
7
|
+
const LINE_FEED = 0x0a;
|
|
8
|
+
const DOUBLE_QUOTE = 0x22;
|
|
9
|
+
const HASH = 0x23;
|
|
10
|
+
const SINGLE_QUOTE = 0x27;
|
|
11
|
+
const OPEN_PARENTHESIS = 0x28;
|
|
12
|
+
const ASTERISK = 0x2a;
|
|
13
|
+
const DASH = 0x2d;
|
|
14
|
+
const COLON = 0x3a;
|
|
15
|
+
const LESS_THAN = 0x3c;
|
|
16
|
+
const GREATER_THAN = 0x3e;
|
|
17
|
+
const OPEN_BRACKET = 0x5b;
|
|
18
|
+
const BACKSLASH = 0x5c;
|
|
19
|
+
const CLOSE_BRACKET = 0x5d;
|
|
20
|
+
const UNDERSCORE = 0x5f;
|
|
21
|
+
const BACKTICK = 0x60;
|
|
22
|
+
const TILDE = 0x7e;
|
|
23
|
+
/*
|
|
24
|
+
* A label as marked matches it: in lower case, each run of white space one
|
|
25
|
+
* space. Not trimmed - "[ home ]" is not "[home]" to marked - and escapes
|
|
26
|
+
* stay as written. Read with a loop: a label can be as long as its text.
|
|
27
|
+
*/
|
|
28
|
+
const normalizeLinkLabel = (label) => {
|
|
29
|
+
const lowered = label.toLowerCase();
|
|
30
|
+
let normalized = "";
|
|
31
|
+
let copiedUpTo = 0;
|
|
32
|
+
let index = 0;
|
|
33
|
+
while (index < lowered.length) {
|
|
34
|
+
if (!(0, RegExpCharacterClasses_1.isWhiteSpaceCode)(lowered.charCodeAt(index))) {
|
|
35
|
+
index++;
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
let runEnd = index + 1;
|
|
39
|
+
while (runEnd < lowered.length &&
|
|
40
|
+
(0, RegExpCharacterClasses_1.isWhiteSpaceCode)(lowered.charCodeAt(runEnd))) {
|
|
41
|
+
runEnd++;
|
|
42
|
+
}
|
|
43
|
+
// One space is already as marked makes it.
|
|
44
|
+
if (runEnd - index > 1 || lowered.charCodeAt(index) !== SPACE) {
|
|
45
|
+
normalized += `${lowered.slice(copiedUpTo, index)} `;
|
|
46
|
+
copiedUpTo = runEnd;
|
|
47
|
+
}
|
|
48
|
+
index = runEnd;
|
|
49
|
+
}
|
|
50
|
+
return copiedUpTo === 0 ? lowered : normalized + lowered.slice(copiedUpTo);
|
|
51
|
+
};
|
|
52
|
+
exports.normalizeLinkLabel = normalizeLinkLabel;
|
|
53
|
+
// Whether text[start, end) is all white space, as \s reads it: true when empty.
|
|
54
|
+
const isAllWhiteSpace = (text, start, end) => {
|
|
55
|
+
for (let index = start; index < end; index++) {
|
|
56
|
+
if (!(0, RegExpCharacterClasses_1.isWhiteSpaceCode)(text.charCodeAt(index))) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return true;
|
|
61
|
+
};
|
|
62
|
+
// After the spaces - only spaces - from `index`.
|
|
63
|
+
const skipSpaces = (text, index) => {
|
|
64
|
+
let at = index;
|
|
65
|
+
while (text.charCodeAt(at) === SPACE) {
|
|
66
|
+
at++;
|
|
67
|
+
}
|
|
68
|
+
return at;
|
|
69
|
+
};
|
|
70
|
+
/*
|
|
71
|
+
* After the indent of the line that starts at `lineStart`, as marked reads
|
|
72
|
+
* it: the tabs right after its first spaces are spaces to marked, any tab
|
|
73
|
+
* after that is not.
|
|
74
|
+
*/
|
|
75
|
+
const skipIndent = (text, lineStart) => {
|
|
76
|
+
let at = skipSpaces(text, lineStart);
|
|
77
|
+
while (text.charCodeAt(at) === TAB) {
|
|
78
|
+
at++;
|
|
79
|
+
}
|
|
80
|
+
return skipSpaces(text, at);
|
|
81
|
+
};
|
|
82
|
+
/*
|
|
83
|
+
* Where the line ends if only spaces come after `index` on it: its line
|
|
84
|
+
* break, or the end of the text. -1 when anything else does.
|
|
85
|
+
*/
|
|
86
|
+
const lineEndAfterSpaces = (text, index) => {
|
|
87
|
+
const at = skipSpaces(text, index);
|
|
88
|
+
if (at >= text.length || text.charCodeAt(at) === LINE_FEED) {
|
|
89
|
+
return Math.min(at, text.length);
|
|
90
|
+
}
|
|
91
|
+
return -1;
|
|
92
|
+
};
|
|
93
|
+
// The start of the line after the one whose line break, or end, is `lineEnd`.
|
|
94
|
+
const nextLineStart = (text, lineEnd) => {
|
|
95
|
+
return lineEnd >= text.length ? text.length : lineEnd + 1;
|
|
96
|
+
};
|
|
97
|
+
const remembered = (find) => {
|
|
98
|
+
let askedFrom = Number.POSITIVE_INFINITY;
|
|
99
|
+
let found = -1;
|
|
100
|
+
return (from) => {
|
|
101
|
+
if (from < askedFrom || (found !== -1 && from > found)) {
|
|
102
|
+
askedFrom = from;
|
|
103
|
+
found = find(from);
|
|
104
|
+
}
|
|
105
|
+
return found;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
const getTitleFinders = (text) => {
|
|
109
|
+
const indexOf = (part) => {
|
|
110
|
+
return remembered((from) => {
|
|
111
|
+
return text.indexOf(part, from);
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
// Made the first time a title asks: most texts never do.
|
|
115
|
+
let escapedQuotesEndingLines = null;
|
|
116
|
+
return {
|
|
117
|
+
freeDoubleQuote: remembered((from) => {
|
|
118
|
+
let quote = text.indexOf('"', from);
|
|
119
|
+
while (quote > 0 && text.charCodeAt(quote - 1) === BACKSLASH) {
|
|
120
|
+
quote = text.indexOf('"', quote + 1);
|
|
121
|
+
}
|
|
122
|
+
return quote;
|
|
123
|
+
}),
|
|
124
|
+
singleQuote: indexOf("'"),
|
|
125
|
+
blankLine: indexOf("\n\n"),
|
|
126
|
+
openParenthesis: indexOf("("),
|
|
127
|
+
closeParenthesis: indexOf(")"),
|
|
128
|
+
lastEscapedQuoteEndingLine: (from, before) => {
|
|
129
|
+
if (escapedQuotesEndingLines === null) {
|
|
130
|
+
escapedQuotesEndingLines = [];
|
|
131
|
+
for (let quote = text.indexOf('"'); quote !== -1; quote = text.indexOf('"', quote + 1)) {
|
|
132
|
+
if (quote > 0 &&
|
|
133
|
+
text.charCodeAt(quote - 1) === BACKSLASH &&
|
|
134
|
+
lineEndAfterSpaces(text, quote + 1) !== -1) {
|
|
135
|
+
escapedQuotesEndingLines.push(quote);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
// The last one before `before`, by halves.
|
|
140
|
+
let low = 0;
|
|
141
|
+
let high = escapedQuotesEndingLines.length;
|
|
142
|
+
while (low < high) {
|
|
143
|
+
const middle = Math.floor((low + high) / 2);
|
|
144
|
+
if (escapedQuotesEndingLines[middle] < before) {
|
|
145
|
+
low = middle + 1;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
high = middle;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
const last = escapedQuotesEndingLines[low - 1];
|
|
152
|
+
return last !== undefined && last >= from ? last : -1;
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
/*
|
|
157
|
+
* After the title that opens at `titleStart`, where only spaces follow it on
|
|
158
|
+
* its line; -1 when no title opens there that its line ends after.
|
|
159
|
+
*/
|
|
160
|
+
const readTitle = (text, titleStart, finders) => {
|
|
161
|
+
const opening = text.charCodeAt(titleStart);
|
|
162
|
+
if (opening === DOUBLE_QUOTE) {
|
|
163
|
+
/*
|
|
164
|
+
* marked's title runs to the first quote no backslash keeps; when its
|
|
165
|
+
* line does not end there, it takes a quote a backslash kept as the
|
|
166
|
+
* closing one, the last first.
|
|
167
|
+
*/
|
|
168
|
+
const free = finders.freeDoubleQuote(titleStart + 1);
|
|
169
|
+
if (free !== -1 && lineEndAfterSpaces(text, free + 1) !== -1) {
|
|
170
|
+
return free + 1;
|
|
171
|
+
}
|
|
172
|
+
const escaped = finders.lastEscapedQuoteEndingLine(titleStart + 2, free === -1 ? text.length : free);
|
|
173
|
+
return escaped === -1 ? -1 : escaped + 1;
|
|
174
|
+
}
|
|
175
|
+
if (opening === SINGLE_QUOTE) {
|
|
176
|
+
const close = finders.singleQuote(titleStart + 1);
|
|
177
|
+
if (close === -1) {
|
|
178
|
+
return -1;
|
|
179
|
+
}
|
|
180
|
+
const blankLine = finders.blankLine(titleStart + 1);
|
|
181
|
+
if (blankLine !== -1 && blankLine + 2 <= close) {
|
|
182
|
+
return -1;
|
|
183
|
+
}
|
|
184
|
+
return lineEndAfterSpaces(text, close + 1) === -1 ? -1 : close + 1;
|
|
185
|
+
}
|
|
186
|
+
if (opening === OPEN_PARENTHESIS) {
|
|
187
|
+
const close = finders.closeParenthesis(titleStart + 1);
|
|
188
|
+
if (close === -1) {
|
|
189
|
+
return -1;
|
|
190
|
+
}
|
|
191
|
+
const open = finders.openParenthesis(titleStart + 1);
|
|
192
|
+
if (open !== -1 && open < close) {
|
|
193
|
+
return -1;
|
|
194
|
+
}
|
|
195
|
+
return lineEndAfterSpaces(text, close + 1) === -1 ? -1 : close + 1;
|
|
196
|
+
}
|
|
197
|
+
return -1;
|
|
198
|
+
};
|
|
199
|
+
/*
|
|
200
|
+
* The rest of a definition whose address ends at `destinationEnd`: its
|
|
201
|
+
* title if it has one its line ends after, else nothing but spaces to the
|
|
202
|
+
* end of the address's line. null when neither.
|
|
203
|
+
*/
|
|
204
|
+
const readAfterDestination = (text, definition, destinationEnd, finders) => {
|
|
205
|
+
const afterSpaces = skipSpaces(text, destinationEnd);
|
|
206
|
+
// A title comes after spaces, a line break, or both.
|
|
207
|
+
if (afterSpaces > destinationEnd ||
|
|
208
|
+
text.charCodeAt(afterSpaces) === LINE_FEED) {
|
|
209
|
+
const titleStart = text.charCodeAt(afterSpaces) === LINE_FEED
|
|
210
|
+
? skipIndent(text, afterSpaces + 1)
|
|
211
|
+
: afterSpaces;
|
|
212
|
+
const titleEnd = readTitle(text, titleStart, finders);
|
|
213
|
+
if (titleEnd !== -1) {
|
|
214
|
+
return {
|
|
215
|
+
definition: Object.assign(Object.assign({}, definition), { destinationEnd: destinationEnd, end: titleEnd }),
|
|
216
|
+
next: nextLineStart(text, lineEndAfterSpaces(text, titleEnd)),
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
const lineEnd = lineEndAfterSpaces(text, destinationEnd);
|
|
221
|
+
if (lineEnd === -1) {
|
|
222
|
+
return null;
|
|
223
|
+
}
|
|
224
|
+
return {
|
|
225
|
+
definition: Object.assign(Object.assign({}, definition), { destinationEnd: destinationEnd, end: destinationEnd }),
|
|
226
|
+
next: nextLineStart(text, lineEnd),
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
/*
|
|
230
|
+
* After the label that starts at `labelStart` - at its "]" - or -1 when the
|
|
231
|
+
* brackets close on no label: a "[" comes first, or a backslash before a
|
|
232
|
+
* line break or the end of the text.
|
|
233
|
+
*/
|
|
234
|
+
const findLabelEnd = (text, labelStart) => {
|
|
235
|
+
for (let at = labelStart; at < text.length; at++) {
|
|
236
|
+
const code = text.charCodeAt(at);
|
|
237
|
+
if (code === BACKSLASH) {
|
|
238
|
+
if (at + 1 >= text.length ||
|
|
239
|
+
(0, RegExpCharacterClasses_1.isLineTerminatorCode)(text.charCodeAt(at + 1))) {
|
|
240
|
+
return -1;
|
|
241
|
+
}
|
|
242
|
+
at++;
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
if (code === OPEN_BRACKET) {
|
|
246
|
+
return -1;
|
|
247
|
+
}
|
|
248
|
+
if (code === CLOSE_BRACKET) {
|
|
249
|
+
return at;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return -1;
|
|
253
|
+
};
|
|
254
|
+
// The definition on the line that starts at `lineStart`, if one starts there.
|
|
255
|
+
const readDefinition = (text, lineStart, finders) => {
|
|
256
|
+
let at = lineStart;
|
|
257
|
+
while (at - lineStart < 3 && text.charCodeAt(at) === SPACE) {
|
|
258
|
+
at++;
|
|
259
|
+
}
|
|
260
|
+
if (text.charCodeAt(at) !== OPEN_BRACKET) {
|
|
261
|
+
return null;
|
|
262
|
+
}
|
|
263
|
+
const labelStart = at + 1;
|
|
264
|
+
const labelEnd = findLabelEnd(text, labelStart);
|
|
265
|
+
if (labelEnd === -1 ||
|
|
266
|
+
text.charCodeAt(labelEnd + 1) !== COLON ||
|
|
267
|
+
isAllWhiteSpace(text, labelStart, labelEnd)) {
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
let destinationStart = skipSpaces(text, labelEnd + 2);
|
|
271
|
+
if (text.charCodeAt(destinationStart) === LINE_FEED) {
|
|
272
|
+
destinationStart = skipIndent(text, destinationStart + 1);
|
|
273
|
+
}
|
|
274
|
+
if (destinationStart >= text.length) {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
const definition = {
|
|
278
|
+
start: lineStart,
|
|
279
|
+
labelStart: labelStart,
|
|
280
|
+
labelEnd: labelEnd,
|
|
281
|
+
label: (0, exports.normalizeLinkLabel)(text.slice(labelStart, labelEnd)),
|
|
282
|
+
destinationStart: destinationStart,
|
|
283
|
+
};
|
|
284
|
+
if (text.charCodeAt(destinationStart) === LESS_THAN) {
|
|
285
|
+
// Each ">" on the line, the first first, until the rest reads.
|
|
286
|
+
for (let close = destinationStart + 1; close < text.length; close++) {
|
|
287
|
+
const code = text.charCodeAt(close);
|
|
288
|
+
if ((0, RegExpCharacterClasses_1.isLineTerminatorCode)(code)) {
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
if (code === GREATER_THAN) {
|
|
292
|
+
const reading = readAfterDestination(text, definition, close + 1, finders);
|
|
293
|
+
if (reading !== null) {
|
|
294
|
+
return reading;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return null;
|
|
299
|
+
}
|
|
300
|
+
if ((0, RegExpCharacterClasses_1.isWhiteSpaceCode)(text.charCodeAt(destinationStart))) {
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
let destinationEnd = destinationStart + 1;
|
|
304
|
+
while (destinationEnd < text.length &&
|
|
305
|
+
!(0, RegExpCharacterClasses_1.isWhiteSpaceCode)(text.charCodeAt(destinationEnd))) {
|
|
306
|
+
destinationEnd++;
|
|
307
|
+
}
|
|
308
|
+
return readAfterDestination(text, definition, destinationEnd, finders);
|
|
309
|
+
};
|
|
310
|
+
/*
|
|
311
|
+
* Whether the line is blank to marked: nothing but its indent - spaces,
|
|
312
|
+
* tabs, spaces (skipIndent).
|
|
313
|
+
*/
|
|
314
|
+
const isBlankLine = (text, lineStart, lineEnd) => {
|
|
315
|
+
return skipIndent(text, lineStart) >= lineEnd;
|
|
316
|
+
};
|
|
317
|
+
/*
|
|
318
|
+
* Whether the line, not blank, is indented code where a block starts: four
|
|
319
|
+
* spaces or more, or a tab after fewer - a tab there is four spaces.
|
|
320
|
+
*/
|
|
321
|
+
const isIndentedCodeLine = (text, lineStart) => {
|
|
322
|
+
const spacesEnd = skipSpaces(text, lineStart);
|
|
323
|
+
return spacesEnd - lineStart >= 4 || text.charCodeAt(spacesEnd) === TAB;
|
|
324
|
+
};
|
|
325
|
+
/*
|
|
326
|
+
* Whether the line is a thematic break: up to three spaces, then three or
|
|
327
|
+
* more of one of "-", "_" and "*", with nothing but spaces and tabs between
|
|
328
|
+
* and after them.
|
|
329
|
+
*/
|
|
330
|
+
const isThematicBreak = (text, lineStart, lineEnd) => {
|
|
331
|
+
let at = lineStart;
|
|
332
|
+
while (at - lineStart < 3 && text.charCodeAt(at) === SPACE) {
|
|
333
|
+
at++;
|
|
334
|
+
}
|
|
335
|
+
const mark = text.charCodeAt(at);
|
|
336
|
+
if (mark !== DASH && mark !== UNDERSCORE && mark !== ASTERISK) {
|
|
337
|
+
return false;
|
|
338
|
+
}
|
|
339
|
+
let marks = 0;
|
|
340
|
+
for (; at < lineEnd; at++) {
|
|
341
|
+
const code = text.charCodeAt(at);
|
|
342
|
+
if (code === mark) {
|
|
343
|
+
marks++;
|
|
344
|
+
}
|
|
345
|
+
else if (code !== SPACE && code !== TAB) {
|
|
346
|
+
return false;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return marks >= 3;
|
|
350
|
+
};
|
|
351
|
+
/*
|
|
352
|
+
* Whether the line is an ATX heading: up to three spaces, one to six "#",
|
|
353
|
+
* then white space or the end of the text - and no line or paragraph
|
|
354
|
+
* separator (U+2028, U+2029) on the line, which marked's heading rule reads
|
|
355
|
+
* with ".": such a line is text (`holdsSeparator`).
|
|
356
|
+
*/
|
|
357
|
+
const isAtxHeading = (text, lineStart, lineEnd, holdsSeparator) => {
|
|
358
|
+
let at = lineStart;
|
|
359
|
+
while (at - lineStart < 3 && text.charCodeAt(at) === SPACE) {
|
|
360
|
+
at++;
|
|
361
|
+
}
|
|
362
|
+
let hashes = 0;
|
|
363
|
+
while (text.charCodeAt(at + hashes) === HASH) {
|
|
364
|
+
hashes++;
|
|
365
|
+
}
|
|
366
|
+
return (hashes >= 1 &&
|
|
367
|
+
hashes <= 6 &&
|
|
368
|
+
(at + hashes >= text.length ||
|
|
369
|
+
(0, RegExpCharacterClasses_1.isWhiteSpaceCode)(text.charCodeAt(at + hashes))) &&
|
|
370
|
+
!holdsSeparator(lineStart, lineEnd));
|
|
371
|
+
};
|
|
372
|
+
/*
|
|
373
|
+
* The fence the line opens, as marked's "fences" rule reads it: up to three
|
|
374
|
+
* spaces, then three or more backticks with no backtick after them on the
|
|
375
|
+
* line, or three or more tildes. null when it opens none.
|
|
376
|
+
*/
|
|
377
|
+
const getOpeningFence = (text, lineStart, lineEnd) => {
|
|
378
|
+
let at = lineStart;
|
|
379
|
+
while (at - lineStart < 3 && text.charCodeAt(at) === SPACE) {
|
|
380
|
+
at++;
|
|
381
|
+
}
|
|
382
|
+
const code = text.charCodeAt(at);
|
|
383
|
+
if (code !== BACKTICK && code !== TILDE) {
|
|
384
|
+
return null;
|
|
385
|
+
}
|
|
386
|
+
let runEnd = at;
|
|
387
|
+
while (runEnd < lineEnd && text.charCodeAt(runEnd) === code) {
|
|
388
|
+
runEnd++;
|
|
389
|
+
}
|
|
390
|
+
if (runEnd - at < 3) {
|
|
391
|
+
return null;
|
|
392
|
+
}
|
|
393
|
+
if (code === BACKTICK) {
|
|
394
|
+
const backtick = text.indexOf("`", runEnd);
|
|
395
|
+
if (backtick !== -1 && backtick < lineEnd) {
|
|
396
|
+
return null;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return { code: code, length: runEnd - at };
|
|
400
|
+
};
|
|
401
|
+
/*
|
|
402
|
+
* Whether the line closes `fence`: up to three spaces, the fence's run, any
|
|
403
|
+
* more backticks or tildes, then spaces alone.
|
|
404
|
+
*/
|
|
405
|
+
const closesFence = (text, lineStart, lineEnd, fence) => {
|
|
406
|
+
let at = lineStart;
|
|
407
|
+
while (at - lineStart < 3 && text.charCodeAt(at) === SPACE) {
|
|
408
|
+
at++;
|
|
409
|
+
}
|
|
410
|
+
for (let index = 0; index < fence.length; index++) {
|
|
411
|
+
if (text.charCodeAt(at + index) !== fence.code) {
|
|
412
|
+
return false;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
at += fence.length;
|
|
416
|
+
while (at < lineEnd &&
|
|
417
|
+
(text.charCodeAt(at) === BACKTICK || text.charCodeAt(at) === TILDE)) {
|
|
418
|
+
at++;
|
|
419
|
+
}
|
|
420
|
+
return skipSpaces(text, at) >= lineEnd;
|
|
421
|
+
};
|
|
422
|
+
/*
|
|
423
|
+
* Every link reference definition marked reads in `text` (see the top of
|
|
424
|
+
* this file), in the order of the text: a label defined twice, twice.
|
|
425
|
+
*/
|
|
426
|
+
const getLinkReferenceDefinitions = (text) => {
|
|
427
|
+
const definitions = [];
|
|
428
|
+
if (typeof text !== "string" || text.indexOf("]:") === -1) {
|
|
429
|
+
return definitions;
|
|
430
|
+
}
|
|
431
|
+
const finders = getTitleFinders(text);
|
|
432
|
+
const nextLineSeparator = remembered((from) => {
|
|
433
|
+
return text.indexOf("\u2028", from);
|
|
434
|
+
});
|
|
435
|
+
const nextParagraphSeparator = remembered((from) => {
|
|
436
|
+
return text.indexOf("\u2029", from);
|
|
437
|
+
});
|
|
438
|
+
const holdsSeparator = (lineStart, lineEnd) => {
|
|
439
|
+
const line = nextLineSeparator(lineStart);
|
|
440
|
+
const paragraph = nextParagraphSeparator(lineStart);
|
|
441
|
+
return ((line !== -1 && line < lineEnd) ||
|
|
442
|
+
(paragraph !== -1 && paragraph < lineEnd));
|
|
443
|
+
};
|
|
444
|
+
// Whether a block may start at the line: where marked tries a definition.
|
|
445
|
+
let blockStart = true;
|
|
446
|
+
let fence = null;
|
|
447
|
+
let indentedCode = false;
|
|
448
|
+
let lineStart = 0;
|
|
449
|
+
while (lineStart < text.length) {
|
|
450
|
+
const lineBreak = text.indexOf("\n", lineStart);
|
|
451
|
+
const lineEnd = lineBreak === -1 ? text.length : lineBreak;
|
|
452
|
+
const next = nextLineStart(text, lineEnd);
|
|
453
|
+
if (fence !== null) {
|
|
454
|
+
if (closesFence(text, lineStart, lineEnd, fence)) {
|
|
455
|
+
fence = null;
|
|
456
|
+
blockStart = true;
|
|
457
|
+
}
|
|
458
|
+
lineStart = next;
|
|
459
|
+
continue;
|
|
460
|
+
}
|
|
461
|
+
if (isBlankLine(text, lineStart, lineEnd)) {
|
|
462
|
+
blockStart = true;
|
|
463
|
+
lineStart = next;
|
|
464
|
+
continue;
|
|
465
|
+
}
|
|
466
|
+
// Indented code runs over blank lines, to the first line indented less.
|
|
467
|
+
if (indentedCode) {
|
|
468
|
+
if (isIndentedCodeLine(text, lineStart)) {
|
|
469
|
+
lineStart = next;
|
|
470
|
+
continue;
|
|
471
|
+
}
|
|
472
|
+
indentedCode = false;
|
|
473
|
+
blockStart = true;
|
|
474
|
+
}
|
|
475
|
+
// These start a block wherever they are, and end it on their line.
|
|
476
|
+
fence = getOpeningFence(text, lineStart, lineEnd);
|
|
477
|
+
if (fence !== null) {
|
|
478
|
+
lineStart = next;
|
|
479
|
+
continue;
|
|
480
|
+
}
|
|
481
|
+
if (isAtxHeading(text, lineStart, lineEnd, holdsSeparator) ||
|
|
482
|
+
isThematicBreak(text, lineStart, lineEnd)) {
|
|
483
|
+
blockStart = true;
|
|
484
|
+
lineStart = next;
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
if (blockStart) {
|
|
488
|
+
if (isIndentedCodeLine(text, lineStart)) {
|
|
489
|
+
indentedCode = true;
|
|
490
|
+
blockStart = false;
|
|
491
|
+
lineStart = next;
|
|
492
|
+
continue;
|
|
493
|
+
}
|
|
494
|
+
const reading = readDefinition(text, lineStart, finders);
|
|
495
|
+
if (reading !== null) {
|
|
496
|
+
definitions.push(reading.definition);
|
|
497
|
+
lineStart = reading.next;
|
|
498
|
+
continue;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
// A paragraph, a list, a quote, a table: its next line carries it on.
|
|
502
|
+
blockStart = false;
|
|
503
|
+
lineStart = next;
|
|
504
|
+
}
|
|
505
|
+
return definitions;
|
|
506
|
+
};
|
|
507
|
+
exports.getLinkReferenceDefinitions = getLinkReferenceDefinitions;
|
|
508
|
+
/*
|
|
509
|
+
* Calls `found` with the label of every pair of brackets in text[start,
|
|
510
|
+
* end) that holds no other, as a reference to a definition is written -
|
|
511
|
+
* "[text][label]", "[label][]", "[label]", "![alt][label]" - normalized as
|
|
512
|
+
* marked matches it (normalizeLinkLabel). More than the references marked
|
|
513
|
+
* reads: a link's text, a bracket in code, a definition's own label. One
|
|
514
|
+
* pass, whatever the text holds.
|
|
515
|
+
*/
|
|
516
|
+
const forEachBracketedLabel = (text, start, end, found) => {
|
|
517
|
+
let open = -1;
|
|
518
|
+
for (let index = start; index < end; index++) {
|
|
519
|
+
const code = text.charCodeAt(index);
|
|
520
|
+
if (code === BACKSLASH) {
|
|
521
|
+
if (index + 1 < end &&
|
|
522
|
+
!(0, RegExpCharacterClasses_1.isLineTerminatorCode)(text.charCodeAt(index + 1))) {
|
|
523
|
+
index++;
|
|
524
|
+
}
|
|
525
|
+
continue;
|
|
526
|
+
}
|
|
527
|
+
if (code === OPEN_BRACKET) {
|
|
528
|
+
open = index;
|
|
529
|
+
continue;
|
|
530
|
+
}
|
|
531
|
+
if (code === CLOSE_BRACKET && open !== -1) {
|
|
532
|
+
if (!isAllWhiteSpace(text, open + 1, index)) {
|
|
533
|
+
found((0, exports.normalizeLinkLabel)(text.slice(open + 1, index)));
|
|
534
|
+
}
|
|
535
|
+
open = -1;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
exports.forEachBracketedLabel = forEachBracketedLabel;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import commonJsModule from "./LinkReferenceDefinitions.js";
|
|
2
|
+
export const forEachBracketedLabel = commonJsModule.forEachBracketedLabel;
|
|
3
|
+
export const getLinkReferenceDefinitions = commonJsModule.getLinkReferenceDefinitions;
|
|
4
|
+
export const normalizeLinkLabel = commonJsModule.normalizeLinkLabel;
|
|
@@ -10,7 +10,6 @@ const CloudPlatform_1 = require("../../Types/Cloud/CloudPlatform");
|
|
|
10
10
|
const CloudMonitoredResource_1 = require("../../Types/Cloud/CloudMonitoredResource");
|
|
11
11
|
const CloudResourceCatalog_1 = require("../../Types/Cloud/CloudResourceCatalog");
|
|
12
12
|
const CloudResourceMetricAggregation_1 = require("../../Types/Cloud/CloudResourceMetricAggregation");
|
|
13
|
-
const RollingTime_1 = __importDefault(require("../../Types/RollingTime/RollingTime"));
|
|
14
13
|
const RollingTimeUtil_1 = __importDefault(require("../../Types/RollingTime/RollingTimeUtil"));
|
|
15
14
|
function asRecord(value) {
|
|
16
15
|
return value && typeof value === "object" && !Array.isArray(value)
|
|
@@ -112,9 +111,8 @@ class MetricQueryCloudAggregation {
|
|
|
112
111
|
if ((record === null || record === void 0 ? void 0 : record["aggregatesWholeWindow"]) === true) {
|
|
113
112
|
return AggregationInterval_1.default.Total;
|
|
114
113
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
: RollingTime_1.default.Past1Minute;
|
|
114
|
+
// Written another way ("15 minutes") or not at all, as the worker reads it.
|
|
115
|
+
const rollingTime = RollingTimeUtil_1.default.fromValueOrDefault(record === null || record === void 0 ? void 0 : record["rollingTime"]);
|
|
118
116
|
const window = RollingTimeUtil_1.default.convertToStartAndEndDate(rollingTime, new Date(0));
|
|
119
117
|
return MetricQueryCloudAggregation.getRangeReadInterval({
|
|
120
118
|
startDate: window.startValue,
|
|
@@ -3,12 +3,20 @@ export declare const EXTERNAL_STATUS_PAGE_MAX_COMPONENTS: number;
|
|
|
3
3
|
export declare const EXTERNAL_STATUS_PAGE_MAX_INCIDENTS: number;
|
|
4
4
|
export declare const EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT: string;
|
|
5
5
|
export declare const EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN: string;
|
|
6
|
+
export declare const EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED: string;
|
|
7
|
+
export declare const EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE: string;
|
|
8
|
+
export declare const EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF: string;
|
|
9
|
+
export interface ExternalStatusPageOneUptimeNote {
|
|
10
|
+
template: string;
|
|
11
|
+
values: Record<string, string>;
|
|
12
|
+
}
|
|
6
13
|
export interface ExternalStatusPageComponent {
|
|
7
14
|
name: string;
|
|
8
15
|
status: string;
|
|
9
16
|
description?: string | undefined;
|
|
10
17
|
groupName?: string | undefined;
|
|
11
18
|
key?: string | undefined;
|
|
19
|
+
isMonitored?: boolean | undefined;
|
|
12
20
|
}
|
|
13
21
|
export interface ExternalStatusPageIncident {
|
|
14
22
|
name: string;
|
|
@@ -32,4 +40,5 @@ export default class ExternalStatusPageReading {
|
|
|
32
40
|
static readAtlassianIncidents(json: unknown): Array<ExternalStatusPageIncident>;
|
|
33
41
|
static readIncidentIo(json: unknown): ExternalStatusPageContents | null;
|
|
34
42
|
static readOneUptimeSummary(summary: StatusPageSummary): ExternalStatusPageContents;
|
|
43
|
+
static readOneUptimeNote(description: string | undefined): ExternalStatusPageOneUptimeNote | null;
|
|
35
44
|
}
|
|
@@ -3,12 +3,20 @@ export declare const EXTERNAL_STATUS_PAGE_MAX_COMPONENTS: number;
|
|
|
3
3
|
export declare const EXTERNAL_STATUS_PAGE_MAX_INCIDENTS: number;
|
|
4
4
|
export declare const EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT: string;
|
|
5
5
|
export declare const EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN: string;
|
|
6
|
+
export declare const EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED: string;
|
|
7
|
+
export declare const EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE: string;
|
|
8
|
+
export declare const EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF: string;
|
|
9
|
+
export interface ExternalStatusPageOneUptimeNote {
|
|
10
|
+
template: string;
|
|
11
|
+
values: Record<string, string>;
|
|
12
|
+
}
|
|
6
13
|
export interface ExternalStatusPageComponent {
|
|
7
14
|
name: string;
|
|
8
15
|
status: string;
|
|
9
16
|
description?: string | undefined;
|
|
10
17
|
groupName?: string | undefined;
|
|
11
18
|
key?: string | undefined;
|
|
19
|
+
isMonitored?: boolean | undefined;
|
|
12
20
|
}
|
|
13
21
|
export interface ExternalStatusPageIncident {
|
|
14
22
|
name: string;
|
|
@@ -32,4 +40,5 @@ export default class ExternalStatusPageReading {
|
|
|
32
40
|
static readAtlassianIncidents(json: unknown): Array<ExternalStatusPageIncident>;
|
|
33
41
|
static readIncidentIo(json: unknown): ExternalStatusPageContents | null;
|
|
34
42
|
static readOneUptimeSummary(summary: StatusPageSummary): ExternalStatusPageContents;
|
|
43
|
+
static readOneUptimeNote(description: string | undefined): ExternalStatusPageOneUptimeNote | null;
|
|
35
44
|
}
|