@openrails/billing-ui 0.282.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.
- package/README.md +108 -364
- package/dist/account/format.d.ts +5 -1
- package/dist/admin/context.d.ts +38 -46
- package/dist/admin/lib/api/endpoints.d.ts +4 -4
- package/dist/admin/lib/api/index.d.ts +4 -4
- package/dist/admin/lib/api/metrics.d.ts +15 -6
- package/dist/admin/lib/capabilities.d.ts +2 -0
- package/dist/admin/lib/format.d.ts +29 -1
- package/dist/admin/lib/mutations.d.ts +0 -10
- package/dist/admin/lib/queries.d.ts +16 -10
- package/dist/admin/messages.d.ts +61 -20
- package/dist/admin/pages/catalog/price-wizard-logic.d.ts +2 -0
- package/dist/admin/pages/catalog/price-wizard.d.ts +1 -3
- package/dist/admin/pages/customers/credits.d.ts +4 -1
- package/dist/admin/pages/dashboard/levels.d.ts +8 -0
- package/dist/admin/pages/dashboard/lib.d.ts +16 -7
- package/dist/admin/pages/dashboard/programs.d.ts +3 -0
- package/dist/admin/pages/dashboard/query-builder.d.ts +20 -0
- package/dist/admin/pages/dashboard/range.d.ts +8 -2
- package/dist/admin/pages/dashboard/registry.d.ts +14 -0
- package/dist/admin/pages/dashboard/reports-model.d.ts +8 -4
- package/dist/admin/pages/dashboard/reports.d.ts +1 -1
- package/dist/admin/pages/dashboard/units.d.ts +5 -0
- package/dist/admin/pages/dashboard/use-range.d.ts +5 -1
- package/dist/admin/pages/dashboard/widget-editor.d.ts +7 -2
- package/dist/admin/pages/dashboard/widget-tile.d.ts +10 -4
- package/dist/admin/pages/dashboard/widget-viz.d.ts +10 -5
- package/dist/admin/pages/ops/signals.d.ts +4 -0
- package/dist/admin/pages/payments/attempts.d.ts +2 -2
- package/dist/admin/pages/payments/health-model.d.ts +20 -20
- package/dist/admin/pages/subscriptions/views.d.ts +4 -0
- package/dist/admin-attempts-CRkxeVfQ.js +417 -0
- package/dist/admin-attempts-CRkxeVfQ.js.map +1 -0
- package/dist/{admin-auth-CTLBqp7N.js → admin-auth-C0pBH3kp.js} +2 -2
- package/dist/{admin-auth-CTLBqp7N.js.map → admin-auth-C0pBH3kp.js.map} +1 -1
- package/dist/{admin-badge-3zABrSBc.js → admin-badge-C_-j7ANF.js} +2 -2
- package/dist/{admin-badge-3zABrSBc.js.map → admin-badge-C_-j7ANF.js.map} +1 -1
- package/dist/{admin-button-FRNl7_Yf.js → admin-button-BV5MAL2H.js} +2 -2
- package/dist/{admin-button-FRNl7_Yf.js.map → admin-button-BV5MAL2H.js.map} +1 -1
- package/dist/{admin-capabilities-uSi2Pb2h.js → admin-capabilities-B3ZfkA49.js} +21 -13
- package/dist/admin-capabilities-B3ZfkA49.js.map +1 -0
- package/dist/{admin-card-YKPGmx5w.js → admin-card-DQ61c-kV.js} +2 -2
- package/dist/{admin-card-YKPGmx5w.js.map → admin-card-DQ61c-kV.js.map} +1 -1
- package/dist/admin-catalog-DAnsClai.js +867 -0
- package/dist/admin-catalog-DAnsClai.js.map +1 -0
- package/dist/{admin-cursor-pager-BGgOOq7s.js → admin-cursor-pager-dkNj-gb6.js} +22 -22
- package/dist/{admin-cursor-pager-BGgOOq7s.js.map → admin-cursor-pager-dkNj-gb6.js.map} +1 -1
- package/dist/admin-customer-search-DDMn_5Us.js +115 -0
- package/dist/admin-customer-search-DDMn_5Us.js.map +1 -0
- package/dist/{admin-customers-DFQ75ZBi.js → admin-customers-BMaugwpg.js} +24 -25
- package/dist/admin-customers-BMaugwpg.js.map +1 -0
- package/dist/admin-dashboard-DbbfrIOq.js +510 -0
- package/dist/admin-dashboard-DbbfrIOq.js.map +1 -0
- package/dist/{admin-data-table-DyYm4h_Y.js → admin-data-table-BjA8cBsr.js} +5 -5
- package/dist/{admin-data-table-DyYm4h_Y.js.map → admin-data-table-BjA8cBsr.js.map} +1 -1
- package/dist/admin-detail-BVJcnTO-.js +1361 -0
- package/dist/admin-detail-BVJcnTO-.js.map +1 -0
- package/dist/{admin-detail-CG3kLIDS.js → admin-detail-DO9wd12I.js} +130 -107
- package/dist/admin-detail-DO9wd12I.js.map +1 -0
- package/dist/{admin-detail-SLijWf4F.js → admin-detail-M7YFYOGN.js} +211 -210
- package/dist/{admin-detail-SLijWf4F.js.map → admin-detail-M7YFYOGN.js.map} +1 -1
- package/dist/admin-detail-sOLj-K-Y.js +336 -0
- package/dist/{admin-detail-wttCvrxI.js.map → admin-detail-sOLj-K-Y.js.map} +1 -1
- package/dist/admin-detail-uZ-eR2TT.js +292 -0
- package/dist/{admin-detail-BytmF-e3.js.map → admin-detail-uZ-eR2TT.js.map} +1 -1
- package/dist/{admin-dialog-BVx92baz.js → admin-dialog-BxRcYcQM.js} +3 -3
- package/dist/{admin-dialog-BVx92baz.js.map → admin-dialog-BxRcYcQM.js.map} +1 -1
- package/dist/{admin-dropdown-menu-BV7vxYr9.js → admin-dropdown-menu-DlyaKwyU.js} +2 -2
- package/dist/{admin-dropdown-menu-BV7vxYr9.js.map → admin-dropdown-menu-DlyaKwyU.js.map} +1 -1
- package/dist/{admin-dunning-D8lAP7OA.js → admin-dunning-CDy6aMAj.js} +2 -2
- package/dist/{admin-dunning-D8lAP7OA.js.map → admin-dunning-CDy6aMAj.js.map} +1 -1
- package/dist/{admin-fact-card-CTQyFmQY.js → admin-fact-card-2DujC_r3.js} +2 -2
- package/dist/{admin-fact-card-CTQyFmQY.js.map → admin-fact-card-2DujC_r3.js.map} +1 -1
- package/dist/{admin-utils-CuwG3SAt.js → admin-format-Bc4NWK0F.js} +491 -328
- package/dist/admin-format-Bc4NWK0F.js.map +1 -0
- package/dist/{admin-health-DWpONa-7.js → admin-health-DePsyIlc.js} +217 -196
- package/dist/admin-health-DePsyIlc.js.map +1 -0
- package/dist/{admin-imports-Dsd5QmAe.js → admin-imports-BrQH3u9M.js} +85 -86
- package/dist/{admin-imports-Dsd5QmAe.js.map → admin-imports-BrQH3u9M.js.map} +1 -1
- package/dist/{admin-input-DhYEd7Yp.js → admin-input-BZ2ExV_5.js} +2 -2
- package/dist/{admin-input-DhYEd7Yp.js.map → admin-input-BZ2ExV_5.js.map} +1 -1
- package/dist/{admin-label-DwUfUVm6.js → admin-label-DecDO0oV.js} +2 -2
- package/dist/{admin-label-DwUfUVm6.js.map → admin-label-DecDO0oV.js.map} +1 -1
- package/dist/{admin-linked-table-row-CqG_aCwd.js → admin-linked-table-row-ChxhVptQ.js} +3 -3
- package/dist/{admin-linked-table-row-CqG_aCwd.js.map → admin-linked-table-row-ChxhVptQ.js.map} +1 -1
- package/dist/{admin-map-dialog-DZuPq4UA.js → admin-map-dialog-CQmGOBMw.js} +12 -12
- package/dist/{admin-map-dialog-DZuPq4UA.js.map → admin-map-dialog-CQmGOBMw.js.map} +1 -1
- package/dist/admin-metering-OXGOVQ7e.js +1716 -0
- package/dist/{admin-metering-kGrQIiEX.js.map → admin-metering-OXGOVQ7e.js.map} +1 -1
- package/dist/{admin-missing-record-CjIQEv9L.js → admin-missing-record-B_9LpSIW.js} +4 -4
- package/dist/{admin-missing-record-CjIQEv9L.js.map → admin-missing-record-B_9LpSIW.js.map} +1 -1
- package/dist/admin-ops-BTSunx1i.js +357 -0
- package/dist/{admin-ops-B1Gwrsq6.js.map → admin-ops-BTSunx1i.js.map} +1 -1
- package/dist/{admin-orders-DRpUMK7N.js → admin-orders-LqlpQVFo.js} +59 -60
- package/dist/{admin-orders-DRpUMK7N.js.map → admin-orders-LqlpQVFo.js.map} +1 -1
- package/dist/{admin-parked-uH5dSPjL.js → admin-parked-Ch6mlS5f.js} +61 -62
- package/dist/{admin-parked-uH5dSPjL.js.map → admin-parked-Ch6mlS5f.js.map} +1 -1
- package/dist/{admin-payments-DFW5O19Q.js → admin-payments-yNntF4i4.js} +42 -42
- package/dist/{admin-payments-DFW5O19Q.js.map → admin-payments-yNntF4i4.js.map} +1 -1
- package/dist/{admin-price-detail-CaUekDWP.js → admin-price-detail-DvmcYr8B.js} +131 -132
- package/dist/admin-price-detail-DvmcYr8B.js.map +1 -0
- package/dist/{admin-price-format-BrXm8J1w.js → admin-price-format-Btdg11-J.js} +2 -2
- package/dist/{admin-price-format-BrXm8J1w.js.map → admin-price-format-Btdg11-J.js.map} +1 -1
- package/dist/admin-price-wizard-EFO3nBV8.js +376 -0
- package/dist/admin-price-wizard-EFO3nBV8.js.map +1 -0
- package/dist/{admin-proposals-BuPBTbX7.js → admin-proposals-CO0LKHM8.js} +119 -120
- package/dist/{admin-proposals-BuPBTbX7.js.map → admin-proposals-CO0LKHM8.js.map} +1 -1
- package/dist/admin-provider-prices-ZjQeEV1n.js +239 -0
- package/dist/{admin-provider-prices-BtyrGlSd.js.map → admin-provider-prices-ZjQeEV1n.js.map} +1 -1
- package/dist/admin-query-builder-DedekYUU.js +252 -0
- package/dist/admin-query-builder-DedekYUU.js.map +1 -0
- package/dist/{admin-range-picker-B1C1R9Yh.js → admin-range-picker-1WGFlYYw.js} +46 -24
- package/dist/admin-range-picker-1WGFlYYw.js.map +1 -0
- package/dist/admin-records-A2R52prt.js +389 -0
- package/dist/{admin-records-CZ_Q1j7i.js.map → admin-records-A2R52prt.js.map} +1 -1
- package/dist/admin-reports-ySY9v463.js +420 -0
- package/dist/admin-reports-ySY9v463.js.map +1 -0
- package/dist/{admin-select-CCliJ9d-.js → admin-select-CgZq2j0G.js} +2 -2
- package/dist/{admin-select-CCliJ9d-.js.map → admin-select-CgZq2j0G.js.map} +1 -1
- package/dist/admin-settings-kOW1nPGB.js +1818 -0
- package/dist/admin-settings-kOW1nPGB.js.map +1 -0
- package/dist/{admin-shared-Bozlh9cy.js → admin-shared-DoBOSwkv.js} +33 -34
- package/dist/{admin-shared-Bozlh9cy.js.map → admin-shared-DoBOSwkv.js.map} +1 -1
- package/dist/admin-signals-D_iWk2r5.js +124 -0
- package/dist/admin-signals-D_iWk2r5.js.map +1 -0
- package/dist/{admin-skeleton-CKxohm-g.js → admin-skeleton-DdqwXcr4.js} +2 -2
- package/dist/{admin-skeleton-CKxohm-g.js.map → admin-skeleton-DdqwXcr4.js.map} +1 -1
- package/dist/{admin-status-badge-BhHyBG8J.js → admin-status-badge-B8rjk6QR.js} +5 -3
- package/dist/admin-status-badge-B8rjk6QR.js.map +1 -0
- package/dist/{admin-subscriptions-VwEbVACW.js → admin-subscriptions-CjYPSPs-.js} +43 -38
- package/dist/admin-subscriptions-CjYPSPs-.js.map +1 -0
- package/dist/{admin-switch-CE0N-HwZ.js → admin-switch-CyYmt8wi.js} +2 -2
- package/dist/{admin-switch-CE0N-HwZ.js.map → admin-switch-CyYmt8wi.js.map} +1 -1
- package/dist/{admin-table-Ce6xyiwJ.js → admin-table-ByPfWNq8.js} +2 -2
- package/dist/{admin-table-Ce6xyiwJ.js.map → admin-table-ByPfWNq8.js.map} +1 -1
- package/dist/admin-tabs-DKa6QljL.js +45 -0
- package/dist/admin-tabs-DKa6QljL.js.map +1 -0
- package/dist/{admin-textarea-CBAshts8.js → admin-textarea-CQg__KGc.js} +2 -2
- package/dist/{admin-textarea-CBAshts8.js.map → admin-textarea-CQg__KGc.js.map} +1 -1
- package/dist/{admin-typed-confirm-dialog-C1kHdYgH.js → admin-typed-confirm-dialog-BvAYEh3H.js} +6 -6
- package/dist/{admin-typed-confirm-dialog-C1kHdYgH.js.map → admin-typed-confirm-dialog-BvAYEh3H.js.map} +1 -1
- package/dist/admin-widget-tile-DDI3eaRy.js +290 -0
- package/dist/admin-widget-tile-DDI3eaRy.js.map +1 -0
- package/dist/admin-widget-viz-Db9CQ2Sx.js +1084 -0
- package/dist/admin-widget-viz-Db9CQ2Sx.js.map +1 -0
- package/dist/admin.css +1 -1
- package/dist/admin.js +660 -609
- package/dist/admin.js.map +1 -1
- package/dist/buy-button.d.ts +4 -2
- package/dist/cart.d.ts +4 -2
- package/dist/client/client.d.ts +16 -3
- package/dist/client/generated/error-codes.d.ts +1 -1
- package/dist/client/generated/routes.d.ts +296 -181
- package/dist/client/generated/wire.d.ts +509 -277
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.d.ts +70 -6
- package/dist/{client-BrURpRWz.js → client-D8qT6xjo.js} +84 -44
- package/dist/client-D8qT6xjo.js.map +1 -0
- package/dist/client.js +1 -1
- package/dist/components/billing-fields.d.ts +5 -3
- package/dist/components/platform-card-form.d.ts +3 -1
- package/dist/{hooks-Bbp1RWgw.js → hooks-CX09fAJA.js} +86 -60
- package/dist/hooks-CX09fAJA.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +842 -779
- package/dist/index.js.map +1 -1
- package/dist/lib/billing-fields.d.ts +15 -0
- package/dist/lib/billing.d.ts +23 -5
- package/dist/product-list.d.ts +4 -2
- package/dist/react/config.d.ts +10 -2
- package/dist/react/index.d.ts +1 -1
- package/dist/react.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tokenized-card-form.d.ts +10 -2
- package/docs/payment-form-contract.md +6 -15
- package/package.json +6 -6
- package/dist/admin/lib/api/copilot.d.ts +0 -6
- package/dist/admin/pages/catalog/copilot-panel.d.ts +0 -4
- package/dist/admin-attempts-Cs2u-BLY.js +0 -418
- package/dist/admin-attempts-Cs2u-BLY.js.map +0 -1
- package/dist/admin-capabilities-uSi2Pb2h.js.map +0 -1
- package/dist/admin-catalog-DB5lr46V.js +0 -1096
- package/dist/admin-catalog-DB5lr46V.js.map +0 -1
- package/dist/admin-customers-DFQ75ZBi.js.map +0 -1
- package/dist/admin-dashboard-Q_4-OFsE.js +0 -461
- package/dist/admin-dashboard-Q_4-OFsE.js.map +0 -1
- package/dist/admin-detail-BytmF-e3.js +0 -293
- package/dist/admin-detail-CG3kLIDS.js.map +0 -1
- package/dist/admin-detail-RS0o4-Cq.js +0 -1351
- package/dist/admin-detail-RS0o4-Cq.js.map +0 -1
- package/dist/admin-detail-wttCvrxI.js +0 -337
- package/dist/admin-format-D9Ablh0P.js +0 -169
- package/dist/admin-format-D9Ablh0P.js.map +0 -1
- package/dist/admin-health-DWpONa-7.js.map +0 -1
- package/dist/admin-metering-kGrQIiEX.js +0 -1717
- package/dist/admin-ops-B1Gwrsq6.js +0 -358
- package/dist/admin-price-detail-CaUekDWP.js.map +0 -1
- package/dist/admin-price-wizard-CCejN6lZ.js +0 -355
- package/dist/admin-price-wizard-CCejN6lZ.js.map +0 -1
- package/dist/admin-provider-prices-BtyrGlSd.js +0 -240
- package/dist/admin-range-picker-B1C1R9Yh.js.map +0 -1
- package/dist/admin-records-CZ_Q1j7i.js +0 -390
- package/dist/admin-reports-ZDEVF7aC.js +0 -319
- package/dist/admin-reports-ZDEVF7aC.js.map +0 -1
- package/dist/admin-settings-HBiilJTI.js +0 -1818
- package/dist/admin-settings-HBiilJTI.js.map +0 -1
- package/dist/admin-status-badge-BhHyBG8J.js.map +0 -1
- package/dist/admin-subscriptions-VwEbVACW.js.map +0 -1
- package/dist/admin-tabs-BPfOyBa6.js +0 -156
- package/dist/admin-tabs-BPfOyBa6.js.map +0 -1
- package/dist/admin-utils-CuwG3SAt.js.map +0 -1
- package/dist/admin-widget-viz-Dd1Fjd_j.js +0 -643
- package/dist/admin-widget-viz-Dd1Fjd_j.js.map +0 -1
- package/dist/client-BrURpRWz.js.map +0 -1
- package/dist/hooks-Bbp1RWgw.js.map +0 -1
package/dist/admin/messages.d.ts
CHANGED
|
@@ -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/
|
|
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 "
|
|
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 "
|
|
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,
|
|
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,
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
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?:
|
|
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
|
|
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,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 {
|
|
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
|
|
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 {
|
|
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):
|
|
6
|
-
export declare function renewalsQuery(range: DashboardRange):
|
|
7
|
-
export declare function churnQuery(range: DashboardRange):
|
|
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
|
|
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 {
|
|
3
|
-
|
|
2
|
+
import { DashboardView } from './range';
|
|
3
|
+
import { Registry } from './registry';
|
|
4
|
+
interface TileProps {
|
|
4
5
|
widget: Widget;
|
|
5
|
-
|
|
6
|
+
view: DashboardView;
|
|
7
|
+
registry: Registry;
|
|
8
|
+
empty?: boolean;
|
|
6
9
|
editable?: boolean;
|
|
7
10
|
onEdit: () => void;
|
|
8
11
|
onDelete: () => void;
|
|
9
|
-
}
|
|
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,
|
|
3
|
+
import { MetricsResult, QueryMetricsParams, WidgetViz as VizType } from '../../lib/api/metrics';
|
|
4
4
|
import { PivotSeries } from './lib';
|
|
5
|
-
|
|
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?:
|
|
9
|
-
|
|
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
|
-
}):
|
|
17
|
+
}): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function Outcome({
|
|
2
|
-
|
|
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;
|