@oneuptime/common 14.0.93 → 14.0.94

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 (191) hide show
  1. package/Models/DatabaseModels/Alert.d.mts +2 -0
  2. package/Models/DatabaseModels/Alert.d.ts +2 -0
  3. package/Models/DatabaseModels/Alert.js +54 -0
  4. package/Models/DatabaseModels/CloudAccount.d.mts +29 -0
  5. package/Models/DatabaseModels/CloudAccount.d.ts +29 -0
  6. package/Models/DatabaseModels/CloudAccount.js +546 -0
  7. package/Models/DatabaseModels/CloudAccount.mjs +2 -0
  8. package/Models/DatabaseModels/CloudResource.d.mts +8 -0
  9. package/Models/DatabaseModels/CloudResource.d.ts +8 -0
  10. package/Models/DatabaseModels/CloudResource.js +169 -0
  11. package/Models/DatabaseModels/CloudResourceLabelRule.d.mts +1 -0
  12. package/Models/DatabaseModels/CloudResourceLabelRule.d.ts +1 -0
  13. package/Models/DatabaseModels/CloudResourceLabelRule.js +40 -0
  14. package/Models/DatabaseModels/CloudResourceOwnerRule.d.mts +1 -0
  15. package/Models/DatabaseModels/CloudResourceOwnerRule.d.ts +1 -0
  16. package/Models/DatabaseModels/CloudResourceOwnerRule.js +40 -0
  17. package/Models/DatabaseModels/Incident.d.mts +2 -0
  18. package/Models/DatabaseModels/Incident.d.ts +2 -0
  19. package/Models/DatabaseModels/Incident.js +54 -0
  20. package/Models/DatabaseModels/Index.js +2 -0
  21. package/Models/DatabaseModels/Monitor.d.mts +2 -0
  22. package/Models/DatabaseModels/Monitor.d.ts +2 -0
  23. package/Models/DatabaseModels/Monitor.js +54 -0
  24. package/Models/DatabaseModels/OpenSourceDeployment.d.mts +1 -0
  25. package/Models/DatabaseModels/OpenSourceDeployment.d.ts +1 -0
  26. package/Models/DatabaseModels/OpenSourceDeployment.js +25 -6
  27. package/Models/DatabaseModels/ScheduledMaintenance.d.mts +1 -0
  28. package/Models/DatabaseModels/ScheduledMaintenance.d.ts +1 -0
  29. package/Models/DatabaseModels/ScheduledMaintenance.js +50 -0
  30. package/Types/AI/AiAffectedResources.d.mts +40 -0
  31. package/Types/AI/AiAffectedResources.d.ts +40 -0
  32. package/Types/AI/AiAffectedResources.js +292 -0
  33. package/Types/AI/AiAffectedResources.mjs +10 -0
  34. package/Types/Cloud/CloudAccountSummary.d.mts +25 -0
  35. package/Types/Cloud/CloudAccountSummary.d.ts +25 -0
  36. package/Types/Cloud/CloudAccountSummary.js +114 -0
  37. package/Types/Cloud/CloudAccountSummary.mjs +5 -0
  38. package/Types/Cloud/CloudEndpointMatch.d.mts +26 -0
  39. package/Types/Cloud/CloudEndpointMatch.d.ts +26 -0
  40. package/Types/Cloud/CloudEndpointMatch.js +134 -0
  41. package/Types/Cloud/CloudEndpointMatch.mjs +5 -0
  42. package/Types/Cloud/CloudInventory.d.mts +34 -0
  43. package/Types/Cloud/CloudInventory.d.ts +34 -0
  44. package/Types/Cloud/CloudInventory.js +362 -0
  45. package/Types/Cloud/CloudInventory.mjs +22 -0
  46. package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
  47. package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
  48. package/Types/Cloud/CloudResourceCatalog.js +29 -1
  49. package/Types/Cloud/CloudResourceCatalog.mjs +2 -0
  50. package/Types/Cloud/CloudResourceIndex.d.mts +44 -0
  51. package/Types/Cloud/CloudResourceIndex.d.ts +44 -0
  52. package/Types/Cloud/CloudResourceIndex.js +191 -0
  53. package/Types/Cloud/CloudResourceIndex.mjs +4 -0
  54. package/Types/CloudConnection/CloudConnectionCatalog.d.mts +3 -0
  55. package/Types/CloudConnection/CloudConnectionCatalog.d.ts +3 -0
  56. package/Types/CloudConnection/CloudConnectionCatalog.js +70 -12
  57. package/Types/CloudConnection/CloudConnectionCatalog.mjs +2 -0
  58. package/Types/CloudConnection/CloudConnectionPaste.js +7 -1
  59. package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +43 -3
  60. package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +43 -3
  61. package/Types/CloudConnection/CloudConnectionSetupCommands.js +280 -30
  62. package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +14 -0
  63. package/Types/CloudConnection/CloudConnectionTest.d.mts +1 -0
  64. package/Types/CloudConnection/CloudConnectionTest.d.ts +1 -0
  65. package/Types/CloudConnection/CloudConnectionTest.js +1 -0
  66. package/Types/Dashboard/DashboardComponents/DashboardTableComponent.d.mts +19 -0
  67. package/Types/Dashboard/DashboardComponents/DashboardTableComponent.d.ts +19 -0
  68. package/Types/Dashboard/DashboardComponents/DashboardTableComponent.js +27 -1
  69. package/Types/Dashboard/DashboardComponents/DashboardTableComponent.mjs +3 -0
  70. package/Types/Date.d.mts +1 -0
  71. package/Types/Date.d.ts +1 -0
  72. package/Types/Date.js +32 -6
  73. package/Types/DateLanguage.d.mts +2 -0
  74. package/Types/DateLanguage.d.ts +2 -0
  75. package/Types/DateLanguage.js +67 -12
  76. package/Types/DateLanguage.mjs +2 -0
  77. package/Types/Domain.d.mts +2 -0
  78. package/Types/Domain.d.ts +2 -0
  79. package/Types/Domain.js +27 -0
  80. package/Types/Email/EmailTemplateType.d.mts +1 -0
  81. package/Types/Email/EmailTemplateType.d.ts +1 -0
  82. package/Types/Email/EmailTemplateType.js +1 -0
  83. package/Types/Email.d.mts +1 -0
  84. package/Types/Email.d.ts +1 -0
  85. package/Types/Email.js +16 -0
  86. package/Types/Monitor/ExternalStatusPageMonitor/ExternalStatusPageMonitorResponse.d.mts +4 -0
  87. package/Types/Monitor/ExternalStatusPageMonitor/ExternalStatusPageMonitorResponse.d.ts +4 -0
  88. package/Types/Monitor/MonitorStepExternalStatusPageMonitor.d.mts +3 -0
  89. package/Types/Monitor/MonitorStepExternalStatusPageMonitor.d.ts +3 -0
  90. package/Types/Monitor/MonitorStepExternalStatusPageMonitor.js +35 -0
  91. package/Types/Monitor/MonitorTemplateSyncField.js +6 -1
  92. package/Types/Monitor/UptimeBarTooltipMaintenance.d.mts +15 -0
  93. package/Types/Monitor/UptimeBarTooltipMaintenance.d.ts +15 -0
  94. package/Types/Monitor/UptimeBarTooltipMaintenance.js +2 -0
  95. package/Types/Monitor/UptimeBarTooltipMaintenance.mjs +1 -0
  96. package/Types/Monitor/UptimeHistoryLabels.d.mts +5 -0
  97. package/Types/Monitor/UptimeHistoryLabels.d.ts +5 -0
  98. package/Types/Monitor/UptimeHistoryLabels.js +5 -0
  99. package/Types/ReadingDirection.d.mts +10 -0
  100. package/Types/ReadingDirection.d.ts +10 -0
  101. package/Types/ReadingDirection.js +171 -0
  102. package/Types/ReadingDirection.mjs +10 -0
  103. package/Types/Rules/RuleCriteriaFieldRegistry.js +2 -0
  104. package/Types/Runbook/HttpStepVariables.d.mts +8 -0
  105. package/Types/Runbook/HttpStepVariables.d.ts +8 -0
  106. package/Types/Runbook/HttpStepVariables.js +109 -0
  107. package/Types/Runbook/HttpStepVariables.mjs +5 -0
  108. package/Types/Runbook/RunbookStep.d.mts +1 -0
  109. package/Types/Runbook/RunbookStep.d.ts +1 -0
  110. package/Types/Runbook/RunnerFeatures.d.mts +1 -0
  111. package/Types/Runbook/RunnerFeatures.d.ts +1 -0
  112. package/Types/Runbook/RunnerFeatures.js +15 -3
  113. package/Types/Runbook/RunnerFeatures.mjs +1 -0
  114. package/Types/Runbook/SshHostKey.d.mts +22 -0
  115. package/Types/Runbook/SshHostKey.d.ts +22 -0
  116. package/Types/Runbook/SshHostKey.js +201 -0
  117. package/Types/Runbook/SshHostKey.mjs +10 -0
  118. package/Types/Runner/CodeRepositoryRunner.js +2 -3
  119. package/Types/Runner/GlobalAIAgentsGone.d.mts +1 -0
  120. package/Types/Runner/GlobalAIAgentsGone.d.ts +1 -0
  121. package/Types/Runner/GlobalAIAgentsGone.js +19 -0
  122. package/Types/Runner/GlobalAIAgentsGone.mjs +2 -0
  123. package/Types/Runner/GlobalRunnerWork.d.mts +1 -0
  124. package/Types/Runner/GlobalRunnerWork.d.ts +1 -0
  125. package/Types/Runner/GlobalRunnerWork.js +21 -1
  126. package/Types/Runner/GlobalRunnerWork.mjs +1 -0
  127. package/Types/SSO/SignInMethods.d.mts +31 -0
  128. package/Types/SSO/SignInMethods.d.ts +31 -0
  129. package/Types/SSO/SignInMethods.js +160 -0
  130. package/Types/SSO/SignInMethods.mjs +8 -0
  131. package/Types/ScheduledMaintenance/ScheduledMaintenancePublication.d.mts +24 -0
  132. package/Types/ScheduledMaintenance/ScheduledMaintenancePublication.d.ts +24 -0
  133. package/Types/ScheduledMaintenance/ScheduledMaintenancePublication.js +159 -0
  134. package/Types/ScheduledMaintenance/ScheduledMaintenancePublication.mjs +8 -0
  135. package/Types/StatusPage/StatusPageLanguage.d.mts +6 -0
  136. package/Types/StatusPage/StatusPageLanguage.d.ts +6 -0
  137. package/Types/StatusPage/StatusPageLanguage.js +17 -1
  138. package/Types/StatusPage/StatusPageLanguage.mjs +1 -0
  139. package/Types/Workflow/WorkflowPlan.d.mts +7 -0
  140. package/Types/Workflow/WorkflowPlan.d.ts +7 -0
  141. package/Types/Workflow/WorkflowPlan.js +39 -0
  142. package/Types/Workflow/WorkflowPlan.mjs +3 -0
  143. package/Types/Workspace/WorkspaceMessagePayload.d.mts +11 -0
  144. package/Types/Workspace/WorkspaceMessagePayload.d.ts +11 -0
  145. package/Utils/Dashboard/TableThresholds.d.mts +44 -0
  146. package/Utils/Dashboard/TableThresholds.d.ts +44 -0
  147. package/Utils/Dashboard/TableThresholds.js +288 -0
  148. package/Utils/Dashboard/TableThresholds.mjs +17 -0
  149. package/Utils/Dashboard/ValueWidgetSeries.d.mts +6 -0
  150. package/Utils/Dashboard/ValueWidgetSeries.d.ts +6 -0
  151. package/Utils/Dashboard/ValueWidgetSeries.js +70 -1
  152. package/Utils/Dashboard/ValueWidgetSeries.mjs +2 -0
  153. package/Utils/DeveloperDocs/ResourceProfiles.js +16 -0
  154. package/Utils/DeveloperDocs/TerraformSchema.d.mts +1 -0
  155. package/Utils/DeveloperDocs/TerraformSchema.d.ts +1 -0
  156. package/Utils/DeveloperDocs/TerraformSchema.js +17 -0
  157. package/Utils/DeveloperDocs/TerraformSchema.mjs +1 -0
  158. package/Utils/Monitor/ExternalStatusPageComponentNames.d.mts +17 -0
  159. package/Utils/Monitor/ExternalStatusPageComponentNames.d.ts +17 -0
  160. package/Utils/Monitor/ExternalStatusPageComponentNames.js +274 -0
  161. package/Utils/Monitor/ExternalStatusPageComponentNames.mjs +6 -0
  162. package/Utils/Monitor/ExternalStatusPageReading.d.mts +35 -0
  163. package/Utils/Monitor/ExternalStatusPageReading.d.ts +35 -0
  164. package/Utils/Monitor/ExternalStatusPageReading.js +380 -0
  165. package/Utils/Monitor/ExternalStatusPageReading.mjs +6 -0
  166. package/Utils/Monitor/ExternalStatusPageScope.d.mts +43 -0
  167. package/Utils/Monitor/ExternalStatusPageScope.d.ts +43 -0
  168. package/Utils/Monitor/ExternalStatusPageScope.js +213 -0
  169. package/Utils/Monitor/ExternalStatusPageScope.mjs +4 -0
  170. package/Utils/Runbook/SshHostKeyFingerprint.d.mts +8 -0
  171. package/Utils/Runbook/SshHostKeyFingerprint.d.ts +8 -0
  172. package/Utils/Runbook/SshHostKeyFingerprint.js +83 -0
  173. package/Utils/Runbook/SshHostKeyFingerprint.mjs +5 -0
  174. package/Utils/ScheduledMaintenanceStart.d.mts +6 -0
  175. package/Utils/ScheduledMaintenanceStart.d.ts +6 -0
  176. package/Utils/ScheduledMaintenanceStart.js +15 -0
  177. package/Utils/StatusPage/HistoryChartBarColors.d.mts +2 -0
  178. package/Utils/StatusPage/HistoryChartBarColors.d.ts +2 -0
  179. package/Utils/StatusPage/HistoryChartBarColors.js +12 -1
  180. package/Utils/StatusPage/HistoryChartBarColors.mjs +2 -0
  181. package/Utils/Telemetry/ChangeEventFields.d.mts +19 -1
  182. package/Utils/Telemetry/ChangeEventFields.d.ts +19 -1
  183. package/Utils/Telemetry/ChangeEventFields.js +52 -1
  184. package/Utils/Uptime/DayUptimeGraphUtil.d.mts +6 -0
  185. package/Utils/Uptime/DayUptimeGraphUtil.d.ts +6 -0
  186. package/Utils/Uptime/DayUptimeGraphUtil.js +37 -6
  187. package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +60 -0
  188. package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +60 -0
  189. package/Utils/Uptime/UptimeMaintenanceUtil.js +295 -0
  190. package/Utils/Uptime/UptimeMaintenanceUtil.mjs +3 -0
  191. package/package.json +1 -1
