@oneuptime/common 14.0.108 → 14.0.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/Models/AnalyticsModels/AuditLog.js +1 -1
  2. package/Models/DatabaseModels/CloudApp.d.mts +5 -0
  3. package/Models/DatabaseModels/CloudApp.d.ts +5 -0
  4. package/Models/DatabaseModels/CloudApp.js +112 -0
  5. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  6. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  7. package/Models/DatabaseModels/GlobalConfig.js +111 -0
  8. package/Models/DatabaseModels/Index.js +7 -0
  9. package/Models/DatabaseModels/Monitor.js +14 -0
  10. package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
  11. package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
  12. package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
  13. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
  14. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
  15. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
  16. package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
  17. package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
  18. package/Models/DatabaseModels/ProductFeedback.js +203 -0
  19. package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
  20. package/Models/DatabaseModels/Project.d.mts +6 -0
  21. package/Models/DatabaseModels/Project.d.ts +6 -0
  22. package/Models/DatabaseModels/Project.js +237 -0
  23. package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
  24. package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
  25. package/Models/DatabaseModels/ProjectMilestone.js +207 -0
  26. package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
  27. package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
  28. package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
  29. package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
  30. package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
  31. package/Models/DatabaseModels/RumSessionPin.js +16 -2
  32. package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
  33. package/Models/DatabaseModels/SecurityCase.js +8 -1
  34. package/Models/DatabaseModels/User.d.mts +2 -0
  35. package/Models/DatabaseModels/User.d.ts +2 -0
  36. package/Models/DatabaseModels/User.js +52 -0
  37. package/Models/DatabaseModels/UserOnCallLog.js +32 -4
  38. package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
  39. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  40. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +9 -0
  41. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +9 -0
  42. package/Server/Services/DatabaseService.d.mts +1 -0
  43. package/Server/Services/DatabaseService.d.ts +1 -0
  44. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +2 -1
  45. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +2 -1
  46. package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
  47. package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
  48. package/Types/AI/AIActionWords.d.mts +167 -7
  49. package/Types/AI/AIActionWords.d.ts +167 -7
  50. package/Types/AI/AIActionWords.js +474 -17
  51. package/Types/AI/AIActionWords.mjs +22 -0
  52. package/Types/AI/AIChatMessageStatus.js +3 -2
  53. package/Types/AI/AIChatRecordSeen.d.mts +6 -2
  54. package/Types/AI/AIChatRecordSeen.d.ts +6 -2
  55. package/Types/AI/AIChatRecordSeen.js +48 -9
  56. package/Types/AI/AIChatRecordSeen.mjs +2 -0
  57. package/Types/AI/AIChatTypes.d.mts +19 -1
  58. package/Types/AI/AIChatTypes.d.ts +19 -1
  59. package/Types/AI/AIChatTypes.js +44 -1
  60. package/Types/AI/AIChatTypes.mjs +3 -0
  61. package/Types/AI/AIRunAttempt.d.mts +8 -0
  62. package/Types/AI/AIRunAttempt.d.ts +8 -0
  63. package/Types/AI/AIRunAttempt.js +60 -6
  64. package/Types/AI/AIRunAttempt.mjs +3 -0
  65. package/Types/AI/AISetupActions.d.mts +9 -0
  66. package/Types/AI/AISetupActions.d.ts +9 -0
  67. package/Types/AI/AISetupActions.js +56 -0
  68. package/Types/AI/AISetupActions.mjs +10 -0
  69. package/Types/AI/CodeTask.d.mts +14 -0
  70. package/Types/AI/CodeTask.d.ts +14 -0
  71. package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
  72. package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
  73. package/Types/AI/RecordAiTokenLimit.js +153 -0
  74. package/Types/AI/RecordAiTokenLimit.mjs +8 -0
  75. package/Types/Accounts/SignInMessages.d.mts +8 -0
  76. package/Types/Accounts/SignInMessages.d.ts +8 -0
  77. package/Types/Accounts/SignInMessages.js +28 -0
  78. package/Types/Accounts/SignInMessages.mjs +5 -0
  79. package/Types/Analytics/ActivationMilestone.d.mts +48 -0
  80. package/Types/Analytics/ActivationMilestone.d.ts +48 -0
  81. package/Types/Analytics/ActivationMilestone.js +247 -0
  82. package/Types/Analytics/ActivationMilestone.mjs +16 -0
  83. package/Types/Analytics/ChecklistProgress.d.mts +11 -0
  84. package/Types/Analytics/ChecklistProgress.d.ts +11 -0
  85. package/Types/Analytics/ChecklistProgress.js +32 -0
  86. package/Types/Analytics/ChecklistProgress.mjs +2 -0
  87. package/Types/Analytics/ProductEvent.d.mts +61 -0
  88. package/Types/Analytics/ProductEvent.d.ts +61 -0
  89. package/Types/Analytics/ProductEvent.js +430 -0
  90. package/Types/Analytics/ProductEvent.mjs +14 -0
  91. package/Types/AuditLog/AuditLogAction.d.mts +5 -1
  92. package/Types/AuditLog/AuditLogAction.d.ts +5 -1
  93. package/Types/AuditLog/AuditLogAction.js +11 -0
  94. package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
  95. package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
  96. package/Types/AuditLog/AuditLogActionLabel.js +30 -0
  97. package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
  98. package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
  99. package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
  100. package/Types/AuditLog/AuditLogCoverage.js +8 -1
  101. package/Types/AuditLog/AuditLogRetention.js +7 -4
  102. package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
  103. package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
  104. package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
  105. package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
  106. package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
  107. package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
  108. package/Types/AutoRemediation/RemediationRound.js +19 -2
  109. package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
  110. package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
  111. package/Types/AutoRemediation/RemediationRoundName.js +5 -0
  112. package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
  113. package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
  114. package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
  115. package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
  116. package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
  117. package/Types/Cloud/CloudPlatform.js +7 -1
  118. package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
  119. package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
  120. package/Types/CodeRepository/CodeFileSeen.js +142 -27
  121. package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
  122. package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
  123. package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
  124. package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
  125. package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
  126. package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
  127. package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
  128. package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
  129. package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
  130. package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
  131. package/Types/CustomDomain/DnsRecordCheck.js +175 -0
  132. package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
  133. package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
  134. package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
  135. package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
  136. package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
  137. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
  138. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
  139. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
  140. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
  141. package/Types/DataObservability/DataCheckType.d.mts +4 -0
  142. package/Types/DataObservability/DataCheckType.d.ts +4 -0
  143. package/Types/DataObservability/DataCheckType.js +17 -0
  144. package/Types/DataObservability/DataCheckType.mjs +1 -0
  145. package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
  146. package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
  147. package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
  148. package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
  149. package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
  150. package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
  151. package/Types/DataObservability/DataLineageExpansion.js +166 -0
  152. package/Types/DataObservability/DataLineageExpansion.mjs +4 -0
  153. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
  154. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
  155. package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
  156. package/Types/DataObservability/DataTableLineage.d.mts +7 -0
  157. package/Types/DataObservability/DataTableLineage.d.ts +7 -0
  158. package/Types/DataObservability/DataTableLineage.js +15 -3
  159. package/Types/DataObservability/DataTableLineage.mjs +1 -0
  160. package/Types/Date.d.mts +22 -0
  161. package/Types/Date.d.ts +22 -0
  162. package/Types/Date.js +72 -3
  163. package/Types/DateLanguage.d.mts +7 -0
  164. package/Types/DateLanguage.d.ts +7 -0
  165. package/Types/DateLanguage.js +44 -1
  166. package/Types/DateLanguage.mjs +1 -0
  167. package/Types/Docs/DocsLanguage.d.mts +2 -0
  168. package/Types/Docs/DocsLanguage.d.ts +2 -0
  169. package/Types/Docs/DocsLanguage.js +23 -1
  170. package/Types/Docs/DocsLanguage.mjs +2 -0
  171. package/Types/Docs/GlossaryTerm.d.mts +82 -0
  172. package/Types/Docs/GlossaryTerm.d.ts +82 -0
  173. package/Types/Docs/GlossaryTerm.js +126 -0
  174. package/Types/Docs/GlossaryTerm.mjs +5 -0
  175. package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
  176. package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
  177. package/Types/Email/AmazonSesAuthenticationType.js +40 -0
  178. package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
  179. package/Types/Email/EmailServer.d.mts +2 -0
  180. package/Types/Email/EmailServer.d.ts +2 -0
  181. package/Types/Email/EmailTemplateType.d.mts +1 -0
  182. package/Types/Email/EmailTemplateType.d.ts +1 -0
  183. package/Types/Email/EmailTemplateType.js +2 -0
  184. package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
  185. package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
  186. package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
  187. package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
  188. package/Types/Exception/ErrorMessageRule.d.mts +4 -0
  189. package/Types/Exception/ErrorMessageRule.d.ts +4 -0
  190. package/Types/Exception/ErrorMessageRule.js +143 -0
  191. package/Types/Exception/ErrorMessageRule.mjs +5 -0
  192. package/Types/Exception/UnexplainedError.d.mts +45 -0
  193. package/Types/Exception/UnexplainedError.d.ts +45 -0
  194. package/Types/Exception/UnexplainedError.js +179 -0
  195. package/Types/Exception/UnexplainedError.mjs +11 -0
  196. package/Types/Icon/IconProp.d.mts +4 -1
  197. package/Types/Icon/IconProp.d.ts +4 -1
  198. package/Types/Icon/IconProp.js +6 -0
  199. package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
  200. package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
  201. package/Types/InstallationHealth/InstallationHealth.js +513 -0
  202. package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
  203. package/Types/LLM/LLMProviderExchange.d.mts +17 -0
  204. package/Types/LLM/LLMProviderExchange.d.ts +17 -0
  205. package/Types/LLM/LLMProviderExchange.js +70 -0
  206. package/Types/LLM/LLMProviderExchange.mjs +5 -0
  207. package/Types/Monitor/CriteriaFilter.d.mts +1 -0
  208. package/Types/Monitor/CriteriaFilter.d.ts +1 -0
  209. package/Types/Monitor/CriteriaFilter.js +3 -1
  210. package/Types/Monitor/CriteriaFilterTerms.js +1 -0
  211. package/Types/Monitor/CriteriaFilterValues.d.mts +2 -0
  212. package/Types/Monitor/CriteriaFilterValues.d.ts +2 -0
  213. package/Types/Monitor/CriteriaFilterValues.js +22 -0
  214. package/Types/Monitor/EvaluationSentence.d.mts +1 -0
  215. package/Types/Monitor/EvaluationSentence.d.ts +1 -0
  216. package/Types/Monitor/EvaluationSentence.js +34 -3
  217. package/Types/Monitor/EvaluationSentence.mjs +1 -0
  218. package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
  219. package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
  220. package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
  221. package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
  222. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
  223. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
  224. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
  225. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
  226. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
  227. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
  228. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
  229. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
  230. package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
  231. package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
  232. package/Types/Monitor/WhoIsTold.d.mts +165 -0
  233. package/Types/Monitor/WhoIsTold.d.ts +165 -0
  234. package/Types/Monitor/WhoIsTold.js +582 -0
  235. package/Types/Monitor/WhoIsTold.mjs +17 -0
  236. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
  237. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
  238. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
  239. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
  240. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
  241. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
  242. package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
  243. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
  244. package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
  245. package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
  246. package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
  247. package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
  248. package/Types/PhoneNumberDirection.d.mts +6 -0
  249. package/Types/PhoneNumberDirection.d.ts +6 -0
  250. package/Types/PhoneNumberDirection.js +123 -0
  251. package/Types/PhoneNumberDirection.mjs +6 -0
  252. package/Types/Product/ProductKey.d.mts +58 -0
  253. package/Types/Product/ProductKey.d.ts +58 -0
  254. package/Types/Product/ProductKey.js +175 -0
  255. package/Types/Product/ProductKey.mjs +8 -0
  256. package/Types/Product/ProductPins.d.mts +10 -0
  257. package/Types/Product/ProductPins.d.ts +10 -0
  258. package/Types/Product/ProductPins.js +65 -0
  259. package/Types/Product/ProductPins.mjs +6 -0
  260. package/Types/Product/ProductUsage.d.mts +21 -0
  261. package/Types/Product/ProductUsage.d.ts +21 -0
  262. package/Types/Product/ProductUsage.js +175 -0
  263. package/Types/Product/ProductUsage.mjs +10 -0
  264. package/Types/Product/ProjectProducts.d.mts +60 -0
  265. package/Types/Product/ProjectProducts.d.ts +60 -0
  266. package/Types/Product/ProjectProducts.js +336 -0
  267. package/Types/Product/ProjectProducts.mjs +19 -0
  268. package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
  269. package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
  270. package/Types/Product/ProjectProductsAnswer.js +139 -0
  271. package/Types/Product/ProjectProductsAnswer.mjs +7 -0
  272. package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
  273. package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
  274. package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
  275. package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
  276. package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
  277. package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
  278. package/Types/ProductFeedback/ProductFeedback.js +517 -0
  279. package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
  280. package/Types/ReadingDirection.d.mts +2 -0
  281. package/Types/ReadingDirection.d.ts +2 -0
  282. package/Types/ReadingDirection.js +83 -2
  283. package/Types/ReadingDirection.mjs +2 -0
  284. package/Types/Recommendation/RecommendationType.d.mts +2 -1
  285. package/Types/Recommendation/RecommendationType.d.ts +2 -1
  286. package/Types/Recommendation/RecommendationType.js +6 -0
  287. package/Types/Reminder/ReminderInterval.d.mts +7 -0
  288. package/Types/Reminder/ReminderInterval.d.ts +7 -0
  289. package/Types/Reminder/ReminderInterval.js +110 -0
  290. package/Types/Reminder/ReminderInterval.mjs +8 -0
  291. package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
  292. package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
  293. package/Types/Retention/ResolvedRecordRetention.js +124 -0
  294. package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
  295. package/Types/RollingTime/RollingTimeUtil.d.mts +1 -0
  296. package/Types/RollingTime/RollingTimeUtil.d.ts +1 -0
  297. package/Types/RollingTime/RollingTimeUtil.js +9 -0
  298. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +108 -101
  299. package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
  300. package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
  301. package/Types/ServerSending/ServerSendingStatus.js +281 -0
  302. package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
  303. package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
  304. package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
  305. package/Types/ServerSending/ServerSendingWords.js +95 -0
  306. package/Types/ServerSending/ServerSendingWords.mjs +7 -0
  307. package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
  308. package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
  309. package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
  310. package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
  311. package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
  312. package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
  313. package/Types/ServerSetup/ServerTestSend.js +160 -0
  314. package/Types/ServerSetup/ServerTestSend.mjs +10 -0
  315. package/Types/SetupHealth/SetupHealth.d.mts +283 -0
  316. package/Types/SetupHealth/SetupHealth.d.ts +283 -0
  317. package/Types/SetupHealth/SetupHealth.js +1047 -0
  318. package/Types/SetupHealth/SetupHealth.mjs +46 -0
  319. package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
  320. package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
  321. package/Types/StatusPage/StatusPageSummary.js +3 -0
  322. package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
  323. package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
  324. package/Types/Telemetry/LlmCallKind.js +1 -1
  325. package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
  326. package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
  327. package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
  328. package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
  329. package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
  330. package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
  331. package/Types/ToolImport/ToolImportCatalog.js +54 -1
  332. package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
  333. package/Types/Translator.js +64 -31
  334. package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
  335. package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
  336. package/Types/UserNotification/UserNotificationEventType.js +7 -0
  337. package/Types/UserSession/SessionEndCause.d.mts +17 -0
  338. package/Types/UserSession/SessionEndCause.d.ts +17 -0
  339. package/Types/UserSession/SessionEndCause.js +79 -0
  340. package/Types/UserSession/SessionEndCause.mjs +6 -0
  341. package/Types/UserSession/SessionSignIn.d.mts +44 -0
  342. package/Types/UserSession/SessionSignIn.d.ts +44 -0
  343. package/Types/UserSession/SessionSignIn.js +174 -0
  344. package/Types/UserSession/SessionSignIn.mjs +17 -0
  345. package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
  346. package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
  347. package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
  348. package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
  349. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
  350. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
  351. package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
  352. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
  353. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
  354. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
  355. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
  356. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
  357. package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
  358. package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
  359. package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
  360. package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
  361. package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
  362. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
  363. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
  364. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
  365. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
  366. package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
  367. package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
  368. package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
  369. package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
  370. package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
  371. package/Utils/API.js +10 -0
  372. package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
  373. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
  374. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
  375. package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
  376. package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
  377. package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
  378. package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
  379. package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
  380. package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
  381. package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
  382. package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
  383. package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
  384. package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
  385. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
  386. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
  387. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
  388. package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
  389. package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
  390. package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
  391. package/Utils/Markdown/InlineImageDataUri.js +17 -1
  392. package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
  393. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
  394. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
  395. package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
  396. package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
  397. package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
  398. package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
  399. package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
  400. package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
  401. package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
  402. package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
  403. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
  404. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
  405. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
  406. package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
  407. package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
  408. package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
  409. package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
  410. package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
  411. package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
  412. package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
  413. package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
  414. package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
  415. package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
  416. package/Utils/Monitor/MonitoringOff.d.mts +20 -0
  417. package/Utils/Monitor/MonitoringOff.d.ts +20 -0
  418. package/Utils/Monitor/MonitoringOff.js +81 -0
  419. package/Utils/Monitor/MonitoringOff.mjs +4 -0
  420. package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
  421. package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
  422. package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
  423. package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
  424. package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
  425. package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
  426. package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
  427. package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
  428. package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
  429. package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
  430. package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
  431. package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
  432. package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
  433. package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
  434. package/Utils/Slo/SloListWidgetFormat.js +20 -26
  435. package/Utils/Slo/SloOverviewText.d.mts +6 -1
  436. package/Utils/Slo/SloOverviewText.d.ts +6 -1
  437. package/Utils/Slo/SloOverviewText.js +3 -3
  438. package/Utils/Slo/SloUtil.d.mts +18 -9
  439. package/Utils/Slo/SloUtil.d.ts +18 -9
  440. package/Utils/Slo/SloUtil.js +47 -10
  441. package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
  442. package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
  443. package/Utils/Slo/SloWidgetFormat.js +198 -50
  444. package/Utils/Slo/SloWidgetFormat.mjs +7 -0
  445. package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
  446. package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
  447. package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
  448. package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
  449. package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
  450. package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
  451. package/Utils/StatusPage/GroupNestingLayout.js +12 -0
  452. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
  453. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
  454. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
  455. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
  456. package/Utils/StatusPage/ResourceExplorer.d.mts +1 -0
  457. package/Utils/StatusPage/ResourceExplorer.d.ts +1 -0
  458. package/Utils/StatusPage/ResourceExplorer.js +11 -1
  459. package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
  460. package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
  461. package/Utils/StatusPage/ResourceUptime.js +31 -6
  462. package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
  463. package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
  464. package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
  465. package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
  466. package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
  467. package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
  468. package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
  469. package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
  470. package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
  471. package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
  472. package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
  473. package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
  474. package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
  475. package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
  476. package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
  477. package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
  478. package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
  479. package/Utils/Uptime/UptimeUtil.d.mts +38 -1
  480. package/Utils/Uptime/UptimeUtil.d.ts +38 -1
  481. package/Utils/Uptime/UptimeUtil.js +270 -75
  482. package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
  483. package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
  484. package/Utils/Uptime/WorstStatusTimeline.js +190 -0
  485. package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
  486. package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
  487. package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
  488. package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
  489. package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
  490. package/package.json +1 -1
  491. package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
  492. package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
  493. package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
  494. package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MAX_DATA_LINEAGE_DRAWN_TABLES = void 0;
