@openrails/billing-ui 0.281.0 → 0.283.0

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 (221) hide show
  1. package/README.md +108 -364
  2. package/dist/account/format.d.ts +6 -2
  3. package/dist/admin/context.d.ts +38 -46
  4. package/dist/admin/lib/api/endpoints.d.ts +4 -4
  5. package/dist/admin/lib/api/index.d.ts +4 -4
  6. package/dist/admin/lib/api/metrics.d.ts +15 -6
  7. package/dist/admin/lib/capabilities.d.ts +2 -0
  8. package/dist/admin/lib/duration.d.ts +4 -0
  9. package/dist/admin/lib/format.d.ts +29 -1
  10. package/dist/admin/lib/mutations.d.ts +0 -10
  11. package/dist/admin/lib/queries.d.ts +16 -10
  12. package/dist/admin/messages.d.ts +61 -20
  13. package/dist/admin/pages/catalog/price-wizard-logic.d.ts +2 -0
  14. package/dist/admin/pages/catalog/price-wizard.d.ts +1 -3
  15. package/dist/admin/pages/customers/credits.d.ts +4 -1
  16. package/dist/admin/pages/dashboard/levels.d.ts +8 -0
  17. package/dist/admin/pages/dashboard/lib.d.ts +16 -7
  18. package/dist/admin/pages/dashboard/programs.d.ts +3 -0
  19. package/dist/admin/pages/dashboard/query-builder.d.ts +20 -0
  20. package/dist/admin/pages/dashboard/range.d.ts +8 -2
  21. package/dist/admin/pages/dashboard/registry.d.ts +14 -0
  22. package/dist/admin/pages/dashboard/reports-model.d.ts +8 -4
  23. package/dist/admin/pages/dashboard/reports.d.ts +1 -1
  24. package/dist/admin/pages/dashboard/units.d.ts +5 -0
  25. package/dist/admin/pages/dashboard/use-range.d.ts +5 -1
  26. package/dist/admin/pages/dashboard/widget-editor.d.ts +7 -2
  27. package/dist/admin/pages/dashboard/widget-tile.d.ts +10 -4
  28. package/dist/admin/pages/dashboard/widget-viz.d.ts +10 -5
  29. package/dist/admin/pages/ops/signals.d.ts +4 -0
  30. package/dist/admin/pages/payments/attempts.d.ts +2 -2
  31. package/dist/admin/pages/payments/health-model.d.ts +20 -20
  32. package/dist/admin/pages/subscriptions/views.d.ts +4 -0
  33. package/dist/admin-attempts-CRkxeVfQ.js +417 -0
  34. package/dist/admin-attempts-CRkxeVfQ.js.map +1 -0
  35. package/dist/{admin-auth-BUUdvmqC.js → admin-auth-C0pBH3kp.js} +2 -2
  36. package/dist/{admin-auth-BUUdvmqC.js.map → admin-auth-C0pBH3kp.js.map} +1 -1
  37. package/dist/{admin-badge-CAlUmS2s.js → admin-badge-C_-j7ANF.js} +2 -2
  38. package/dist/{admin-badge-CAlUmS2s.js.map → admin-badge-C_-j7ANF.js.map} +1 -1
  39. package/dist/{admin-button-Bn4otsuw.js → admin-button-BV5MAL2H.js} +2 -2
  40. package/dist/{admin-button-Bn4otsuw.js.map → admin-button-BV5MAL2H.js.map} +1 -1
  41. package/dist/{admin-capabilities-DS-X-__V.js → admin-capabilities-B3ZfkA49.js} +21 -13
  42. package/dist/admin-capabilities-B3ZfkA49.js.map +1 -0
  43. package/dist/{admin-card-BHKW1dfB.js → admin-card-DQ61c-kV.js} +2 -2
  44. package/dist/{admin-card-BHKW1dfB.js.map → admin-card-DQ61c-kV.js.map} +1 -1
  45. package/dist/admin-catalog-DAnsClai.js +867 -0
  46. package/dist/admin-catalog-DAnsClai.js.map +1 -0
  47. package/dist/{admin-cursor-pager-Qo9Sq6lN.js → admin-cursor-pager-dkNj-gb6.js} +22 -22
  48. package/dist/{admin-cursor-pager-Qo9Sq6lN.js.map → admin-cursor-pager-dkNj-gb6.js.map} +1 -1
  49. package/dist/admin-customer-search-DDMn_5Us.js +115 -0
  50. package/dist/admin-customer-search-DDMn_5Us.js.map +1 -0
  51. package/dist/{admin-customers-BZP6Jv-i.js → admin-customers-BMaugwpg.js} +24 -25
  52. package/dist/admin-customers-BMaugwpg.js.map +1 -0
  53. package/dist/admin-dashboard-DbbfrIOq.js +510 -0
  54. package/dist/admin-dashboard-DbbfrIOq.js.map +1 -0
  55. package/dist/{admin-data-table-BiFmcf0Z.js → admin-data-table-BjA8cBsr.js} +5 -5
  56. package/dist/{admin-data-table-BiFmcf0Z.js.map → admin-data-table-BjA8cBsr.js.map} +1 -1
  57. package/dist/admin-detail-BVJcnTO-.js +1361 -0
  58. package/dist/admin-detail-BVJcnTO-.js.map +1 -0
  59. package/dist/{admin-detail-cijme9Lc.js → admin-detail-DO9wd12I.js} +130 -107
  60. package/dist/admin-detail-DO9wd12I.js.map +1 -0
  61. package/dist/{admin-detail-CQws8363.js → admin-detail-M7YFYOGN.js} +211 -210
  62. package/dist/{admin-detail-CQws8363.js.map → admin-detail-M7YFYOGN.js.map} +1 -1
  63. package/dist/admin-detail-sOLj-K-Y.js +336 -0
  64. package/dist/{admin-detail-NApy5bio.js.map → admin-detail-sOLj-K-Y.js.map} +1 -1
  65. package/dist/admin-detail-uZ-eR2TT.js +292 -0
  66. package/dist/{admin-detail-C6VH3i2v.js.map → admin-detail-uZ-eR2TT.js.map} +1 -1
  67. package/dist/{admin-dialog-CgYGInHi.js → admin-dialog-BxRcYcQM.js} +3 -3
  68. package/dist/{admin-dialog-CgYGInHi.js.map → admin-dialog-BxRcYcQM.js.map} +1 -1
  69. package/dist/{admin-dropdown-menu-CU9RxoEJ.js → admin-dropdown-menu-DlyaKwyU.js} +2 -2
  70. package/dist/{admin-dropdown-menu-CU9RxoEJ.js.map → admin-dropdown-menu-DlyaKwyU.js.map} +1 -1
  71. package/dist/{admin-dunning-D8lAP7OA.js → admin-dunning-CDy6aMAj.js} +2 -2
  72. package/dist/{admin-dunning-D8lAP7OA.js.map → admin-dunning-CDy6aMAj.js.map} +1 -1
  73. package/dist/{admin-fact-card-lN-MsuSp.js → admin-fact-card-2DujC_r3.js} +2 -2
  74. package/dist/{admin-fact-card-lN-MsuSp.js.map → admin-fact-card-2DujC_r3.js.map} +1 -1
  75. package/dist/{admin-utils-CX097OR7.js → admin-format-Bc4NWK0F.js} +495 -328
  76. package/dist/admin-format-Bc4NWK0F.js.map +1 -0
  77. package/dist/{admin-health-CnagC763.js → admin-health-DePsyIlc.js} +217 -196
  78. package/dist/admin-health-DePsyIlc.js.map +1 -0
  79. package/dist/{admin-imports-SM_fKKgW.js → admin-imports-BrQH3u9M.js} +85 -86
  80. package/dist/{admin-imports-SM_fKKgW.js.map → admin-imports-BrQH3u9M.js.map} +1 -1
  81. package/dist/{admin-input-B_EUzCAE.js → admin-input-BZ2ExV_5.js} +2 -2
  82. package/dist/{admin-input-B_EUzCAE.js.map → admin-input-BZ2ExV_5.js.map} +1 -1
  83. package/dist/{admin-label-DQsOkp1p.js → admin-label-DecDO0oV.js} +2 -2
  84. package/dist/{admin-label-DQsOkp1p.js.map → admin-label-DecDO0oV.js.map} +1 -1
  85. package/dist/{admin-linked-table-row-BFsgc9tz.js → admin-linked-table-row-ChxhVptQ.js} +3 -3
  86. package/dist/{admin-linked-table-row-BFsgc9tz.js.map → admin-linked-table-row-ChxhVptQ.js.map} +1 -1
  87. package/dist/{admin-map-dialog-Dt3gTuTD.js → admin-map-dialog-CQmGOBMw.js} +12 -12
  88. package/dist/{admin-map-dialog-Dt3gTuTD.js.map → admin-map-dialog-CQmGOBMw.js.map} +1 -1
  89. package/dist/admin-metering-OXGOVQ7e.js +1716 -0
  90. package/dist/{admin-metering-DM4KhjOq.js.map → admin-metering-OXGOVQ7e.js.map} +1 -1
  91. package/dist/{admin-missing-record-G2Jz-VUn.js → admin-missing-record-B_9LpSIW.js} +4 -4
  92. package/dist/{admin-missing-record-G2Jz-VUn.js.map → admin-missing-record-B_9LpSIW.js.map} +1 -1
  93. package/dist/admin-ops-BTSunx1i.js +357 -0
  94. package/dist/{admin-ops-mwzj-jpg.js.map → admin-ops-BTSunx1i.js.map} +1 -1
  95. package/dist/{admin-orders-D_aqV66h.js → admin-orders-LqlpQVFo.js} +59 -60
  96. package/dist/{admin-orders-D_aqV66h.js.map → admin-orders-LqlpQVFo.js.map} +1 -1
  97. package/dist/{admin-parked-2FjIfyMg.js → admin-parked-Ch6mlS5f.js} +61 -62
  98. package/dist/{admin-parked-2FjIfyMg.js.map → admin-parked-Ch6mlS5f.js.map} +1 -1
  99. package/dist/{admin-payments-B4hh31PR.js → admin-payments-yNntF4i4.js} +42 -42
  100. package/dist/{admin-payments-B4hh31PR.js.map → admin-payments-yNntF4i4.js.map} +1 -1
  101. package/dist/{admin-price-detail--5Bovz20.js → admin-price-detail-DvmcYr8B.js} +131 -132
  102. package/dist/admin-price-detail-DvmcYr8B.js.map +1 -0
  103. package/dist/{admin-price-format-C-pus9FL.js → admin-price-format-Btdg11-J.js} +14 -5
  104. package/dist/admin-price-format-Btdg11-J.js.map +1 -0
  105. package/dist/admin-price-wizard-EFO3nBV8.js +376 -0
  106. package/dist/admin-price-wizard-EFO3nBV8.js.map +1 -0
  107. package/dist/{admin-proposals-DPRFoWel.js → admin-proposals-CO0LKHM8.js} +119 -120
  108. package/dist/{admin-proposals-DPRFoWel.js.map → admin-proposals-CO0LKHM8.js.map} +1 -1
  109. package/dist/admin-provider-prices-ZjQeEV1n.js +239 -0
  110. package/dist/{admin-provider-prices-B8Oc86dP.js.map → admin-provider-prices-ZjQeEV1n.js.map} +1 -1
  111. package/dist/admin-query-builder-DedekYUU.js +252 -0
  112. package/dist/admin-query-builder-DedekYUU.js.map +1 -0
  113. package/dist/{admin-range-picker-CSWcCYkg.js → admin-range-picker-1WGFlYYw.js} +46 -24
  114. package/dist/admin-range-picker-1WGFlYYw.js.map +1 -0
  115. package/dist/admin-records-A2R52prt.js +389 -0
  116. package/dist/{admin-records-CWbfqyT8.js.map → admin-records-A2R52prt.js.map} +1 -1
  117. package/dist/admin-reports-ySY9v463.js +420 -0
  118. package/dist/admin-reports-ySY9v463.js.map +1 -0
  119. package/dist/{admin-select-DSGCZFiZ.js → admin-select-CgZq2j0G.js} +2 -2
  120. package/dist/{admin-select-DSGCZFiZ.js.map → admin-select-CgZq2j0G.js.map} +1 -1
  121. package/dist/admin-settings-kOW1nPGB.js +1818 -0
  122. package/dist/admin-settings-kOW1nPGB.js.map +1 -0
  123. package/dist/{admin-shared-DdN2hyaR.js → admin-shared-DoBOSwkv.js} +33 -34
  124. package/dist/{admin-shared-DdN2hyaR.js.map → admin-shared-DoBOSwkv.js.map} +1 -1
  125. package/dist/admin-signals-D_iWk2r5.js +124 -0
  126. package/dist/admin-signals-D_iWk2r5.js.map +1 -0
  127. package/dist/{admin-skeleton-DOfsDIu0.js → admin-skeleton-DdqwXcr4.js} +2 -2
  128. package/dist/{admin-skeleton-DOfsDIu0.js.map → admin-skeleton-DdqwXcr4.js.map} +1 -1
  129. package/dist/{admin-status-badge-BLEGt2Fw.js → admin-status-badge-B8rjk6QR.js} +5 -3
  130. package/dist/admin-status-badge-B8rjk6QR.js.map +1 -0
  131. package/dist/{admin-subscriptions-PL5G3f0O.js → admin-subscriptions-CjYPSPs-.js} +43 -38
  132. package/dist/admin-subscriptions-CjYPSPs-.js.map +1 -0
  133. package/dist/{admin-switch-aOiQQzST.js → admin-switch-CyYmt8wi.js} +2 -2
  134. package/dist/{admin-switch-aOiQQzST.js.map → admin-switch-CyYmt8wi.js.map} +1 -1
  135. package/dist/{admin-table-DIKl2rpV.js → admin-table-ByPfWNq8.js} +2 -2
  136. package/dist/{admin-table-DIKl2rpV.js.map → admin-table-ByPfWNq8.js.map} +1 -1
  137. package/dist/admin-tabs-DKa6QljL.js +45 -0
  138. package/dist/admin-tabs-DKa6QljL.js.map +1 -0
  139. package/dist/{admin-textarea-W52-l_0n.js → admin-textarea-CQg__KGc.js} +2 -2
  140. package/dist/{admin-textarea-W52-l_0n.js.map → admin-textarea-CQg__KGc.js.map} +1 -1
  141. package/dist/{admin-typed-confirm-dialog-B_00EHlT.js → admin-typed-confirm-dialog-BvAYEh3H.js} +6 -6
  142. package/dist/{admin-typed-confirm-dialog-B_00EHlT.js.map → admin-typed-confirm-dialog-BvAYEh3H.js.map} +1 -1
  143. package/dist/admin-widget-tile-DDI3eaRy.js +290 -0
  144. package/dist/admin-widget-tile-DDI3eaRy.js.map +1 -0
  145. package/dist/admin-widget-viz-Db9CQ2Sx.js +1084 -0
  146. package/dist/admin-widget-viz-Db9CQ2Sx.js.map +1 -0
  147. package/dist/admin.css +1 -1
  148. package/dist/admin.js +660 -609
  149. package/dist/admin.js.map +1 -1
  150. package/dist/buy-button.d.ts +4 -2
  151. package/dist/cart.d.ts +4 -2
  152. package/dist/client/client.d.ts +16 -3
  153. package/dist/client/generated/error-codes.d.ts +1 -1
  154. package/dist/client/generated/routes.d.ts +296 -181
  155. package/dist/client/generated/wire.d.ts +514 -277
  156. package/dist/client/index.d.ts +1 -1
  157. package/dist/client/types.d.ts +76 -8
  158. package/dist/{client-DwsFGm4M.js → client-D8qT6xjo.js} +86 -44
  159. package/dist/client-D8qT6xjo.js.map +1 -0
  160. package/dist/client.js +1 -1
  161. package/dist/components/billing-fields.d.ts +5 -3
  162. package/dist/components/platform-card-form.d.ts +3 -1
  163. package/dist/{hooks-C-MhXjQh.js → hooks-CX09fAJA.js} +86 -60
  164. package/dist/hooks-CX09fAJA.js.map +1 -0
  165. package/dist/index.d.ts +1 -1
  166. package/dist/index.js +847 -779
  167. package/dist/index.js.map +1 -1
  168. package/dist/lib/billing-fields.d.ts +15 -0
  169. package/dist/lib/billing.d.ts +23 -5
  170. package/dist/lib/price-label.d.ts +1 -1
  171. package/dist/locales/en.d.ts +4 -0
  172. package/dist/locales/en.js +4 -0
  173. package/dist/locales/en.js.map +1 -1
  174. package/dist/product-list.d.ts +4 -2
  175. package/dist/react/config.d.ts +10 -2
  176. package/dist/react/index.d.ts +1 -1
  177. package/dist/react.js +1 -1
  178. package/dist/styles.css +1 -1
  179. package/dist/tokenized-card-form.d.ts +10 -2
  180. package/docs/payment-form-contract.md +6 -15
  181. package/package.json +6 -6
  182. package/dist/admin/lib/api/copilot.d.ts +0 -6
  183. package/dist/admin/pages/catalog/copilot-panel.d.ts +0 -4
  184. package/dist/admin-attempts-DjgBAbx9.js +0 -418
  185. package/dist/admin-attempts-DjgBAbx9.js.map +0 -1
  186. package/dist/admin-capabilities-DS-X-__V.js.map +0 -1
  187. package/dist/admin-catalog-BdLDhr8R.js +0 -1096
  188. package/dist/admin-catalog-BdLDhr8R.js.map +0 -1
  189. package/dist/admin-customers-BZP6Jv-i.js.map +0 -1
  190. package/dist/admin-dashboard-BJSonknv.js +0 -461
  191. package/dist/admin-dashboard-BJSonknv.js.map +0 -1
  192. package/dist/admin-detail-C03O0R6e.js +0 -1351
  193. package/dist/admin-detail-C03O0R6e.js.map +0 -1
  194. package/dist/admin-detail-C6VH3i2v.js +0 -293
  195. package/dist/admin-detail-NApy5bio.js +0 -337
  196. package/dist/admin-detail-cijme9Lc.js.map +0 -1
  197. package/dist/admin-format-D9Ablh0P.js +0 -169
  198. package/dist/admin-format-D9Ablh0P.js.map +0 -1
  199. package/dist/admin-health-CnagC763.js.map +0 -1
  200. package/dist/admin-metering-DM4KhjOq.js +0 -1717
  201. package/dist/admin-ops-mwzj-jpg.js +0 -358
  202. package/dist/admin-price-detail--5Bovz20.js.map +0 -1
  203. package/dist/admin-price-format-C-pus9FL.js.map +0 -1
  204. package/dist/admin-price-wizard-Cj_Bgh-V.js +0 -354
  205. package/dist/admin-price-wizard-Cj_Bgh-V.js.map +0 -1
  206. package/dist/admin-provider-prices-B8Oc86dP.js +0 -240
  207. package/dist/admin-range-picker-CSWcCYkg.js.map +0 -1
  208. package/dist/admin-records-CWbfqyT8.js +0 -390
  209. package/dist/admin-reports-CAHWO_d6.js +0 -319
  210. package/dist/admin-reports-CAHWO_d6.js.map +0 -1
  211. package/dist/admin-settings-BrvNTJlM.js +0 -1818
  212. package/dist/admin-settings-BrvNTJlM.js.map +0 -1
  213. package/dist/admin-status-badge-BLEGt2Fw.js.map +0 -1
  214. package/dist/admin-subscriptions-PL5G3f0O.js.map +0 -1
  215. package/dist/admin-tabs-DR74xX0-.js +0 -156
  216. package/dist/admin-tabs-DR74xX0-.js.map +0 -1
  217. package/dist/admin-utils-CX097OR7.js.map +0 -1
  218. package/dist/admin-widget-viz-DVV9aTQp.js +0 -643
  219. package/dist/admin-widget-viz-DVV9aTQp.js.map +0 -1
  220. package/dist/client-DwsFGm4M.js.map +0 -1
  221. package/dist/hooks-C-MhXjQh.js.map +0 -1
