@gloom-sh/terminal 0.20.9 → 0.20.10

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 (128) hide show
  1. package/package.json +1 -1
  2. package/src/api-client/auth.ts +6 -0
  3. package/src/api-client/data.ts +1 -0
  4. package/src/api-client/earnings.ts +15 -0
  5. package/src/api-client/index.ts +14 -3
  6. package/src/api-client/types/account.ts +10 -0
  7. package/src/api-client/types/billing.ts +10 -0
  8. package/src/api-client/types/econ.ts +19 -7
  9. package/src/api-client/types/market.ts +7 -0
  10. package/src/api-client/types/screener.ts +2 -0
  11. package/src/cli/commands/market.ts +18 -8
  12. package/src/cli/commands/overview.ts +26 -7
  13. package/src/cli/commands/ticker.ts +40 -15
  14. package/src/cli/desktop-pane-shot.ts +39 -0
  15. package/src/cli/errors.ts +20 -3
  16. package/src/cli/fx-pair.ts +11 -2
  17. package/src/cli/history-rows.ts +34 -3
  18. package/src/cli/index.ts +1 -1
  19. package/src/cli/listing-arg.ts +51 -13
  20. package/src/cli/pane-functions/headless.ts +4 -2
  21. package/src/cli/pane-functions/index.ts +1 -0
  22. package/src/cli/pane-functions/resolver.ts +2 -1
  23. package/src/cli/pane-functions/screenshot-assessment.ts +73 -5
  24. package/src/cli/pane-functions/screenshot-types.ts +4 -0
  25. package/src/components/chart/composite/chart-layout.ts +7 -4
  26. package/src/components/chart/composite/composite-chart.tsx +6 -16
  27. package/src/components/chart/composite/toolbar.tsx +258 -82
  28. package/src/components/chart/composite/use-composite-chart-keyboard.ts +5 -6
  29. package/src/components/command-bar/list/model.ts +13 -0
  30. package/src/components/command-bar/routes/ticker-search/actions.ts +2 -0
  31. package/src/components/command-bar/routes/ticker-search/results.ts +15 -8
  32. package/src/components/command-bar/surface/index.tsx +10 -5
  33. package/src/components/command-bar/workflow/alert.ts +21 -7
  34. package/src/components/data-table/table-pane.ts +3 -1
  35. package/src/components/layout/pane/footer/model.ts +26 -1
  36. package/src/components/metric-treemap/heat-surface.tsx +2 -1
  37. package/src/components/metric-treemap/index.tsx +3 -2
  38. package/src/components/ui/confirm-dialog.tsx +253 -7
  39. package/src/components/ui/data-table/index.tsx +1 -1
  40. package/src/components/ui/data-table/types.ts +7 -0
  41. package/src/components/ui/list-view.tsx +4 -3
  42. package/src/components/ui/status.tsx +9 -6
  43. package/src/docs/snapshot.json +36 -0
  44. package/src/i18n/es.ts +12 -0
  45. package/src/i18n/ja.ts +12 -0
  46. package/src/i18n/ko.ts +12 -0
  47. package/src/i18n/zh-cn.ts +12 -0
  48. package/src/i18n/zh-tw.ts +12 -0
  49. package/src/market-data/fx-closes.ts +14 -2
  50. package/src/market-data/market/change-basis.ts +35 -1
  51. package/src/market-data/market/status.ts +37 -0
  52. package/src/market-data/performance.ts +4 -1
  53. package/src/market-data/quotes/live-valuation.ts +25 -2
  54. package/src/market-data/realized-volatility.ts +3 -0
  55. package/src/market-data/us-bond-market.ts +115 -0
  56. package/src/plugins/builtin/account-management/invite-row.tsx +54 -0
  57. package/src/plugins/builtin/account-management/keyboard.ts +3 -0
  58. package/src/plugins/builtin/account-management/model.ts +1 -0
  59. package/src/plugins/builtin/account-management/pane.tsx +51 -5
  60. package/src/plugins/builtin/account-management/trial-cancel.ts +32 -7
  61. package/src/plugins/builtin/cloud/askg/pane-session.ts +94 -0
  62. package/src/plugins/builtin/cloud/askg/pane.tsx +40 -83
  63. package/src/plugins/builtin/congress-trades/pane.tsx +8 -2
  64. package/src/plugins/builtin/correlation/compute.ts +4 -3
  65. package/src/plugins/builtin/earnings/board-model.ts +33 -0
  66. package/src/plugins/builtin/earnings/board-table.ts +50 -11
  67. package/src/plugins/builtin/earnings/board.tsx +29 -13
  68. package/src/plugins/builtin/earnings/calendar.tsx +15 -3
  69. package/src/plugins/builtin/earnings/client.ts +4 -1
  70. package/src/plugins/builtin/earnings/headless.ts +27 -14
  71. package/src/plugins/builtin/econ/calendar-source.ts +3 -0
  72. package/src/plugins/builtin/help/index.tsx +1 -1
  73. package/src/plugins/builtin/ipo-calendar/model.ts +3 -3
  74. package/src/plugins/builtin/iv-history/headless.ts +12 -10
  75. package/src/plugins/builtin/macro-day/headless.ts +15 -5
  76. package/src/plugins/builtin/macro-day/model.ts +17 -4
  77. package/src/plugins/builtin/macro-day/releases.ts +36 -15
  78. package/src/plugins/builtin/market-halts/model.ts +3 -2
  79. package/src/plugins/builtin/market-movers/headless.ts +2 -1
  80. package/src/plugins/builtin/market-movers/index.tsx +3 -2
  81. package/src/plugins/builtin/market-movers/model.ts +75 -22
  82. package/src/plugins/builtin/market-movers/screener.ts +2 -1
  83. package/src/plugins/builtin/market-movers/table.ts +7 -5
  84. package/src/plugins/builtin/pe-band/model.ts +4 -0
  85. package/src/plugins/builtin/portfolio-list/cell-version.ts +4 -4
  86. package/src/plugins/builtin/portfolio-list/cli/render.ts +9 -4
  87. package/src/plugins/builtin/portfolio-list/pane/index.tsx +2 -1
  88. package/src/plugins/builtin/portfolio-list/summary/index.tsx +24 -7
  89. package/src/plugins/builtin/portfolio-list/summary/totals.ts +40 -11
  90. package/src/plugins/builtin/portfolio-list/table.tsx +13 -1
  91. package/src/plugins/builtin/research/analyst-headless.ts +9 -1
  92. package/src/plugins/builtin/research/analyst-pane.tsx +10 -4
  93. package/src/plugins/builtin/research/client.ts +25 -1
  94. package/src/plugins/builtin/research/corporate-actions-pane.tsx +2 -1
  95. package/src/plugins/builtin/research/event-model.ts +3 -13
  96. package/src/plugins/builtin/research/event-sources.ts +3 -1
  97. package/src/plugins/builtin/short-interest/headless.ts +2 -0
  98. package/src/plugins/builtin/short-interest/publications-headless.ts +2 -0
  99. package/src/plugins/builtin/short-interest/watch-headless.ts +1 -0
  100. package/src/plugins/builtin/yield-curve/headless.ts +5 -1
  101. package/src/plugins/builtin/yield-curve/index.tsx +5 -0
  102. package/src/portfolio/column-values.ts +47 -14
  103. package/src/portfolio/return-metrics.ts +4 -2
  104. package/src/renderers/dom/host/image-surface.tsx +19 -9
  105. package/src/renderers/dom/host/input.tsx +4 -0
  106. package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +23 -1
  107. package/src/sources/gloomberb-cloud/normalizers.ts +2 -0
  108. package/src/sources/provider-errors.ts +12 -0
  109. package/src/sources/provider-router/index.ts +12 -4
  110. package/src/state/pane-session.ts +145 -0
  111. package/src/tickers/search/home-listing.ts +44 -1
  112. package/src/tickers/search/index.ts +5 -2
  113. package/src/tickers/search/ranking.ts +7 -7
  114. package/src/tickers/us-listing.ts +11 -5
  115. package/src/time-series/base-series.ts +7 -1
  116. package/src/time-series/fundamentals/current-valuation.ts +8 -0
  117. package/src/time-series/fundamentals/series.ts +6 -0
  118. package/src/time-series/resolve.ts +1 -0
  119. package/src/types/financials.ts +20 -0
  120. package/src/types/headless.ts +9 -0
  121. package/src/ui/host.tsx +2 -0
  122. package/src/utils/exchanges.ts +13 -8
  123. package/src/utils/price-earnings.ts +17 -10
  124. package/src/utils/price-history-integrity.ts +15 -0
  125. package/src/utils/reason-codes.ts +79 -0
  126. package/src/utils/share-multiples.cases.json +889 -0
  127. package/src/utils/share-multiples.ts +254 -0
  128. package/src/utils/untrusted-text.ts +11 -0