package/Types/Date.d.mts CHANGED
@@ -10,6 +10,7 @@ export type CalendarUnit = "hour" | "day" | "week" | "month" | "year";
10
10
  export default class OneUptimeDate {
11
11
  private static userTimezone;
12
12
  private static padDatePart;
13
+ private static inReaderDigits;
13
14
  private static isUtcDateTimeString;
14
15
  private static normalizeUtcDateTimeString;
15
16
  private static getLocalShortMonthName;
package/Types/Date.d.ts CHANGED
@@ -10,6 +10,7 @@ export type CalendarUnit = "hour" | "day" | "week" | "month" | "year";
10
10
  export default class OneUptimeDate {
11
11
  private static userTimezone;
12
12
  private static padDatePart;
13
+ private static inReaderDigits;
13
14
  private static isUtcDateTimeString;
14
15
  private static normalizeUtcDateTimeString;
15
16
  private static getLocalShortMonthName;
package/Types/Date.js CHANGED
@@ -66,6 +66,8 @@ const LOCALIZED_CUSTOM_DATE_FORMATS = {
66
66
  "MMMM D, YYYY": { month: "long", day: "numeric", year: "numeric" },
67
67
  "h:mm A": { hour: "numeric", minute: "2-digit", hour12: true },
68
68
  "hh:mm A": { hour: "2-digit", minute: "2-digit", hour12: true },
69
+ // A 24-hour time of day, in the reader's digits: "۲۲:۲۷" on a Persian page.
70
+ "HH:mm": { hour: "2-digit", minute: "2-digit", hourCycle: "h23" },
69
71
  };
70
72
  // A whole number of nanoseconds, as fromUnixNano reads one exactly.
71
73
  const UNIX_NANO_INTEGER_PATTERN = /^[+-]?\d+$/;
@@ -105,6 +107,21 @@ class OneUptimeDate {
105
107
  static padDatePart(value) {
106
108
  return value.toString().padStart(2, "0");
107
109
  }
110
+ /*
111
+ * A time moment wrote ("09:05", "14:30:12") in the digits the reader's
112
+ * language writes: Persian's own on a Persian page, as every date Intl
113
+ * writes there (DateLanguage's getDateLocale), so a page never mixes
114
+ * "۲۶ اکتبر" with "21:16". Unchanged in every language that writes Latin
115
+ * digits, and remembered with its English as every localized date is.
116
+ */
117
+ static inReaderDigits(write) {
118
+ return (0, DateLanguage_1.writeInDateDisplayLanguage)(write, (_language, locale) => {
119
+ const text = write();
120
+ const written = (0, DateLanguage_1.writeDigitsInLocale)(text, locale);
121
+ // Latin digits: the English as it is, with nothing to remember.
122
+ return written === text ? null : written;
123
+ });
124
+ }
108
125
  static isUtcDateTimeString(value) {
109
126
  const utcDateTimePattern = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d{1,9})?$/;
110
127
  return utcDateTimePattern.test(value.trim());
@@ -337,7 +354,10 @@ class OneUptimeDate {
337
354
  if (use12HourFormat) {
338
355
  timeFormat += " A";
339
356
  }
340
- return this.inCurrentTimezone(date).format(timeFormat);
357
+ const instant = date;
358
+ return this.inReaderDigits(() => {
359
+ return this.inCurrentTimezone(instant).format(timeFormat);
360
+ });
341
361
  }
342
362
  static getDateAsLocalDayMonthString(date) {
343
363
  const instant = this.fromString(date);
@@ -356,8 +376,11 @@ class OneUptimeDate {
356
376
  });
357
377
  }
358
378
  static getDateAsLocalDayMonthHourString(date) {
359
- date = this.fromString(date);
360
- return `${this.getDateAsLocalDayMonthString(date)}, ${this.getLocalTimeString(date, { includeMinutes: false })}:00`;
379
+ const instant = this.fromString(date);
380
+ // The minutes it adds itself in the reader's digits too.
381
+ return this.inReaderDigits(() => {
382
+ return `${this.getDateAsLocalDayMonthString(instant)}, ${this.getLocalTimeString(instant, { includeMinutes: false })}:00`;
383
+ });
361
384
  }
362
385
  /**
363
386
  * "02 Mar, 14:30" — a day-qualified wall clock, for chart axes whose
@@ -484,9 +507,12 @@ class OneUptimeDate {
484
507
  return this.getLocalHourAndMinuteFromDate(date);
485
508
  }
486
509
  const use12HourFormat = this.getUserPrefers12HourFormat();
487
- return moment_timezone_1.default
488
- .tz(date, timezone)
489
- .format(use12HourFormat ? "h:mm A" : "HH:mm");
510
+ const instant = date;
511
+ return this.inReaderDigits(() => {
512
+ return moment_timezone_1.default
513
+ .tz(instant, timezone)
514
+ .format(use12HourFormat ? "h:mm A" : "HH:mm");
515
+ });
490
516
  }
491
517
  /**
492
518
  * Format a single instant as a human-readable "weekday, month day, time"
@@ -65,3 +65,5 @@ export declare const formatDecimal: (data: {
65
65
  locale: string;
66
66
  maximumFractionDigits: number;
67
67
  }) => string | null;
68
+ export declare const getDigitsOf: (locale: string) => Array<string>;
69
+ export declare const writeDigitsInLocale: (text: string, locale: string) => string;
@@ -65,3 +65,5 @@ export declare const formatDecimal: (data: {
65
65
  locale: string;
66
66
  maximumFractionDigits: number;
67
67
  }) => string | null;
68
+ export declare const getDigitsOf: (locale: string) => Array<string>;
69
+ export declare const writeDigitsInLocale: (text: string, locale: string) => string;
@@ -8,9 +8,11 @@
8
8
  * reads (setDateDisplayLanguage, from its i18n set-up), and OneUptimeDate
9
9
  * writes the words of a date in it: month and weekday names, "vor 5
10
10
  * Stunden", "2 Tage, 3 Stunden", a decimal comma. The words come from the
11
- * browser's Intl data, so no locale is shipped for them; the calendar is
12
- * always the Gregorian one and the digits Latin, so a Persian reader's dates
13
- * line up with every other number on the page.
11
+ * browser's Intl data, so no locale is shipped for them. The calendar is
12
+ * always the Gregorian one, the one every timestamp, log and export is
13
+ * written in; the digits are the language's own, so a Persian reader's
14
+ * dates, times and durations ("۲۶ اکتبر، ۱۵:۰۷") are written in the same
15
+ * digits as the counts and sentences around them.
14
16
  *
15
17
  * English is what nothing has set - the server, a worker, an email, a test -
16
18
  * and every function writes it exactly as it always has.
@@ -31,7 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
31
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
32
34
  };
33
35
  Object.defineProperty(exports, "__esModule", { value: true });
34
- exports.formatDecimal = exports.formatDurationText = exports.formatDurationUnit = exports.formatRelativeDate = exports.getRelativeDistance = exports.formatDateText = exports.getDateTimeOptions = exports.getDateTimeFormat = exports.writeInDateDisplayLanguage = exports.forgetRememberedDateTexts = exports.getEnglishOf = exports.rememberEnglishOf = exports.MAX_REMEMBERED_DATE_TEXTS = exports.getDateLocale = exports.setDateDisplayLanguage = exports.getDateDisplayLanguage = exports.isEnglishDateLanguage = exports.ENGLISH_DATE_LANGUAGE = void 0;
36
+ exports.writeDigitsInLocale = exports.getDigitsOf = exports.formatDecimal = exports.formatDurationText = exports.formatDurationUnit = exports.formatRelativeDate = exports.getRelativeDistance = exports.formatDateText = exports.getDateTimeOptions = exports.getDateTimeFormat = exports.writeInDateDisplayLanguage = exports.forgetRememberedDateTexts = exports.getEnglishOf = exports.rememberEnglishOf = exports.MAX_REMEMBERED_DATE_TEXTS = exports.getDateLocale = exports.setDateDisplayLanguage = exports.getDateDisplayLanguage = exports.isEnglishDateLanguage = exports.ENGLISH_DATE_LANGUAGE = void 0;
35
37
  exports.withDateDisplayLanguage = withDateDisplayLanguage;
36
38
  exports.inEnglishDates = inEnglishDates;
37
39
  const moment_timezone_1 = __importDefault(require("moment-timezone"));
@@ -88,11 +90,12 @@ function inEnglishDates(work) {
88
90
  }
89
91
  const localeCache = new Map();
90
92
  /*
91
- * The Intl locale a language writes dates in: its own words and order, the
92
- * Gregorian calendar and Latin digits ("fa" alone would give the Solar
93
- * Hijri calendar in Persian digits). A language Intl does not know reads
94
- * English, never the browser's own default, so a page never mixes two
95
- * languages.
93
+ * The Intl locale a language writes dates in: its own words, order and
94
+ * digits, on the Gregorian calendar ("fa" alone would give the Solar Hijri
95
+ * calendar). Persian writes its own digits - "۲۶ اکتبر، ۱۵:۰۷", as its counts
96
+ * are written (TranslateTemplate's formatNumber) - every other language of
97
+ * the product Latin ones. A language Intl does not know reads English,
98
+ * never the browser's own default, so a page never mixes two languages.
96
99
  */
97
100
  const getDateLocale = (language) => {
98
101
  const requested = normalizeLanguage(language);
@@ -100,19 +103,19 @@ const getDateLocale = (language) => {
100
103
  if (cached) {
101
104
  return cached;
102
105
  }
103
- let locale = `${exports.ENGLISH_DATE_LANGUAGE}-u-ca-gregory-nu-latn`;
106
+ let locale = `${exports.ENGLISH_DATE_LANGUAGE}-u-ca-gregory`;
104
107
  try {
105
108
  const supported = Intl.DateTimeFormat.supportedLocalesOf([
106
109
  requested,
107
110
  ]);
108
111
  if (supported.length > 0 && supported[0]) {
109
- locale = `${supported[0]}-u-ca-gregory-nu-latn`;
112
+ locale = `${supported[0]}-u-ca-gregory`;
110
113
  // Throws on a tag Intl cannot take an extension on.
111
114
  new Intl.DateTimeFormat(locale);
112
115
  }
113
116
  }
114
117
  catch (_a) {
115
- locale = `${exports.ENGLISH_DATE_LANGUAGE}-u-ca-gregory-nu-latn`;
118
+ locale = `${exports.ENGLISH_DATE_LANGUAGE}-u-ca-gregory`;
116
119
  }
117
120
  localeCache.set(requested, locale);
118
121
  return locale;
@@ -476,3 +479,55 @@ const formatDecimal = (data) => {
476
479
  return format ? format.format(data.value) : null;
477
480
  };
478
481
  exports.formatDecimal = formatDecimal;
482
+ const ASCII_DIGIT_REGEX = /[0-9]/g;
483
+ const digitsCache = new Map();
484
+ // The ten digits `locale` writes, 0 to 9: Persian's ۰ to ۹, Latin elsewhere.
485
+ const getDigitsOf = (locale) => {
486
+ const cached = digitsCache.get(locale);
487
+ if (cached) {
488
+ return cached;
489
+ }
490
+ let digits = [
491
+ "0",
492
+ "1",
493
+ "2",
494
+ "3",
495
+ "4",
496
+ "5",
497
+ "6",
498
+ "7",
499
+ "8",
500
+ "9",
501
+ ];
502
+ try {
503
+ const format = new Intl.NumberFormat(locale, {
504
+ useGrouping: false,
505
+ });
506
+ digits = digits.map((digit) => {
507
+ return format.format(Number(digit));
508
+ });
509
+ }
510
+ catch (_a) {
511
+ // Latin, as written.
512
+ }
513
+ digitsCache.set(locale, digits);
514
+ return digits;
515
+ };
516
+ exports.getDigitsOf = getDigitsOf;
517
+ /*
518
+ * A figure OneUptime wrote itself - a time of day "09:00", a minute "05" -
519
+ * in the digits `locale` writes: "۰۹:۰۰" in Persian, unchanged in every
520
+ * language that writes Latin digits. Only for text that is all figures and
521
+ * their marks; never for a name, an address or anything someone typed,
522
+ * whose digits are theirs.
523
+ */
524
+ const writeDigitsInLocale = (text, locale) => {
525
+ const digits = (0, exports.getDigitsOf)(locale);
526
+ if (digits[0] === "0") {
527
+ return text;
528
+ }
529
+ return text.replace(ASCII_DIGIT_REGEX, (digit) => {
530
+ return digits[Number(digit)] || digit;
531
+ });
532
+ };
533
+ exports.writeDigitsInLocale = writeDigitsInLocale;
@@ -11,6 +11,7 @@ export const getDateDisplayLanguage = commonJsModule.getDateDisplayLanguage;
11
11
  export const getDateLocale = commonJsModule.getDateLocale;
12
12
  export const getDateTimeFormat = commonJsModule.getDateTimeFormat;
13
13
  export const getDateTimeOptions = commonJsModule.getDateTimeOptions;
14
+ export const getDigitsOf = commonJsModule.getDigitsOf;
14
15
  export const getEnglishOf = commonJsModule.getEnglishOf;
15
16
  export const getRelativeDistance = commonJsModule.getRelativeDistance;
16
17
  export const inEnglishDates = commonJsModule.inEnglishDates;
@@ -18,4 +19,5 @@ export const isEnglishDateLanguage = commonJsModule.isEnglishDateLanguage;
18
19
  export const rememberEnglishOf = commonJsModule.rememberEnglishOf;
19
20
  export const setDateDisplayLanguage = commonJsModule.setDateDisplayLanguage;
20
21
  export const withDateDisplayLanguage = commonJsModule.withDateDisplayLanguage;
22
+ export const writeDigitsInLocale = commonJsModule.writeDigitsInLocale;
21
23
  export const writeInDateDisplayLanguage = commonJsModule.writeInDateDisplayLanguage;
@@ -10,6 +10,8 @@ export default class Domain extends DatabaseProperty {
10
10
  * These are reserved by IANA for documentation and testing purposes.
11
11
  */
12
12
  static isTestDomain(domain: string): boolean;
13
+ static readonly RESERVED_NAMES: Array<string>;
14
+ static isReservedName(name: string): boolean;
13
15
  private _domain;
14
16
  get domain(): string;
15
17
  set domain(v: string);
package/Types/Domain.d.ts CHANGED
@@ -10,6 +10,8 @@ export default class Domain extends DatabaseProperty {
10
10
  * These are reserved by IANA for documentation and testing purposes.
11
11
  */
12
12
  static isTestDomain(domain: string): boolean;
13
+ static readonly RESERVED_NAMES: Array<string>;
14
+ static isReservedName(name: string): boolean;
13
15
  private _domain;
14
16
  get domain(): string;
15
17
  set domain(v: string);
package/Types/Domain.js CHANGED
@@ -20,6 +20,16 @@ class Domain extends DatabaseProperty_1.default {
20
20
  return domainLower.endsWith(suffix);
21
21
  });
22
22
  }
23
+ // Whether a name is one of RESERVED_NAMES or under one. Never throws.
24
+ static isReservedName(name) {
25
+ if (typeof name !== "string") {
26
+ return false;
27
+ }
28
+ const nameLower = name.trim().toLowerCase();
29
+ return Domain.RESERVED_NAMES.some((reserved) => {
30
+ return nameLower === reserved || nameLower.endsWith(`.${reserved}`);
31
+ });
32
+ }
23
33
  get domain() {
24
34
  return this._domain;
25
35
  }
@@ -133,4 +143,21 @@ Domain.TEST_DOMAIN_SUFFIXES = [
133
143
  ".example.net",
134
144
  ".test",
135
145
  ];
146
+ /*
147
+ * The names RFC 2606 reserves for testing and documentation: the .test,
148
+ * .example, .invalid and .localhost top-level domains, and example.com,
149
+ * example.net and example.org. Nobody can register them, so no mailbox or
150
+ * install on them, or on any name under them, belongs to anyone. A wider
151
+ * list than TEST_DOMAIN_SUFFIXES, which only says which domains may skip
152
+ * DNS verification.
153
+ */
154
+ Domain.RESERVED_NAMES = [
155
+ "test",
156
+ "example",
157
+ "invalid",
158
+ "localhost",
159
+ "example.com",
160
+ "example.net",
161
+ "example.org",
162
+ ];
136
163
  exports.default = Domain;
@@ -99,6 +99,7 @@ declare enum EmailTemplateType {
99
99
  RedisHealthWarning = "RedisHealthWarning.hbs",
100
100
  PostgresHealthWarning = "PostgresHealthWarning.hbs",
101
101
  BackupFailed = "BackupFailed.hbs",
102
+ AuditLogExportFailed = "AuditLogExportFailed.hbs",
102
103
  EnterpriseLicenseUserLimitBreach = "EnterpriseLicenseUserLimitBreach.hbs",
103
104
  EnterpriseLicenseExpiryReminder = "EnterpriseLicenseExpiryReminder.hbs",
104
105
  NotificationRollup = "NotificationRollup.hbs",
@@ -99,6 +99,7 @@ declare enum EmailTemplateType {
99
99
  RedisHealthWarning = "RedisHealthWarning.hbs",
100
100
  PostgresHealthWarning = "PostgresHealthWarning.hbs",
101
101
  BackupFailed = "BackupFailed.hbs",
102
+ AuditLogExportFailed = "AuditLogExportFailed.hbs",
102
103
  EnterpriseLicenseUserLimitBreach = "EnterpriseLicenseUserLimitBreach.hbs",
103
104
  EnterpriseLicenseExpiryReminder = "EnterpriseLicenseExpiryReminder.hbs",
104
105
  NotificationRollup = "NotificationRollup.hbs",
@@ -104,6 +104,7 @@ var EmailTemplateType;
104
104
  EmailTemplateType["PostgresHealthWarning"] = "PostgresHealthWarning.hbs";
105
105
  // A backup or a restore of the instance failed (Enterprise, ee/Server/Backup).
106
106
  EmailTemplateType["BackupFailed"] = "BackupFailed.hbs";
107
+ EmailTemplateType["AuditLogExportFailed"] = "AuditLogExportFailed.hbs";
107
108
  EmailTemplateType["EnterpriseLicenseUserLimitBreach"] = "EnterpriseLicenseUserLimitBreach.hbs";
108
109
  EmailTemplateType["EnterpriseLicenseExpiryReminder"] = "EnterpriseLicenseExpiryReminder.hbs";
109
110
  EmailTemplateType["NotificationRollup"] = "NotificationRollup.hbs";
package/Types/Email.d.mts CHANGED
@@ -21,6 +21,7 @@ export default class Email extends DatabaseProperty {
21
21
  toString(): string;
22
22
  getEmailDomain(): Hostname;
23
23
  isBusinessEmail(): boolean;
24
+ static isOnReservedDomain(value: string): boolean;
24
25
  static toDatabase(value: Email | FindOperator<Email>): string | null;
25
26
  static fromDatabase(_value: string): Email | null;
26
27
  static getSchema(): ZodSchema;
package/Types/Email.d.ts CHANGED
@@ -21,6 +21,7 @@ export default class Email extends DatabaseProperty {
21
21
  toString(): string;
22
22
  getEmailDomain(): Hostname;
23
23
  isBusinessEmail(): boolean;
24
+ static isOnReservedDomain(value: string): boolean;
24
25
  static toDatabase(value: Email | FindOperator<Email>): string | null;
25
26
  static fromDatabase(_value: string): Email | null;
26
27
  static getSchema(): ZodSchema;
package/Types/Email.js CHANGED
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.MAX_EMAIL_ADDRESS_LENGTH = void 0;
7
7
  const Hostname_1 = __importDefault(require("./API/Hostname"));
8
8
  const DatabaseProperty_1 = __importDefault(require("./Database/DatabaseProperty"));
9
+ const Domain_1 = __importDefault(require("./Domain"));
9
10
  const BadDataException_1 = __importDefault(require("./Exception/BadDataException"));
10
11
  const JSON_1 = require("./JSON");
11
12
  const Zod_1 = __importDefault(require("../Utils/Schema/Zod"));
@@ -223,6 +224,21 @@ class Email extends DatabaseProperty_1.default {
223
224
  }
224
225
  return true;
225
226
  }
227
+ /*
228
+ * Whether a value is an address on a name RFC 2606 reserves for testing
229
+ * (Domain.isReservedName): a test's or an example's address, never a
230
+ * person's. Reads any value, an address or not, and never throws.
231
+ */
232
+ static isOnReservedDomain(value) {
233
+ if (typeof value !== "string") {
234
+ return false;
235
+ }
236
+ const at = value.lastIndexOf("@");
237
+ if (at < 0) {
238
+ return false;
239
+ }
240
+ return Domain_1.default.isReservedName(value.slice(at + 1));
241
+ }
226
242
  static toDatabase(value) {
227
243
  if (value) {
228
244
  if (typeof value === "string") {
@@ -15,6 +15,10 @@ export default interface ExternalStatusPageMonitorResponse {
15
15
  provider?: string | undefined;
16
16
  componentGroupName?: string | undefined;
17
17
  componentName?: string | undefined;
18
+ componentNames?: Array<string> | undefined;
19
+ unmatchedComponentNames?: Array<string> | undefined;
20
+ incidentsOutsideScopeCount?: number | undefined;
21
+ activeIncidentNames?: Array<string> | undefined;
18
22
  rawBody?: string | undefined;
19
23
  isTimeout?: boolean | undefined;
20
24
  probeAttempts?: Array<ProbeAttempt> | undefined;
@@ -15,6 +15,10 @@ export default interface ExternalStatusPageMonitorResponse {
15
15
  provider?: string | undefined;
16
16
  componentGroupName?: string | undefined;
17
17
  componentName?: string | undefined;
18
+ componentNames?: Array<string> | undefined;
19
+ unmatchedComponentNames?: Array<string> | undefined;
20
+ incidentsOutsideScopeCount?: number | undefined;
21
+ activeIncidentNames?: Array<string> | undefined;
18
22
  rawBody?: string | undefined;
19
23
  isTimeout?: boolean | undefined;
20
24
  probeAttempts?: Array<ProbeAttempt> | undefined;
@@ -4,12 +4,15 @@ export default interface MonitorStepExternalStatusPageMonitor {
4
4
  statusPageUrl: string;
5
5
  provider: ExternalStatusPageProviderType;
6
6
  componentGroupName?: string | undefined;
7
+ componentNames?: Array<string> | undefined;
7
8
  componentName?: string | undefined;
8
9
  timeout: number;
9
10
  retries: number;
10
11
  }
11
12
  export declare class MonitorStepExternalStatusPageMonitorUtil {
12
13
  static getDefault(): MonitorStepExternalStatusPageMonitor;
14
+ static getComponentNames(monitor: Pick<MonitorStepExternalStatusPageMonitor, "componentNames" | "componentName"> | JSONObject | undefined | null): Array<string>;
15
+ static withComponentNames(monitor: MonitorStepExternalStatusPageMonitor, names: Array<string>): MonitorStepExternalStatusPageMonitor;
13
16
  static fromJSON(json: JSONObject): MonitorStepExternalStatusPageMonitor;
14
17
  static toJSON(monitor: MonitorStepExternalStatusPageMonitor): JSONObject;
15
18
  }
@@ -4,12 +4,15 @@ export default interface MonitorStepExternalStatusPageMonitor {
4
4
  statusPageUrl: string;
5
5
  provider: ExternalStatusPageProviderType;
6
6
  componentGroupName?: string | undefined;
7
+ componentNames?: Array<string> | undefined;
7
8
  componentName?: string | undefined;
8
9
  timeout: number;
9
10
  retries: number;
10
11
  }
11
12
  export declare class MonitorStepExternalStatusPageMonitorUtil {
12
13
  static getDefault(): MonitorStepExternalStatusPageMonitor;
14
+ static getComponentNames(monitor: Pick<MonitorStepExternalStatusPageMonitor, "componentNames" | "componentName"> | JSONObject | undefined | null): Array<string>;
15
+ static withComponentNames(monitor: MonitorStepExternalStatusPageMonitor, names: Array<string>): MonitorStepExternalStatusPageMonitor;
13
16
  static fromJSON(json: JSONObject): MonitorStepExternalStatusPageMonitor;
14
17
  static toJSON(monitor: MonitorStepExternalStatusPageMonitor): JSONObject;
15
18
  }
@@ -6,23 +6,50 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.MonitorStepExternalStatusPageMonitorUtil = void 0;
7
7
  const ExternalStatusPageProviderType_1 = __importDefault(require("./ExternalStatusPageProviderType"));
8
8
  const MonitorStepRetries_1 = require("./MonitorStepRetries");
9
+ const ExternalStatusPageComponentNames_1 = __importDefault(require("../../Utils/Monitor/ExternalStatusPageComponentNames"));
9
10
  class MonitorStepExternalStatusPageMonitorUtil {
10
11
  static getDefault() {
11
12
  return {
12
13
  statusPageUrl: "",
13
14
  provider: ExternalStatusPageProviderType_1.default.Auto,
14
15
  componentGroupName: undefined,
16
+ componentNames: [],
15
17
  componentName: undefined,
16
18
  timeout: 10000,
17
19
  retries: 3,
18
20
  };
19
21
  }
22
+ /*
23
+ * The names of the components a monitor watches: its list, or for a
24
+ * monitor saved before the list, its one name filter between stars
25
+ * (ExternalStatusPageComponentNames.fromLegacyName). None: the whole page.
26
+ */
27
+ static getComponentNames(monitor) {
28
+ if (!monitor) {
29
+ return [];
30
+ }
31
+ const record = monitor;
32
+ if (Array.isArray(record["componentNames"])) {
33
+ return ExternalStatusPageComponentNames_1.default.normalize(record["componentNames"]);
34
+ }
35
+ return ExternalStatusPageComponentNames_1.default.fromLegacyName(record["componentName"]);
36
+ }
37
+ /*
38
+ * The monitor watching these components: the list, and the one name a
39
+ * probe that has not been upgraded reads in its place
40
+ * (ExternalStatusPageComponentNames.toLegacyName).
41
+ */
42
+ static withComponentNames(monitor, names) {
43
+ const componentNames = ExternalStatusPageComponentNames_1.default.normalize(names);
44
+ return Object.assign(Object.assign({}, monitor), { componentNames: componentNames, componentName: ExternalStatusPageComponentNames_1.default.toLegacyName(componentNames) });
45
+ }
20
46
  static fromJSON(json) {
21
47
  return {
22
48
  statusPageUrl: json["statusPageUrl"] || "",
23
49
  provider: json["provider"] ||
24
50
  ExternalStatusPageProviderType_1.default.Auto,
25
51
  componentGroupName: json["componentGroupName"] || undefined,
52
+ componentNames: MonitorStepExternalStatusPageMonitorUtil.getComponentNames(json),
26
53
  componentName: json["componentName"] || undefined,
27
54
  timeout: json["timeout"] || 10000,
28
55
  // 0 retries is a real answer and must survive the round-trip.
@@ -30,10 +57,18 @@ class MonitorStepExternalStatusPageMonitorUtil {
30
57
  };
31
58
  }
32
59
  static toJSON(monitor) {
60
+ /*
61
+ * A monitor saved before the list is written with it: its one name
62
+ * filter, between stars. One that names nothing leaves the list out.
63
+ */
64
+ const hasNames = Array.isArray(monitor.componentNames) || Boolean(monitor.componentName);
33
65
  return {
34
66
  statusPageUrl: monitor.statusPageUrl,
35
67
  provider: monitor.provider,
36
68
  componentGroupName: monitor.componentGroupName,
69
+ componentNames: hasNames
70
+ ? MonitorStepExternalStatusPageMonitorUtil.getComponentNames(monitor)
71
+ : undefined,
37
72
  componentName: monitor.componentName,
38
73
  timeout: monitor.timeout,
39
74
  retries: monitor.retries,
@@ -89,7 +89,7 @@ class MonitorTemplateSyncFieldUtil {
89
89
  if (monitorType === MonitorType_1.default.ExternalStatusPage) {
90
90
  add("externalStatusPageMonitor.statusPageUrl", "Status page URL");
91
91
  add("externalStatusPageMonitor.provider", "Status page provider");
92
- add("externalStatusPageMonitor.components", "Status page components", "Keep the selected component group and component together.");
92
+ add("externalStatusPageMonitor.components", "Status page components", "Keep the component group and the chosen components together.");
93
93
  add("externalStatusPageMonitor.timeout", "Status page timeout");
94
94
  add("externalStatusPageMonitor.retries", "Status page retries");
95
95
  }
@@ -213,8 +213,13 @@ class MonitorTemplateSyncFieldUtil {
213
213
  });
214
214
  }
215
215
  if (field === "externalStatusPageMonitor.components") {
216
+ /*
217
+ * The chosen components, and the one name a monitor saved before
218
+ * the list had (and an older probe reads), kept together.
219
+ */
216
220
  return [
217
221
  "externalStatusPageMonitor.componentGroupName",
222
+ "externalStatusPageMonitor.componentNames",
218
223
  "externalStatusPageMonitor.componentName",
219
224
  ];
220
225
  }
@@ -0,0 +1,15 @@
1
+ import Color from "../Color.mjs";
2
+ import ObjectID from "../ObjectID.mjs";
3
+ import { ScheduledMaintenancePhaseOfState } from "../../Utils/ScheduledMaintenanceStart.mjs";
4
+ export default interface UptimeBarTooltipMaintenance {
5
+ id: string;
6
+ title: string;
7
+ startsAt: Date;
8
+ endsAt: Date;
9
+ currentState?: {
10
+ name: string;
11
+ color: Color;
12
+ } | undefined;
13
+ phase: ScheduledMaintenancePhaseOfState | null;
14
+ monitorIds: Array<ObjectID>;
15
+ }
@@ -0,0 +1,15 @@
1
+ import Color from "../Color";
2
+ import ObjectID from "../ObjectID";
3
+ import { ScheduledMaintenancePhaseOfState } from "../../Utils/ScheduledMaintenanceStart";
4
+ export default interface UptimeBarTooltipMaintenance {
5
+ id: string;
6
+ title: string;
7
+ startsAt: Date;
8
+ endsAt: Date;
9
+ currentState?: {
10
+ name: string;
11
+ color: Color;
12
+ } | undefined;
13
+ phase: ScheduledMaintenancePhaseOfState | null;
14
+ monitorIds: Array<ObjectID>;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ import "./UptimeBarTooltipMaintenance.js";
@@ -13,5 +13,10 @@ export default interface UptimeHistoryLabels {
13
13
  incidentsOnThisDay: string;
14
14
  declared: string;
15
15
  close: string;
16
+ scheduledMaintenance: string;
17
+ dayLabelWithMaintenance: string;
18
+ oneMaintenanceEvent: string;
19
+ maintenanceEvents: string;
20
+ moreMaintenance: string;
16
21
  }
17
22
  export declare const DefaultUptimeHistoryLabels: UptimeHistoryLabels;
@@ -13,5 +13,10 @@ export default interface UptimeHistoryLabels {
13
13
  incidentsOnThisDay: string;
14
14
  declared: string;
15
15
  close: string;
16
+ scheduledMaintenance: string;
17
+ dayLabelWithMaintenance: string;
18
+ oneMaintenanceEvent: string;
19
+ maintenanceEvents: string;
20
+ moreMaintenance: string;
16
21
  }
17
22
  export declare const DefaultUptimeHistoryLabels: UptimeHistoryLabels;
@@ -16,4 +16,9 @@ exports.DefaultUptimeHistoryLabels = {
16
16
  incidentsOnThisDay: "{{total}} incidents reported on this day",
17
17
  declared: "Declared",
18
18
  close: "Close",
19
+ scheduledMaintenance: "Scheduled maintenance",
20
+ dayLabelWithMaintenance: "{{label}}, {{maintenance}}",
21
+ oneMaintenanceEvent: "1 scheduled maintenance event",
22
+ maintenanceEvents: "{{total}} scheduled maintenance events",
23
+ moreMaintenance: "+{{total}} more",
19
24
  };
@@ -0,0 +1,10 @@
1
+ export type ReadingDirection = "ltr" | "rtl";
2
+ export declare const LEFT_TO_RIGHT: ReadingDirection;
3
+ export declare const RIGHT_TO_LEFT: ReadingDirection;
4
+ export declare const RIGHT_TO_LEFT_LANGUAGES: ReadonlyArray<string>;
5
+ export declare const RIGHT_TO_LEFT_SCRIPTS: ReadonlyArray<string>;
6
+ export declare const getReadingDirection: (language: string | null | undefined) => ReadingDirection;
7
+ export declare const isRightToLeftLanguage: (language: string | null | undefined) => boolean;
8
+ export declare const TEXT_DIRECTION_SCAN_LENGTH: number;
9
+ export declare const getTextReadingDirectionByMostLetters: (text: string | null | undefined) => ReadingDirection | null;
10
+ export declare const getTextReadingDirection: (text: string | null | undefined) => ReadingDirection | null;
@@ -0,0 +1,10 @@
1
+ export type ReadingDirection = "ltr" | "rtl";
2
+ export declare const LEFT_TO_RIGHT: ReadingDirection;
3
+ export declare const RIGHT_TO_LEFT: ReadingDirection;
4
+ export declare const RIGHT_TO_LEFT_LANGUAGES: ReadonlyArray<string>;
5
+ export declare const RIGHT_TO_LEFT_SCRIPTS: ReadonlyArray<string>;
6
+ export declare const getReadingDirection: (language: string | null | undefined) => ReadingDirection;
7
+ export declare const isRightToLeftLanguage: (language: string | null | undefined) => boolean;
8
+ export declare const TEXT_DIRECTION_SCAN_LENGTH: number;
9
+ export declare const getTextReadingDirectionByMostLetters: (text: string | null | undefined) => ReadingDirection | null;
10
+ export declare const getTextReadingDirection: (text: string | null | undefined) => ReadingDirection | null;