7
+ exports.readLineageCardId = readLineageCardId;
8
+ exports.readDataLineageExpandRequest = readDataLineageExpandRequest;
9
+ const ObjectID_1 = __importDefault(require("../ObjectID"));
10
+ const DataTableLineage_1 = require("./DataTableLineage");
11
+ /*
12
+ * DRAWING MORE OF A LINEAGE DIAGRAM WHERE IT IS.
13
+ *
14
+ * A diagram draws at most MAX_DATA_LINEAGE_NEIGHBORS tables next to each
15
+ * card each way and counts the rest on the card ("+14"). Pressing the count
16
+ * asks for the next of them (Server/Utils/DataObservability/
17
+ * DataTableLineage: expand): the nearest that are not drawn yet, problems
18
+ * first, as the drawing chose its own, with how many each of them does not
19
+ * draw beyond it, the arrows between them and every card drawn already, the
20
+ * pipelines that load them from outside and the dashboards built on them.
21
+ * The diagram adds them where it is (the Dashboard's mergeLineageExpansion)
22
+ * instead of re-centering on that table, and Reset goes back to the drawing
23
+ * as it was read.
24
+ *
25
+ * The request names what is drawn already, so nothing is drawn twice: each
26
+ * table with its side and steps, and each dashboard. Nothing it names needs
27
+ * trusting: every read is the project's own, a table it names that is not
28
+ * the project's is never drawn, and the open alerts of the tables drawn are
29
+ * counted as the person who asked may see them, as the drawing's own are.
30
+ */
31
+ // The most tables one drawing holds: its own, and the most each side.
32
+ exports.MAX_DATA_LINEAGE_DRAWN_TABLES = 2 * DataTableLineage_1.MAX_DATA_LINEAGE_TABLES_PER_SIDE + 1;
33
+ const TABLE_PREFIX = "table:";
34
+ const PIPELINE_PREFIX = "pipeline:";
35
+ // A card's id read apart: "table:<uuid>" or "pipeline:<uuid>", anything else null.
36
+ function readLineageCardId(value) {
37
+ if (typeof value !== "string") {
38
+ return null;
39
+ }
40
+ for (const [prefix, kind] of [
41
+ [TABLE_PREFIX, "table"],
42
+ [PIPELINE_PREFIX, "pipeline"],
43
+ ]) {
44
+ if (value.startsWith(prefix)) {
45
+ const id = value.slice(prefix.length);
46
+ return ObjectID_1.default.isValidUUID(id) ? { kind, id } : null;
47
+ }
48
+ }
49
+ return null;
50
+ }
51
+ function readSide(value) {
52
+ return value === DataTableLineage_1.DataLineageSide.Upstream ||
53
+ value === DataTableLineage_1.DataLineageSide.Focus ||
54
+ value === DataTableLineage_1.DataLineageSide.Downstream
55
+ ? value
56
+ : null;
57
+ }
58
+ function readDrawnTable(value) {
59
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
60
+ return null;
61
+ }
62
+ const item = value;
63
+ const side = readSide(item["side"]);
64
+ const depth = item["depth"];
65
+ if (typeof item["dataAssetId"] !== "string" ||
66
+ !ObjectID_1.default.isValidUUID(item["dataAssetId"]) ||
67
+ !side ||
68
+ typeof depth !== "number" ||
69
+ !Number.isInteger(depth) ||
70
+ Math.abs(depth) > exports.MAX_DATA_LINEAGE_DRAWN_TABLES) {
71
+ return null;
72
+ }
73
+ return { dataAssetId: item["dataAssetId"], side, depth };
74
+ }
75
+ /*
76
+ * A request to draw more, read strictly: the request, or why it is refused,
77
+ * in words to send back. The drawing's own table is in the middle whatever
78
+ * the request says of it, and a table named twice is read once.
79
+ */
80
+ function readDataLineageExpandRequest(body) {
81
+ var _a;
82
+ const data = body && typeof body === "object" && !Array.isArray(body)
83
+ ? body
84
+ : {};
85
+ const focus = readLineageCardId(data["focusNodeId"]);
86
+ if (!focus) {
87
+ return "Name the card the drawing is about: focusNodeId, as table:<table ID> or pipeline:<pipeline ID>.";
88
+ }
89
+ const node = readLineageCardId(data["nodeId"]);
90
+ if (!node) {
91
+ return "Name the card to draw more of: nodeId, as table:<table ID> or pipeline:<pipeline ID>.";
92
+ }
93
+ const focusNodeId = data["focusNodeId"];
94
+ const nodeId = data["nodeId"];
95
+ if (node.kind === "pipeline" && nodeId !== focusNodeId) {
96
+ return "A pipeline's card counts the tables it does not draw only on its own drawing: name a table's card, or that pipeline's.";
97
+ }
98
+ const side = readSide(data["side"]);
99
+ if (side !== DataTableLineage_1.DataLineageSide.Upstream &&
100
+ side !== DataTableLineage_1.DataLineageSide.Downstream) {
101
+ return "Say which way to draw more: side, Upstream or Downstream.";
102
+ }
103
+ const given = data["tables"];
104
+ if (!Array.isArray(given)) {
105
+ return "Name the tables drawn: tables, each with its dataAssetId, side and depth.";
106
+ }
107
+ if (given.length > exports.MAX_DATA_LINEAGE_DRAWN_TABLES) {
108
+ return `Name at most ${exports.MAX_DATA_LINEAGE_DRAWN_TABLES} drawn tables: no drawing holds more.`;
109
+ }
110
+ const tables = new Map();
111
+ for (const entry of given) {
112
+ const table = readDrawnTable(entry);
113
+ if (!table) {
114
+ return "Name the tables drawn: tables, each with its dataAssetId, side and depth.";
115
+ }
116
+ const isFocus = focus.kind === "table" && table.dataAssetId === focus.id;
117
+ // Only the drawing's own table is in the middle, and it always is.
118
+ if (!isFocus && table.side === DataTableLineage_1.DataLineageSide.Focus) {
119
+ return "Only the table the drawing is about is in its middle: give every other table's side as Upstream or Downstream.";
120
+ }
121
+ if (!tables.has(table.dataAssetId)) {
122
+ tables.set(table.dataAssetId, isFocus
123
+ ? {
124
+ dataAssetId: table.dataAssetId,
125
+ side: DataTableLineage_1.DataLineageSide.Focus,
126
+ depth: 0,
127
+ }
128
+ : table);
129
+ }
130
+ }
131
+ if (focus.kind === "table" && !tables.has(focus.id)) {
132
+ tables.set(focus.id, {
133
+ dataAssetId: focus.id,
134
+ side: DataTableLineage_1.DataLineageSide.Focus,
135
+ depth: 0,
136
+ });
137
+ }
138
+ if (node.kind === "table") {
139
+ const drawn = tables.get(node.id);
140
+ if (!drawn) {
141
+ return "The card to draw more of is not on the drawing: name it among the tables drawn.";
142
+ }
143
+ if (drawn.side !== DataTableLineage_1.DataLineageSide.Focus && drawn.side !== side) {
144
+ return "A table upstream has more drawn upstream, and a table downstream downstream.";
145
+ }
146
+ }
147
+ const dashboards = (_a = data["dataDashboardIds"]) !== null && _a !== void 0 ? _a : [];
148
+ if (!Array.isArray(dashboards) ||
149
+ dashboards.some((id) => {
150
+ return typeof id !== "string" || !ObjectID_1.default.isValidUUID(id);
151
+ })) {
152
+ return "Name the dashboards drawn by their IDs: dataDashboardIds.";
153
+ }
154
+ const dataDashboardIds = Array.from(new Set(dashboards));
155
+ if (dataDashboardIds.length > DataTableLineage_1.MAX_DATA_LINEAGE_DASHBOARDS) {
156
+ return `Name at most ${DataTableLineage_1.MAX_DATA_LINEAGE_DASHBOARDS} drawn dashboards: no drawing holds more.`;
157
+ }
158
+ return {
159
+ focusNodeId,
160
+ nodeId,
161
+ side,
162
+ tables: Array.from(tables.values()),
163
+ dataDashboardIds,
164
+ withColumns: data["withColumns"] === true,
165
+ };
166
+ }
@@ -0,0 +1,4 @@
1
+ import commonJsModule from "./DataLineageExpansion.js";
2
+ export const MAX_DATA_LINEAGE_DRAWN_TABLES = commonJsModule.MAX_DATA_LINEAGE_DRAWN_TABLES;
3
+ export const readDataLineageExpandRequest = commonJsModule.readDataLineageExpandRequest;
4
+ export const readLineageCardId = commonJsModule.readLineageCardId;
@@ -29,6 +29,7 @@ export declare const DATA_OBSERVABILITY_API_ROUTES: {
29
29
  tableLineage: string;
30
30
  tableLineageAnswer: string;
31
31
  pipelineLineage: string;
32
+ lineageExpand: string;
32
33
  tableSensitivity: string;
33
34
  tableErrors: string;
34
35
  aiAppTables: string;
@@ -29,6 +29,7 @@ export declare const DATA_OBSERVABILITY_API_ROUTES: {
29
29
  tableLineage: string;
30
30
  tableLineageAnswer: string;
31
31
  pipelineLineage: string;
32
+ lineageExpand: string;
32
33
  tableSensitivity: string;
33
34
  tableErrors: string;
34
35
  aiAppTables: string;
@@ -88,6 +88,8 @@ exports.DATA_OBSERVABILITY_API_ROUTES = {
88
88
  tableLineageAnswer: "/data-observability/tables/lineage/answer",
89
89
  // A pipeline's lineage: the tables it reads and writes, with how each is now: what its page draws.
90
90
  pipelineLineage: "/data-observability/pipelines/lineage",
91
+ // The next tables a card of a lineage diagram does not draw: what pressing its count asks.
92
+ lineageExpand: "/data-observability/lineage/expand",
91
93
  // What Data Security knows each of a table's columns holds.
92
94
  tableSensitivity: "/data-observability/tables/sensitivity",
93
95
  // The errors in the services that write a table, naming it.
@@ -1,6 +1,7 @@
1
1
  import { DataAssetFreshness } from "./DataAssetFreshness.mjs";
2
2
  import DataAssetKind from "./DataAssetKind.mjs";
3
3
  import DataAssetLineageSource from "./DataAssetLineageSource.mjs";
4
+ import { DataColumnMapping } from "./DataColumnLineage.mjs";
4
5
  export declare enum DataLineageNodeKind {
5
6
  Table = "Table",
6
7
  Pipeline = "Pipeline",
@@ -25,6 +26,7 @@ export declare const MAX_DATA_LINEAGE_TABLES_PER_SIDE: number;
25
26
  export declare const MAX_DATA_LINEAGE_PIPELINES_PER_TABLE: number;
26
27
  export declare const MAX_DATA_LINEAGE_DASHBOARDS: number;
27
28
  export declare const MAX_DATA_LINEAGE_ERROR_LENGTH: number;
29
+ export declare const MAX_DATA_LINEAGE_COLUMN_MAPPINGS: number;
28
30
  export interface DataTableLineagePipeline {
29
31
  dataPipelineId: string;
30
32
  name: string;
@@ -62,6 +64,7 @@ export interface DataTableLineageEdge {
62
64
  seenIn: Array<DataAssetLineageSource>;
63
65
  pipelines: Array<DataTableLineagePipeline>;
64
66
  lastSeenAt: string | null;
67
+ columnMappings?: Array<DataColumnMapping> | undefined;
65
68
  }
66
69
  export interface DataLineageHighlight {
67
70
  nodeIds: Array<string>;
@@ -69,6 +72,7 @@ export interface DataLineageHighlight {
69
72
  causeNodeIds: Array<string>;
70
73
  consequenceNodeIds: Array<string>;
71
74
  dataPipelineIds: Array<string>;
75
+ causeDataPipelineIds: Array<string>;
72
76
  }
73
77
  export interface DataTableLineage {
74
78
  focusNodeId: string;
@@ -82,6 +86,7 @@ export interface DataTableLineage {
82
86
  export interface DataTableLineageRequest {
83
87
  dataAssetId: string;
84
88
  depth?: number | undefined;
89
+ withColumns?: boolean | undefined;
85
90
  }
86
91
  export interface DataPipelineLineageRequest {
87
92
  dataPipelineId: string;
@@ -93,6 +98,8 @@ export interface DataAlertLineageAnswer {
93
98
  isCauseDrawn: boolean;
94
99
  consequenceCount: number;
95
100
  drawnConsequenceCount: number;
101
+ column: string | null;
102
+ isAlertOpen?: boolean | undefined;
96
103
  }
97
104
  export declare function getLineageTableNodeId(dataAssetId: string): string;
98
105
  export declare function getLineagePipelineNodeId(dataPipelineId: string): string;
@@ -1,6 +1,7 @@
1
1
  import { DataAssetFreshness } from "./DataAssetFreshness";
2
2
  import DataAssetKind from "./DataAssetKind";
3
3
  import DataAssetLineageSource from "./DataAssetLineageSource";
4
+ import { DataColumnMapping } from "./DataColumnLineage";
4
5
  export declare enum DataLineageNodeKind {
5
6
  Table = "Table",
6
7
  Pipeline = "Pipeline",
@@ -25,6 +26,7 @@ export declare const MAX_DATA_LINEAGE_TABLES_PER_SIDE: number;
25
26
  export declare const MAX_DATA_LINEAGE_PIPELINES_PER_TABLE: number;
26
27
  export declare const MAX_DATA_LINEAGE_DASHBOARDS: number;
27
28
  export declare const MAX_DATA_LINEAGE_ERROR_LENGTH: number;
29
+ export declare const MAX_DATA_LINEAGE_COLUMN_MAPPINGS: number;
28
30
  export interface DataTableLineagePipeline {
29
31
  dataPipelineId: string;
30
32
  name: string;
@@ -62,6 +64,7 @@ export interface DataTableLineageEdge {
62
64
  seenIn: Array<DataAssetLineageSource>;
63
65
  pipelines: Array<DataTableLineagePipeline>;
64
66
  lastSeenAt: string | null;
67
+ columnMappings?: Array<DataColumnMapping> | undefined;
65
68
  }
66
69
  export interface DataLineageHighlight {
67
70
  nodeIds: Array<string>;
@@ -69,6 +72,7 @@ export interface DataLineageHighlight {
69
72
  causeNodeIds: Array<string>;
70
73
  consequenceNodeIds: Array<string>;
71
74
  dataPipelineIds: Array<string>;
75
+ causeDataPipelineIds: Array<string>;
72
76
  }
73
77
  export interface DataTableLineage {
74
78
  focusNodeId: string;
@@ -82,6 +86,7 @@ export interface DataTableLineage {
82
86
  export interface DataTableLineageRequest {
83
87
  dataAssetId: string;
84
88
  depth?: number | undefined;
89
+ withColumns?: boolean | undefined;
85
90
  }
86
91
  export interface DataPipelineLineageRequest {
87
92
  dataPipelineId: string;
@@ -93,6 +98,8 @@ export interface DataAlertLineageAnswer {
93
98
  isCauseDrawn: boolean;
94
99
  consequenceCount: number;
95
100
  drawnConsequenceCount: number;
101
+ column: string | null;
102
+ isAlertOpen?: boolean | undefined;
96
103
  }
97
104
  export declare function getLineageTableNodeId(dataAssetId: string): string;
98
105
  export declare function getLineagePipelineNodeId(dataPipelineId: string): string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MAX_DATA_LINEAGE_ERROR_LENGTH = exports.MAX_DATA_LINEAGE_DASHBOARDS = exports.MAX_DATA_LINEAGE_PIPELINES_PER_TABLE = exports.MAX_DATA_LINEAGE_TABLES_PER_SIDE = exports.MAX_DATA_LINEAGE_NEIGHBORS = exports.DATA_LINEAGE_DEPTH_CHOICES = exports.MAX_DATA_LINEAGE_DEPTH = exports.DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH = exports.DEFAULT_DATA_LINEAGE_DEPTH = exports.DataLineageEdgeKind = exports.DataLineageSide = exports.DataLineageNodeKind = void 0;
3
+ exports.MAX_DATA_LINEAGE_COLUMN_MAPPINGS = exports.MAX_DATA_LINEAGE_ERROR_LENGTH = exports.MAX_DATA_LINEAGE_DASHBOARDS = exports.MAX_DATA_LINEAGE_PIPELINES_PER_TABLE = exports.MAX_DATA_LINEAGE_TABLES_PER_SIDE = exports.MAX_DATA_LINEAGE_NEIGHBORS = exports.DATA_LINEAGE_DEPTH_CHOICES = exports.MAX_DATA_LINEAGE_DEPTH = exports.DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH = exports.DEFAULT_DATA_LINEAGE_DEPTH = exports.DataLineageEdgeKind = exports.DataLineageSide = exports.DataLineageNodeKind = void 0;
4
4
  exports.getLineageTableNodeId = getLineageTableNodeId;
5
5
  exports.getLineagePipelineNodeId = getLineagePipelineNodeId;
6
6
  exports.getLineageDashboardNodeId = getLineageDashboardNodeId;
@@ -33,8 +33,13 @@ exports.isRunningLineageRunState = isRunningLineageRunState;
33
33
  *
34
34
  * A drawing past a few dozen cards is read by nobody, so each table shows
35
35
  * its nearest neighbours each way, problems first, and says how many more
36
- * there are (hiddenUpstreamCount, hiddenDownstreamCount): opening that table
37
- * centers the drawing on it.
36
+ * there are (hiddenUpstreamCount, hiddenDownstreamCount): pressing that
37
+ * count draws the next of them where they are (DataLineageExpansion), and
38
+ * opening that table centers the drawing on it.
39
+ *
40
+ * Asked for with its columns (withColumns), each arrow between two tables
41
+ * also says which columns of one feed which of the other, where its sources
42
+ * name them, so the diagram can follow one column up and down.
38
43
  */
39
44
  var DataLineageNodeKind;
40
45
  (function (DataLineageNodeKind) {
@@ -76,6 +81,13 @@ exports.MAX_DATA_LINEAGE_PIPELINES_PER_TABLE = 5;
76
81
  exports.MAX_DATA_LINEAGE_DASHBOARDS = 25;
77
82
  // The longest pipeline error a card carries: the pipeline's page has all of it.
78
83
  exports.MAX_DATA_LINEAGE_ERROR_LENGTH = 500;
84
+ /*
85
+ * The most column pairs one answer carries, the arrows nearest the drawing's
86
+ * own card first; an arrow past them carries none, as one whose sources name
87
+ * no columns. Each arrow carries at most MAX_COLUMN_MAPPINGS_PER_EDGE, as
88
+ * kept.
89
+ */
90
+ exports.MAX_DATA_LINEAGE_COLUMN_MAPPINGS = 10000;
79
91
  function getLineageTableNodeId(dataAssetId) {
80
92
  return `table:${dataAssetId}`;
81
93
  }
@@ -5,6 +5,7 @@ export const DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH = commonJsModule.DEFAULT_DATA_P
5
5
  export const DataLineageEdgeKind = commonJsModule.DataLineageEdgeKind;
6
6
  export const DataLineageNodeKind = commonJsModule.DataLineageNodeKind;
7
7
  export const DataLineageSide = commonJsModule.DataLineageSide;
8
+ export const MAX_DATA_LINEAGE_COLUMN_MAPPINGS = commonJsModule.MAX_DATA_LINEAGE_COLUMN_MAPPINGS;
8
9
  export const MAX_DATA_LINEAGE_DASHBOARDS = commonJsModule.MAX_DATA_LINEAGE_DASHBOARDS;
9
10
  export const MAX_DATA_LINEAGE_DEPTH = commonJsModule.MAX_DATA_LINEAGE_DEPTH;
10
11
  export const MAX_DATA_LINEAGE_ERROR_LENGTH = commonJsModule.MAX_DATA_LINEAGE_ERROR_LENGTH;
package/Types/Date.d.mts CHANGED
@@ -65,6 +65,7 @@ export default class OneUptimeDate {
65
65
  use12HourFormat?: boolean | undefined;
66
66
  }): string;
67
67
  static getDateAsLocalDayMonthString(date: Date | string): string;
68
+ static getDateAsLocalDayMonthYearString(date: Date | string): string;
68
69
  static getDateAsLocalDayMonthHourString(date: Date | string): string;
69
70
  /**
70
71
  * "02 Mar, 14:30" — a day-qualified wall clock, for chart axes whose
@@ -105,10 +106,14 @@ export default class OneUptimeDate {
105
106
  * configured timezone (falling back to the one the browser reports), and the
106
107
  * 12- vs 24-hour choice follows the operating system's clock preference
107
108
  * unless a caller overrides it.
109
+ *
110
+ * With `showYear`, the year too: "Mar 1, 2025, 14:30" - for a window whose
111
+ * ends are not both in this year (isWindowInTheCurrentYear).
108
112
  */
109
113
  static getDateAsLocalShortDateTimeString(date: Date | string, options?: {
110
114
  use12HourFormat?: boolean | undefined;
111
115
  includeSeconds?: boolean | undefined;
116
+ showYear?: boolean | undefined;
112
117
  }): string;
113
118
  /**
114
119
  * A moment as a list's cell writes it: "Oct 22, 7:25 AM" - a date of this
@@ -134,6 +139,7 @@ export default class OneUptimeDate {
134
139
  now?: Date | undefined;
135
140
  }): string;
136
141
  static getDateAsLocalMonthYearString(date: Date | string): string;
142
+ static getDateAsLocalYearString(date: Date | string): string;
137
143
  static getMillisecondsBetweenTwoUnixNanoDates(startDate: number, endDate: number): number;
138
144
  static moveDateToTheDayOfWeek(date: Date, moveToWeek: Date, dayOfWeek: DayOfWeek, timezone?: string | undefined): Date;
139
145
  static getDayOfTheWeekIndex(date: Date): number;
@@ -170,6 +176,22 @@ export default class OneUptimeDate {
170
176
  }): string;
171
177
  private static getEnglishDateInTimezone;
172
178
  static isSameYearInTimezone(a: Date | string, b: Date | string, timezone?: string | undefined): boolean;
179
+ /**
180
+ * Whether both ends of a window fall in the current year, on the reader's
181
+ * calendar (the configured timezone, New Year included): a label of the
182
+ * window can then leave the year out, as the time range button does
183
+ * ("Mar 1, 14:30 – Mar 2, 09:00"). Otherwise it cannot: a custom range of
184
+ * exactly a year read "Nov 12, 9:49 AM – Nov 12, 9:49 AM", as if it were
185
+ * no time at all, and a range in an earlier year did not say which (issue
186
+ * #7124).
187
+ *
188
+ * "The current year" is the one `now` is in: now, unless a caller says.
189
+ */
190
+ static isWindowInTheCurrentYear(data: {
191
+ start: Date | string;
192
+ end: Date | string;
193
+ now?: Date | undefined;
194
+ }): boolean;
173
195
  static getDateAsCustomFormattedStringInTimezone(data: {
174
196
  date: Date | string;
175
197
  format: string;
package/Types/Date.d.ts CHANGED
@@ -65,6 +65,7 @@ export default class OneUptimeDate {
65
65
  use12HourFormat?: boolean | undefined;
66
66
  }): string;
67
67
  static getDateAsLocalDayMonthString(date: Date | string): string;
68
+ static getDateAsLocalDayMonthYearString(date: Date | string): string;
68
69
  static getDateAsLocalDayMonthHourString(date: Date | string): string;
69
70
  /**
70
71
  * "02 Mar, 14:30" — a day-qualified wall clock, for chart axes whose
@@ -105,10 +106,14 @@ export default class OneUptimeDate {
105
106
  * configured timezone (falling back to the one the browser reports), and the
106
107
  * 12- vs 24-hour choice follows the operating system's clock preference
107
108
  * unless a caller overrides it.
109
+ *
110
+ * With `showYear`, the year too: "Mar 1, 2025, 14:30" - for a window whose
111
+ * ends are not both in this year (isWindowInTheCurrentYear).
108
112
  */
109
113
  static getDateAsLocalShortDateTimeString(date: Date | string, options?: {
110
114
  use12HourFormat?: boolean | undefined;
111
115
  includeSeconds?: boolean | undefined;
116
+ showYear?: boolean | undefined;
112
117
  }): string;
113
118
  /**
114
119
  * A moment as a list's cell writes it: "Oct 22, 7:25 AM" - a date of this
@@ -134,6 +139,7 @@ export default class OneUptimeDate {
134
139
  now?: Date | undefined;
135
140
  }): string;
136
141
  static getDateAsLocalMonthYearString(date: Date | string): string;
142
+ static getDateAsLocalYearString(date: Date | string): string;
137
143
  static getMillisecondsBetweenTwoUnixNanoDates(startDate: number, endDate: number): number;
138
144
  static moveDateToTheDayOfWeek(date: Date, moveToWeek: Date, dayOfWeek: DayOfWeek, timezone?: string | undefined): Date;
139
145
  static getDayOfTheWeekIndex(date: Date): number;
@@ -170,6 +176,22 @@ export default class OneUptimeDate {
170
176
  }): string;
171
177
  private static getEnglishDateInTimezone;
172
178
  static isSameYearInTimezone(a: Date | string, b: Date | string, timezone?: string | undefined): boolean;
179
+ /**
180
+ * Whether both ends of a window fall in the current year, on the reader's
181
+ * calendar (the configured timezone, New Year included): a label of the
182
+ * window can then leave the year out, as the time range button does
183
+ * ("Mar 1, 14:30 – Mar 2, 09:00"). Otherwise it cannot: a custom range of
184
+ * exactly a year read "Nov 12, 9:49 AM – Nov 12, 9:49 AM", as if it were
185
+ * no time at all, and a range in an earlier year did not say which (issue
186
+ * #7124).
187
+ *
188
+ * "The current year" is the one `now` is in: now, unless a caller says.
189
+ */
190
+ static isWindowInTheCurrentYear(data: {
191
+ start: Date | string;
192
+ end: Date | string;
193
+ now?: Date | undefined;
194
+ }): boolean;
173
195
  static getDateAsCustomFormattedStringInTimezone(data: {
174
196
  date: Date | string;
175
197
  format: string;
package/Types/Date.js CHANGED
@@ -417,6 +417,31 @@ class OneUptimeDate {
417
417
  });
418
418
  });
419
419
  }
420
+ /*
421
+ * A day with its month and its year, as a chart's axis names a day when
422
+ * its window holds a year or more: "02 Mar 2026" in English. In such a
423
+ * window "12 Nov" is two days, a year apart (XAxisUtil).
424
+ *
425
+ * In another language, as that language writes a short date with its year
426
+ * (Intl): "2. März 2026", "2 mars 2026", "2026年3月2日", "۲ مارس ۲۰۲۶".
427
+ */
428
+ static getDateAsLocalDayMonthYearString(date) {
429
+ const instant = this.fromString(date);
430
+ return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
431
+ const local = this.inCurrentTimezone(instant);
432
+ const day = this.padDatePart(local.date());
433
+ const month = this.getLocalShortMonthName(instant);
434
+ return `${day} ${month} ${local.year()}`;
435
+ }, (language, locale) => {
436
+ // "2. März 2026", "2 mars 2026", "2026年3月2日", "۲ مارس ۲۰۲۶".
437
+ return this.getLocalizedDateText({
438
+ date: instant,
439
+ language,
440
+ locale,
441
+ shape: { onlyShowDate: true },
442
+ });
443
+ });
444
+ }
420
445
  /*
421
446
  * The hour a chart's bucket starts at, with its day: "02 Mar, 14:00" in
422
447
  * English.
@@ -501,11 +526,15 @@ class OneUptimeDate {
501
526
  * configured timezone (falling back to the one the browser reports), and the
502
527
  * 12- vs 24-hour choice follows the operating system's clock preference
503
528
  * unless a caller overrides it.
529
+ *
530
+ * With `showYear`, the year too: "Mar 1, 2025, 14:30" - for a window whose
531
+ * ends are not both in this year (isWindowInTheCurrentYear).
504
532
  */
505
533
  static getDateAsLocalShortDateTimeString(date, options) {
506
534
  var _a;
507
535
  date = this.fromString(date);
508
536
  const use12HourFormat = (_a = options === null || options === void 0 ? void 0 : options.use12HourFormat) !== null && _a !== void 0 ? _a : this.getUserPrefers12HourFormat();
537
+ const showYear = Boolean(options === null || options === void 0 ? void 0 : options.showYear);
509
538
  let timeFormat = use12HourFormat ? "h:mm" : "HH:mm";
510
539
  if (options === null || options === void 0 ? void 0 : options.includeSeconds) {
511
540
  timeFormat += ":ss";
@@ -514,16 +543,20 @@ class OneUptimeDate {
514
543
  timeFormat += " A";
515
544
  }
516
545
  const instant = date;
546
+ const dateFormat = showYear ? "MMM D, YYYY" : "MMM D";
517
547
  return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
518
- return this.inCurrentTimezone(instant).format(`MMM D, ${timeFormat}`);
548
+ return this.inCurrentTimezone(instant).format(`${dateFormat}, ${timeFormat}`);
519
549
  }, (language, locale) => {
520
- // "1. März, 14:30", "1 mars, 14:30", "3月1日 14:30".
550
+ /*
551
+ * "1. März, 14:30", "1 mars, 14:30", "3月1日 14:30"; with the year,
552
+ * "1. März 2025, 14:30", "1 mars 2025, 14:30", "2025年3月1日 14:30".
553
+ */
521
554
  return this.getLocalizedDateText({
522
555
  date: instant,
523
556
  language,
524
557
  locale,
525
558
  shape: {
526
- hideYear: true,
559
+ hideYear: !showYear,
527
560
  use12HourFormat,
528
561
  showSeconds: Boolean(options === null || options === void 0 ? void 0 : options.includeSeconds),
529
562
  },
@@ -587,6 +620,26 @@ class OneUptimeDate {
587
620
  return format ? format.format(instant) : null;
588
621
  });
589
622
  }
623
+ /*
624
+ * A moment's year on the reader's calendar (the configured timezone), as
625
+ * the reader's language writes a year alone: "2026"; "۲۰۲۶" in Persian;
626
+ * "2026年" in Japanese and Chinese; "2026년" in Korean. A yearly chart
627
+ * axis names its ticks with it, as its month ticks are named with
628
+ * getDateAsLocalMonthYearString ("2026年10月").
629
+ */
630
+ static getDateAsLocalYearString(date) {
631
+ const instant = this.fromString(date);
632
+ return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
633
+ return this.inCurrentTimezone(instant).year().toString();
634
+ }, (_language, locale) => {
635
+ const format = (0, DateLanguage_1.getDateTimeFormat)({
636
+ locale,
637
+ timezones: this.getCurrentTimezoneNames(),
638
+ options: { year: "numeric" },
639
+ });
640
+ return format ? format.format(instant) : null;
641
+ });
642
+ }
590
643
  static getMillisecondsBetweenTwoUnixNanoDates(startDate, endDate) {
591
644
  return endDate - startDate;
592
645
  }
@@ -728,6 +781,22 @@ class OneUptimeDate {
728
781
  };
729
782
  return yearOf(a) === yearOf(b);
730
783
  }
784
+ /**
785
+ * Whether both ends of a window fall in the current year, on the reader's
786
+ * calendar (the configured timezone, New Year included): a label of the
787
+ * window can then leave the year out, as the time range button does
788
+ * ("Mar 1, 14:30 – Mar 2, 09:00"). Otherwise it cannot: a custom range of
789
+ * exactly a year read "Nov 12, 9:49 AM – Nov 12, 9:49 AM", as if it were
790
+ * no time at all, and a range in an earlier year did not say which (issue
791
+ * #7124).
792
+ *
793
+ * "The current year" is the one `now` is in: now, unless a caller says.
794
+ */
795
+ static isWindowInTheCurrentYear(data) {
796
+ const now = data.now || this.getCurrentDate();
797
+ return (this.isSameYearInTimezone(data.start, now) &&
798
+ this.isSameYearInTimezone(data.end, now));
799
+ }
731
800
  /*
732
801
  * Format an instant with an explicit moment format string, resolved in an
733
802
  * IANA timezone. The formatted-string helpers above each bake in a layout;
@@ -11,6 +11,13 @@ export declare const getDateLocale: (language: string | null | undefined) => str
11
11
  export declare const getReaderNumberLocale: () => string;
12
12
  export declare const getReaderDateLocale: () => string;
13
13
  export declare const formatReaderNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
14
+ export interface ReaderFigureOptions {
15
+ decimals: number;
16
+ dropTrailingZeros?: boolean | undefined;
17
+ isPercent?: boolean | undefined;
18
+ language?: string | undefined;
19
+ }
20
+ export declare const formatReaderFigure: (value: number, options: ReaderFigureOptions) => string;
14
21
  export declare const MAX_REMEMBERED_DATE_TEXTS: number;
15
22
  export declare const rememberEnglishOf: (localized: string, english: () => string) => void;
16
23
  export declare const getEnglishOf: (text: string) => string | undefined;
@@ -11,6 +11,13 @@ export declare const getDateLocale: (language: string | null | undefined) => str
11
11
  export declare const getReaderNumberLocale: () => string;
12
12
  export declare const getReaderDateLocale: () => string;
13
13
  export declare const formatReaderNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
14
+ export interface ReaderFigureOptions {
15
+ decimals: number;
16
+ dropTrailingZeros?: boolean | undefined;
17
+ isPercent?: boolean | undefined;
18
+ language?: string | undefined;
19
+ }
20
+ export declare const formatReaderFigure: (value: number, options: ReaderFigureOptions) => string;
14
21
  export declare const MAX_REMEMBERED_DATE_TEXTS: number;
15
22
  export declare const rememberEnglishOf: (localized: string, english: () => string) => void;
16
23
  export declare const getEnglishOf: (text: string) => string | undefined;
@@ -33,7 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.writeDigitsInLocale = exports.getDigitsOf = exports.formatDecimal = exports.formatDurationText = exports.formatDurationUnit = exports.formatRelativeAmount = exports.formatRelativeDate = exports.getRelativeDistance = exports.formatDateText = exports.getDateTimeOptions = exports.getDateTimeFormat = exports.writeInDateDisplayLanguage = exports.forgetRememberedDateTexts = exports.getEnglishOf = exports.rememberEnglishOf = exports.MAX_REMEMBERED_DATE_TEXTS = exports.formatReaderNumber = exports.getReaderDateLocale = exports.getReaderNumberLocale = exports.getDateLocale = exports.getNumberLocale = exports.writesLatinDigits = exports.LATIN_DIGIT_LANGUAGES = exports.setDateDisplayLanguage = exports.getDateDisplayLanguage = exports.isEnglishDateLanguage = exports.ENGLISH_DATE_LANGUAGE = void 0;
36
+ exports.writeDigitsInLocale = exports.getDigitsOf = exports.formatDecimal = exports.formatDurationText = exports.formatDurationUnit = exports.formatRelativeAmount = exports.formatRelativeDate = exports.getRelativeDistance = exports.formatDateText = exports.getDateTimeOptions = exports.getDateTimeFormat = exports.writeInDateDisplayLanguage = exports.forgetRememberedDateTexts = exports.getEnglishOf = exports.rememberEnglishOf = exports.MAX_REMEMBERED_DATE_TEXTS = exports.formatReaderFigure = exports.formatReaderNumber = exports.getReaderDateLocale = exports.getReaderNumberLocale = exports.getDateLocale = exports.getNumberLocale = exports.writesLatinDigits = exports.LATIN_DIGIT_LANGUAGES = exports.setDateDisplayLanguage = exports.getDateDisplayLanguage = exports.isEnglishDateLanguage = exports.ENGLISH_DATE_LANGUAGE = void 0;
37
37
  exports.withDateDisplayLanguage = withDateDisplayLanguage;
38
38
  exports.inEnglishDates = inEnglishDates;
39
39
  const moment_timezone_1 = __importDefault(require("moment-timezone"));
@@ -235,6 +235,49 @@ const formatReaderNumber = (value, options) => {
235
235
  }
236
236
  };
237
237
  exports.formatReaderNumber = formatReaderNumber;
238
+ const figureFormatCache = new Map();
239
+ const getFigureFormat = (language, options) => {
240
+ const key = [
241
+ language,
242
+ options.decimals,
243
+ options.dropTrailingZeros ? "drop" : "keep",
244
+ options.isPercent ? "percent" : "decimal",
245
+ ].join("|");
246
+ if (!figureFormatCache.has(key)) {
247
+ let format = null;
248
+ try {
249
+ format = new Intl.NumberFormat((0, exports.getNumberLocale)(language), {
250
+ style: options.isPercent ? "percent" : "decimal",
251
+ minimumFractionDigits: options.dropTrailingZeros ? 0 : options.decimals,
252
+ maximumFractionDigits: options.decimals,
253
+ });
254
+ }
255
+ catch (_a) {
256
+ format = null;
257
+ }
258
+ figureFormatCache.set(key, format);
259
+ }
260
+ return figureFormatCache.get(key) || null;
261
+ };
262
+ const formatReaderFigure = (value, options) => {
263
+ const decimals = Math.max(0, Math.min(20, Math.floor(options.decimals)));
264
+ const fixed = value.toFixed(decimals);
265
+ const english = `${options.dropTrailingZeros ? Number(fixed).toString() : fixed}${options.isPercent ? "%" : ""}`;
266
+ const language = normalizeLanguage(options.language === undefined
267
+ ? (0, exports.getDateDisplayLanguage)()
268
+ : options.language);
269
+ if ((0, exports.isEnglishDateLanguage)(language) || !Number.isFinite(value)) {
270
+ return english;
271
+ }
272
+ const format = getFigureFormat(language, Object.assign(Object.assign({}, options), { decimals: decimals }));
273
+ if (!format) {
274
+ return english;
275
+ }
276
+ // Rounded once, as toFixed rounds it, so every language says the same figure.
277
+ const rounded = Number(fixed);
278
+ return format.format(options.isPercent ? rounded / 100 : rounded);
279
+ };
280
+ exports.formatReaderFigure = formatReaderFigure;
238
281
  /*
239
282
  * THE ENGLISH OF A DATE WRITTEN IN ANOTHER LANGUAGE.
240
283
  *