package/src/i18n/es.ts CHANGED
@@ -73,6 +73,7 @@ export const es: Record<string, string> = {
73
73
  "Could not apply that setting.": "No se pudo aplicar ese ajuste.",
74
74
  "Enter {action} · Esc cancel": "Enter {action} · Esc cancelar",
75
75
  "y {action} · Enter or Esc {cancel}": "y {action} · Enter o Esc {cancel}",
76
+ "y {action} · Tab note · Enter or Esc {cancel}": "y {action} · Tab nota · Enter o Esc {cancel}",
76
77
  "Published {date}": "Publicado {date}",
77
78
  "Language": "Idioma",
78
79
  "Unsupported language": "Idioma no compatible",
@@ -736,6 +737,9 @@ export const es: Record<string, string> = {
736
737
  "Link copied.": "Enlace copiado.",
737
738
  "New link copied. The old one no longer works.": "Nuevo enlace copiado. El anterior ya no funciona.",
738
739
  "Copy failed. Select the link below.": "No se pudo copiar. Selecciona el enlace de abajo.",
740
+ "Invite": "Invitar",
741
+ "Free months earned: {earned} of {cap}": "Meses gratis obtenidos: {earned} de {cap}",
742
+ "Copy failed. Select the link instead.": "No se pudo copiar. Selecciona el enlace.",
739
743
  "Failed to create the calendar link.": "No se pudo crear el enlace del calendario.",
740
744
  "Regenerate Link": "Regenerar enlace",
741
745
  "Calendars using the current link stop updating.": "Los calendarios con el enlace actual dejarán de actualizarse.",
@@ -794,6 +798,13 @@ export const es: Record<string, string> = {
794
798
  "If you keep your trial, you can still cancel before it ends without being charged.": "Si mantienes tu prueba, aún puedes cancelar antes de que termine sin que se te cobre.",
795
799
  "End Trial Now": "Terminar prueba ahora",
796
800
  "Keep Trial": "Mantener prueba",
801
+ "What made you decide to cancel? (optional)": "¿Qué te hizo decidir cancelar? (opcional)",
802
+ "Bugs or reliability": "Errores o fiabilidad",
803
+ "Missing feature": "Falta una función",
804
+ "Too expensive": "Demasiado caro",
805
+ "Not using it enough": "No lo uso lo suficiente",
806
+ "Only needed it temporarily": "Solo lo necesitaba temporalmente",
807
+ "Anything else? (optional)": "¿Algo más? (opcional)",
797
808
  "Ending trial...": "Terminando prueba...",
798
809
  "Ending...": "Terminando...",
799
810
  "Trial ended. Pro is off and you won't be charged.": "Prueba terminada. Pro está desactivado y no se te cobrará.",
@@ -1691,6 +1702,7 @@ export const es: Record<string, string> = {
1691
1702
  "newline": "nueva línea",
1692
1703
  "Denied in {seconds} s": "Se deniega en {seconds} s",
1693
1704
  "choose": "elegir",
1705
+ "note": "nota",
1694
1706
  "select": "seleccionar",
1695
1707
  "here": "aquí",
1696
1708
  "new pane": "panel nuevo",
package/src/i18n/ja.ts CHANGED
@@ -73,6 +73,7 @@ export const ja: Record<string, string> = {
73
73
  "Could not apply that setting.": "その設定を適用できませんでした。",
74
74
  "Enter {action} · Esc cancel": "Enter {action} · Esc キャンセル",
75
75
  "y {action} · Enter or Esc {cancel}": "y {action} · Enter または Esc {cancel}",
76
+ "y {action} · Tab note · Enter or Esc {cancel}": "y {action} · Tab メモ · Enter または Esc {cancel}",
76
77
  "Published {date}": "{date} 公開",
77
78
  "Language": "言語",
78
79
  "Unsupported language": "対応していない言語",
@@ -751,6 +752,9 @@ export const ja: Record<string, string> = {
751
752
  "Link copied.": "リンクをコピーしました。",
752
753
  "New link copied. The old one no longer works.": "新しいリンクをコピーしました。古いリンクは使えなくなりました。",
753
754
  "Copy failed. Select the link below.": "コピーできませんでした。下のリンクを選択してください。",
755
+ "Invite": "招待",
756
+ "Free months earned: {earned} of {cap}": "獲得した無料月数: {cap}か月中{earned}か月",
757
+ "Copy failed. Select the link instead.": "コピーできませんでした。リンクを選択してください。",
754
758
  "Failed to create the calendar link.": "カレンダーリンクを作成できませんでした。",
755
759
  "Regenerate Link": "リンクを再生成",
756
760
  "Calendars using the current link stop updating.": "現在のリンクを使うカレンダーは更新されなくなります。",
@@ -809,6 +813,13 @@ export const ja: Record<string, string> = {
809
813
  "If you keep your trial, you can still cancel before it ends without being charged.": "トライアルを続ける場合も、終了前に解約すれば料金はかかりません。",
810
814
  "End Trial Now": "今すぐトライアルを終了",
811
815
  "Keep Trial": "トライアルを続ける",
816
+ "What made you decide to cancel? (optional)": "解約を決めた理由は?(任意)",
817
+ "Bugs or reliability": "バグや安定性",
818
+ "Missing feature": "機能が足りない",
819
+ "Too expensive": "高すぎる",
820
+ "Not using it enough": "あまり使っていない",
821
+ "Only needed it temporarily": "一時的に必要だっただけ",
822
+ "Anything else? (optional)": "ほかに何かあれば(任意)",
812
823
  "Ending trial...": "トライアルを終了しています...",
813
824
  "Ending...": "終了しています...",
814
825
  "Trial ended. Pro is off and you won't be charged.": "トライアルを終了しました。Pro はオフになり、料金はかかりません。",
@@ -1688,6 +1699,7 @@ export const ja: Record<string, string> = {
1688
1699
  "newline": "改行",
1689
1700
  "Denied in {seconds} s": "{seconds} 秒後に拒否",
1690
1701
  "choose": "選ぶ",
1702
+ "note": "メモ",
1691
1703
  "select": "決定",
1692
1704
  "here": "ここ",
1693
1705
  "new pane": "新しいペイン",
package/src/i18n/ko.ts CHANGED
@@ -71,6 +71,7 @@ export const ko: Record<string, string> = {
71
71
  "Could not apply that setting.": "해당 설정을 적용할 수 없습니다.",
72
72
  "Enter {action} · Esc cancel": "Enter {action} · Esc 취소",
73
73
  "y {action} · Enter or Esc {cancel}": "y {action} · Enter 또는 Esc {cancel}",
74
+ "y {action} · Tab note · Enter or Esc {cancel}": "y {action} · Tab 메모 · Enter 또는 Esc {cancel}",
74
75
  "Published {date}": "게시일 {date}",
75
76
  "Language": "언어",
76
77
  "Unsupported language": "지원하지 않는 언어",
@@ -749,6 +750,9 @@ export const ko: Record<string, string> = {
749
750
  "Link copied.": "링크를 복사했습니다.",
750
751
  "New link copied. The old one no longer works.": "새 링크를 복사했습니다. 이전 링크는 더 이상 작동하지 않습니다.",
751
752
  "Copy failed. Select the link below.": "복사하지 못했습니다. 아래 링크를 선택하세요.",
753
+ "Invite": "초대",
754
+ "Free months earned: {earned} of {cap}": "받은 무료 개월: {cap}개월 중 {earned}개월",
755
+ "Copy failed. Select the link instead.": "복사하지 못했습니다. 링크를 선택하세요.",
752
756
  "Failed to create the calendar link.": "캘린더 링크를 만들지 못했습니다.",
753
757
  "Regenerate Link": "링크 재생성",
754
758
  "Calendars using the current link stop updating.": "현재 링크를 쓰는 캘린더는 더 이상 업데이트되지 않습니다.",
@@ -807,6 +811,13 @@ export const ko: Record<string, string> = {
807
811
  "If you keep your trial, you can still cancel before it ends without being charged.": "체험을 유지해도 종료 전에 해지하면 요금이 청구되지 않습니다.",
808
812
  "End Trial Now": "지금 체험 종료",
809
813
  "Keep Trial": "체험 유지",
814
+ "What made you decide to cancel? (optional)": "해지하기로 한 이유는 무엇인가요? (선택)",
815
+ "Bugs or reliability": "버그 또는 안정성",
816
+ "Missing feature": "필요한 기능 부족",
817
+ "Too expensive": "너무 비쌈",
818
+ "Not using it enough": "충분히 사용하지 않음",
819
+ "Only needed it temporarily": "잠시만 필요했음",
820
+ "Anything else? (optional)": "더 하실 말씀이 있나요? (선택)",
810
821
  "Ending trial...": "체험 종료 중...",
811
822
  "Ending...": "종료 중...",
812
823
  "Trial ended. Pro is off and you won't be charged.": "체험이 종료되었습니다. Pro가 꺼졌으며 요금은 청구되지 않습니다.",
@@ -1686,6 +1697,7 @@ export const ko: Record<string, string> = {
1686
1697
  "newline": "줄바꿈",
1687
1698
  "Denied in {seconds} s": "{seconds}초 후 거부",
1688
1699
  "choose": "고르기",
1700
+ "note": "메모",
1689
1701
  "select": "선택",
1690
1702
  "here": "여기",
1691
1703
  "new pane": "새 패널",
package/src/i18n/zh-cn.ts CHANGED
@@ -73,6 +73,7 @@ export const zhCN: Record<string, string> = {
73
73
  "Could not apply that setting.": "无法应用该设置。",
74
74
  "Enter {action} · Esc cancel": "Enter {action} · Esc 取消",
75
75
  "y {action} · Enter or Esc {cancel}": "y {action} · Enter 或 Esc {cancel}",
76
+ "y {action} · Tab note · Enter or Esc {cancel}": "y {action} · Tab 备注 · Enter 或 Esc {cancel}",
76
77
  "Published {date}": "已发布 {date}",
77
78
  "Language": "语言",
78
79
  "Unsupported language": "不支持的语言",
@@ -751,6 +752,9 @@ export const zhCN: Record<string, string> = {
751
752
  "Link copied.": "已复制链接。",
752
753
  "New link copied. The old one no longer works.": "已复制新链接。旧链接已失效。",
753
754
  "Copy failed. Select the link below.": "复制失败。请选择下方的链接。",
755
+ "Invite": "邀请",
756
+ "Free months earned: {earned} of {cap}": "已获得免费月数:{earned}/{cap}",
757
+ "Copy failed. Select the link instead.": "复制失败。请选择链接。",
754
758
  "Failed to create the calendar link.": "无法创建日历链接。",
755
759
  "Regenerate Link": "重新生成链接",
756
760
  "Calendars using the current link stop updating.": "使用当前链接的日历将停止更新。",
@@ -809,6 +813,13 @@ export const zhCN: Record<string, string> = {
809
813
  "If you keep your trial, you can still cancel before it ends without being charged.": "如果保留试用,在试用结束前取消仍不会扣费。",
810
814
  "End Trial Now": "立即结束试用",
811
815
  "Keep Trial": "保留试用",
816
+ "What made you decide to cancel? (optional)": "是什么让你决定取消?(可选)",
817
+ "Bugs or reliability": "错误或稳定性问题",
818
+ "Missing feature": "缺少功能",
819
+ "Too expensive": "太贵了",
820
+ "Not using it enough": "用得不够多",
821
+ "Only needed it temporarily": "只是临时需要",
822
+ "Anything else? (optional)": "还有什么想说的吗?(可选)",
812
823
  "Ending trial...": "正在结束试用...",
813
824
  "Ending...": "正在结束...",
814
825
  "Trial ended. Pro is off and you won't be charged.": "试用已结束。Pro 已关闭,不会扣费。",
@@ -1688,6 +1699,7 @@ export const zhCN: Record<string, string> = {
1688
1699
  "newline": "换行",
1689
1700
  "Denied in {seconds} s": "{seconds} 秒后拒绝",
1690
1701
  "choose": "选择",
1702
+ "note": "备注",
1691
1703
  "select": "选定",
1692
1704
  "here": "此处",
1693
1705
  "new pane": "新面板",
package/src/i18n/zh-tw.ts CHANGED
@@ -73,6 +73,7 @@ export const zhTW: Record<string, string> = {
73
73
  "Could not apply that setting.": "無法套用該設定。",
74
74
  "Enter {action} · Esc cancel": "Enter {action} · Esc 取消",
75
75
  "y {action} · Enter or Esc {cancel}": "y {action} · Enter 或 Esc {cancel}",
76
+ "y {action} · Tab note · Enter or Esc {cancel}": "y {action} · Tab 備註 · Enter 或 Esc {cancel}",
76
77
  "Published {date}": "已發布 {date}",
77
78
  "Language": "語言",
78
79
  "Unsupported language": "不支援的語言",
@@ -751,6 +752,9 @@ export const zhTW: Record<string, string> = {
751
752
  "Link copied.": "已複製連結。",
752
753
  "New link copied. The old one no longer works.": "已複製新連結。舊連結已失效。",
753
754
  "Copy failed. Select the link below.": "複製失敗。請選取下方的連結。",
755
+ "Invite": "邀請",
756
+ "Free months earned: {earned} of {cap}": "已獲得免費月數:{earned}/{cap}",
757
+ "Copy failed. Select the link instead.": "複製失敗。請選取連結。",
754
758
  "Failed to create the calendar link.": "無法建立行事曆連結。",
755
759
  "Regenerate Link": "重新產生連結",
756
760
  "Calendars using the current link stop updating.": "使用目前連結的行事曆將停止更新。",
@@ -809,6 +813,13 @@ export const zhTW: Record<string, string> = {
809
813
  "If you keep your trial, you can still cancel before it ends without being charged.": "如果保留試用,在試用結束前取消仍不會收費。",
810
814
  "End Trial Now": "立即結束試用",
811
815
  "Keep Trial": "保留試用",
816
+ "What made you decide to cancel? (optional)": "是什麼讓你決定取消?(選填)",
817
+ "Bugs or reliability": "錯誤或穩定性問題",
818
+ "Missing feature": "缺少功能",
819
+ "Too expensive": "太貴了",
820
+ "Not using it enough": "用得不夠多",
821
+ "Only needed it temporarily": "只是暫時需要",
822
+ "Anything else? (optional)": "還有什麼想說的嗎?(選填)",
812
823
  "Ending trial...": "正在結束試用...",
813
824
  "Ending...": "正在結束...",
814
825
  "Trial ended. Pro is off and you won't be charged.": "試用已結束。Pro 已關閉,不會收費。",
@@ -1688,6 +1699,7 @@ export const zhTW: Record<string, string> = {
1688
1699
  "newline": "換行",
1689
1700
  "Denied in {seconds} s": "{seconds} 秒後拒絕",
1690
1701
  "choose": "選擇",
1702
+ "note": "備註",
1691
1703
  "select": "選定",
1692
1704
  "here": "此處",
1693
1705
  "new pane": "新面板",
@@ -46,7 +46,8 @@ export function dailyFxCloses(
46
46
  if (!row || typeof row.date !== "string" || !Number.isFinite(Date.parse(row.date)) || !isDay(row.date.slice(0, 10))
47
47
  || !Number.isFinite(row.close) || row.close <= 0) throw new FxHistoryError("unavailable");
48
48
  const date = new Date(row.date).toISOString().slice(0, 10);
49
- if (date >= today) continue;
49
+ // A close the source copied from the open, which nothing rebuilt, is no day's close: the day before it stands in.
50
+ if (date >= today || row.closeCopied === true) continue;
50
51
  const rate = leg.invert ? 1 / row.close : row.close;
51
52
  const previous = closes.get(date);
52
53
  if (previous != null && previous !== rate) throw new FxHistoryError("unavailable");
@@ -88,6 +89,11 @@ export interface FxCloseReading {
88
89
  date: string;
89
90
  /** When the close was taken, as an ISO time (17:00 New York), when the service says. */
90
91
  closedAt?: string;
92
+ /**
93
+ * The day asked for, when its close is the source's copy of its open, which
94
+ * nothing rebuilt: `date` is then the trading day before it.
95
+ */
96
+ copiedClose?: string;
91
97
  }
92
98
 
93
99
  /**
@@ -134,16 +140,22 @@ export async function readFxCloseOnDate(
134
140
  if (response.status !== "success" && response.status !== "partial") return { reading: null, served };
135
141
  const today = isoDay(now.getTime());
136
142
  let best: FxCloseReading | null = null;
143
+ let copied: string | undefined;
137
144
  for (const row of Array.isArray(response.data) ? response.data : []) {
138
145
  const at = typeof row?.date === "string" ? Date.parse(row.date) : Number.NaN;
139
146
  if (!Number.isFinite(at) || !Number.isFinite(row.close) || row.close <= 0) continue;
140
147
  const rowDay = isoDay(at);
141
148
  if (rowDay > date || rowDay >= today || Date.parse(`${rowDay}T00:00:00Z`) < day - FX_MAX_AGE_DAYS * DAY_MS) continue;
149
+ // A close the source copied from the open, which nothing rebuilt, is no day's close: the day before it stands in.
150
+ if (row.closeCopied === true) {
151
+ if (rowDay === date) copied = rowDay;
152
+ continue;
153
+ }
142
154
  const close = fxFigureAsSent(row.close);
143
155
  const closedAt = typeof row.closedAt === "string" && Number.isFinite(Date.parse(row.closedAt)) ? row.closedAt : undefined;
144
156
  if (!best || rowDay > best.date) best = { rate: leg.invert ? 1 / close : close, close, date: rowDay, ...(closedAt ? { closedAt } : {}) };
145
157
  }
146
- return { reading: best, served };
158
+ return { reading: best && copied ? { ...best, copiedClose: copied } : best, served };
147
159
  }
148
160
 
149
161
  /**
@@ -11,7 +11,13 @@ import { futuresChangeBasis, futuresQuoteMonth, futuresSettleText, isFuturesInst
11
11
  import { quoteTradingDay } from "../quotes/day-range";
12
12
  import { splitRatioText } from "../quotes/session-split";
13
13
  import { hasPublishedSessionCalendar, isVenueTradingDay, latestRegularSessionOpen, previousPublishedSession, sessionCalendarTimeZone } from "./freshness";
14
- import { getActiveQuoteDisplay, getRegularSessionDisplay, regularSessionDisplayDate } from "./status";
14
+ import {
15
+ EXTENDED_SESSION_MARKS,
16
+ getActiveQuoteDisplay,
17
+ getRegularSessionDisplay,
18
+ regularSessionDisplayDate,
19
+ type ExtendedSession,
20
+ } from "./status";
15
21
 
16
22
  const DAY_MS = 86_400_000;
17
23
  const ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
@@ -406,6 +412,34 @@ export function combinedChangeBasisLabel(bases: Iterable<QuoteChangeBasis | null
406
412
  return labels.size === 1 ? [...labels][0]! : MIXED_CHANGE_BASIS_LABEL;
407
413
  }
408
414
 
415
+ /** An extended session as a day's move names its print in words, where there is room: "after hours vs Tue 10 Nov close". */
416
+ const EXTENDED_PRINT_WORDS: Record<ExtendedSession, string> = { PRE: "pre-market", POST: "after hours", OVERNIGHT: "overnight" };
417
+
418
+ /**
419
+ * The basis of a day's move summed over the prices a book is valued at, when
420
+ * some are pre-market, after-hours or overnight prints (its latest print): the
421
+ * session of those prints, then the close the moves are from, so the line says
422
+ * which print it compares with which close. `marks` gives the session as a row
423
+ * marks its price ("AH vs Tue 10 Nov close"), otherwise in words ("after hours
424
+ * vs Tue 10 Nov close"); prints from several sessions read EXT or "extended
425
+ * hours". Without an extended print, the close alone, as
426
+ * combinedChangeBasisLabel gives it; null without a basis.
427
+ */
428
+ export function dayMoveBasisLabel(
429
+ bases: Iterable<QuoteChangeBasis | null | undefined>,
430
+ prints: Iterable<ExtendedSession | null | undefined>,
431
+ { marks = false, now = Date.now() }: { marks?: boolean; now?: number } = {},
432
+ ): string | null {
433
+ const basis = combinedChangeBasisLabel(bases, now);
434
+ const sessions = new Set<ExtendedSession>();
435
+ for (const print of prints) if (print) sessions.add(print);
436
+ if (!basis || sessions.size === 0) return basis;
437
+ const [session] = sessions;
438
+ const print = sessions.size > 1 ? (marks ? "EXT" : "extended hours")
439
+ : marks ? EXTENDED_SESSION_MARKS[session!] : EXTENDED_PRINT_WORDS[session!];
440
+ return `${print} ${basis}`;
441
+ }
442
+
409
443
  /**
410
444
  * The basis as `--json` gives it beside a move: the kind, the dated session
411
445
  * (`date`), the venue's closures in between and the label and note a change
@@ -331,6 +331,43 @@ export function getActiveQuoteDisplay(quote: Quote | null | undefined): ActiveQu
331
331
  return { price: quote.price, change: quote.change, changePercent: quote.changePercent };
332
332
  }
333
333
 
334
+ /** A price and its move, with the extended session it is a print of when it is not the regular session's. */
335
+ export interface SessionPriceDisplay extends ActiveQuoteDisplay {
336
+ /** Set when the price is a pre-market, after-hours or overnight print. */
337
+ session?: ExtendedSession;
338
+ /** That print is the midpoint of the session's bid and ask, nothing having traded in it. */
339
+ mark?: true;
340
+ }
341
+
342
+ /**
343
+ * The latest print (getActiveQuoteDisplay), naming its session when it is a
344
+ * pre-market, after-hours or overnight trade rather than the regular
345
+ * session's price or close: the extended print `quote` shows beside Last
346
+ * (getExtendedSessionDisplay) at the same price. A quote that says nothing
347
+ * has traded in the session yet (extendedSessionPrint false) carries the
348
+ * close, which names none. Whatever is priced at the latest print (a
349
+ * position's value and day, an alert's current price) says which session the
350
+ * price is from with this.
351
+ */
352
+ export function getLatestPrintDisplay(quote: Quote | null | undefined): SessionPriceDisplay | null {
353
+ const latest = getActiveQuoteDisplay(quote);
354
+ if (!latest || quote?.extendedSessionPrint === false) return latest;
355
+ const extended = getExtendedSessionDisplay(quote);
356
+ if (!extended || extended.price !== latest.price) return latest;
357
+ return { ...latest, session: extended.session, ...(extended.mark ? { mark: true as const } : {}) };
358
+ }
359
+
360
+ /**
361
+ * The extended session `price` is a print of: the quote's latest print's
362
+ * (getLatestPrintDisplay) when that is the price and a pre-market,
363
+ * after-hours or overnight trade. Null for a regular session's price or close,
364
+ * and for any other price (an option's mark, a future's settlement).
365
+ */
366
+ export function extendedPrintSession(quote: Quote | null | undefined, price: number | null | undefined): ExtendedSession | null {
367
+ const latest = getLatestPrintDisplay(quote);
368
+ return latest?.session && price != null && latest.price === price ? latest.session : null;
369
+ }
370
+
334
371
  function isPositive(value: number | undefined): value is number {
335
372
  return isFiniteNumber(value) && value > 0;
336
373
  }
@@ -1,5 +1,5 @@
1
1
  import type { PricePoint, Quote } from "../types/financials";
2
- import { pricePointIntegrity } from "../utils/price-history-integrity";
2
+ import { pricePointCloseCopied, pricePointIntegrity } from "../utils/price-history-integrity";
3
3
  import { calendarMonthsBefore } from "../utils/calendar-date";
4
4
  import { barSessionDay, isReturnPeriod, periodBaseDay, periodBaseIndex } from "./market/period-return";
5
5
 
@@ -56,6 +56,9 @@ function normalizePriceReturnHistory(points: readonly PricePoint[]): readonly Pr
56
56
  for (const point of points) {
57
57
  const date = coercePointDate(point.date as Date | string | number);
58
58
  if (!date || (!Number.isFinite(point.close) && !pricePointIntegrity(point))) continue;
59
+ // A pair's close its source copied from the open, which nothing rebuilt, is no day's close: a horizon's base or end
60
+ // falls on the close before it, as across a holiday.
61
+ if (pricePointCloseCopied(point)) continue;
59
62
  byTimestamp.set(date.getTime(), { ...point, date });
60
63
  }
61
64
  const history = [...byTimestamp.entries()]
@@ -1,11 +1,11 @@
1
- import type { AnalystResearchData, CorporateActionsData, Fundamentals, Quote } from "../../types/financials";
1
+ import type { AnalystResearchData, CorporateActionsData, Fundamentals, Quote, TickerFinancials } from "../../types/financials";
2
2
  import { atRegularSessionPrice, regularSessionValuationPrice } from "./regular-session-valuation";
3
3
  import { hasLikelyQuoteUnitMismatch, resolveCurrencyUnit } from "../../utils/currency-units";
4
4
  import { cashInMajorUnits } from "../../utils/dividend-cash";
5
5
  import { cashDistribution, dividendReferencePrice, trailingDividendYield, type CashDistribution } from "../../utils/trailing-dividend";
6
6
  import { priceEarningsEps } from "../../utils/fundamentals";
7
7
  import { selectMarketCapitalization, type MarketCapitalization } from "../../utils/market-capitalization";
8
- import { priceEarningsOnEarnings, type PriceEarnings } from "../../utils/price-earnings";
8
+ import { NOT_MEANINGFUL, priceEarningsOnEarnings, type PriceEarnings } from "../../utils/price-earnings";
9
9
 
10
10
  /**
11
11
  * Price-derived statistics repriced at the quote's regular session price
@@ -69,16 +69,39 @@ function repriceMultiple(
69
69
  * currency than the price is repriced at the rate the served P/E converted it at.
70
70
  */
71
71
  export function liveTrailingPE(quote: Quote | null | undefined, fundamentals: Fundamentals | undefined): PriceEarnings | undefined {
72
+ // Withdrawn as no multiple of the share (utils/share-multiples).
73
+ if (fundamentals?.notMeaningful?.trailingPE) return NOT_MEANINGFUL;
72
74
  const stored = pricedFundamentals(quote, fundamentals)?.trailingPE;
73
75
  return priceEarningsOnEarnings(repriceMultiple(stored, priceEarningsEps(fundamentals), quote, fundamentals), fundamentals?.eps);
74
76
  }
75
77
 
76
78
  /** Forward P/E over the regular session price; not meaningful when the forward EPS behind it is zero or a loss. */
77
79
  export function liveForwardPE(quote: Quote | null | undefined, fundamentals: Fundamentals | undefined): PriceEarnings | undefined {
80
+ if (fundamentals?.notMeaningful?.forwardPE) return NOT_MEANINGFUL;
78
81
  const stored = pricedFundamentals(quote, fundamentals)?.forwardPE;
79
82
  return priceEarningsOnEarnings(repriceMultiple(stored, fundamentals?.forwardEps, quote, fundamentals), fundamentals?.forwardEps);
80
83
  }
81
84
 
85
+ /**
86
+ * `financials` at the regular session price (atRegularSessionPrice) with the trailing and forward P/E the Overview,
87
+ * the portfolio and EQS show (liveTrailingPE, liveForwardPE): one the source measured at an older print is the price
88
+ * over its EPS. A P/E with no number (N/M, or none) stays as the block has it, for its reason.
89
+ */
90
+ export function atLivePriceEarnings<T extends Pick<TickerFinancials, "quote" | "fundamentals">>(financials: T): T {
91
+ const priced = atRegularSessionPrice(financials);
92
+ if (!priced.fundamentals) return priced;
93
+ const trailing = liveTrailingPE(financials.quote, financials.fundamentals);
94
+ const forward = liveForwardPE(financials.quote, financials.fundamentals);
95
+ return {
96
+ ...priced,
97
+ fundamentals: {
98
+ ...priced.fundamentals,
99
+ ...typeof trailing === "number" ? { trailingPE: trailing } : {},
100
+ ...typeof forward === "number" ? { forwardPE: forward } : {},
101
+ },
102
+ };
103
+ }
104
+
82
105
  /** Forward dividend yield over the regular session price, as a ratio like the stored yield. */
83
106
  export function liveDividendYield(quote: Quote | null | undefined, fundamentals: Fundamentals | undefined): number | undefined {
84
107
  const stored = pricedFundamentals(quote, fundamentals)?.dividendYield;
@@ -2,6 +2,7 @@ import type { PricePoint } from "../types/financials";
2
2
  import { barsPerYear, type BarsPerYearInstrument } from "./bars-per-year";
3
3
  import {
4
4
  mergePriceHistoryIntegrity,
5
+ pricePointCloseCopied,
5
6
  pricePointIntegrity,
6
7
  pricePointOpenWithheld,
7
8
  pricePointWicks,
@@ -113,6 +114,8 @@ function observations(points: readonly PricePoint[]): Observation[] | null {
113
114
  for (const point of points) {
114
115
  const time = new Date(point.date).getTime();
115
116
  if (!Number.isFinite(time)) return null;
117
+ // A pair's close its source copied from the open, which nothing rebuilt, is no day's close: the bar is left out.
118
+ if (pricePointCloseCopied(point)) continue;
116
119
  dates.set(time, point);
117
120
  }
118
121
  return [...dates.entries()].sort(([a], [b]) => a - b).map(([time, point]) => ({
@@ -0,0 +1,115 @@
1
+ /**
2
+ * The US bond market's full holidays, as SIFMA recommends them: the federal
3
+ * holidays (Columbus Day and Veterans Day among them, when stocks trade) and
4
+ * Good Friday, except a Good Friday the March jobs report comes out on (the
5
+ * first Friday of April: 2010-04-02, 2012-04-06, 2015-04-03, 2021-04-02,
6
+ * 2023-04-07, 2026-04-03), when SIFMA recommends an early close instead and
7
+ * the Treasury curve and FRED's daily rates have the day. A Treasury curve and
8
+ * a FRED rate series have no observation on a full holiday. A holiday on a Sunday closes the Monday after it; one on a Saturday
9
+ * closes the Friday before it, except New Year's Day and Veterans Day, which
10
+ * close nothing then (the market traded Fri 31 Dec 2021 and Fri 10 Nov 2023).
11
+ * Juneteenth is a holiday from 2022. Early closes are trading days.
12
+ */
13
+
14
+ const DAY_MS = 86_400_000;
15
+ const WEEKDAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
16
+ const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
17
+
18
+ const isoDay = (time: number) => new Date(time).toISOString().slice(0, 10);
19
+
20
+ /** The `nth` `weekday` (0 Sunday) of a month (0 January), or its last when `nth` is -1. */
21
+ function nthWeekday(year: number, month: number, weekday: number, nth: number): number {
22
+ if (nth < 0) {
23
+ const last = Date.UTC(year, month + 1, 0);
24
+ return last - ((new Date(last).getUTCDay() - weekday + 7) % 7) * DAY_MS;
25
+ }
26
+ const first = Date.UTC(year, month, 1);
27
+ return first + (((weekday - new Date(first).getUTCDay() + 7) % 7) + (nth - 1) * 7) * DAY_MS;
28
+ }
29
+
30
+ /** Good Friday: Easter Sunday (the Gregorian computus) less two days. */
31
+ function goodFriday(year: number): number {
32
+ const a = year % 19, b = Math.floor(year / 100), c = year % 100;
33
+ const d = Math.floor(b / 4), e = b % 4, f = Math.floor((b + 8) / 25), g = Math.floor((b - f + 1) / 3);
34
+ const h = (19 * a + b - d - g + 15) % 30, i = Math.floor(c / 4), k = c % 4;
35
+ const l = (32 + 2 * e + 2 * i - h - k) % 7, m = Math.floor((a + 11 * h + 22 * l) / 451);
36
+ const month = Math.floor((h + l - 7 * m + 114) / 31);
37
+ const day = ((h + l - 7 * m + 114) % 31) + 1;
38
+ return Date.UTC(year, month - 1, day) - 2 * DAY_MS;
39
+ }
40
+
41
+ const holidaysByYear = new Map<number, ReadonlyMap<string, string>>();
42
+
43
+ /** Each closed day of a year with the holiday it is for. */
44
+ function holidays(year: number): ReadonlyMap<string, string> {
45
+ const kept = holidaysByYear.get(year);
46
+ if (kept) return kept;
47
+ const days = new Map<string, string>();
48
+ // A fixed date on a Sunday closes the Monday; on a Saturday the Friday, where the market moves it.
49
+ const fixed = (month: number, day: number, name: string, saturdayCloses = true) => {
50
+ const date = Date.UTC(year, month, day);
51
+ const weekday = new Date(date).getUTCDay();
52
+ if (weekday === 6 && !saturdayCloses) return;
53
+ days.set(isoDay(date + (weekday === 0 ? DAY_MS : weekday === 6 ? -DAY_MS : 0)), name);
54
+ };
55
+ fixed(0, 1, "New Year's Day", false);
56
+ days.set(isoDay(nthWeekday(year, 0, 1, 3)), "Martin Luther King Jr. Day");
57
+ days.set(isoDay(nthWeekday(year, 1, 1, 3)), "Washington's Birthday");
58
+ // A Good Friday in April's first week is the March jobs report's day: an early close, not a holiday.
59
+ const friday = goodFriday(year);
60
+ if (!(new Date(friday).getUTCMonth() === 3 && new Date(friday).getUTCDate() <= 7)) days.set(isoDay(friday), "Good Friday");
61
+ days.set(isoDay(nthWeekday(year, 4, 1, -1)), "Memorial Day");
62
+ if (year >= 2022) fixed(5, 19, "Juneteenth");
63
+ fixed(6, 4, "Independence Day");
64
+ days.set(isoDay(nthWeekday(year, 8, 1, 1)), "Labor Day");
65
+ days.set(isoDay(nthWeekday(year, 9, 1, 2)), "Columbus Day");
66
+ fixed(10, 11, "Veterans Day", false);
67
+ days.set(isoDay(nthWeekday(year, 10, 4, 4)), "Thanksgiving Day");
68
+ fixed(11, 25, "Christmas Day");
69
+ holidaysByYear.set(year, days);
70
+ return days;
71
+ }
72
+
73
+ /** The holiday a day (`YYYY-MM-DD`) closes the US bond market for, or null for a trading day or a weekend. */
74
+ export function usBondMarketHoliday(date: string): string | null {
75
+ const year = Number(date.slice(0, 4));
76
+ return Number.isInteger(year) ? holidays(year).get(date.slice(0, 10)) ?? null : null;
77
+ }
78
+
79
+ /** `Wed 11 Nov`: a day as the closure note names it. */
80
+ function dayText(date: string): string {
81
+ const day = new Date(`${date.slice(0, 10)}T00:00:00Z`);
82
+ return `${WEEKDAYS[day.getUTCDay()]} ${day.getUTCDate()} ${MONTHS[day.getUTCMonth()]}`;
83
+ }
84
+
85
+ /**
86
+ * Why a day asked for shows an earlier one, for a series observed on US bond
87
+ * market days (the Treasury curve, FRED's daily rates): "Wed 11 Nov: US bond
88
+ * market closed (Veterans Day); showing Tue 10 Nov", or "Sat 7 Nov: weekend;
89
+ * showing Fri 6 Nov" when every day between them is a weekend or a holiday.
90
+ * Null when the day shown is the day asked for, or when a trading day between
91
+ * them has no observation either, which a closure does not explain.
92
+ */
93
+ export function usBondMarketClosedNote(asked: string, shown: string): string | null {
94
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(asked) || !/^\d{4}-\d{2}-\d{2}$/.test(shown) || shown >= asked) return null;
95
+ const from = Date.parse(`${shown}T00:00:00Z`) + DAY_MS;
96
+ for (let time = from; time <= Date.parse(`${asked}T00:00:00Z`); time += DAY_MS) {
97
+ const day = isoDay(time);
98
+ if (new Date(time).getUTCDay() % 6 !== 0 && !usBondMarketHoliday(day)) return null;
99
+ }
100
+ const holiday = usBondMarketHoliday(asked);
101
+ const why = holiday ? `US bond market closed (${holiday})` : new Date(`${asked}T00:00:00Z`).getUTCDay() % 6 === 0 ? "weekend"
102
+ : "US bond market closed";
103
+ return `${dayText(asked)}: ${why}; showing ${dayText(shown)}`;
104
+ }
105
+
106
+ /**
107
+ * Whether a FRED series is observed on US bond market days: the Treasury's
108
+ * constant-maturity, bill and real yields and their spreads, SOFR, and the
109
+ * corporate yields and spreads priced off them. A stock index or an oil price
110
+ * trades on Veterans Day and is no such series.
111
+ */
112
+ export function followsUsBondMarket(seriesId: string): boolean {
113
+ return /^(?:DGS\d+(?:MO)?|DTB\d+(?:WK)?|DTB\d+YR|DFII\d+|T\d+Y(?:\d+[MY]|FF|IE)|T5YIFR|SOFR\w*|BAML\w+|DAAA|DBAA|AAA10Y|BAA10Y)$/i
114
+ .test(seriesId.trim());
115
+ }
@@ -0,0 +1,54 @@
1
+ import type { Ref } from "react";
2
+ import { Button, FieldLabel } from "../../../components";
3
+ import { terminalButtonColumns } from "../../../components/ui/button";
4
+ import type { ReferralInvite } from "../../../api-client";
5
+ import { t, tf } from "../../../i18n";
6
+ import { colors } from "../../../theme/colors";
7
+ import { Box, Text, type BoxRenderable } from "../../../ui";
8
+ import { displayWidth } from "../../../utils/format";
9
+
10
+ /** The link as people read it, without the scheme; Copy gives the whole URL. */
11
+ function inviteLinkText(url: string): string {
12
+ return url.replace(/^https?:\/\//, "");
13
+ }
14
+
15
+ /**
16
+ * The Pro tab's Invite row: the account's invite link, selectable, a Copy
17
+ * button beside it (under it when the pane is too narrow for both), and the
18
+ * free months the link has earned so far.
19
+ */
20
+ export function InviteRow({
21
+ invite,
22
+ active,
23
+ width,
24
+ labelWidth,
25
+ nodeRef,
26
+ onCopy,
27
+ onFocus,
28
+ }: {
29
+ invite: ReferralInvite;
30
+ active: boolean;
31
+ width: number;
32
+ labelWidth: number;
33
+ nodeRef: Ref<BoxRenderable>;
34
+ onCopy: () => void;
35
+ onFocus: () => void;
36
+ }) {
37
+ const link = inviteLinkText(invite.url);
38
+ const copyLabel = t("Copy");
39
+ const besideLink = displayWidth(link) + 1 + terminalButtonColumns({ label: copyLabel }) <= width - labelWidth - 1;
40
+ return (
41
+ <Box ref={nodeRef} flexDirection="row" gap={1} onMouseDown={onFocus}>
42
+ <FieldLabel label={t("Invite")} active={active} width={labelWidth} />
43
+ <Box flexDirection="column" flexShrink={1}>
44
+ <Box flexDirection={besideLink ? "row" : "column"} gap={besideLink ? 1 : 0} alignItems={besideLink ? "center" : "flex-start"}>
45
+ <Text selectable fg={colors.text}>{link}</Text>
46
+ <Button label={copyLabel} active={active} onPress={onCopy} />
47
+ </Box>
48
+ <Text fg={colors.textDim}>
49
+ {tf("Free months earned: {earned} of {cap}", { earned: invite.earned, cap: invite.cap })}
50
+ </Text>
51
+ </Box>
52
+ </Box>
53
+ );
54
+ }
@@ -35,6 +35,7 @@ export function useAccountManagementKeyboard({
35
35
  setDraftValue,
36
36
  deleteAccount,
37
37
  endTrial,
38
+ copyInvite,
38
39
  turnOffEmailAlerts,
39
40
  }: {
40
41
  activeField: AccountFieldKey;
@@ -54,6 +55,7 @@ export function useAccountManagementKeyboard({
54
55
  setDraftValue: <K extends keyof AccountDraft>(key: K, value: AccountDraft[K]) => void;
55
56
  deleteAccount: () => Promise<void>;
56
57
  endTrial: () => Promise<void>;
58
+ copyInvite: () => void;
57
59
  turnOffEmailAlerts: () => Promise<void>;
58
60
  }): FieldRing<AccountFieldKey> {
59
61
  const actions: Partial<Record<AccountFieldKey, () => void>> = {
@@ -62,6 +64,7 @@ export function useAccountManagementKeyboard({
62
64
  passwordAction: openPasswordDialog,
63
65
  upgradeAction: openUpgrade,
64
66
  cancelTrialAction: () => { void endTrial(); },
67
+ inviteCopyAction: copyInvite,
65
68
  assistantsAction: openAssistants,
66
69
  deleteAccountAction: () => { void deleteAccount(); },
67
70
  emailAlertsOffAction: () => { void turnOffEmailAlerts(); },
@@ -25,6 +25,7 @@ export type AccountFieldKey =
25
25
  | "emailAlertsOffAction"
26
26
  | "upgradeAction"
27
27
  | "cancelTrialAction"
28
+ | "inviteCopyAction"
28
29
  | "assistantsAction"
29
30
  | "passwordAction"
30
31
  | "deleteAccountAction";