@oneuptime/common 14.0.109 → 14.0.110
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/SecurityEvent.js +1 -1
- package/Models/DatabaseModels/AIInsight.js +2 -2
- package/Models/DatabaseModels/Alert.js +2 -2
- package/Models/DatabaseModels/AlertEpisode.js +2 -2
- package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
- package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertSeverity.js +13 -4
- package/Models/DatabaseModels/AlertState.js +1 -1
- package/Models/DatabaseModels/CallLog.js +12 -12
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/EmailLog.js +12 -12
- package/Models/DatabaseModels/FormSubmission.js +2 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
- package/Models/DatabaseModels/GlobalConfig.js +28 -0
- package/Models/DatabaseModels/Incident.js +2 -2
- package/Models/DatabaseModels/IncidentEpisode.js +2 -2
- package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
- package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentSeverity.js +13 -4
- package/Models/DatabaseModels/IncidentState.js +1 -1
- package/Models/DatabaseModels/IncidentTemplate.js +2 -2
- package/Models/DatabaseModels/Monitor.js +3 -3
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +41 -0
- package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +9 -6
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +14 -11
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
- package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
- package/Models/DatabaseModels/Project.d.mts +2 -0
- package/Models/DatabaseModels/Project.d.ts +2 -0
- package/Models/DatabaseModels/Project.js +96 -2
- package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
- package/Models/DatabaseModels/PushNotificationLog.js +12 -12
- package/Models/DatabaseModels/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +8 -2
- package/Models/DatabaseModels/ScheduledMaintenance.js +6 -3
- package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +2 -2
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +1 -1
- package/Models/DatabaseModels/Service.js +1 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
- package/Models/DatabaseModels/SmsLog.js +12 -12
- package/Models/DatabaseModels/StatusPage.js +5 -5
- package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
- package/Models/DatabaseModels/TelegramLog.js +12 -12
- package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
- package/Models/DatabaseModels/User.d.mts +4 -0
- package/Models/DatabaseModels/User.d.ts +4 -0
- package/Models/DatabaseModels/User.js +100 -0
- package/Models/DatabaseModels/UserOnCallLog.js +6 -6
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -3
- package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
- package/Models/DatabaseModels/WebhookLog.js +12 -12
- package/Models/DatabaseModels/WhatsAppLog.js +12 -12
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
- package/Types/AI/AIChatTypes.d.mts +2 -1
- package/Types/AI/AIChatTypes.d.ts +2 -1
- package/Types/AI/AIChatTypes.js +5 -0
- package/Types/Analytics/ProductEvent.d.mts +6 -1
- package/Types/Analytics/ProductEvent.d.ts +6 -1
- package/Types/Analytics/ProductEvent.js +41 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
- package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +4 -2
- package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
- package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
- package/Types/Cloud/CloudResourceCatalog.js +33 -3
- package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
- package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.js +102 -65
- package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
- package/Types/Database/TableMetadata.d.mts +2 -0
- package/Types/Database/TableMetadata.d.ts +2 -0
- package/Types/Database/TableMetadata.js +6 -0
- package/Types/Date.d.mts +20 -1
- package/Types/Date.d.ts +20 -1
- package/Types/Date.js +42 -2
- package/Types/DateLanguage.d.mts +2 -0
- package/Types/DateLanguage.d.ts +2 -0
- package/Types/DateLanguage.js +44 -2
- package/Types/DateLanguage.mjs +2 -0
- package/Types/DirectionArrow.d.mts +7 -0
- package/Types/DirectionArrow.d.ts +7 -0
- package/Types/DirectionArrow.js +88 -0
- package/Types/DirectionArrow.mjs +7 -0
- package/Types/Docs/GlossaryTerm.d.mts +1 -0
- package/Types/Docs/GlossaryTerm.d.ts +1 -0
- package/Types/Docs/GlossaryTerm.js +2 -0
- package/Types/Docs/RetiredNames.d.mts +11 -0
- package/Types/Docs/RetiredNames.d.ts +11 -0
- package/Types/Docs/RetiredNames.js +139 -0
- package/Types/Docs/RetiredNames.mjs +3 -0
- package/Types/Exception/RefusalWithValues.d.mts +7 -0
- package/Types/Exception/RefusalWithValues.d.ts +7 -0
- package/Types/Exception/RefusalWithValues.js +76 -0
- package/Types/Exception/RefusalWithValues.mjs +3 -0
- package/Types/Exception/UnexplainedError.d.mts +13 -0
- package/Types/Exception/UnexplainedError.d.ts +13 -0
- package/Types/Exception/UnexplainedError.js +53 -1
- package/Types/Exception/UnexplainedError.mjs +1 -0
- package/Types/File/FileSize.d.mts +4 -1
- package/Types/File/FileSize.d.ts +4 -1
- package/Types/File/FileSize.js +18 -17
- package/Types/HostCollector/HostCollector.d.mts +1 -0
- package/Types/HostCollector/HostCollector.d.ts +1 -0
- package/Types/HostCollector/HostCollector.js +26 -10
- package/Types/HostCollector/HostCollector.mjs +1 -0
- package/Types/Monitor/MonitorCriteria.js +2 -2
- package/Types/Monitor/MonitorStep.js +1 -1
- package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
- package/Types/Monitor/WhoIsTold.d.mts +3 -1
- package/Types/Monitor/WhoIsTold.d.ts +3 -1
- package/Types/Monitor/WhoIsTold.js +2 -1
- package/Types/NotificationRule/PagingLadder.d.mts +137 -0
- package/Types/NotificationRule/PagingLadder.d.ts +137 -0
- package/Types/NotificationRule/PagingLadder.js +682 -0
- package/Types/NotificationRule/PagingLadder.mjs +28 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
- package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
- package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
- package/Types/Permission.d.mts +2 -2
- package/Types/Permission.d.ts +2 -2
- package/Types/Permission.js +194 -193
- package/Types/Product/ProductCatalog.d.mts +10 -0
- package/Types/Product/ProductCatalog.d.ts +10 -0
- package/Types/Product/ProductCatalog.js +208 -0
- package/Types/Product/ProductCatalog.mjs +6 -0
- package/Types/Product/ProductOfTable.d.mts +3 -0
- package/Types/Product/ProductOfTable.d.ts +3 -0
- package/Types/Product/ProductOfTable.js +68 -0
- package/Types/Product/ProductOfTable.mjs +3 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +3 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
- package/Types/Product/ProjectProductsAnswer.js +35 -2
- package/Types/Product/ProjectProductsAnswer.mjs +1 -0
- package/Types/Product/ServerProducts.d.mts +65 -0
- package/Types/Product/ServerProducts.d.ts +65 -0
- package/Types/Product/ServerProducts.js +383 -0
- package/Types/Product/ServerProducts.mjs +26 -0
- package/Types/Product/ServerProductsAnswer.d.mts +21 -0
- package/Types/Product/ServerProductsAnswer.d.ts +21 -0
- package/Types/Product/ServerProductsAnswer.js +78 -0
- package/Types/Product/ServerProductsAnswer.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +3 -1
- package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
- package/Types/ProductFeedback/ProductFeedback.js +8 -0
- package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
- package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
- package/Types/SampleProject/SampleProject.d.mts +54 -0
- package/Types/SampleProject/SampleProject.d.ts +54 -0
- package/Types/SampleProject/SampleProject.js +177 -0
- package/Types/SampleProject/SampleProject.mjs +22 -0
- package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
- package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
- package/Types/SampleProject/SampleProjectContent.js +397 -0
- package/Types/SampleProject/SampleProjectContent.mjs +18 -0
- package/Types/Telemetry/TelemetryIngestSurface.js +6 -5
- package/Types/Translator.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +40 -2
- package/Types/Translator.mjs +1 -0
- package/Types/UsedBy/UsedBy.d.mts +103 -0
- package/Types/UsedBy/UsedBy.d.ts +103 -0
- package/Types/UsedBy/UsedBy.js +389 -0
- package/Types/UsedBy/UsedBy.mjs +20 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
- package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
- package/Types/UsedBy/UsedByServerProducts.js +48 -0
- package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
- package/Types/Workflow/PassedOnFields.js +2 -1
- package/Types/Workflow/Templates.js +1 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +2 -0
- package/Utils/AI/MeaningMatch.d.mts +36 -0
- package/Utils/AI/MeaningMatch.d.ts +36 -0
- package/Utils/AI/MeaningMatch.js +535 -0
- package/Utils/AI/MeaningMatch.mjs +7 -0
- package/Utils/ArchivableValues.js +1 -1
- package/Utils/AuditLog/AuditLogValues.js +2 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
- package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
- package/Utils/DataSecurity/TextScanner.js +2 -2
- package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
- package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
- package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
- package/Utils/DeveloperDocs/CliCommands.js +2 -1
- package/Utils/DeveloperDocs/CliResources.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/MarkdownTableCell.js +2 -1
- package/Utils/Markdown/OverLongText.js +523 -5
- package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
- package/Utils/Markdown/SlowMarkdown.js +595 -11
- package/Utils/Markdown/SlowMarkdown.mjs +6 -0
- package/Utils/ModelApiName.d.mts +11 -0
- package/Utils/ModelApiName.d.ts +11 -0
- package/Utils/ModelApiName.js +72 -0
- package/Utils/ModelApiName.mjs +5 -0
- package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +8 -3
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
- package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
- package/Utils/OpenStack/OpenStackCheckName.js +2 -1
- package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
- package/Utils/OpenStack/OpenStackLogs.js +3 -2
- package/Utils/OpenStack/OpenStackTraces.js +2 -1
- package/Utils/Project/NotificationChannels.js +5 -5
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.js +2 -2
- package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
- package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
- package/Utils/ScheduledMaintenanceStart.js +9 -0
- package/Utils/Schema/ModelSchema.js +10 -1
- package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
- package/Utils/ValueFormatter.d.mts +8 -6
- package/Utils/ValueFormatter.d.ts +8 -6
- package/Utils/ValueFormatter.js +145 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import commonJsModule from "./PagingLadder.js";
|
|
2
|
+
export const MAX_PAGING_LADDER_WAIT_IN_MINUTES = commonJsModule.MAX_PAGING_LADDER_WAIT_IN_MINUTES;
|
|
3
|
+
export const PAGING_LADDER_API_PATH = commonJsModule.PAGING_LADDER_API_PATH;
|
|
4
|
+
export const PAGING_LADDER_APPLY_ROUTE = commonJsModule.PAGING_LADDER_APPLY_ROUTE;
|
|
5
|
+
export const PAGING_LADDER_WAITS_IN_MINUTES = commonJsModule.PAGING_LADDER_WAITS_IN_MINUTES;
|
|
6
|
+
export const PAGING_METHOD_COLUMNS = commonJsModule.PAGING_METHOD_COLUMNS;
|
|
7
|
+
export const comparePagingLadderCell = commonJsModule.comparePagingLadderCell;
|
|
8
|
+
export const comparePagingLadderSteps = commonJsModule.comparePagingLadderSteps;
|
|
9
|
+
export const getChannelForPagingMethodColumn = commonJsModule.getChannelForPagingMethodColumn;
|
|
10
|
+
export const getLivePagingLadderCells = commonJsModule.getLivePagingLadderCells;
|
|
11
|
+
export const getPagingLadderCellKey = commonJsModule.getPagingLadderCellKey;
|
|
12
|
+
export const getPagingLadderCells = commonJsModule.getPagingLadderCells;
|
|
13
|
+
export const getPagingLadderMethodKey = commonJsModule.getPagingLadderMethodKey;
|
|
14
|
+
export const getPagingLadderRules = commonJsModule.getPagingLadderRules;
|
|
15
|
+
export const getPagingLadderStepFromRule = commonJsModule.getPagingLadderStepFromRule;
|
|
16
|
+
export const getPagingLadderStepKey = commonJsModule.getPagingLadderStepKey;
|
|
17
|
+
export const getPagingLadderStepsProblem = commonJsModule.getPagingLadderStepsProblem;
|
|
18
|
+
export const getPagingMethodColumnForChannel = commonJsModule.getPagingMethodColumnForChannel;
|
|
19
|
+
export const getSeverityColumnForOnCallRuleKind = commonJsModule.getSeverityColumnForOnCallRuleKind;
|
|
20
|
+
export const isEmptyPagingLadderPlan = commonJsModule.isEmptyPagingLadderPlan;
|
|
21
|
+
export const isPagingMethodColumn = commonJsModule.isPagingMethodColumn;
|
|
22
|
+
export const normalizePagingLadderStep = commonJsModule.normalizePagingLadderStep;
|
|
23
|
+
export const normalizePagingLadderSteps = commonJsModule.normalizePagingLadderSteps;
|
|
24
|
+
export const planPagingLadderSave = commonJsModule.planPagingLadderSave;
|
|
25
|
+
export const readPagingId = commonJsModule.readPagingId;
|
|
26
|
+
export const readPagingLadder = commonJsModule.readPagingLadder;
|
|
27
|
+
export const readPagingLadderCells = commonJsModule.readPagingLadderCells;
|
|
28
|
+
export const readPagingLadderSteps = commonJsModule.readPagingLadderSteps;
|
|
@@ -65,7 +65,7 @@ exports.ROLLUP_CATEGORY_LABEL = {
|
|
|
65
65
|
[RollupCategory.IncomingCalls]: "Incoming Calls",
|
|
66
66
|
[RollupCategory.SecurityCases]: "Security Cases",
|
|
67
67
|
[RollupCategory.SecurityHunts]: "Security Hunts",
|
|
68
|
-
[RollupCategory.OnCall]: "On
|
|
68
|
+
[RollupCategory.OnCall]: "On-Call",
|
|
69
69
|
[RollupCategory.Other]: "Other",
|
|
70
70
|
};
|
|
71
71
|
/*
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const NO_NOTIFICATION_RULES_STATUS_MESSAGE: string;
|
|
2
|
+
export declare function isOnCallNoNotificationRulesStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
3
|
+
export declare const NOT_A_PROJECT_MEMBER_STATUS_MESSAGE: string;
|
|
4
|
+
export declare const NOT_A_PROJECT_MEMBER_TIMELINE_MESSAGE: string;
|
|
5
|
+
export declare const SENDING_NOTIFICATION_TO_USER_TIMELINE_MESSAGE: string;
|
|
6
|
+
export declare const NOBODY_ON_CALL_IN_SCHEDULE_TIMELINE_MESSAGE: string;
|
|
7
|
+
export declare const ON_CALL_POLICY_HAS_NO_ESCALATION_RULES_MESSAGE: string;
|
|
8
|
+
export declare function getOnCallOptedOutStatusMessage(data: {
|
|
9
|
+
severityName: string;
|
|
10
|
+
pagedFor: string;
|
|
11
|
+
}): string;
|
|
12
|
+
export declare function isOnCallOptedOutStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
13
|
+
export declare function getOnCallFallbackNotifiedStatusMessage(data: {
|
|
14
|
+
severityName: string;
|
|
15
|
+
channelsUsed: ReadonlyArray<string>;
|
|
16
|
+
}): string;
|
|
17
|
+
export declare function isOnCallFallbackNotifiedStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
18
|
+
export declare function getOnCallNoVerifiedMethodStatusMessage(responderLabel: string): string;
|
|
19
|
+
export declare function isOnCallNoVerifiedMethodStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
20
|
+
export declare function getOnCallFallbackFailedStatusMessage(data: {
|
|
21
|
+
responderLabel: string;
|
|
22
|
+
severityName: string;
|
|
23
|
+
}): string;
|
|
24
|
+
export declare function isOnCallFallbackFailedStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
25
|
+
export declare const PUSH_NOT_SENT_TO_APP_THAT_NO_LONGER_RECEIVES_MESSAGE: string;
|
|
26
|
+
export declare const PUSH_NOT_SENT_TO_BROWSER_THAT_NO_LONGER_RECEIVES_MESSAGE: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const NO_NOTIFICATION_RULES_STATUS_MESSAGE: string;
|
|
2
|
+
export declare function isOnCallNoNotificationRulesStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
3
|
+
export declare const NOT_A_PROJECT_MEMBER_STATUS_MESSAGE: string;
|
|
4
|
+
export declare const NOT_A_PROJECT_MEMBER_TIMELINE_MESSAGE: string;
|
|
5
|
+
export declare const SENDING_NOTIFICATION_TO_USER_TIMELINE_MESSAGE: string;
|
|
6
|
+
export declare const NOBODY_ON_CALL_IN_SCHEDULE_TIMELINE_MESSAGE: string;
|
|
7
|
+
export declare const ON_CALL_POLICY_HAS_NO_ESCALATION_RULES_MESSAGE: string;
|
|
8
|
+
export declare function getOnCallOptedOutStatusMessage(data: {
|
|
9
|
+
severityName: string;
|
|
10
|
+
pagedFor: string;
|
|
11
|
+
}): string;
|
|
12
|
+
export declare function isOnCallOptedOutStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
13
|
+
export declare function getOnCallFallbackNotifiedStatusMessage(data: {
|
|
14
|
+
severityName: string;
|
|
15
|
+
channelsUsed: ReadonlyArray<string>;
|
|
16
|
+
}): string;
|
|
17
|
+
export declare function isOnCallFallbackNotifiedStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
18
|
+
export declare function getOnCallNoVerifiedMethodStatusMessage(responderLabel: string): string;
|
|
19
|
+
export declare function isOnCallNoVerifiedMethodStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
20
|
+
export declare function getOnCallFallbackFailedStatusMessage(data: {
|
|
21
|
+
responderLabel: string;
|
|
22
|
+
severityName: string;
|
|
23
|
+
}): string;
|
|
24
|
+
export declare function isOnCallFallbackFailedStatusMessage(statusMessage: string | null | undefined): boolean;
|
|
25
|
+
export declare const PUSH_NOT_SENT_TO_APP_THAT_NO_LONGER_RECEIVES_MESSAGE: string;
|
|
26
|
+
export declare const PUSH_NOT_SENT_TO_BROWSER_THAT_NO_LONGER_RECEIVES_MESSAGE: string;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THE ENGLISH LINES A PAGE WRITES ABOUT ONE PERSON, OR ONE TARGET, WHO WAS
|
|
4
|
+
* NOT PAGED.
|
|
5
|
+
*
|
|
6
|
+
* Each is the status message of a line of the run's timeline (and of the
|
|
7
|
+
* person's own notification log): read on the run's Execution Logs, in the
|
|
8
|
+
* record's feed and in the run's Slack and Microsoft Teams message. They
|
|
9
|
+
* stay in English there, as every execution log does.
|
|
10
|
+
*
|
|
11
|
+
* They are kept here, React-free and server-safe, so a reader can tell them
|
|
12
|
+
* apart by what they say: a test page's result reads them back into codes
|
|
13
|
+
* the Dashboard words in the reader's language (OnCallTestPageLine).
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PUSH_NOT_SENT_TO_BROWSER_THAT_NO_LONGER_RECEIVES_MESSAGE = exports.PUSH_NOT_SENT_TO_APP_THAT_NO_LONGER_RECEIVES_MESSAGE = exports.ON_CALL_POLICY_HAS_NO_ESCALATION_RULES_MESSAGE = exports.NOBODY_ON_CALL_IN_SCHEDULE_TIMELINE_MESSAGE = exports.SENDING_NOTIFICATION_TO_USER_TIMELINE_MESSAGE = exports.NOT_A_PROJECT_MEMBER_TIMELINE_MESSAGE = exports.NOT_A_PROJECT_MEMBER_STATUS_MESSAGE = exports.NO_NOTIFICATION_RULES_STATUS_MESSAGE = void 0;
|
|
17
|
+
exports.isOnCallNoNotificationRulesStatusMessage = isOnCallNoNotificationRulesStatusMessage;
|
|
18
|
+
exports.getOnCallOptedOutStatusMessage = getOnCallOptedOutStatusMessage;
|
|
19
|
+
exports.isOnCallOptedOutStatusMessage = isOnCallOptedOutStatusMessage;
|
|
20
|
+
exports.getOnCallFallbackNotifiedStatusMessage = getOnCallFallbackNotifiedStatusMessage;
|
|
21
|
+
exports.isOnCallFallbackNotifiedStatusMessage = isOnCallFallbackNotifiedStatusMessage;
|
|
22
|
+
exports.getOnCallNoVerifiedMethodStatusMessage = getOnCallNoVerifiedMethodStatusMessage;
|
|
23
|
+
exports.isOnCallNoVerifiedMethodStatusMessage = isOnCallNoVerifiedMethodStatusMessage;
|
|
24
|
+
exports.getOnCallFallbackFailedStatusMessage = getOnCallFallbackFailedStatusMessage;
|
|
25
|
+
exports.isOnCallFallbackFailedStatusMessage = isOnCallFallbackFailedStatusMessage;
|
|
26
|
+
/*
|
|
27
|
+
* The status message the zero-rule dead-end wrote before the fallback existed,
|
|
28
|
+
* kept verbatim. A project that sets `disableOnCallNotificationFallback` is
|
|
29
|
+
* asking for precisely the old behaviour, so it must still receive precisely
|
|
30
|
+
* the old words - operators grep their execution logs for this sentence, and a
|
|
31
|
+
* characterisation test pins it character for character.
|
|
32
|
+
*/
|
|
33
|
+
exports.NO_NOTIFICATION_RULES_STATUS_MESSAGE = "No notification rules found for this user. User should add the rules in User Settings > How to Reach Me.";
|
|
34
|
+
/*
|
|
35
|
+
* The line's first sentence, what it is about. A log written before the
|
|
36
|
+
* page was called How to Reach Me (#6820) names the page by its old name
|
|
37
|
+
* after it, and is the same line.
|
|
38
|
+
*/
|
|
39
|
+
const NO_NOTIFICATION_RULES_FIRST_SENTENCE = "No notification rules found for this user.";
|
|
40
|
+
function isOnCallNoNotificationRulesStatusMessage(statusMessage) {
|
|
41
|
+
const message = (statusMessage || "").trim();
|
|
42
|
+
return (message === NO_NOTIFICATION_RULES_FIRST_SENTENCE ||
|
|
43
|
+
message.startsWith(NO_NOTIFICATION_RULES_FIRST_SENTENCE + " "));
|
|
44
|
+
}
|
|
45
|
+
/*
|
|
46
|
+
* Why an on-call notification log sent nothing at all: the person it pages
|
|
47
|
+
* is not a member of the project (they left, or never accepted their
|
|
48
|
+
* invitation). The rules that choose what a page goes through are read only
|
|
49
|
+
* while the person is a member, so this is what is left when somebody who is
|
|
50
|
+
* not one reaches this far - when the escalation could not read membership
|
|
51
|
+
* and paged as before.
|
|
52
|
+
*/
|
|
53
|
+
exports.NOT_A_PROJECT_MEMBER_STATUS_MESSAGE = "Not sent because this user is not a member of the project.";
|
|
54
|
+
/*
|
|
55
|
+
* The escalation timeline's line for a recipient the rule would have paged
|
|
56
|
+
* who is not a member of the project (they left, or never accepted their
|
|
57
|
+
* invitation): nothing is sent to them.
|
|
58
|
+
*/
|
|
59
|
+
exports.NOT_A_PROJECT_MEMBER_TIMELINE_MESSAGE = "Skipped because this user is not a member of the project.";
|
|
60
|
+
// The escalation timeline's line for somebody it is paging now.
|
|
61
|
+
exports.SENDING_NOTIFICATION_TO_USER_TIMELINE_MESSAGE = "Sending notification to user.";
|
|
62
|
+
// The escalation timeline's line for a schedule with nobody on call.
|
|
63
|
+
exports.NOBODY_ON_CALL_IN_SCHEDULE_TIMELINE_MESSAGE = "Skipped because no active users are found in this schedule.";
|
|
64
|
+
// A run of a policy that has no escalation rules.
|
|
65
|
+
exports.ON_CALL_POLICY_HAS_NO_ESCALATION_RULES_MESSAGE = "No Escalation Rules in Policy. Please add escalation rules to this policy.";
|
|
66
|
+
/*
|
|
67
|
+
* A person who opted out of pages of the severity: "You have opted out of
|
|
68
|
+
* notifications for Sev4 incidents."
|
|
69
|
+
*/
|
|
70
|
+
const OPTED_OUT_PREFIX = "You have opted out of notifications for ";
|
|
71
|
+
function getOnCallOptedOutStatusMessage(data) {
|
|
72
|
+
return `${OPTED_OUT_PREFIX}${data.severityName} ${data.pagedFor}.`;
|
|
73
|
+
}
|
|
74
|
+
function isOnCallOptedOutStatusMessage(statusMessage) {
|
|
75
|
+
const message = (statusMessage || "").trim();
|
|
76
|
+
return message.startsWith(OPTED_OUT_PREFIX) && message.endsWith(".");
|
|
77
|
+
}
|
|
78
|
+
/*
|
|
79
|
+
* A person with no rule for the severity, whose verified methods were paged
|
|
80
|
+
* instead: "No notification rule configured for Sev1; notified via fallback
|
|
81
|
+
* (Push, Email)."
|
|
82
|
+
*/
|
|
83
|
+
const FALLBACK_NOTIFIED_PREFIX = "No notification rule configured for ";
|
|
84
|
+
const FALLBACK_NOTIFIED_MIDDLE = "; notified via fallback (";
|
|
85
|
+
function getOnCallFallbackNotifiedStatusMessage(data) {
|
|
86
|
+
return `${FALLBACK_NOTIFIED_PREFIX}${data.severityName}${FALLBACK_NOTIFIED_MIDDLE}${data.channelsUsed.join(", ")}).`;
|
|
87
|
+
}
|
|
88
|
+
function isOnCallFallbackNotifiedStatusMessage(statusMessage) {
|
|
89
|
+
const message = (statusMessage || "").trim();
|
|
90
|
+
return (message.startsWith(FALLBACK_NOTIFIED_PREFIX) &&
|
|
91
|
+
message.includes(FALLBACK_NOTIFIED_MIDDLE) &&
|
|
92
|
+
message.endsWith(")."));
|
|
93
|
+
}
|
|
94
|
+
/*
|
|
95
|
+
* A person with no rule for the severity and no verified method for the
|
|
96
|
+
* fallback: "Jane Doe has no verified notification method, so this page
|
|
97
|
+
* could not be delivered. Ask them to add one in User Settings >
|
|
98
|
+
* Notification Methods."
|
|
99
|
+
*/
|
|
100
|
+
const NO_VERIFIED_METHOD_SUFFIX = " has no verified notification method, so this page could not be delivered. Ask them to add one in User Settings > Notification Methods.";
|
|
101
|
+
function getOnCallNoVerifiedMethodStatusMessage(responderLabel) {
|
|
102
|
+
return `${responderLabel}${NO_VERIFIED_METHOD_SUFFIX}`;
|
|
103
|
+
}
|
|
104
|
+
function isOnCallNoVerifiedMethodStatusMessage(statusMessage) {
|
|
105
|
+
const message = (statusMessage || "").trim();
|
|
106
|
+
return (message.length > NO_VERIFIED_METHOD_SUFFIX.length &&
|
|
107
|
+
message.endsWith(NO_VERIFIED_METHOD_SUFFIX));
|
|
108
|
+
}
|
|
109
|
+
/*
|
|
110
|
+
* A person with no rule for the severity, whose fallback failed: "Jane Doe
|
|
111
|
+
* has no notification rule for Sev1 and the fallback delivery attempt
|
|
112
|
+
* failed, so this page was not delivered. Check the worker logs, then add a
|
|
113
|
+
* rule in User Settings > How to Reach Me."
|
|
114
|
+
*/
|
|
115
|
+
const FALLBACK_FAILED_MIDDLE = " has no notification rule for ";
|
|
116
|
+
const FALLBACK_FAILED_SUFFIX = " and the fallback delivery attempt failed, so this page was not delivered. Check the worker logs, then add a rule in User Settings > How to Reach Me.";
|
|
117
|
+
/*
|
|
118
|
+
* What the line says happened, before the page it sends the reader to: a
|
|
119
|
+
* log written before the page was called How to Reach Me (#6820) names the
|
|
120
|
+
* page by its old name after it, and is the same line.
|
|
121
|
+
*/
|
|
122
|
+
const FALLBACK_FAILED_REASON = " and the fallback delivery attempt failed, so this page was not delivered.";
|
|
123
|
+
function getOnCallFallbackFailedStatusMessage(data) {
|
|
124
|
+
return `${data.responderLabel}${FALLBACK_FAILED_MIDDLE}${data.severityName}${FALLBACK_FAILED_SUFFIX}`;
|
|
125
|
+
}
|
|
126
|
+
function isOnCallFallbackFailedStatusMessage(statusMessage) {
|
|
127
|
+
const message = (statusMessage || "").trim();
|
|
128
|
+
return (message.includes(FALLBACK_FAILED_MIDDLE) &&
|
|
129
|
+
message.includes(FALLBACK_FAILED_REASON));
|
|
130
|
+
}
|
|
131
|
+
/*
|
|
132
|
+
* A push that is not sent to a device, or a browser, that no longer
|
|
133
|
+
* receives push notifications (its method is not verified any more).
|
|
134
|
+
*/
|
|
135
|
+
exports.PUSH_NOT_SENT_TO_APP_THAT_NO_LONGER_RECEIVES_MESSAGE = "Push notification not sent: this device no longer receives push notifications. Open the mobile app on it to register it again.";
|
|
136
|
+
exports.PUSH_NOT_SENT_TO_BROWSER_THAT_NO_LONGER_RECEIVES_MESSAGE = "Push notification not sent: this browser no longer receives push notifications. Register it again from User Settings > Notification Methods > Push in that browser.";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import commonJsModule from "./OnCallPageLine.js";
|
|
2
|
+
export const NOBODY_ON_CALL_IN_SCHEDULE_TIMELINE_MESSAGE = commonJsModule.NOBODY_ON_CALL_IN_SCHEDULE_TIMELINE_MESSAGE;
|
|
3
|
+
export const NOT_A_PROJECT_MEMBER_STATUS_MESSAGE = commonJsModule.NOT_A_PROJECT_MEMBER_STATUS_MESSAGE;
|
|
4
|
+
export const NOT_A_PROJECT_MEMBER_TIMELINE_MESSAGE = commonJsModule.NOT_A_PROJECT_MEMBER_TIMELINE_MESSAGE;
|
|
5
|
+
export const NO_NOTIFICATION_RULES_STATUS_MESSAGE = commonJsModule.NO_NOTIFICATION_RULES_STATUS_MESSAGE;
|
|
6
|
+
export const ON_CALL_POLICY_HAS_NO_ESCALATION_RULES_MESSAGE = commonJsModule.ON_CALL_POLICY_HAS_NO_ESCALATION_RULES_MESSAGE;
|
|
7
|
+
export const PUSH_NOT_SENT_TO_APP_THAT_NO_LONGER_RECEIVES_MESSAGE = commonJsModule.PUSH_NOT_SENT_TO_APP_THAT_NO_LONGER_RECEIVES_MESSAGE;
|
|
8
|
+
export const PUSH_NOT_SENT_TO_BROWSER_THAT_NO_LONGER_RECEIVES_MESSAGE = commonJsModule.PUSH_NOT_SENT_TO_BROWSER_THAT_NO_LONGER_RECEIVES_MESSAGE;
|
|
9
|
+
export const SENDING_NOTIFICATION_TO_USER_TIMELINE_MESSAGE = commonJsModule.SENDING_NOTIFICATION_TO_USER_TIMELINE_MESSAGE;
|
|
10
|
+
export const getOnCallFallbackFailedStatusMessage = commonJsModule.getOnCallFallbackFailedStatusMessage;
|
|
11
|
+
export const getOnCallFallbackNotifiedStatusMessage = commonJsModule.getOnCallFallbackNotifiedStatusMessage;
|
|
12
|
+
export const getOnCallNoVerifiedMethodStatusMessage = commonJsModule.getOnCallNoVerifiedMethodStatusMessage;
|
|
13
|
+
export const getOnCallOptedOutStatusMessage = commonJsModule.getOnCallOptedOutStatusMessage;
|
|
14
|
+
export const isOnCallFallbackFailedStatusMessage = commonJsModule.isOnCallFallbackFailedStatusMessage;
|
|
15
|
+
export const isOnCallFallbackNotifiedStatusMessage = commonJsModule.isOnCallFallbackNotifiedStatusMessage;
|
|
16
|
+
export const isOnCallNoNotificationRulesStatusMessage = commonJsModule.isOnCallNoNotificationRulesStatusMessage;
|
|
17
|
+
export const isOnCallNoVerifiedMethodStatusMessage = commonJsModule.isOnCallNoVerifiedMethodStatusMessage;
|
|
18
|
+
export const isOnCallOptedOutStatusMessage = commonJsModule.isOnCallOptedOutStatusMessage;
|
|
@@ -88,12 +88,47 @@ export declare function getOnCallTestPageDeliveryStatus(data: {
|
|
|
88
88
|
isAcknowledged?: boolean | null | undefined;
|
|
89
89
|
isDelivered?: boolean | null | undefined;
|
|
90
90
|
}): OnCallTestPageDeliveryStatus;
|
|
91
|
+
export declare enum OnCallTestPageLineCode {
|
|
92
|
+
MethodNotVerified = "MethodNotVerified",
|
|
93
|
+
ChannelOff = "ChannelOff",
|
|
94
|
+
PushDeviceNoLongerReceives = "PushDeviceNoLongerReceives",
|
|
95
|
+
OptedOut = "OptedOut",
|
|
96
|
+
NoRuleNoFallback = "NoRuleNoFallback",
|
|
97
|
+
NoRuleFallsBack = "NoRuleFallsBack",
|
|
98
|
+
NoVerifiedMethod = "NoVerifiedMethod",
|
|
99
|
+
FallbackFailed = "FallbackFailed",
|
|
100
|
+
NotProjectMember = "NotProjectMember",
|
|
101
|
+
AwayWithNobodyCovering = "AwayWithNobodyCovering",
|
|
102
|
+
TeamHasNoMembers = "TeamHasNoMembers",
|
|
103
|
+
NobodyNextInRotation = "NobodyNextInRotation",
|
|
104
|
+
NobodyOnCall = "NobodyOnCall",
|
|
105
|
+
LevelHasNoResponders = "LevelHasNoResponders",
|
|
106
|
+
LevelPagedNobody = "LevelPagedNobody",
|
|
107
|
+
AlreadyPaged = "AlreadyPaged",
|
|
108
|
+
SendingToPerson = "SendingToPerson",
|
|
109
|
+
RulesRan = "RulesRan",
|
|
110
|
+
RunUnreadable = "RunUnreadable",
|
|
111
|
+
NobodyPaged = "NobodyPaged",
|
|
112
|
+
FirstLevelReachedNobody = "FirstLevelReachedNobody",
|
|
113
|
+
EndedUnanswered = "EndedUnanswered",
|
|
114
|
+
WentThroughEveryLevel = "WentThroughEveryLevel",
|
|
115
|
+
PolicyHasNoLevels = "PolicyHasNoLevels"
|
|
116
|
+
}
|
|
117
|
+
export interface OnCallTestPageLine {
|
|
118
|
+
code: OnCallTestPageLineCode;
|
|
119
|
+
channel?: OnCallPageChannel | undefined;
|
|
120
|
+
isMobileApp?: boolean | undefined;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
awayUntil?: string | undefined;
|
|
123
|
+
minutes?: number | undefined;
|
|
124
|
+
}
|
|
91
125
|
export interface OnCallTestPageDelivery {
|
|
92
126
|
id: string;
|
|
93
127
|
channel: OnCallPageChannel | null;
|
|
94
128
|
address?: string | undefined;
|
|
95
129
|
status: OnCallTestPageDeliveryStatus;
|
|
96
130
|
statusMessage: string;
|
|
131
|
+
statusMessageCode?: OnCallTestPageLine | undefined;
|
|
97
132
|
fix?: OnCallTestPageFix | undefined;
|
|
98
133
|
canAcknowledge: boolean;
|
|
99
134
|
sentAt: string;
|
|
@@ -116,6 +151,7 @@ export interface OnCallTestPageStep {
|
|
|
116
151
|
coveringForName?: string | undefined;
|
|
117
152
|
status: OnCallTestPageStepStatus;
|
|
118
153
|
statusMessage: string;
|
|
154
|
+
statusMessageCode?: OnCallTestPageLine | undefined;
|
|
119
155
|
deliveries: Array<OnCallTestPageDelivery>;
|
|
120
156
|
}
|
|
121
157
|
export interface OnCallTestPageResult {
|
|
@@ -128,6 +164,7 @@ export interface OnCallTestPageResult {
|
|
|
128
164
|
walksEscalation: boolean;
|
|
129
165
|
status: OnCallTestPageStatus;
|
|
130
166
|
statusMessage: string;
|
|
167
|
+
statusMessageCode?: OnCallTestPageLine | undefined;
|
|
131
168
|
startedAt: string;
|
|
132
169
|
endsAt: string;
|
|
133
170
|
acknowledgedByName?: string | undefined;
|
|
@@ -142,6 +179,7 @@ export interface OnCallTestPagePreviewMethod {
|
|
|
142
179
|
notifyAfterMinutes: number;
|
|
143
180
|
isVerified: boolean;
|
|
144
181
|
canAcknowledge: boolean;
|
|
182
|
+
isFallback?: boolean | undefined;
|
|
145
183
|
}
|
|
146
184
|
export declare enum OnCallTestPageReachedThroughCode {
|
|
147
185
|
Team = "Team",
|
|
@@ -157,6 +195,8 @@ export declare enum OnCallTestPageWarningCode {
|
|
|
157
195
|
OptedOut = "OptedOut",
|
|
158
196
|
NoRuleNoFallback = "NoRuleNoFallback",
|
|
159
197
|
NoRuleFallsBack = "NoRuleFallsBack",
|
|
198
|
+
NoRuleFallsBackToListed = "NoRuleFallsBackToListed",
|
|
199
|
+
NoRuleNothingToFallBackTo = "NoRuleNothingToFallBackTo",
|
|
160
200
|
ChannelOff = "ChannelOff",
|
|
161
201
|
MethodNotVerified = "MethodNotVerified"
|
|
162
202
|
}
|
|
@@ -200,6 +240,10 @@ export interface OnCallTestPageCost {
|
|
|
200
240
|
callCount: number;
|
|
201
241
|
whatsAppCount: number;
|
|
202
242
|
telegramCount: number;
|
|
243
|
+
paidSmsCount?: number | undefined;
|
|
244
|
+
paidCallCount?: number | undefined;
|
|
245
|
+
paidWhatsAppCount?: number | undefined;
|
|
246
|
+
paidTelegramCount?: number | undefined;
|
|
203
247
|
estimatedCostInUSDCents?: number | undefined;
|
|
204
248
|
}
|
|
205
249
|
export interface OnCallTestPagePreviewLevel {
|
|
@@ -88,12 +88,47 @@ export declare function getOnCallTestPageDeliveryStatus(data: {
|
|
|
88
88
|
isAcknowledged?: boolean | null | undefined;
|
|
89
89
|
isDelivered?: boolean | null | undefined;
|
|
90
90
|
}): OnCallTestPageDeliveryStatus;
|
|
91
|
+
export declare enum OnCallTestPageLineCode {
|
|
92
|
+
MethodNotVerified = "MethodNotVerified",
|
|
93
|
+
ChannelOff = "ChannelOff",
|
|
94
|
+
PushDeviceNoLongerReceives = "PushDeviceNoLongerReceives",
|
|
95
|
+
OptedOut = "OptedOut",
|
|
96
|
+
NoRuleNoFallback = "NoRuleNoFallback",
|
|
97
|
+
NoRuleFallsBack = "NoRuleFallsBack",
|
|
98
|
+
NoVerifiedMethod = "NoVerifiedMethod",
|
|
99
|
+
FallbackFailed = "FallbackFailed",
|
|
100
|
+
NotProjectMember = "NotProjectMember",
|
|
101
|
+
AwayWithNobodyCovering = "AwayWithNobodyCovering",
|
|
102
|
+
TeamHasNoMembers = "TeamHasNoMembers",
|
|
103
|
+
NobodyNextInRotation = "NobodyNextInRotation",
|
|
104
|
+
NobodyOnCall = "NobodyOnCall",
|
|
105
|
+
LevelHasNoResponders = "LevelHasNoResponders",
|
|
106
|
+
LevelPagedNobody = "LevelPagedNobody",
|
|
107
|
+
AlreadyPaged = "AlreadyPaged",
|
|
108
|
+
SendingToPerson = "SendingToPerson",
|
|
109
|
+
RulesRan = "RulesRan",
|
|
110
|
+
RunUnreadable = "RunUnreadable",
|
|
111
|
+
NobodyPaged = "NobodyPaged",
|
|
112
|
+
FirstLevelReachedNobody = "FirstLevelReachedNobody",
|
|
113
|
+
EndedUnanswered = "EndedUnanswered",
|
|
114
|
+
WentThroughEveryLevel = "WentThroughEveryLevel",
|
|
115
|
+
PolicyHasNoLevels = "PolicyHasNoLevels"
|
|
116
|
+
}
|
|
117
|
+
export interface OnCallTestPageLine {
|
|
118
|
+
code: OnCallTestPageLineCode;
|
|
119
|
+
channel?: OnCallPageChannel | undefined;
|
|
120
|
+
isMobileApp?: boolean | undefined;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
awayUntil?: string | undefined;
|
|
123
|
+
minutes?: number | undefined;
|
|
124
|
+
}
|
|
91
125
|
export interface OnCallTestPageDelivery {
|
|
92
126
|
id: string;
|
|
93
127
|
channel: OnCallPageChannel | null;
|
|
94
128
|
address?: string | undefined;
|
|
95
129
|
status: OnCallTestPageDeliveryStatus;
|
|
96
130
|
statusMessage: string;
|
|
131
|
+
statusMessageCode?: OnCallTestPageLine | undefined;
|
|
97
132
|
fix?: OnCallTestPageFix | undefined;
|
|
98
133
|
canAcknowledge: boolean;
|
|
99
134
|
sentAt: string;
|
|
@@ -116,6 +151,7 @@ export interface OnCallTestPageStep {
|
|
|
116
151
|
coveringForName?: string | undefined;
|
|
117
152
|
status: OnCallTestPageStepStatus;
|
|
118
153
|
statusMessage: string;
|
|
154
|
+
statusMessageCode?: OnCallTestPageLine | undefined;
|
|
119
155
|
deliveries: Array<OnCallTestPageDelivery>;
|
|
120
156
|
}
|
|
121
157
|
export interface OnCallTestPageResult {
|
|
@@ -128,6 +164,7 @@ export interface OnCallTestPageResult {
|
|
|
128
164
|
walksEscalation: boolean;
|
|
129
165
|
status: OnCallTestPageStatus;
|
|
130
166
|
statusMessage: string;
|
|
167
|
+
statusMessageCode?: OnCallTestPageLine | undefined;
|
|
131
168
|
startedAt: string;
|
|
132
169
|
endsAt: string;
|
|
133
170
|
acknowledgedByName?: string | undefined;
|
|
@@ -142,6 +179,7 @@ export interface OnCallTestPagePreviewMethod {
|
|
|
142
179
|
notifyAfterMinutes: number;
|
|
143
180
|
isVerified: boolean;
|
|
144
181
|
canAcknowledge: boolean;
|
|
182
|
+
isFallback?: boolean | undefined;
|
|
145
183
|
}
|
|
146
184
|
export declare enum OnCallTestPageReachedThroughCode {
|
|
147
185
|
Team = "Team",
|
|
@@ -157,6 +195,8 @@ export declare enum OnCallTestPageWarningCode {
|
|
|
157
195
|
OptedOut = "OptedOut",
|
|
158
196
|
NoRuleNoFallback = "NoRuleNoFallback",
|
|
159
197
|
NoRuleFallsBack = "NoRuleFallsBack",
|
|
198
|
+
NoRuleFallsBackToListed = "NoRuleFallsBackToListed",
|
|
199
|
+
NoRuleNothingToFallBackTo = "NoRuleNothingToFallBackTo",
|
|
160
200
|
ChannelOff = "ChannelOff",
|
|
161
201
|
MethodNotVerified = "MethodNotVerified"
|
|
162
202
|
}
|
|
@@ -200,6 +240,10 @@ export interface OnCallTestPageCost {
|
|
|
200
240
|
callCount: number;
|
|
201
241
|
whatsAppCount: number;
|
|
202
242
|
telegramCount: number;
|
|
243
|
+
paidSmsCount?: number | undefined;
|
|
244
|
+
paidCallCount?: number | undefined;
|
|
245
|
+
paidWhatsAppCount?: number | undefined;
|
|
246
|
+
paidTelegramCount?: number | undefined;
|
|
203
247
|
estimatedCostInUSDCents?: number | undefined;
|
|
204
248
|
}
|
|
205
249
|
export interface OnCallTestPagePreviewLevel {
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.OnCallTestPageNotPagedCode = exports.OnCallTestPageWarningCode = exports.OnCallTestPageReachedThroughCode = exports.OnCallTestPageStepStatus = exports.OnCallTestPageFix = exports.OnCallTestPageDeliveryStatus = exports.OnCallTestPageStatus = exports.OnCallTestPageKind = exports.ON_CALL_TEST_PAGE_NOTIFICATION_ACKNOWLEDGED_MESSAGE = exports.ON_CALL_TEST_PAGE_ANSWERED_MESSAGE = exports.ON_CALL_TEST_PAGE_ANSWERED_TITLE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGE_MESSAGE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGE_TITLE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGEABLE_CHANNELS = exports.ON_CALL_TEST_PAGE_RUN_UNREADABLE_MESSAGE = exports.ON_CALL_TEST_PAGE_RULES_RAN_MESSAGE = exports.ON_CALL_TEST_PAGE_WENT_THROUGH_EVERY_LEVEL_MESSAGE = exports.ON_CALL_TEST_PAGE_ENDED_UNANSWERED_MESSAGE = exports.ON_CALL_TEST_PAGE_FIRST_LEVEL_REACHED_NOBODY_MESSAGE = exports.ON_CALL_TEST_PAGE_FIRST_LEVEL_PAGED_MESSAGE = exports.ON_CALL_TEST_PAGE_NOBODY_PAGED_MESSAGE = exports.ON_CALL_TEST_PAGE_STARTED_ELSEWHERE_MESSAGE = exports.ON_CALL_TEST_PAGE_LIMIT_UNREADABLE_MESSAGE = exports.ON_CALL_TEST_PAGE_PROJECT_LIMIT_MESSAGE = exports.ON_CALL_TEST_PAGES_PER_PROJECT_PER_HOUR = exports.ON_CALL_TEST_PAGE_POLICY_INTERVAL_IN_SECONDS = exports.ON_CALL_TEST_PAGE_PERSON_INTERVAL_IN_SECONDS = exports.ON_CALL_TEST_PAGE_ESCALATION_WAIT_IN_MINUTES = exports.ON_CALL_TEST_PAGE_ANSWER_WINDOW_IN_MINUTES = exports.ON_CALL_TEST_PAGE_RECORD_KINDS = exports.OnCallTestPageRecordKind = void 0;
|
|
6
|
+
exports.OnCallTestPageNotPagedCode = exports.OnCallTestPageWarningCode = exports.OnCallTestPageReachedThroughCode = exports.OnCallTestPageStepStatus = exports.OnCallTestPageLineCode = exports.OnCallTestPageFix = exports.OnCallTestPageDeliveryStatus = exports.OnCallTestPageStatus = exports.OnCallTestPageKind = exports.ON_CALL_TEST_PAGE_NOTIFICATION_ACKNOWLEDGED_MESSAGE = exports.ON_CALL_TEST_PAGE_ANSWERED_MESSAGE = exports.ON_CALL_TEST_PAGE_ANSWERED_TITLE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGE_MESSAGE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGE_TITLE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGEABLE_CHANNELS = exports.ON_CALL_TEST_PAGE_RUN_UNREADABLE_MESSAGE = exports.ON_CALL_TEST_PAGE_RULES_RAN_MESSAGE = exports.ON_CALL_TEST_PAGE_WENT_THROUGH_EVERY_LEVEL_MESSAGE = exports.ON_CALL_TEST_PAGE_ENDED_UNANSWERED_MESSAGE = exports.ON_CALL_TEST_PAGE_FIRST_LEVEL_REACHED_NOBODY_MESSAGE = exports.ON_CALL_TEST_PAGE_FIRST_LEVEL_PAGED_MESSAGE = exports.ON_CALL_TEST_PAGE_NOBODY_PAGED_MESSAGE = exports.ON_CALL_TEST_PAGE_STARTED_ELSEWHERE_MESSAGE = exports.ON_CALL_TEST_PAGE_LIMIT_UNREADABLE_MESSAGE = exports.ON_CALL_TEST_PAGE_PROJECT_LIMIT_MESSAGE = exports.ON_CALL_TEST_PAGES_PER_PROJECT_PER_HOUR = exports.ON_CALL_TEST_PAGE_POLICY_INTERVAL_IN_SECONDS = exports.ON_CALL_TEST_PAGE_PERSON_INTERVAL_IN_SECONDS = exports.ON_CALL_TEST_PAGE_ESCALATION_WAIT_IN_MINUTES = exports.ON_CALL_TEST_PAGE_ANSWER_WINDOW_IN_MINUTES = exports.ON_CALL_TEST_PAGE_RECORD_KINDS = exports.OnCallTestPageRecordKind = void 0;
|
|
7
7
|
exports.isOnCallTestPageRecordKind = isOnCallTestPageRecordKind;
|
|
8
8
|
exports.getOnCallTestPageRuleType = getOnCallTestPageRuleType;
|
|
9
9
|
exports.isOnCallTestPage = isOnCallTestPage;
|
|
@@ -428,6 +428,74 @@ function getOnCallTestPageDeliveryStatus(data) {
|
|
|
428
428
|
return OnCallTestPageDeliveryStatus.Sending;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
+
/*
|
|
432
|
+
* WHAT A RESULT'S LINE SAYS, AS A CODE (#7260). A message that did not go
|
|
433
|
+
* out, a person or target that was not paged, and how the test ended are
|
|
434
|
+
* written on the run's rows in English, for every reader of the execution
|
|
435
|
+
* logs. The result reads the lines it knows back into a code with the
|
|
436
|
+
* values it names (OnCallTestPageLine.ts), so the Dashboard words it in the
|
|
437
|
+
* reader's language. Each line keeps its English `statusMessage`: for other
|
|
438
|
+
* readers of the API, for a Dashboard that does not know a code yet, and
|
|
439
|
+
* for a line no code stands for - a provider's own error, which is shown
|
|
440
|
+
* as written.
|
|
441
|
+
*/
|
|
442
|
+
var OnCallTestPageLineCode;
|
|
443
|
+
(function (OnCallTestPageLineCode) {
|
|
444
|
+
/*
|
|
445
|
+
* A MESSAGE'S LINE. Its method is not verified - a custom channel: turned
|
|
446
|
+
* off - so the test did not use it. `channel`.
|
|
447
|
+
*/
|
|
448
|
+
OnCallTestPageLineCode["MethodNotVerified"] = "MethodNotVerified";
|
|
449
|
+
// Its channel is switched off in the project. `channel`.
|
|
450
|
+
OnCallTestPageLineCode["ChannelOff"] = "ChannelOff";
|
|
451
|
+
/*
|
|
452
|
+
* Its push device, or browser, no longer receives push notifications.
|
|
453
|
+
* `isMobileApp`: a phone's app rather than a browser.
|
|
454
|
+
*/
|
|
455
|
+
OnCallTestPageLineCode["PushDeviceNoLongerReceives"] = "PushDeviceNoLongerReceives";
|
|
456
|
+
// A PERSON'S, OR A TARGET'S, LINE. They opted out of pages of this severity.
|
|
457
|
+
OnCallTestPageLineCode["OptedOut"] = "OptedOut";
|
|
458
|
+
// No rule covers the severity, and the project does not fall back.
|
|
459
|
+
OnCallTestPageLineCode["NoRuleNoFallback"] = "NoRuleNoFallback";
|
|
460
|
+
// No rule covers the severity: their verified methods were paged instead.
|
|
461
|
+
OnCallTestPageLineCode["NoRuleFallsBack"] = "NoRuleFallsBack";
|
|
462
|
+
// No rule covers the severity, and they have no verified method. `name`.
|
|
463
|
+
OnCallTestPageLineCode["NoVerifiedMethod"] = "NoVerifiedMethod";
|
|
464
|
+
// No rule covers the severity, and paging their verified methods failed.
|
|
465
|
+
OnCallTestPageLineCode["FallbackFailed"] = "FallbackFailed";
|
|
466
|
+
// They are not a member of the project. `name`.
|
|
467
|
+
OnCallTestPageLineCode["NotProjectMember"] = "NotProjectMember";
|
|
468
|
+
// They are away, and nobody covers for them. `name`, `awayUntil`.
|
|
469
|
+
OnCallTestPageLineCode["AwayWithNobodyCovering"] = "AwayWithNobodyCovering";
|
|
470
|
+
// A team the level names has no members. `name`: the team's.
|
|
471
|
+
OnCallTestPageLineCode["TeamHasNoMembers"] = "TeamHasNoMembers";
|
|
472
|
+
// A schedule it pages by rotation has nobody next. `name`: the schedule's.
|
|
473
|
+
OnCallTestPageLineCode["NobodyNextInRotation"] = "NobodyNextInRotation";
|
|
474
|
+
// A schedule it names has nobody on call. `name`: the schedule's.
|
|
475
|
+
OnCallTestPageLineCode["NobodyOnCall"] = "NobodyOnCall";
|
|
476
|
+
// The level names nobody: the run moved on at once.
|
|
477
|
+
OnCallTestPageLineCode["LevelHasNoResponders"] = "LevelHasNoResponders";
|
|
478
|
+
// The level named somebody and paged nobody: the run moved on at once.
|
|
479
|
+
OnCallTestPageLineCode["LevelPagedNobody"] = "LevelPagedNobody";
|
|
480
|
+
// Paged already by this test, so not paged again.
|
|
481
|
+
OnCallTestPageLineCode["AlreadyPaged"] = "AlreadyPaged";
|
|
482
|
+
// Being paged: their messages are on their way.
|
|
483
|
+
OnCallTestPageLineCode["SendingToPerson"] = "SendingToPerson";
|
|
484
|
+
// Every rule for the severity ran.
|
|
485
|
+
OnCallTestPageLineCode["RulesRan"] = "RulesRan";
|
|
486
|
+
// The test does not say which kind and severity it tests.
|
|
487
|
+
OnCallTestPageLineCode["RunUnreadable"] = "RunUnreadable";
|
|
488
|
+
// THE TEST'S OWN LINE, once it ended or failed. It reached nobody.
|
|
489
|
+
OnCallTestPageLineCode["NobodyPaged"] = "NobodyPaged";
|
|
490
|
+
// Its first level reached nobody.
|
|
491
|
+
OnCallTestPageLineCode["FirstLevelReachedNobody"] = "FirstLevelReachedNobody";
|
|
492
|
+
// Nobody acknowledged it in time. `minutes`.
|
|
493
|
+
OnCallTestPageLineCode["EndedUnanswered"] = "EndedUnanswered";
|
|
494
|
+
// It went through every level, and nobody acknowledged it.
|
|
495
|
+
OnCallTestPageLineCode["WentThroughEveryLevel"] = "WentThroughEveryLevel";
|
|
496
|
+
// The policy has no escalation levels.
|
|
497
|
+
OnCallTestPageLineCode["PolicyHasNoLevels"] = "PolicyHasNoLevels";
|
|
498
|
+
})(OnCallTestPageLineCode || (exports.OnCallTestPageLineCode = OnCallTestPageLineCode = {}));
|
|
431
499
|
// What became of one person, or one target, of a test.
|
|
432
500
|
var OnCallTestPageStepStatus;
|
|
433
501
|
(function (OnCallTestPageStepStatus) {
|
|
@@ -471,8 +539,23 @@ var OnCallTestPageWarningCode;
|
|
|
471
539
|
OnCallTestPageWarningCode["OptedOut"] = "OptedOut";
|
|
472
540
|
// No rule covers the severity, and the project does not fall back.
|
|
473
541
|
OnCallTestPageWarningCode["NoRuleNoFallback"] = "NoRuleNoFallback";
|
|
474
|
-
|
|
542
|
+
/*
|
|
543
|
+
* No rule covers the severity: the test goes to every verified method.
|
|
544
|
+
* Said by a preview that does not read what the fallback picks; one that
|
|
545
|
+
* does says one of the two below instead (#7262).
|
|
546
|
+
*/
|
|
475
547
|
OnCallTestPageWarningCode["NoRuleFallsBack"] = "NoRuleFallsBack";
|
|
548
|
+
/*
|
|
549
|
+
* No rule covers the severity: like a real page, the test falls back to
|
|
550
|
+
* the methods listed for the person - the ones the fallback picks.
|
|
551
|
+
*/
|
|
552
|
+
OnCallTestPageWarningCode["NoRuleFallsBackToListed"] = "NoRuleFallsBackToListed";
|
|
553
|
+
/*
|
|
554
|
+
* No rule covers the severity, and the fallback has no method it may use
|
|
555
|
+
* (none verified, or only ones on channels the project turned off): the
|
|
556
|
+
* test sends the person nothing.
|
|
557
|
+
*/
|
|
558
|
+
OnCallTestPageWarningCode["NoRuleNothingToFallBackTo"] = "NoRuleNothingToFallBackTo";
|
|
476
559
|
// A channel a rule of theirs uses is switched off in the project.
|
|
477
560
|
OnCallTestPageWarningCode["ChannelOff"] = "ChannelOff";
|
|
478
561
|
// A method a rule of theirs uses is not verified (a custom channel: off).
|
|
@@ -520,9 +603,13 @@ function isOnCallTestPageWalkLevelReached(startsAfterMinutes) {
|
|
|
520
603
|
return startsAfterMinutes < exports.ON_CALL_TEST_PAGE_ANSWER_WINDOW_IN_MINUTES;
|
|
521
604
|
}
|
|
522
605
|
/*
|
|
523
|
-
* What a test costs, from what each person's methods are
|
|
524
|
-
*
|
|
525
|
-
*
|
|
606
|
+
* What a test costs, from what each person's methods are - the ones their
|
|
607
|
+
* rules name, or the ones the fallback picks for a person with no rule
|
|
608
|
+
* (#7262): each verified one is sent. A project's own Twilio account pays
|
|
609
|
+
* for its SMS and calls itself; WhatsApp and Telegram are always paid from
|
|
610
|
+
* the balance where billing is on. It counts what is sent, and beside it
|
|
611
|
+
* what the balance pays for (#7263): a sentence that says "paid from this
|
|
612
|
+
* project's SMS and call balance" lists only that.
|
|
526
613
|
*/
|
|
527
614
|
function getOnCallTestPageCost(data) {
|
|
528
615
|
let smsCount = 0;
|
|
@@ -559,6 +646,10 @@ function getOnCallTestPageCost(data) {
|
|
|
559
646
|
callCount: callCount,
|
|
560
647
|
whatsAppCount: whatsAppCount,
|
|
561
648
|
telegramCount: telegramCount,
|
|
649
|
+
paidSmsCount: paidSms,
|
|
650
|
+
paidCallCount: paidCalls,
|
|
651
|
+
paidWhatsAppCount: paidWhatsApp,
|
|
652
|
+
paidTelegramCount: paidTelegram,
|
|
562
653
|
};
|
|
563
654
|
if (isPaid && data.prices) {
|
|
564
655
|
// A test call is a short one: a minute.
|
|
@@ -24,6 +24,7 @@ export const ON_CALL_TEST_PAGE_WENT_THROUGH_EVERY_LEVEL_MESSAGE = commonJsModule
|
|
|
24
24
|
export const OnCallTestPageDeliveryStatus = commonJsModule.OnCallTestPageDeliveryStatus;
|
|
25
25
|
export const OnCallTestPageFix = commonJsModule.OnCallTestPageFix;
|
|
26
26
|
export const OnCallTestPageKind = commonJsModule.OnCallTestPageKind;
|
|
27
|
+
export const OnCallTestPageLineCode = commonJsModule.OnCallTestPageLineCode;
|
|
27
28
|
export const OnCallTestPageNotPagedCode = commonJsModule.OnCallTestPageNotPagedCode;
|
|
28
29
|
export const OnCallTestPageReachedThroughCode = commonJsModule.OnCallTestPageReachedThroughCode;
|
|
29
30
|
export const OnCallTestPageRecordKind = commonJsModule.OnCallTestPageRecordKind;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnCallPageChannel } from "./OnCallPageChannel.mjs";
|
|
2
|
+
import { OnCallTestPageLine } from "./OnCallTestPage.mjs";
|
|
3
|
+
export type OnCallTestPageNotVerifiedChannel = OnCallPageChannel.Email | OnCallPageChannel.SMS | OnCallPageChannel.WhatsApp | OnCallPageChannel.Call | OnCallPageChannel.Telegram | OnCallPageChannel.Slack | OnCallPageChannel.MicrosoftTeams | OnCallPageChannel.Mattermost;
|
|
4
|
+
export declare function getOnCallTestPageNotVerifiedMessage(data: {
|
|
5
|
+
channel: OnCallTestPageNotVerifiedChannel;
|
|
6
|
+
address?: string | undefined;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare function getOnCallTestPageCustomChannelOffMessage(channelName: string): string;
|
|
9
|
+
export declare function readOnCallTestPageDeliveryLine(data: {
|
|
10
|
+
statusMessage: string | null | undefined;
|
|
11
|
+
channel: OnCallPageChannel | null | undefined;
|
|
12
|
+
}): OnCallTestPageLine | null;
|
|
13
|
+
export declare function readOnCallTestPageStepLine(data: {
|
|
14
|
+
statusMessage: string | null | undefined;
|
|
15
|
+
userName?: string | undefined;
|
|
16
|
+
teamName?: string | undefined;
|
|
17
|
+
scheduleName?: string | undefined;
|
|
18
|
+
}): OnCallTestPageLine | null;
|
|
19
|
+
export declare function readOnCallTestPageRunLine(statusMessage: string | null | undefined): OnCallTestPageLine | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnCallPageChannel } from "./OnCallPageChannel";
|
|
2
|
+
import { OnCallTestPageLine } from "./OnCallTestPage";
|
|
3
|
+
export type OnCallTestPageNotVerifiedChannel = OnCallPageChannel.Email | OnCallPageChannel.SMS | OnCallPageChannel.WhatsApp | OnCallPageChannel.Call | OnCallPageChannel.Telegram | OnCallPageChannel.Slack | OnCallPageChannel.MicrosoftTeams | OnCallPageChannel.Mattermost;
|
|
4
|
+
export declare function getOnCallTestPageNotVerifiedMessage(data: {
|
|
5
|
+
channel: OnCallTestPageNotVerifiedChannel;
|
|
6
|
+
address?: string | undefined;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare function getOnCallTestPageCustomChannelOffMessage(channelName: string): string;
|
|
9
|
+
export declare function readOnCallTestPageDeliveryLine(data: {
|
|
10
|
+
statusMessage: string | null | undefined;
|
|
11
|
+
channel: OnCallPageChannel | null | undefined;
|
|
12
|
+
}): OnCallTestPageLine | null;
|
|
13
|
+
export declare function readOnCallTestPageStepLine(data: {
|
|
14
|
+
statusMessage: string | null | undefined;
|
|
15
|
+
userName?: string | undefined;
|
|
16
|
+
teamName?: string | undefined;
|
|
17
|
+
scheduleName?: string | undefined;
|
|
18
|
+
}): OnCallTestPageLine | null;
|
|
19
|
+
export declare function readOnCallTestPageRunLine(statusMessage: string | null | undefined): OnCallTestPageLine | null;
|