@@ -13,7 +13,6 @@ export declare const billingAdminMessages: {
13
13
  readonly " Product": " Product";
14
14
  readonly " Product access": " Product access";
15
15
  readonly " Refund": " Refund";
16
- readonly " affected \u00B7 requires human confirm": " affected · requires human confirm";
17
16
  readonly " approved": " approved";
18
17
  readonly " balance": " balance";
19
18
  readonly " blocked and ": " blocked and ";
@@ -58,10 +57,13 @@ export declare const billingAdminMessages: {
58
57
  readonly ", an edit set": ", an edit set";
59
58
  readonly ", before another action.": ", before another action.";
60
59
  readonly ", deleted: ": ", deleted: ";
60
+ readonly "; minimums not met": "; minimums not met";
61
+ readonly "Levels in force at the range's end: ": "Levels in force at the range's end: ";
62
+ readonly "Past ": "Past ";
61
63
  readonly ".": ".";
62
64
  readonly ". Active holds may prevent revocation. Payment refunds are managed separately.": ". Active holds may prevent revocation. Payment refunds are managed separately.";
63
65
  readonly ". Currency and interval stay locked to the current price.": ". Currency and interval stay locked to the current price.";
64
- readonly "/app/usage-events": "/app/usage-events";
66
+ readonly "/app/leases/sync": "/app/leases/sync";
65
67
  readonly "1 day": "1 day";
66
68
  readonly "30 days": "30 days";
67
69
  readonly "365 days": "365 days";
@@ -76,6 +78,7 @@ export declare const billingAdminMessages: {
76
78
  readonly "A price going down needs no notice, so today is fine.": "A price going down needs no notice, so today is fine.";
77
79
  readonly "A product is the thing a customer gets. You set what it costs afterwards, by adding a price to it.": "A product is the thing a customer gets. You set what it costs afterwards, by adding a price to it.";
78
80
  readonly "A reprice_scheduled notice is queued for every affected subscriber as soon as you confirm.": "A reprice_scheduled notice is queued for every affected subscriber as soon as you confirm.";
81
+ readonly "Above ": "Above ";
79
82
  readonly "Access duration": "Access duration";
80
83
  readonly "Access, not paying": "Access, not paying";
81
84
  readonly "Account ID": "Account ID";
@@ -123,7 +126,6 @@ export declare const billingAdminMessages: {
123
126
  readonly Approve: "Approve";
124
127
  readonly "Approve ": "Approve ";
125
128
  readonly Archive: "Archive";
126
- readonly Ask: "Ask";
127
129
  readonly "Ask an administrator for a role that includes it.": "Ask an administrator for a role that includes it.";
128
130
  readonly "Attempt not found.": "Attempt not found.";
129
131
  readonly Attempted: "Attempted";
@@ -134,6 +136,7 @@ export declare const billingAdminMessages: {
134
136
  readonly Balance: "Balance";
135
137
  readonly "Batch receipt": "Batch receipt";
136
138
  readonly Billing: "Billing";
139
+ readonly "Below ": "Below ";
137
140
  readonly "Billing contacts": "Billing contacts";
138
141
  readonly "Billing interval": "Billing interval";
139
142
  readonly "Billing support": "Billing support";
@@ -155,7 +158,10 @@ export declare const billingAdminMessages: {
155
158
  readonly "Choose a price": "Choose a price";
156
159
  readonly "Choose a product": "Choose a product";
157
160
  readonly Clear: "Clear";
161
+ readonly Cohort: "Cohort";
158
162
  readonly "Customer id": "Customer id";
163
+ readonly "Customers who gained recurring revenue (new or back) and who lost all of it each day in the accounting timezone, newest first.": "Customers who gained recurring revenue (new or back) and who lost all of it each day in the accounting timezone, newest first.";
164
+ readonly "Daily subscribers": "Daily subscribers";
159
165
  readonly "Differences a PSP pull found in what OpenRails holds. Nothing changes until a person approves it.": "Differences a PSP pull found in what OpenRails holds. Nothing changes until a person approves it.";
160
166
  readonly Dismiss: "Dismiss";
161
167
  readonly "Dismiss ": "Dismiss ";
@@ -167,11 +173,15 @@ export declare const billingAdminMessages: {
167
173
  readonly Evidence: "Evidence";
168
174
  readonly Facts: "Facts";
169
175
  readonly Failed: "Failed";
176
+ readonly "Failed new-card purchases": "Failed new-card purchases";
170
177
  readonly "Find a customer with billing": "Find a customer with billing";
171
178
  readonly Findings: "Findings";
179
+ readonly "First-try rebill approval by week": "First-try rebill approval by week";
172
180
  readonly "From import ": "From import ";
173
181
  readonly "Full history": "Full history";
182
+ readonly Gained: "Gained";
174
183
  readonly "Grants: ": "Grants: ";
184
+ readonly "group by cohort and months since start": "group by cohort and months since start";
175
185
  readonly "History since": "History since";
176
186
  readonly "History start date": "History start date";
177
187
  readonly "History through ": "History through ";
@@ -198,7 +208,10 @@ export declare const billingAdminMessages: {
198
208
  readonly "Mapping a price edits the catalog: it needs ": "Mapping a price edits the catalog: it needs ";
199
209
  readonly "Mappings file": "Mappings file";
200
210
  readonly "Mappings set: ": "Mappings set: ";
211
+ readonly "Month 0": "Month 0";
201
212
  readonly "Needs ": "Needs ";
213
+ readonly "New-card authorization rate": "New-card authorization rate";
214
+ readonly "New-card authorization rate by week": "New-card authorization rate by week";
202
215
  readonly "No PSP has been pulled yet.": "No PSP has been pulled yet.";
203
216
  readonly "No PSP here has a catalog OpenRails observes.": "No PSP here has a catalog OpenRails observes.";
204
217
  readonly "No proposals are open.": "No proposals are open.";
@@ -232,6 +245,7 @@ export declare const billingAdminMessages: {
232
245
  readonly "Re-link": "Re-link";
233
246
  readonly "Re-link an import to apply them:": "Re-link an import to apply them:";
234
247
  readonly "Re-link requested": "Re-link requested";
248
+ readonly "Reached ": "Reached ";
235
249
  readonly "Reading catalog and roster": "Reading catalog and roster";
236
250
  readonly "Reads the PSP's catalog, customers, subscriptions and history, read-only. Nothing lands before you apply it.": "Reads the PSP's catalog, customers, subscriptions and history, read-only. Nothing lands before you apply it.";
237
251
  readonly "Pull PSP": "Pull PSP";
@@ -241,17 +255,17 @@ export declare const billingAdminMessages: {
241
255
  readonly Records: "Records";
242
256
  readonly Reload: "Reload";
243
257
  readonly Retired: "Retired";
258
+ readonly "Renewal payments, cancellations and subscriber churn each calendar month in the accounting timezone; churn is the customers who lost all recurring revenue in the month over those who had some when it began.": "Renewal payments, cancellations and subscriber churn each calendar month in the accounting timezone; churn is the customers who lost all recurring revenue in the month over those who had some when it began.";
244
259
  readonly "Review records": "Review records";
245
260
  readonly "Schedule the customer's plan or seats for the next renewal. No card is charged now. Choosing the current plan and seats clears a pending change. The customer is told.": "Schedule the customer's plan or seats for the next renewal. No card is charged now. Choosing the current plan and seats clears a pending change. The customer is told.";
246
261
  readonly "Change payment method": "Change payment method";
247
262
  readonly "Change price": "Change price";
248
263
  readonly "Change price for ": "Change price for ";
249
264
  readonly "Change subscription": "Change subscription";
250
- readonly "Change the title, chart type or date range behavior. The query stays the same.": "Change the title, chart type or date range behavior. The query stays the same.";
265
+ readonly "Pick what it measures, how it is split and how it is drawn.": "Pick what it measures, how it is split and how it is drawn.";
251
266
  readonly Channel: "Channel";
252
267
  readonly "Charged twice": "Charged twice";
253
268
  readonly "Chart type": "Chart type";
254
- readonly "Checking your catalog\u2026": "Checking your catalog…";
255
269
  readonly "Choose a method": "Choose a method";
256
270
  readonly Churn: "Churn";
257
271
  readonly "Clear all": "Clear all";
@@ -295,11 +309,11 @@ export declare const billingAdminMessages: {
295
309
  readonly "Customer-facing merchant details used on invoices and emails.": "Customer-facing merchant details used on invoices and emails.";
296
310
  readonly Customers: "Customers";
297
311
  readonly Cycles: "Cycles";
298
- readonly "Daily subscriptions": "Daily subscriptions";
299
312
  readonly Dashboard: "Dashboard";
300
313
  readonly Date: "Date";
301
314
  readonly "Date range": "Date range";
302
315
  readonly "Days are added after any access they already have.": "Days are added after any access they already have.";
316
+ readonly "Days are UTC dates.": "Days are UTC dates.";
303
317
  readonly "Decline reasons": "Decline reasons";
304
318
  readonly Declined: "Declined";
305
319
  readonly Declines: "Declines";
@@ -315,14 +329,11 @@ export declare const billingAdminMessages: {
315
329
  readonly Dimensions: "Dimensions";
316
330
  readonly Directory: "Directory";
317
331
  readonly Discord: "Discord";
318
- readonly "Dismiss answer": "Dismiss answer";
319
332
  readonly "Display name": "Display name";
320
333
  readonly "Displays the mobile sidebar.": "Displays the mobile sidebar.";
321
334
  readonly Divisor: "Divisor";
322
335
  readonly Down: "Down";
323
336
  readonly "Download CSV": "Download CSV";
324
- readonly "Draft: new price": "Draft: new price";
325
- readonly "Draft: price change": "Draft: price change";
326
337
  readonly Due: "Due";
327
338
  readonly "Due now": "Due now";
328
339
  readonly "Due: ": "Due: ";
@@ -457,9 +468,6 @@ export declare const billingAdminMessages: {
457
468
  readonly "New merchant": "New merchant";
458
469
  readonly "New plan": "New plan";
459
470
  readonly "New price": "New price";
460
- readonly "New-card purchase failure rate": "New-card purchase failure rate";
461
- readonly "New-card decline rate": "New-card decline rate";
462
- readonly "New-card decline rate by week": "New-card decline rate by week";
463
471
  readonly Next: "Next";
464
472
  readonly "Next attempt: ": "Next attempt: ";
465
473
  readonly "Next billing date": "Next billing date";
@@ -625,8 +633,6 @@ export declare const billingAdminMessages: {
625
633
  readonly Reason: "Reason";
626
634
  readonly "Reason (optional)": "Reason (optional)";
627
635
  readonly "Rebill collection rate": "Rebill collection rate";
628
- readonly "Rebill first-attempt failure rate": "Rebill first-attempt failure rate";
629
- readonly "Rebill first-attempt failure rate by week": "Rebill first-attempt failure rate by week";
630
636
  readonly "Recent payments": "Recent payments";
631
637
  readonly "Recently canceled": "Recently canceled";
632
638
  readonly Recommendation: "Recommendation";
@@ -649,7 +655,6 @@ export declare const billingAdminMessages: {
649
655
  readonly "Remove the default rate?": "Remove the default rate?";
650
656
  readonly Renewal: "Renewal";
651
657
  readonly "Renewal not found.": "Renewal not found.";
652
- readonly "Renewal payments, cancellations and churn each calendar month (UTC); churn is the month's cancellations over the subscriptions it began with.": "Renewal payments, cancellations and churn each calendar month (UTC); churn is the month's cancellations over the subscriptions it began with.";
653
658
  readonly Renewals: "Renewals";
654
659
  readonly "Renewing soon": "Renewing soon";
655
660
  readonly Renews: "Renews";
@@ -664,6 +669,7 @@ export declare const billingAdminMessages: {
664
669
  readonly Review: "Review";
665
670
  readonly "Review batch": "Review batch";
666
671
  readonly "Review complete. Applying sends this exact document; this is not a database diff.": "Review complete. Applying sends this exact document; this is not a database diff.";
672
+ readonly Revision: "Revision";
667
673
  readonly Revoke: "Revoke";
668
674
  readonly "Revoke product access": "Revoke product access";
669
675
  readonly "Revoke remaining credit": "Revoke remaining credit";
@@ -708,7 +714,6 @@ export declare const billingAdminMessages: {
708
714
  readonly "Subscription not found.": "Subscription not found.";
709
715
  readonly "Subscription:": "Subscription:";
710
716
  readonly Subscriptions: "Subscriptions";
711
- readonly "Subscriptions started and canceled each day (UTC), newest first.": "Subscriptions started and canceled each day (UTC), newest first.";
712
717
  readonly "Sum a numeric field": "Sum a numeric field";
713
718
  readonly "Subscribe URL": "Subscribe URL";
714
719
  readonly "Support URL": "Support URL";
@@ -801,7 +806,6 @@ export declare const billingAdminMessages: {
801
806
  readonly default: "default";
802
807
  readonly deleted: "deleted";
803
808
  readonly disabled: "disabled";
804
- readonly "drafted by copilot": "drafted by copilot";
805
809
  readonly "draining (": "draining (";
806
810
  readonly "e.g. #billing-alerts": "e.g. #billing-alerts";
807
811
  readonly "ends access": "ends access";
@@ -817,7 +821,6 @@ export declare const billingAdminMessages: {
817
821
  readonly imported: "imported";
818
822
  readonly inactive: "inactive";
819
823
  readonly "its finding is ignored; subscriptions on it stay parked.": "its finding is ignored; subscriptions on it stay parked.";
820
- readonly "key: ": "key: ";
821
824
  readonly linked: "linked";
822
825
  readonly "metadata.model": "metadata.model";
823
826
  readonly "missed charges": "missed charges";
@@ -839,7 +842,6 @@ export declare const billingAdminMessages: {
839
842
  readonly "provider write": "provider write";
840
843
  readonly "read-only": "read-only";
841
844
  readonly "refunds after a cancel": "refunds after a cancel";
842
- readonly "refused: ": "refused: ";
843
845
  readonly "renewals to adopt": "renewals to adopt";
844
846
  readonly retired: "retired";
845
847
  readonly "review only": "review only";
@@ -892,9 +894,11 @@ export declare const billingAdminMessages: {
892
894
  readonly "End access now instead (no refund is made)": "End access now instead (no refund is made)";
893
895
  readonly "By the customer": "By the customer";
894
896
  readonly "By staff": "By staff";
895
- readonly "Renewal payment failed": "Renewal payment failed";
897
+ readonly "Not renewed": "Not renewed";
896
898
  readonly "After a chargeback": "After a chargeback";
897
899
  readonly "Replaced by an upgrade": "Replaced by an upgrade";
900
+ readonly "Ended by the provider": "Ended by the provider";
901
+ readonly "First payment never completed": "First payment never completed";
898
902
  readonly "This page couldn't be loaded": "This page couldn't be loaded";
899
903
  readonly "It may have been removed, or the link may be wrong.": "It may have been removed, or the link may be wrong.";
900
904
  readonly "Code:": "Code:";
@@ -949,4 +953,41 @@ export declare const billingAdminMessages: {
949
953
  readonly Gone: "Gone";
950
954
  readonly Ignored: "Ignored";
951
955
  readonly Imported: "Imported";
956
+ readonly "Add widget": "Add widget";
957
+ readonly "Compare with": "Compare with";
958
+ readonly "Nothing to show yet. Add products in ": "Nothing to show yet. Add products in ";
959
+ readonly " and connect a PSP in ": " and connect a PSP in ";
960
+ readonly " to start taking payments.": " to start taking payments.";
961
+ readonly Nothing: "Nothing";
962
+ readonly Measure: "Measure";
963
+ readonly And: "And";
964
+ readonly "Add a measure": "Add a measure";
965
+ readonly "Over time": "Over time";
966
+ readonly Grain: "Grain";
967
+ readonly Auto: "Auto";
968
+ readonly "Split by": "Split by";
969
+ readonly "Then by": "Then by";
970
+ readonly "Only where": "Only where";
971
+ readonly "(none)": "(none)";
972
+ readonly "Values, comma separated": "Values, comma separated";
973
+ readonly Explore: "Explore";
974
+ readonly "Chart any measure, split by its dimensions, over the range picked.": "Chart any measure, split by its dimensions, over the range picked.";
975
+ readonly Signals: "Signals";
976
+ readonly Checkout: "Checkout";
977
+ readonly "Customer type: ": "Customer type: ";
978
+ readonly "Purchase number: ": "Purchase number: ";
979
+ readonly "Opened: ": "Opened: ";
980
+ readonly "Submitted: ": "Submitted: ";
981
+ readonly "Country: ": "Country: ";
982
+ readonly "Language: ": "Language: ";
983
+ readonly "Attribution: ": "Attribution: ";
984
+ readonly "no card PSP": "no card PSP";
985
+ readonly Program: "Program";
986
+ readonly "So far": "So far";
987
+ readonly Projected: "Projected";
988
+ readonly Level: "Level";
989
+ readonly Below: "Below";
990
+ readonly Warning: "Warning";
991
+ readonly Excessive: "Excessive";
992
+ readonly "High excessive": "High excessive";
952
993
  };
@@ -3,6 +3,8 @@ export declare function detectDirection(newAmount: string, currentAmount: string
3
3
  export type MigrationMode = "grandfather" | "migrate";
4
4
  export declare const DEFAULT_NOTICE_WINDOW_DAYS = 30;
5
5
  export declare function defaultMigrationMode(direction: PriceDirection): MigrationMode;
6
+ export declare const SUBMIT_SLACK_MS: number;
7
+ export declare function serverOffset(serverNow: string, sentAt: number): number;
6
8
  export declare function minEffectiveDate(direction: PriceDirection, now: Date, noticeWindowDays: number): Date | null;
7
9
  export declare function defaultEffectiveDate(direction: PriceDirection, now: Date, noticeWindowDays: number): Date;
8
10
  export declare function isEffectiveDateValid(direction: PriceDirection, effectiveAt: Date, now: Date, noticeWindowDays: number): boolean;
@@ -1,10 +1,8 @@
1
- import { PriceChangeDraft } from '../../lib/api/copilot';
2
1
  import { Price } from '../../../client/generated/wire';
3
2
  import * as React from "react";
4
- export declare function PriceChangeWizard({ price, productName, productKey, draft, onDone, }: {
3
+ export declare function PriceChangeWizard({ price, productName, productKey, onDone, }: {
5
4
  price: Price;
6
5
  productName: string;
7
6
  productKey: string | undefined;
8
- draft?: PriceChangeDraft;
9
7
  onDone?: () => void;
10
8
  }): React.JSX.Element;
@@ -1,5 +1,8 @@
1
+ import { UnitScales } from '../../lib/format';
1
2
  import * as React from "react";
2
- export declare function CustomerCreditSupportSection({ customerId, currencies, }: {
3
+ export declare function CustomerCreditSupportSection({ customerId, currencies, units, }: {
3
4
  customerId: string;
4
5
  currencies: string[];
6
+ /** The scales of the merchant's own units the customer holds. */
7
+ units: UnitScales;
5
8
  }): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { MetricsThreshold } from '../../lib/api/metrics';
2
+ import { Direction } from './registry';
3
+ export declare function inForce(levels: MetricsThreshold[], at: number): MetricsThreshold[];
4
+ export declare function worse(value: number, level: number, direction: Direction): boolean;
5
+ export declare function reached(levels: MetricsThreshold[], value: number, direction: Direction): MetricsThreshold | undefined;
6
+ export declare function severest(levels: MetricsThreshold[], direction: Direction): MetricsThreshold | undefined;
7
+ export declare function nearest(levels: MetricsThreshold[], direction: Direction): MetricsThreshold | undefined;
8
+ export declare function band(levels: MetricsThreshold[], i: number, direction: Direction, top: number): [number, number];
@@ -1,6 +1,7 @@
1
- import { MetricsCell, MetricsColumn, MetricsQuery, MetricsRange, MetricsResult } from '../../lib/api/metrics';
2
- export declare function formatMeasure(value: MetricsCell, unit: string | undefined, currency?: string): string;
3
- export declare function formatBucket(iso: string, grain?: string): string;
1
+ import { MetricsCell, MetricsColumn, QueryMetricsParams, MetricsRange, MetricsResult } from '../../lib/api/metrics';
2
+ import { MerchantUnits } from '../../lib/format';
3
+ export declare function formatMeasure(value: MetricsCell, unit: string | undefined, currency?: string, units?: MerchantUnits): string;
4
+ export declare function formatBucket(iso: string, grain?: string, timeZone?: string): string;
4
5
  export interface ColumnIndex {
5
6
  time: number;
6
7
  dims: {
@@ -23,9 +24,10 @@ export interface PivotSeries {
23
24
  unit?: string;
24
25
  currency?: string;
25
26
  }
26
- export declare function filteredCurrency(query?: MetricsQuery): string | undefined;
27
+ export declare function filteredCurrency(query?: QueryMetricsParams): string | undefined;
27
28
  export declare function rowCurrency(row: MetricsCell[], idx: ColumnIndex, fallback?: string): string | undefined;
28
29
  export declare function statDelta(result: MetricsResult, row: MetricsCell[], measureIndex: number): number | null;
30
+ export declare function changeText(delta: number, unit?: string): string;
29
31
  export declare function comparedWith(result: MetricsResult): string;
30
32
  export declare function groupSeries<T extends PivotSeries>(series: T[]): {
31
33
  key: string;
@@ -37,13 +39,20 @@ export interface Pivoted {
37
39
  series: PivotSeries[];
38
40
  }
39
41
  export declare function exactKey(seriesKey: string): string;
42
+ export declare function dimValueLabel(dim: string, value: MetricsCell): string;
40
43
  export declare function pivotTimeSeries(result: MetricsResult, currency?: string): Pivoted;
41
44
  export type DonutSlice = PivotSeries & {
42
45
  value: number;
43
46
  [exact: string]: unknown;
44
47
  };
45
- export declare function donutSlices(result: MetricsResult, currency?: string): DonutSlice[];
48
+ export declare function donutSlices(result: MetricsResult, currency?: string, pspKey?: (id: string) => string): DonutSlice[];
46
49
  export declare function chartColor(i: number): string;
47
- export declare const LOWER_IS_BETTER: Set<string>;
48
- export declare function deepLinkFor(query: MetricsQuery, viz?: string): string | null;
50
+ export declare function deepLinkFor(query: QueryMetricsParams, viz?: string): string | null;
49
51
  export declare function ownRange(range: MetricsRange | undefined): string;
52
+ export interface FunnelStep {
53
+ key: string;
54
+ value: number;
55
+ ofFirst: number | null;
56
+ fromPrevious: number | null;
57
+ }
58
+ export declare function funnelSteps(result: MetricsResult, order: string[]): FunnelStep[];
@@ -0,0 +1,3 @@
1
+ export declare function ProgramsView({ at }: {
2
+ at?: string;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { QueryMetricsParams } from '../../lib/api/metrics';
2
+ import { Registry } from './registry';
3
+ export interface Draft {
4
+ measures: string[];
5
+ time: boolean;
6
+ grain: string;
7
+ dims: string[];
8
+ filter?: {
9
+ dim: string;
10
+ values: string[];
11
+ };
12
+ }
13
+ export declare function draftOf(query: QueryMetricsParams): Draft;
14
+ export declare function queryOf(draft: Draft, base: QueryMetricsParams): QueryMetricsParams;
15
+ export declare function QueryBuilder({ draft, onChange, registry, multiple, }: {
16
+ draft: Draft;
17
+ onChange: (draft: Draft) => void;
18
+ registry: Registry;
19
+ multiple?: boolean;
20
+ }): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { MetricsQuery, MetricsRange, Widget } from '../../lib/api/metrics';
1
+ import { Compare, QueryMetricsParams, MetricsRange, Widget } from '../../lib/api/metrics';
2
2
  export declare const RANGE_PRESETS: readonly [{
3
3
  readonly value: "7d";
4
4
  readonly label: "Last 7 days";
@@ -31,4 +31,10 @@ export declare function rangeDates(range: DashboardRange, now?: Date): {
31
31
  };
32
32
  export declare function rangeLabel(range: DashboardRange, now?: Date): string;
33
33
  export declare function fitGrain(grain: string, range: DashboardRange, now?: Date): string;
34
- export declare function widgetQuery(widget: Widget, range: DashboardRange): MetricsQuery;
34
+ export interface DashboardView {
35
+ range: DashboardRange;
36
+ currency?: string;
37
+ compare?: Compare;
38
+ }
39
+ export declare function widgetQuery(widget: Widget, view: DashboardView, takesCurrency?: (query: QueryMetricsParams) => boolean): QueryMetricsParams;
40
+ export declare function sparkQuery(query: QueryMetricsParams): QueryMetricsParams;
@@ -0,0 +1,14 @@
1
+ import { MetricsMeasure, MetricsSchema, MetricsThreshold, QueryMetricsParams } from '../../lib/api/metrics';
2
+ export type Direction = "up_is_good" | "down_is_good" | "neutral";
3
+ export interface Registry {
4
+ measures: MetricsMeasure[];
5
+ measure: (name: string) => MetricsMeasure | undefined;
6
+ direction: (name: string) => Direction;
7
+ thresholds: (name: string) => MetricsThreshold[];
8
+ dims: (measures: string[]) => string[];
9
+ values: (measures: string[], dim: string) => string[] | null;
10
+ takesCurrency: (query: QueryMetricsParams) => boolean;
11
+ }
12
+ export declare function registry(schema?: MetricsSchema): Registry;
13
+ export declare function useRegistry(): Registry;
14
+ export declare function measureLabel(name: string): string;
@@ -1,10 +1,10 @@
1
- import { MetricsQuery, MetricsResult } from '../../lib/api/metrics';
1
+ import { MetricsCell, QueryMetricsParams, MetricsResult } from '../../lib/api/metrics';
2
2
  import { DashboardRange } from './range';
3
3
  export declare const MAX_DAYS = 400;
4
4
  export declare function rangeDays(range: DashboardRange, now?: Date): number;
5
- export declare function dailyQuery(range: DashboardRange): MetricsQuery;
6
- export declare function renewalsQuery(range: DashboardRange): MetricsQuery;
7
- export declare function churnQuery(range: DashboardRange): MetricsQuery;
5
+ export declare function dailyQuery(range: DashboardRange): QueryMetricsParams;
6
+ export declare function renewalsQuery(range: DashboardRange): QueryMetricsParams;
7
+ export declare function churnQuery(range: DashboardRange): QueryMetricsParams;
8
8
  export interface DailyRow {
9
9
  date: string;
10
10
  started: number;
@@ -23,6 +23,10 @@ export declare const dailyCsv: (rows: DailyRow[]) => {
23
23
  header: string[];
24
24
  rows: (string | number)[][];
25
25
  };
26
+ export declare const resultCsv: (result: MetricsResult) => {
27
+ header: string[];
28
+ rows: MetricsCell[][];
29
+ };
26
30
  export declare const monthlyCsv: (rows: MonthlyRow[]) => {
27
31
  header: string[];
28
32
  rows: (string | number)[][];
@@ -1,2 +1,2 @@
1
- import type * as React from "react";
1
+ import * as React from "react";
2
2
  export declare function ReportsPage(): React.JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ import { MerchantUnits } from '../../lib/format';
2
+ import * as React from "react";
3
+ export declare const MerchantUnitsContext: React.Context<MerchantUnits>;
4
+ export declare function useDeclaredUnits(): MerchantUnits;
5
+ export declare const useUnits: () => MerchantUnits;
@@ -1,5 +1,9 @@
1
- import { DashboardRange } from './range';
1
+ import { DashboardRange, DashboardView } from './range';
2
2
  export declare function useDashboardRange(): [
3
3
  DashboardRange,
4
4
  (range: DashboardRange) => void
5
5
  ];
6
+ export declare function useDashboardView(): [
7
+ DashboardView,
8
+ (change: Partial<Omit<DashboardView, "range">>) => void
9
+ ];
@@ -1,8 +1,13 @@
1
1
  import { Widget } from '../../lib/api/metrics';
2
+ import { DashboardView } from './range';
3
+ import { Registry } from './registry';
2
4
  import * as React from "react";
3
- export type WidgetDraft = Pick<Widget, "title" | "viz" | "fixed_range">;
4
- export declare function WidgetEditor({ onOpenChange, initial, onSave, }: {
5
+ export type WidgetDraft = Pick<Widget, "title" | "viz" | "fixed_range" | "query">;
6
+ export declare function WidgetEditor({ onOpenChange, initial, added, view, registry, onSave, }: {
5
7
  onOpenChange: (open: boolean) => void;
6
8
  initial: Widget;
9
+ added?: boolean;
10
+ view: DashboardView;
11
+ registry: Registry;
7
12
  onSave: (data: WidgetDraft) => void;
8
13
  }): React.JSX.Element;
@@ -1,9 +1,15 @@
1
1
  import { Widget } from '../../lib/api/metrics';
2
- import { DashboardRange } from './range';
3
- export declare function WidgetTile({ widget, range, editable, onEdit, onDelete, }: {
2
+ import { DashboardView } from './range';
3
+ import { Registry } from './registry';
4
+ interface TileProps {
4
5
  widget: Widget;
5
- range: DashboardRange;
6
+ view: DashboardView;
7
+ registry: Registry;
8
+ empty?: boolean;
6
9
  editable?: boolean;
7
10
  onEdit: () => void;
8
11
  onDelete: () => void;
9
- }): import("react").JSX.Element;
12
+ }
13
+ export declare function WidgetTile(props: TileProps): import("react").JSX.Element;
14
+ export declare const isTile: (widget: Widget) => boolean;
15
+ export {};
@@ -1,12 +1,17 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { ChartTooltipContent } from '../../components/ui/chart';
3
- import { MetricsResult, MetricsQuery, WidgetViz as VizType } from '../../lib/api/metrics';
3
+ import { MetricsResult, QueryMetricsParams, WidgetViz as VizType } from '../../lib/api/metrics';
4
4
  import { PivotSeries } from './lib';
5
- export declare function WidgetVizView({ viz, result, query, }: {
5
+ import { Registry } from './registry';
6
+ import * as React from "react";
7
+ export declare function WidgetVizView({ viz, result, query, spark, registry, }: {
6
8
  viz: VizType;
7
9
  result: MetricsResult;
8
- query?: MetricsQuery;
9
- }): import("react").JSX.Element;
10
+ query?: QueryMetricsParams;
11
+ spark?: MetricsResult;
12
+ registry?: Registry;
13
+ }): React.JSX.Element;
14
+ export declare function usePSPKeys(enabled: boolean): (id: string) => string;
10
15
  export declare function MetricTooltip({ series, ...props }: ComponentProps<typeof ChartTooltipContent> & {
11
16
  series: PivotSeries[];
12
- }): import("react").JSX.Element;
17
+ }): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Widget } from '../../lib/api/metrics';
2
+ export declare const SIGNAL_TILES: Widget[];
3
+ export declare const SIGNAL_CHARTS: Widget[];
4
+ export declare function SignalsPage(): import("react").JSX.Element | null;
@@ -1,5 +1,5 @@
1
- export declare function Outcome({ category }: {
2
- category: string;
1
+ export declare function Outcome({ outcome }: {
2
+ outcome: string;
3
3
  }): import("react").JSX.Element;
4
4
  export declare function AttemptsPage(): import("react").JSX.Element;
5
5
  export declare function AttemptDetailPage(): import("react").JSX.Element;