@openrails/billing-ui 0.274.0 → 0.275.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/dist/admin/context.d.ts +14 -0
- package/dist/admin/lib/api/endpoints.d.ts +2 -1
- package/dist/admin/lib/api/index.d.ts +1 -0
- package/dist/admin/lib/api/order-endpoints.d.ts +1 -0
- package/dist/admin/lib/api/types.d.ts +2 -12
- package/dist/admin/lib/format.d.ts +5 -1
- package/dist/admin/lib/order-queries.d.ts +3 -0
- package/dist/admin/lib/queries.d.ts +3 -0
- package/dist/admin/messages.d.ts +13 -8
- package/dist/admin/pages/dashboard/lib.d.ts +1 -0
- package/dist/admin/pages/imports/shared.d.ts +1 -0
- package/dist/admin/pages/subscriptions/change-subscription-dialog.d.ts +4 -7
- package/dist/admin/pages/subscriptions/subscription-change-options.d.ts +6 -15
- package/dist/{admin-attempts-Dzipkstg.js → admin-attempts-CP5CWyNR.js} +28 -28
- package/dist/{admin-attempts-Dzipkstg.js.map → admin-attempts-CP5CWyNR.js.map} +1 -1
- package/dist/{admin-auth-BCl_Tv3t.js → admin-auth-DlIOmwPo.js} +2 -2
- package/dist/{admin-auth-BCl_Tv3t.js.map → admin-auth-DlIOmwPo.js.map} +1 -1
- package/dist/{admin-badge-kmYQM9Ge.js → admin-badge-DR_8AhdC.js} +2 -2
- package/dist/{admin-badge-kmYQM9Ge.js.map → admin-badge-DR_8AhdC.js.map} +1 -1
- package/dist/{admin-button-Cq9ZfX4R.js → admin-button-DBzTD6By.js} +2 -2
- package/dist/{admin-button-Cq9ZfX4R.js.map → admin-button-DBzTD6By.js.map} +1 -1
- package/dist/{admin-capabilities-k5fQZhN9.js → admin-capabilities-CZdT1Pxe.js} +2 -2
- package/dist/{admin-capabilities-k5fQZhN9.js.map → admin-capabilities-CZdT1Pxe.js.map} +1 -1
- package/dist/{admin-card-C8k67jJv.js → admin-card-mZl4-s5d.js} +2 -2
- package/dist/{admin-card-C8k67jJv.js.map → admin-card-mZl4-s5d.js.map} +1 -1
- package/dist/{admin-catalog-CON-GwKL.js → admin-catalog-DpTjS0Yo.js} +38 -38
- package/dist/{admin-catalog-CON-GwKL.js.map → admin-catalog-DpTjS0Yo.js.map} +1 -1
- package/dist/{admin-cursor-pager-DqFruoNu.js → admin-cursor-pager-C-KjCIy9.js} +4 -4
- package/dist/{admin-cursor-pager-DqFruoNu.js.map → admin-cursor-pager-C-KjCIy9.js.map} +1 -1
- package/dist/{admin-customers-CWWOrcVR.js → admin-customers-BE3N839X.js} +12 -12
- package/dist/{admin-customers-CWWOrcVR.js.map → admin-customers-BE3N839X.js.map} +1 -1
- package/dist/{admin-dashboard-BiShWFk2.js → admin-dashboard-BxjkV15J.js} +25 -17
- package/dist/admin-dashboard-BxjkV15J.js.map +1 -0
- package/dist/{admin-data-table-CdsjYJh5.js → admin-data-table-D89AwWz_.js} +5 -5
- package/dist/{admin-data-table-CdsjYJh5.js.map → admin-data-table-D89AwWz_.js.map} +1 -1
- package/dist/{admin-detail-BWSC1aCH.js → admin-detail-BKe9xqPd.js} +41 -41
- package/dist/{admin-detail-BWSC1aCH.js.map → admin-detail-BKe9xqPd.js.map} +1 -1
- package/dist/admin-detail-C8lD7U2t.js +699 -0
- package/dist/admin-detail-C8lD7U2t.js.map +1 -0
- package/dist/{admin-detail-CMmhZQ2A.js → admin-detail-D6zD085K.js} +45 -37
- package/dist/admin-detail-D6zD085K.js.map +1 -0
- package/dist/{admin-detail-Cyuf_i9U.js → admin-detail-Ln56otK0.js} +40 -40
- package/dist/{admin-detail-Cyuf_i9U.js.map → admin-detail-Ln56otK0.js.map} +1 -1
- package/dist/{admin-detail-CiONe1Pt.js → admin-detail-P-UnNvXJ.js} +171 -171
- package/dist/admin-detail-P-UnNvXJ.js.map +1 -0
- package/dist/{admin-dialog-Ch7rTOCr.js → admin-dialog-Dn2FRJu4.js} +3 -3
- package/dist/{admin-dialog-Ch7rTOCr.js.map → admin-dialog-Dn2FRJu4.js.map} +1 -1
- package/dist/{admin-dropdown-menu-Bah3f8AZ.js → admin-dropdown-menu-DLUn6Uj3.js} +2 -2
- package/dist/{admin-dropdown-menu-Bah3f8AZ.js.map → admin-dropdown-menu-DLUn6Uj3.js.map} +1 -1
- package/dist/{admin-dunning-B2zgtrOo.js → admin-dunning-COaHzrmN.js} +2 -2
- package/dist/{admin-dunning-B2zgtrOo.js.map → admin-dunning-COaHzrmN.js.map} +1 -1
- package/dist/{admin-fact-card-Bt__Cd_U.js → admin-fact-card-DKvBnUXB.js} +2 -2
- package/dist/{admin-fact-card-Bt__Cd_U.js.map → admin-fact-card-DKvBnUXB.js.map} +1 -1
- package/dist/admin-format-BbiTCqUG.js +171 -0
- package/dist/admin-format-BbiTCqUG.js.map +1 -0
- package/dist/{admin-health-pzTO6_0v.js → admin-health-DmnI4e8K.js} +10 -10
- package/dist/{admin-health-pzTO6_0v.js.map → admin-health-DmnI4e8K.js.map} +1 -1
- package/dist/{admin-imports-tT5et8-V.js → admin-imports-C0aMP6sj.js} +18 -18
- package/dist/{admin-imports-tT5et8-V.js.map → admin-imports-C0aMP6sj.js.map} +1 -1
- package/dist/{admin-input-DvRZy_2a.js → admin-input-JKrQIGfD.js} +2 -2
- package/dist/{admin-input-DvRZy_2a.js.map → admin-input-JKrQIGfD.js.map} +1 -1
- package/dist/{admin-label-QZtWJGH-.js → admin-label-CHWsVIZC.js} +2 -2
- package/dist/{admin-label-QZtWJGH-.js.map → admin-label-CHWsVIZC.js.map} +1 -1
- package/dist/{admin-linked-table-row-6jkCKwMn.js → admin-linked-table-row-BMZYYsuk.js} +3 -3
- package/dist/{admin-linked-table-row-6jkCKwMn.js.map → admin-linked-table-row-BMZYYsuk.js.map} +1 -1
- package/dist/{admin-map-dialog-BV54mvMQ.js → admin-map-dialog-BHUGdCcv.js} +10 -10
- package/dist/{admin-map-dialog-BV54mvMQ.js.map → admin-map-dialog-BHUGdCcv.js.map} +1 -1
- package/dist/{admin-metering-Bv5EcX6M.js → admin-metering-CDqueHUh.js} +15 -15
- package/dist/{admin-metering-Bv5EcX6M.js.map → admin-metering-CDqueHUh.js.map} +1 -1
- package/dist/{admin-missing-record-BXqGFDt3.js → admin-missing-record-BPFs3MmO.js} +2 -2
- package/dist/{admin-missing-record-BXqGFDt3.js.map → admin-missing-record-BPFs3MmO.js.map} +1 -1
- package/dist/{admin-ops-h3RjpcNu.js → admin-ops-CL2kjDwi.js} +18 -15
- package/dist/admin-ops-CL2kjDwi.js.map +1 -0
- package/dist/admin-orders-C1Sf2qhc.js +192 -0
- package/dist/admin-orders-C1Sf2qhc.js.map +1 -0
- package/dist/admin-parked-a0tB5bhG.js +193 -0
- package/dist/admin-parked-a0tB5bhG.js.map +1 -0
- package/dist/admin-payments-DJcjwRA4.js +221 -0
- package/dist/admin-payments-DJcjwRA4.js.map +1 -0
- package/dist/{admin-price-detail-BjWYU5A-.js → admin-price-detail-BOmeWw15.js} +15 -15
- package/dist/{admin-price-detail-BjWYU5A-.js.map → admin-price-detail-BOmeWw15.js.map} +1 -1
- package/dist/{admin-price-format-BVUpDoSC.js → admin-price-format-CqOmHrIn.js} +2 -2
- package/dist/{admin-price-format-BVUpDoSC.js.map → admin-price-format-CqOmHrIn.js.map} +1 -1
- package/dist/{admin-price-wizard-CTbkbmYc.js → admin-price-wizard-B6s5OJeO.js} +9 -9
- package/dist/{admin-price-wizard-CTbkbmYc.js.map → admin-price-wizard-B6s5OJeO.js.map} +1 -1
- package/dist/{admin-proposals-Ci9Q8j7Y.js → admin-proposals-DVrl-ym4.js} +20 -20
- package/dist/{admin-proposals-Ci9Q8j7Y.js.map → admin-proposals-DVrl-ym4.js.map} +1 -1
- package/dist/admin-provider-prices-BVVogH7Q.js +241 -0
- package/dist/admin-provider-prices-BVVogH7Q.js.map +1 -0
- package/dist/{admin-range-picker-nfflPp21.js → admin-range-picker-C6BtSm2B.js} +5 -5
- package/dist/{admin-range-picker-nfflPp21.js.map → admin-range-picker-C6BtSm2B.js.map} +1 -1
- package/dist/{admin-records-CrTCorWH.js → admin-records-DKtcgN11.js} +19 -19
- package/dist/{admin-records-CrTCorWH.js.map → admin-records-DKtcgN11.js.map} +1 -1
- package/dist/{admin-reports-BO6wrvtw.js → admin-reports-CtPoiceH.js} +8 -8
- package/dist/{admin-reports-BO6wrvtw.js.map → admin-reports-CtPoiceH.js.map} +1 -1
- package/dist/{admin-select-DvfJ80Rg.js → admin-select-6Yuh5M1Q.js} +2 -2
- package/dist/{admin-select-DvfJ80Rg.js.map → admin-select-6Yuh5M1Q.js.map} +1 -1
- package/dist/{admin-settings-BOoTzhyf.js → admin-settings-DscHu4ww.js} +560 -550
- package/dist/admin-settings-DscHu4ww.js.map +1 -0
- package/dist/{admin-shared-BbGT_qTo.js → admin-shared-BywM-MMp.js} +13 -9
- package/dist/{admin-shared-BbGT_qTo.js.map → admin-shared-BywM-MMp.js.map} +1 -1
- package/dist/{admin-skeleton-B2a4ScVE.js → admin-skeleton-lndmw89u.js} +2 -2
- package/dist/{admin-skeleton-B2a4ScVE.js.map → admin-skeleton-lndmw89u.js.map} +1 -1
- package/dist/{admin-status-badge-Bp6cssXY.js → admin-status-badge-IL8ofZ_6.js} +3 -3
- package/dist/{admin-status-badge-Bp6cssXY.js.map → admin-status-badge-IL8ofZ_6.js.map} +1 -1
- package/dist/{admin-subscriptions-D9JmoicC.js → admin-subscriptions-Cd5CGrue.js} +83 -87
- package/dist/admin-subscriptions-Cd5CGrue.js.map +1 -0
- package/dist/{admin-switch-DBBxJRZP.js → admin-switch-DpwQSzEm.js} +2 -2
- package/dist/{admin-switch-DBBxJRZP.js.map → admin-switch-DpwQSzEm.js.map} +1 -1
- package/dist/{admin-table-CPDoVfK4.js → admin-table-D-GdGM1m.js} +2 -2
- package/dist/{admin-table-CPDoVfK4.js.map → admin-table-D-GdGM1m.js.map} +1 -1
- package/dist/admin-tabs-B--1flzO.js +158 -0
- package/dist/admin-tabs-B--1flzO.js.map +1 -0
- package/dist/{admin-textarea-d3fu_waS.js → admin-textarea-xsp5V9xM.js} +2 -2
- package/dist/{admin-textarea-d3fu_waS.js.map → admin-textarea-xsp5V9xM.js.map} +1 -1
- package/dist/{admin-typed-confirm-dialog-BVklYjFo.js → admin-typed-confirm-dialog-NiEDwX_0.js} +6 -6
- package/dist/{admin-typed-confirm-dialog-BVklYjFo.js.map → admin-typed-confirm-dialog-NiEDwX_0.js.map} +1 -1
- package/dist/{admin-utils-DTT53IpS.js → admin-utils-wuPUD0uh.js} +152 -137
- package/dist/admin-utils-wuPUD0uh.js.map +1 -0
- package/dist/{admin-widget-viz-Exsqz3Dw.js → admin-widget-viz-kHHVmDEx.js} +215 -187
- package/dist/admin-widget-viz-kHHVmDEx.js.map +1 -0
- package/dist/admin.css +1 -1
- package/dist/admin.js +49 -44
- package/dist/admin.js.map +1 -1
- package/dist/client/generated/routes.d.ts +17 -0
- package/dist/client/generated/wire.d.ts +4 -0
- package/dist/client/types.d.ts +6 -0
- package/dist/{client-BYgnI6_h.js → client-ctrbivyN.js} +3 -2
- package/dist/client-ctrbivyN.js.map +1 -0
- package/dist/client.js +1 -1
- package/dist/{hooks-t2tSrCpa.js → hooks-KpTetx6F.js} +2 -2
- package/dist/{hooks-t2tSrCpa.js.map → hooks-KpTetx6F.js.map} +1 -1
- package/dist/index.js +750 -711
- package/dist/index.js.map +1 -1
- package/dist/lib/card-brands.d.ts +1 -0
- package/dist/locales/de.js +3 -0
- package/dist/locales/de.js.map +1 -1
- package/dist/locales/en.d.ts +3 -0
- package/dist/locales/en.js +3 -0
- package/dist/locales/en.js.map +1 -1
- package/dist/locales/es.js +3 -0
- package/dist/locales/es.js.map +1 -1
- package/dist/locales/ja.js +3 -0
- package/dist/locales/ja.js.map +1 -1
- package/dist/locales/ko.js +3 -0
- package/dist/locales/ko.js.map +1 -1
- package/dist/locales/zh.js +3 -0
- package/dist/locales/zh.js.map +1 -1
- package/dist/react.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/admin-customer-search-CJHB80rg.js +0 -117
- package/dist/admin-customer-search-CJHB80rg.js.map +0 -1
- package/dist/admin-dashboard-BiShWFk2.js.map +0 -1
- package/dist/admin-detail-CKRtK43V.js +0 -728
- package/dist/admin-detail-CKRtK43V.js.map +0 -1
- package/dist/admin-detail-CMmhZQ2A.js.map +0 -1
- package/dist/admin-detail-CiONe1Pt.js.map +0 -1
- package/dist/admin-format-DoohJ7Fg.js +0 -136
- package/dist/admin-format-DoohJ7Fg.js.map +0 -1
- package/dist/admin-ops-h3RjpcNu.js.map +0 -1
- package/dist/admin-orders-DYxPiuTl.js +0 -192
- package/dist/admin-orders-DYxPiuTl.js.map +0 -1
- package/dist/admin-parked-ClKA60d5.js +0 -193
- package/dist/admin-parked-ClKA60d5.js.map +0 -1
- package/dist/admin-payments-BlIuy3wL.js +0 -220
- package/dist/admin-payments-BlIuy3wL.js.map +0 -1
- package/dist/admin-provider-prices-B6Ayq-eN.js +0 -246
- package/dist/admin-provider-prices-B6Ayq-eN.js.map +0 -1
- package/dist/admin-settings-BOoTzhyf.js.map +0 -1
- package/dist/admin-subscriptions-D9JmoicC.js.map +0 -1
- package/dist/admin-tabs-DDUv3kiu.js +0 -46
- package/dist/admin-tabs-DDUv3kiu.js.map +0 -1
- package/dist/admin-utils-DTT53IpS.js.map +0 -1
- package/dist/admin-widget-viz-Exsqz3Dw.js.map +0 -1
- package/dist/client-BYgnI6_h.js.map +0 -1
package/dist/admin/context.d.ts
CHANGED
|
@@ -69,6 +69,9 @@ export declare function createAdminServices(options: AdminClientOptions): {
|
|
|
69
69
|
list: (filters: import('./lib/api/order-endpoints').OrderFilters, limit: number, cursor?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, Error, import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, (string | number | import('./lib/api/order-endpoints').OrderFilters | undefined)[]>, "queryFn"> & {
|
|
70
70
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, (string | number | import('./lib/api/order-endpoints').OrderFilters | undefined)[], never> | undefined;
|
|
71
71
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | number | import('./lib/api/order-endpoints').OrderFilters | undefined)[], import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, Error>;
|
|
72
|
+
byIds: (ids: string[]) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, Error, import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, (string | string[])[]>, "queryFn"> & {
|
|
73
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, (string | string[])[], never> | undefined;
|
|
74
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | string[])[], import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, Error>;
|
|
72
75
|
detail: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../client/generated/wire').Order, Error, import('../client/generated/wire').Order, readonly [...string[], "merchant", string, "orders", string]>, "queryFn"> & {
|
|
73
76
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('../client/generated/wire').Order, readonly [...string[], "merchant", string, "orders", string], never> | undefined;
|
|
74
77
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "merchant", string, "orders", string], import('../client/generated/wire').Order, Error>;
|
|
@@ -330,6 +333,9 @@ export declare function createAdminServices(options: AdminClientOptions): {
|
|
|
330
333
|
subscription: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./lib/api/types').RawSubscription, Error, import('./lib/api/types').RawSubscription, readonly [...string[], "subscriptions", string]>, "queryFn"> & {
|
|
331
334
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('./lib/api/types').RawSubscription, readonly [...string[], "subscriptions", string], never> | undefined;
|
|
332
335
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "subscriptions", string], import('./lib/api/types').RawSubscription, Error>;
|
|
336
|
+
subscriptionChangeOptions: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>, Error, import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>, string[]>, "queryFn"> & {
|
|
337
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>, string[], never> | undefined;
|
|
338
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>, Error>;
|
|
333
339
|
customerPaymentMethods: (customerId?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../client/generated/wire').PaymentMethod[], Error, import('../client/generated/wire').PaymentMethod[], string[]>, "queryFn"> & {
|
|
334
340
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('../client/generated/wire').PaymentMethod[], string[], never> | undefined;
|
|
335
341
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], import('../client/generated/wire').PaymentMethod[], Error>;
|
|
@@ -582,6 +588,7 @@ export declare function createAdminServices(options: AdminClientOptions): {
|
|
|
582
588
|
cancelSubscription: (id: string, reason: string, revokeAccess: boolean) => Promise<import('./lib/api/types').RawSubscription>;
|
|
583
589
|
resumeSubscription: (id: string) => Promise<import('./lib/api/types').RawSubscription>;
|
|
584
590
|
changeSubscriptionPaymentMethod: (id: string, paymentMethodId: string | null) => Promise<import('./lib/api/types').RawSubscription>;
|
|
591
|
+
listSubscriptionChangeOptions: (id: string, signal?: AbortSignal) => Promise<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>>;
|
|
585
592
|
previewSubscriptionChange: (id: string, change: import('./lib/api/types').ChangeSubscriptionParams) => Promise<import('./lib/api/types').SubscriptionChangePreview>;
|
|
586
593
|
changeSubscription: (id: string, change: import('./lib/api/types').ChangeSubscriptionParams, idempotencyKey: string) => Promise<import('./lib/api/types').SubscriptionChange>;
|
|
587
594
|
listPayments: (filters: import('./lib/api/endpoints').PaymentFilters, page: import('./lib/api/client').PageRequest, signal?: AbortSignal) => Promise<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Payment>>;
|
|
@@ -734,6 +741,9 @@ export declare const useAdminServices: () => {
|
|
|
734
741
|
list: (filters: import('./lib/api/order-endpoints').OrderFilters, limit: number, cursor?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, Error, import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, (string | number | import('./lib/api/order-endpoints').OrderFilters | undefined)[]>, "queryFn"> & {
|
|
735
742
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, (string | number | import('./lib/api/order-endpoints').OrderFilters | undefined)[], never> | undefined;
|
|
736
743
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | number | import('./lib/api/order-endpoints').OrderFilters | undefined)[], import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, Error>;
|
|
744
|
+
byIds: (ids: string[]) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, Error, import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, (string | string[])[]>, "queryFn"> & {
|
|
745
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, (string | string[])[], never> | undefined;
|
|
746
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | string[])[], import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Order>, Error>;
|
|
737
747
|
detail: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../client/generated/wire').Order, Error, import('../client/generated/wire').Order, readonly [...string[], "merchant", string, "orders", string]>, "queryFn"> & {
|
|
738
748
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('../client/generated/wire').Order, readonly [...string[], "merchant", string, "orders", string], never> | undefined;
|
|
739
749
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "merchant", string, "orders", string], import('../client/generated/wire').Order, Error>;
|
|
@@ -995,6 +1005,9 @@ export declare const useAdminServices: () => {
|
|
|
995
1005
|
subscription: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./lib/api/types').RawSubscription, Error, import('./lib/api/types').RawSubscription, readonly [...string[], "subscriptions", string]>, "queryFn"> & {
|
|
996
1006
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('./lib/api/types').RawSubscription, readonly [...string[], "subscriptions", string], never> | undefined;
|
|
997
1007
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "subscriptions", string], import('./lib/api/types').RawSubscription, Error>;
|
|
1008
|
+
subscriptionChangeOptions: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>, Error, import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>, string[]>, "queryFn"> & {
|
|
1009
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>, string[], never> | undefined;
|
|
1010
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>, Error>;
|
|
998
1011
|
customerPaymentMethods: (customerId?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../client/generated/wire').PaymentMethod[], Error, import('../client/generated/wire').PaymentMethod[], string[]>, "queryFn"> & {
|
|
999
1012
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('../client/generated/wire').PaymentMethod[], string[], never> | undefined;
|
|
1000
1013
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], import('../client/generated/wire').PaymentMethod[], Error>;
|
|
@@ -1247,6 +1260,7 @@ export declare const useAdminServices: () => {
|
|
|
1247
1260
|
cancelSubscription: (id: string, reason: string, revokeAccess: boolean) => Promise<import('./lib/api/types').RawSubscription>;
|
|
1248
1261
|
resumeSubscription: (id: string) => Promise<import('./lib/api/types').RawSubscription>;
|
|
1249
1262
|
changeSubscriptionPaymentMethod: (id: string, paymentMethodId: string | null) => Promise<import('./lib/api/types').RawSubscription>;
|
|
1263
|
+
listSubscriptionChangeOptions: (id: string, signal?: AbortSignal) => Promise<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').SubscriptionChangeOption>>;
|
|
1250
1264
|
previewSubscriptionChange: (id: string, change: import('./lib/api/types').ChangeSubscriptionParams) => Promise<import('./lib/api/types').SubscriptionChangePreview>;
|
|
1251
1265
|
changeSubscription: (id: string, change: import('./lib/api/types').ChangeSubscriptionParams, idempotencyKey: string) => Promise<import('./lib/api/types').SubscriptionChange>;
|
|
1252
1266
|
listPayments: (filters: import('./lib/api/endpoints').PaymentFilters, page: import('./lib/api/client').PageRequest, signal?: AbortSignal) => Promise<import('./lib/api/credit-types').ListPage<import('../client/generated/wire').Payment>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdminClient, CursorEnvelope, PageRequest } from './client';
|
|
2
|
-
import { AdminAccess, AlertWebhook, Allowance, CatalogApplicationReceipt, CreateAlertWebhookParams, CreatePSPParams, Custodian, PutCustodianParams, CreatePriceParams, Customer, CustomerSettingsResult, DestructiveHold, Finding, FindingResolution, ListPage, MerchantConfigurationState, Meter, PSP, Payment, PaymentAttempt, PaymentMethod, Price, PriceKeyMovement, Product, PublicConfig, RatePrice, Renewal, UpdateAlertWebhookParams, UpdateCustomerParams, UpdateMerchantConfigurationParams, UpdatePSPParams, UpdatePriceParams, UpdateProductParams } from '../../../client/generated/wire';
|
|
2
|
+
import { AdminAccess, AlertWebhook, Allowance, CatalogApplicationReceipt, CreateAlertWebhookParams, CreatePSPParams, Custodian, PutCustodianParams, CreatePriceParams, Customer, CustomerSettingsResult, DestructiveHold, Finding, FindingResolution, ListPage, MerchantConfigurationState, Meter, PSP, Payment, PaymentAttempt, PaymentMethod, Price, PriceKeyMovement, Product, PublicConfig, RatePrice, Renewal, SubscriptionChangeOption, UpdateAlertWebhookParams, UpdateCustomerParams, UpdateMerchantConfigurationParams, UpdatePSPParams, UpdatePriceParams, UpdateProductParams } from '../../../client/generated/wire';
|
|
3
3
|
import { CustomerEntitlement, PSPRoutingPreview, RawProductAccessGrant, PriceMigration, PriceMigrationCancel, PriceMigrationPreview, ChangeSubscriptionParams, SubscriptionChange, SubscriptionChangePreview } from './types';
|
|
4
4
|
export interface ProductGrant {
|
|
5
5
|
productId: string;
|
|
@@ -73,6 +73,7 @@ export declare function createEndpoints(client: AdminClient): {
|
|
|
73
73
|
cancelSubscription: (id: string, reason: string, revokeAccess: boolean) => Promise<import('./types').RawSubscription>;
|
|
74
74
|
resumeSubscription: (id: string) => Promise<import('./types').RawSubscription>;
|
|
75
75
|
changeSubscriptionPaymentMethod: (id: string, paymentMethodId: string | null) => Promise<import('./types').RawSubscription>;
|
|
76
|
+
listSubscriptionChangeOptions: (id: string, signal?: AbortSignal) => Promise<ListPage<SubscriptionChangeOption>>;
|
|
76
77
|
previewSubscriptionChange: (id: string, change: ChangeSubscriptionParams) => Promise<SubscriptionChangePreview>;
|
|
77
78
|
changeSubscription: (id: string, change: ChangeSubscriptionParams, idempotencyKey: string) => Promise<SubscriptionChange>;
|
|
78
79
|
listPayments: (filters: PaymentFilters, page: PageRequest, signal?: AbortSignal) => Promise<ListPage<Payment>>;
|
|
@@ -42,6 +42,7 @@ export declare function createAdminAPI(client: AdminClient): {
|
|
|
42
42
|
cancelSubscription: (id: string, reason: string, revokeAccess: boolean) => Promise<import('./types').RawSubscription>;
|
|
43
43
|
resumeSubscription: (id: string) => Promise<import('./types').RawSubscription>;
|
|
44
44
|
changeSubscriptionPaymentMethod: (id: string, paymentMethodId: string | null) => Promise<import('./types').RawSubscription>;
|
|
45
|
+
listSubscriptionChangeOptions: (id: string, signal?: AbortSignal) => Promise<import('./credit-types').ListPage<import('../../../client/generated/wire').SubscriptionChangeOption>>;
|
|
45
46
|
previewSubscriptionChange: (id: string, change: import('./types').ChangeSubscriptionParams) => Promise<import('./types').SubscriptionChangePreview>;
|
|
46
47
|
changeSubscription: (id: string, change: import('./types').ChangeSubscriptionParams, idempotencyKey: string) => Promise<import('./types').SubscriptionChange>;
|
|
47
48
|
listPayments: (filters: import('./endpoints').PaymentFilters, page: import('./client').PageRequest, signal?: AbortSignal) => Promise<import('./credit-types').ListPage<import('../../../client/generated/wire').Payment>>;
|
|
@@ -4,6 +4,7 @@ export type Rail = "nmi" | "ccbill" | "solana" | "stripe" | string;
|
|
|
4
4
|
export interface RawSubscription {
|
|
5
5
|
id: string;
|
|
6
6
|
customer_id: string;
|
|
7
|
+
customer_contact?: import('../../../client/generated/wire').CustomerContact;
|
|
7
8
|
psp_id?: string;
|
|
8
9
|
product_id: string;
|
|
9
10
|
price_id: string;
|
|
@@ -23,22 +24,11 @@ export interface RawSubscription {
|
|
|
23
24
|
cancel_feedback: string | null;
|
|
24
25
|
canceled_at: string | null;
|
|
25
26
|
resumable?: boolean;
|
|
26
|
-
price?:
|
|
27
|
+
price?: import('../../../client/generated/wire').Price;
|
|
27
28
|
product?: import('../../../client/generated/wire').ProductSummary;
|
|
28
29
|
created_at: string;
|
|
29
30
|
updated_at: string;
|
|
30
31
|
}
|
|
31
|
-
export interface RawPrice {
|
|
32
|
-
id: string;
|
|
33
|
-
product_id?: string;
|
|
34
|
-
unit_amount?: string;
|
|
35
|
-
currency?: string;
|
|
36
|
-
archived?: boolean;
|
|
37
|
-
key?: string;
|
|
38
|
-
access_duration_hours?: number;
|
|
39
|
-
billing_interval_hours?: number;
|
|
40
|
-
[k: string]: unknown;
|
|
41
|
-
}
|
|
42
32
|
export interface CustomerEntitlement {
|
|
43
33
|
customer_id: string;
|
|
44
34
|
entitlement: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CardDetails } from '../../client/generated/wire';
|
|
1
|
+
import { CardDetails, CustomerContact } from '../../client/generated/wire';
|
|
2
2
|
export type MoneyAmount = number | string;
|
|
3
3
|
export declare const intlFormatsDecimalStringsExactly: boolean;
|
|
4
4
|
export declare function currencyScale(currency: string): number | undefined;
|
|
@@ -20,4 +20,8 @@ export declare function customerName(c: {
|
|
|
20
20
|
name: string | null;
|
|
21
21
|
} | null;
|
|
22
22
|
}): string;
|
|
23
|
+
export declare function rowCustomer(row: {
|
|
24
|
+
customer_id: string;
|
|
25
|
+
customer_contact?: CustomerContact;
|
|
26
|
+
}): string;
|
|
23
27
|
export declare function timeAgo(iso?: string | null): string;
|
|
@@ -14,6 +14,9 @@ export declare function createOrderQueries(client: AdminClient, api: AdminAPI, q
|
|
|
14
14
|
list: (filters: OrderFilters, limit: number, cursor?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Order>, Error, import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Order>, (string | number | OrderFilters | undefined)[]>, "queryFn"> & {
|
|
15
15
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Order>, (string | number | OrderFilters | undefined)[], never> | undefined;
|
|
16
16
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | number | OrderFilters | undefined)[], import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Order>, Error>;
|
|
17
|
+
byIds: (ids: string[]) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Order>, Error, import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Order>, (string | string[])[]>, "queryFn"> & {
|
|
18
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Order>, (string | string[])[], never> | undefined;
|
|
19
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | string[])[], import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Order>, Error>;
|
|
17
20
|
detail: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').Order, Error, import('../../client/generated/wire').Order, readonly [...string[], "merchant", string, "orders", string]>, "queryFn"> & {
|
|
18
21
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').Order, readonly [...string[], "merchant", string, "orders", string], never> | undefined;
|
|
19
22
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "merchant", string, "orders", string], import('../../client/generated/wire').Order, Error>;
|
|
@@ -144,6 +144,9 @@ export declare function createQueries(client: AdminClient, api: AdminAPI): {
|
|
|
144
144
|
subscription: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./api/types').RawSubscription, Error, import('./api/types').RawSubscription, readonly [...string[], "subscriptions", string]>, "queryFn"> & {
|
|
145
145
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('./api/types').RawSubscription, readonly [...string[], "subscriptions", string], never> | undefined;
|
|
146
146
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "subscriptions", string], import('./api/types').RawSubscription, Error>;
|
|
147
|
+
subscriptionChangeOptions: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<ListPage<import('../../client/generated/wire').SubscriptionChangeOption>, Error, ListPage<import('../../client/generated/wire').SubscriptionChangeOption>, string[]>, "queryFn"> & {
|
|
148
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<ListPage<import('../../client/generated/wire').SubscriptionChangeOption>, string[], never> | undefined;
|
|
149
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], ListPage<import('../../client/generated/wire').SubscriptionChangeOption>, Error>;
|
|
147
150
|
customerPaymentMethods: (customerId?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').PaymentMethod[], Error, import('../../client/generated/wire').PaymentMethod[], string[]>, "queryFn"> & {
|
|
148
151
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').PaymentMethod[], string[], never> | undefined;
|
|
149
152
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], import('../../client/generated/wire').PaymentMethod[], Error>;
|
package/dist/admin/messages.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export declare const billingAdminMessages: {
|
|
|
58
58
|
readonly ", an edit set": ", an edit set";
|
|
59
59
|
readonly ", before another action.": ", before another action.";
|
|
60
60
|
readonly ", deleted: ": ", deleted: ";
|
|
61
|
+
readonly ".": ".";
|
|
61
62
|
readonly ". Active holds may prevent revocation. Payment refunds are managed separately.": ". Active holds may prevent revocation. Payment refunds are managed separately.";
|
|
62
63
|
readonly ". Currency and interval stay locked to the current price.": ". Currency and interval stay locked to the current price.";
|
|
63
64
|
readonly "/app/usage-events": "/app/usage-events";
|
|
@@ -254,6 +255,7 @@ export declare const billingAdminMessages: {
|
|
|
254
255
|
readonly "Choose a method": "Choose a method";
|
|
255
256
|
readonly Churn: "Churn";
|
|
256
257
|
readonly "Clear all": "Clear all";
|
|
258
|
+
readonly "Clear customer": "Clear customer";
|
|
257
259
|
readonly "Clear customer filter": "Clear customer filter";
|
|
258
260
|
readonly "Clear filters": "Clear filters";
|
|
259
261
|
readonly Close: "Close";
|
|
@@ -287,7 +289,6 @@ export declare const billingAdminMessages: {
|
|
|
287
289
|
readonly "Custom range": "Custom range";
|
|
288
290
|
readonly Customer: "Customer";
|
|
289
291
|
readonly "Customer ID": "Customer ID";
|
|
290
|
-
readonly "Customer UUID": "Customer UUID";
|
|
291
292
|
readonly "Customer controls": "Customer controls";
|
|
292
293
|
readonly "Customer lookup": "Customer lookup";
|
|
293
294
|
readonly "Customer not found.": "Customer not found.";
|
|
@@ -355,7 +356,7 @@ export declare const billingAdminMessages: {
|
|
|
355
356
|
readonly Filter: "Filter";
|
|
356
357
|
readonly "Filter meters on this page": "Filter meters on this page";
|
|
357
358
|
readonly "Filter this page\u2026": "Filter this page…";
|
|
358
|
-
readonly "Find a customer by
|
|
359
|
+
readonly "Find a customer by name or email, then pick a currency.": "Find a customer by name or email, then pick a currency.";
|
|
359
360
|
readonly "First outcome": "First outcome";
|
|
360
361
|
readonly "First page": "First page";
|
|
361
362
|
readonly "Fixed included units": "Fixed included units";
|
|
@@ -411,6 +412,7 @@ export declare const billingAdminMessages: {
|
|
|
411
412
|
readonly "Loading order\u2026": "Loading order…";
|
|
412
413
|
readonly "Loading products\u2026": "Loading products…";
|
|
413
414
|
readonly "Loading transactions\u2026": "Loading transactions…";
|
|
415
|
+
readonly "Loading plans\u2026": "Loading plans…";
|
|
414
416
|
readonly "Loading\u2026": "Loading…";
|
|
415
417
|
readonly "Logo URL": "Logo URL";
|
|
416
418
|
readonly "Manual remittance": "Manual remittance";
|
|
@@ -436,7 +438,7 @@ export declare const billingAdminMessages: {
|
|
|
436
438
|
readonly "Move everyone to the new price at their first renewal on or after a date you choose.": "Move everyone to the new price at their first renewal on or after a date you choose.";
|
|
437
439
|
readonly "Must be at least ": "Must be at least ";
|
|
438
440
|
readonly "NMI history (before OpenRails recorded attempts)": "NMI history (before OpenRails recorded attempts)";
|
|
439
|
-
readonly "NMI
|
|
441
|
+
readonly "NMI's own transaction history, read daily and kept 25 months. It counts every sender, OpenRails too once it started. One-off sales mix initial sales, upgrades and retries of declined rebills: the history cannot tell them apart. Scheduled rebills are NMI's own charges, each the first try of its period. Rates count authorizations, not buyers.": "NMI's own transaction history, read daily and kept 25 months. It counts every sender, OpenRails too once it started. One-off sales mix initial sales, upgrades and retries of declined rebills: the history cannot tell them apart. Scheduled rebills are NMI's own charges, each the first try of its period. Rates count authorizations, not buyers.";
|
|
440
442
|
readonly "NMI-owned": "NMI-owned";
|
|
441
443
|
readonly "NMI-scheduled rebills": "NMI-scheduled rebills";
|
|
442
444
|
readonly Name: "Name";
|
|
@@ -465,7 +467,7 @@ export declare const billingAdminMessages: {
|
|
|
465
467
|
readonly "Next page": "Next page";
|
|
466
468
|
readonly "No NMI history yet: it is read daily.": "No NMI history yet: it is read daily.";
|
|
467
469
|
readonly "No PSPs configured.": "No PSPs configured.";
|
|
468
|
-
readonly "No actions are available for your permissions and this order
|
|
470
|
+
readonly "No actions are available for your permissions and this order's state.": "No actions are available for your permissions and this order's state.";
|
|
469
471
|
readonly "No active products are available.": "No active products are available.";
|
|
470
472
|
readonly "No active subscriptions.": "No active subscriptions.";
|
|
471
473
|
readonly "No allowance": "No allowance";
|
|
@@ -494,6 +496,7 @@ export declare const billingAdminMessages: {
|
|
|
494
496
|
readonly "No saved payment methods. Add one on the customer page before retrying collection.": "No saved payment methods. Add one on the customer page before retrying collection.";
|
|
495
497
|
readonly "No subscriptions.": "No subscriptions.";
|
|
496
498
|
readonly "No transactions in this currency.": "No transactions in this currency.";
|
|
499
|
+
readonly "No currency yet": "No currency yet";
|
|
497
500
|
readonly "No usage meters yet": "No usage meters yet";
|
|
498
501
|
readonly "No webhooks configured.": "No webhooks configured.";
|
|
499
502
|
readonly "No widgets yet": "No widgets yet";
|
|
@@ -555,6 +558,7 @@ export declare const billingAdminMessages: {
|
|
|
555
558
|
readonly "Period maximum": "Period maximum";
|
|
556
559
|
readonly "Period: ": "Period: ";
|
|
557
560
|
readonly "Pick a later date.": "Pick a later date.";
|
|
561
|
+
readonly "Pick a customer first": "Pick a customer first";
|
|
558
562
|
readonly "Pick a product": "Pick a product";
|
|
559
563
|
readonly "Pick a product\u2026": "Pick a product…";
|
|
560
564
|
readonly "Pick a rail\u2026": "Pick a rail…";
|
|
@@ -588,7 +592,7 @@ export declare const billingAdminMessages: {
|
|
|
588
592
|
readonly "Client subaccount": "Client subaccount";
|
|
589
593
|
readonly "Pick a stored payment method": "Pick a stored payment method";
|
|
590
594
|
readonly "Pinned to an archived (prior) version": "Pinned to an archived (prior) version";
|
|
591
|
-
readonly "Points future renewals of this subscription at another of the customer
|
|
595
|
+
readonly "Points future renewals of this subscription at another of the customer's stored cards (same rail), or back at their default card for its currency.": "Points future renewals of this subscription at another of the customer's stored cards (same rail), or back at their default card for its currency.";
|
|
592
596
|
readonly Preview: "Preview";
|
|
593
597
|
readonly "Previous page": "Previous page";
|
|
594
598
|
readonly "Previous period": "Previous period";
|
|
@@ -715,13 +719,14 @@ export declare const billingAdminMessages: {
|
|
|
715
719
|
readonly "Terms and billing facts for future usage orders. Billed orders keep their original snapshots. Tax details are recorded; no tax is calculated.": "Terms and billing facts for future usage orders. Billed orders keep their original snapshots. Tax details are recorded; no tax is calculated.";
|
|
716
720
|
readonly "The accounts this merchant takes payments through, one or more per rail.": "The accounts this merchant takes payments through, one or more per rail.";
|
|
717
721
|
readonly "The customer loses its entitlements now. The grant stays on record with your reason.": "The customer loses its entitlements now. The grant stays on record with your reason.";
|
|
718
|
-
readonly "The customer
|
|
722
|
+
readonly "The customer's default card": "The customer's default card";
|
|
719
723
|
readonly "The daily report covers at most ": "The daily report covers at most ";
|
|
720
724
|
readonly "The keys of the products this customer holds now.": "The keys of the products this customer holds now.";
|
|
721
725
|
readonly "The payment provider calculates the final prorated amount.": "The payment provider calculates the final prorated amount.";
|
|
726
|
+
readonly "The payment provider hasn't confirmed this order's payment yet. It settles once the provider shows the result, or when it is resolved with ": "The payment provider hasn't confirmed this order's payment yet. It settles once the provider shows the result, or when it is resolved with ";
|
|
722
727
|
readonly "Their reference": "Their reference";
|
|
723
728
|
readonly "There were no providers to consider.": "There were no providers to consider.";
|
|
724
|
-
readonly "These are the customer
|
|
729
|
+
readonly "These are the customer's invoice profile when the order was billed. Editing the profile affects later orders.": "These are the customer's invoice profile when the order was billed. Editing the profile affects later orders.";
|
|
725
730
|
readonly "These terms cannot be changed later. To charge a different amount, create another price and deactivate this one.": "These terms cannot be changed later. To charge a different amount, create another price and deactivate this one.";
|
|
726
731
|
readonly "This billing page does not exist.": "This billing page does not exist.";
|
|
727
732
|
readonly "This is a price": "This is a price";
|
|
@@ -778,7 +783,7 @@ export declare const billingAdminMessages: {
|
|
|
778
783
|
readonly "Why it was granted": "Why it was granted";
|
|
779
784
|
readonly "Widget menu": "Widget menu";
|
|
780
785
|
readonly "Widget title": "Widget title";
|
|
781
|
-
readonly "You
|
|
786
|
+
readonly "You're all caught up.": "You're all caught up.";
|
|
782
787
|
readonly "Your directory holds no contact for this customer.": "Your directory holds no contact for this customer.";
|
|
783
788
|
readonly "Your role does not have permission to read the merchant catalog.": "Your role does not have permission to read the merchant catalog.";
|
|
784
789
|
readonly "access revocations": "access revocations";
|
|
@@ -44,5 +44,6 @@ export type DonutSlice = PivotSeries & {
|
|
|
44
44
|
};
|
|
45
45
|
export declare function donutSlices(result: MetricsResult, currency?: string): DonutSlice[];
|
|
46
46
|
export declare function chartColor(i: number): string;
|
|
47
|
+
export declare const LOWER_IS_BETTER: Set<string>;
|
|
47
48
|
export declare function deepLinkFor(query: MetricsQuery, viz?: string): string | null;
|
|
48
49
|
export declare function ownRange(range: MetricsRange | undefined): string;
|
|
@@ -19,4 +19,5 @@ export declare function useSuccessor(imp?: PSPImport): PSPImport | undefined;
|
|
|
19
19
|
export declare function Superseded({ by }: {
|
|
20
20
|
by: PSPImport;
|
|
21
21
|
}): React.JSX.Element;
|
|
22
|
+
export declare function pspOption(p: PSP, withRail?: boolean): string;
|
|
22
23
|
export declare function pspKey(byId: Map<string, PSP>, id: string): string;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ScheduledChange } from '../../lib/api/types';
|
|
2
|
+
import { Price, ProductSummary } from '../../../client/generated/wire';
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
interface ChangeSubscriptionDialogProps {
|
|
4
5
|
subscriptionId: string;
|
|
5
6
|
customerId?: string;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
product?: ProductSummary;
|
|
8
|
+
price?: Price;
|
|
8
9
|
quantity: number | null;
|
|
9
|
-
currency?: string;
|
|
10
|
-
collectionPolicy?: string;
|
|
11
10
|
scheduledChange?: ScheduledChange | null;
|
|
12
|
-
rail: Rail;
|
|
13
|
-
status: SubscriptionStatus;
|
|
14
11
|
}
|
|
15
12
|
export declare function ChangeSubscriptionDialog(props: ChangeSubscriptionDialogProps): React.JSX.Element;
|
|
16
13
|
export {};
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Price, Product, ScheduledChange } from '../../../client/generated/wire';
|
|
1
|
+
import { Price, ProductSummary, ScheduledChange, SubscriptionChangeOption as ListedChangeOption } from '../../../client/generated/wire';
|
|
3
2
|
export interface SubscriptionChangeOption {
|
|
4
3
|
direction: "current" | "upgrade" | "downgrade";
|
|
5
4
|
price: Price;
|
|
6
|
-
product:
|
|
5
|
+
product: ProductSummary;
|
|
7
6
|
}
|
|
8
7
|
export declare function subscriptionChangeOptionLabel(option: SubscriptionChangeOption): string;
|
|
9
8
|
export declare function initialSeats(price: Price, current: number | null): number | null;
|
|
10
|
-
export declare function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
collectionPolicy?: string;
|
|
14
|
-
scheduledChange?: Pick<ScheduledChange, "source"> | null;
|
|
15
|
-
}): string | undefined;
|
|
16
|
-
export declare function subscriptionChangeOptions({ currentProduct, currentPrice, currentCurrency, products, prices, scheduledChange, }: {
|
|
17
|
-
currentProduct?: Product;
|
|
18
|
-
currentPrice?: Price;
|
|
19
|
-
currentCurrency?: string;
|
|
20
|
-
products: Product[];
|
|
21
|
-
prices: Price[];
|
|
9
|
+
export declare function subscriptionChangeOptions({ product, price, scheduledChange, targets, }: {
|
|
10
|
+
product?: ProductSummary;
|
|
11
|
+
price?: Price;
|
|
22
12
|
scheduledChange?: Pick<ScheduledChange, "source"> | null;
|
|
13
|
+
targets: ListedChangeOption[];
|
|
23
14
|
}): SubscriptionChangeOption[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as e, E as t, O as n, b as r, c as i, l as a, p as o, r as s, s as c, x as l } from "./admin-utils-
|
|
2
|
-
import { t as u } from "./admin-button-
|
|
3
|
-
import {
|
|
4
|
-
import { t as h } from "./admin-status-badge-
|
|
5
|
-
import { r as g, t as _ } from "./admin-cursor-pager-
|
|
6
|
-
import { a as v, o as y, r as b, t as x } from "./admin-card-
|
|
7
|
-
import { t as S } from "./admin-fact-card-
|
|
1
|
+
import { C as e, E as t, O as n, b as r, c as i, l as a, p as o, r as s, s as c, x as l } from "./admin-utils-wuPUD0uh.js";
|
|
2
|
+
import { t as u } from "./admin-button-DBzTD6By.js";
|
|
3
|
+
import { d, i as f, o as p, s as m } from "./admin-format-BbiTCqUG.js";
|
|
4
|
+
import { t as h } from "./admin-status-badge-IL8ofZ_6.js";
|
|
5
|
+
import { r as g, t as _ } from "./admin-cursor-pager-C-KjCIy9.js";
|
|
6
|
+
import { a as v, o as y, r as b, t as x } from "./admin-card-mZl4-s5d.js";
|
|
7
|
+
import { t as S } from "./admin-fact-card-DKvBnUXB.js";
|
|
8
8
|
import { t as C } from "./admin-tile-grids-CzGpidd9.js";
|
|
9
|
-
import { t as w } from "./admin-data-table-
|
|
9
|
+
import { t as w } from "./admin-data-table-D89AwWz_.js";
|
|
10
10
|
import { useQuery as T } from "@tanstack/react-query";
|
|
11
11
|
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
12
12
|
import { HugeiconsIcon as O } from "@hugeicons/react";
|
|
@@ -20,7 +20,7 @@ var M = [
|
|
|
20
20
|
header: "Attempted",
|
|
21
21
|
cell: ({ row: e }) => /* @__PURE__ */ E("span", {
|
|
22
22
|
className: "text-muted-foreground tabular-nums",
|
|
23
|
-
children:
|
|
23
|
+
children: p(e.original.attempted_at)
|
|
24
24
|
})
|
|
25
25
|
},
|
|
26
26
|
{
|
|
@@ -47,13 +47,13 @@ var M = [
|
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
header: "Card",
|
|
50
|
-
cell: ({ row: e }) =>
|
|
50
|
+
cell: ({ row: e }) => f(e.original.card)
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
header: "Amount",
|
|
54
54
|
cell: ({ row: e }) => e.original.currency ? /* @__PURE__ */ E("span", {
|
|
55
55
|
className: "tabular-nums",
|
|
56
|
-
children:
|
|
56
|
+
children: m(e.original.amount, e.original.currency)
|
|
57
57
|
}) : /* @__PURE__ */ E("span", {
|
|
58
58
|
className: "text-muted-foreground",
|
|
59
59
|
children: "—"
|
|
@@ -193,7 +193,7 @@ function L() {
|
|
|
193
193
|
" · ",
|
|
194
194
|
s.rail,
|
|
195
195
|
" · ",
|
|
196
|
-
|
|
196
|
+
p(s.attempted_at)
|
|
197
197
|
]
|
|
198
198
|
})] })]
|
|
199
199
|
}),
|
|
@@ -206,12 +206,12 @@ function L() {
|
|
|
206
206
|
}),
|
|
207
207
|
/* @__PURE__ */ E(S, {
|
|
208
208
|
label: e("Amount"),
|
|
209
|
-
children: s.currency ?
|
|
209
|
+
children: s.currency ? m(s.amount, s.currency) : "—"
|
|
210
210
|
}),
|
|
211
211
|
/* @__PURE__ */ D(S, {
|
|
212
212
|
label: e("Card"),
|
|
213
213
|
children: [
|
|
214
|
-
|
|
214
|
+
f(s.card),
|
|
215
215
|
" (",
|
|
216
216
|
s.card_entry,
|
|
217
217
|
")"
|
|
@@ -221,35 +221,35 @@ function L() {
|
|
|
221
221
|
label: e("Customer"),
|
|
222
222
|
children: /* @__PURE__ */ E(I, {
|
|
223
223
|
to: `/customers/${s.customer_id}`,
|
|
224
|
-
children:
|
|
224
|
+
children: d(s.customer_id, 16)
|
|
225
225
|
})
|
|
226
226
|
}),
|
|
227
227
|
/* @__PURE__ */ E(S, {
|
|
228
228
|
label: e("Subscription"),
|
|
229
229
|
children: s.subscription_id ? /* @__PURE__ */ E(I, {
|
|
230
230
|
to: `/subscriptions/${s.subscription_id}`,
|
|
231
|
-
children:
|
|
231
|
+
children: d(s.subscription_id, 16)
|
|
232
232
|
}) : "—"
|
|
233
233
|
}),
|
|
234
234
|
/* @__PURE__ */ E(S, {
|
|
235
235
|
label: e("Renewal"),
|
|
236
236
|
children: s.cycle_id ? /* @__PURE__ */ E(I, {
|
|
237
237
|
to: `/payments/cycles/${s.cycle_id}`,
|
|
238
|
-
children:
|
|
238
|
+
children: d(s.cycle_id, 16)
|
|
239
239
|
}) : "—"
|
|
240
240
|
}),
|
|
241
241
|
/* @__PURE__ */ E(S, {
|
|
242
242
|
label: e("Payment"),
|
|
243
243
|
children: s.payment_id ? /* @__PURE__ */ E(I, {
|
|
244
244
|
to: `/payments/${s.payment_id}`,
|
|
245
|
-
children:
|
|
245
|
+
children: d(s.payment_id, 16)
|
|
246
246
|
}) : "—"
|
|
247
247
|
}),
|
|
248
248
|
/* @__PURE__ */ E(S, {
|
|
249
249
|
label: e("Paying"),
|
|
250
250
|
children: s.order_id ? /* @__PURE__ */ E(I, {
|
|
251
251
|
to: `/orders/${s.order_id}`,
|
|
252
|
-
children:
|
|
252
|
+
children: d(s.order_id, 16)
|
|
253
253
|
}) : "—"
|
|
254
254
|
})
|
|
255
255
|
]
|
|
@@ -278,7 +278,7 @@ var R = [
|
|
|
278
278
|
header: "Due",
|
|
279
279
|
cell: ({ row: e }) => /* @__PURE__ */ E("span", {
|
|
280
280
|
className: "text-muted-foreground tabular-nums",
|
|
281
|
-
children:
|
|
281
|
+
children: p(e.original.due_at)
|
|
282
282
|
})
|
|
283
283
|
},
|
|
284
284
|
{
|
|
@@ -301,7 +301,7 @@ var R = [
|
|
|
301
301
|
header: "Amount",
|
|
302
302
|
cell: ({ row: e }) => /* @__PURE__ */ E("span", {
|
|
303
303
|
className: "tabular-nums",
|
|
304
|
-
children:
|
|
304
|
+
children: m(e.original.amount, e.original.currency)
|
|
305
305
|
})
|
|
306
306
|
},
|
|
307
307
|
{
|
|
@@ -359,7 +359,7 @@ function B() {
|
|
|
359
359
|
" · ",
|
|
360
360
|
l.rail,
|
|
361
361
|
/* @__PURE__ */ E(t, { id: " · due " }),
|
|
362
|
-
|
|
362
|
+
p(l.due_at)
|
|
363
363
|
]
|
|
364
364
|
})] })]
|
|
365
365
|
}),
|
|
@@ -368,7 +368,7 @@ function B() {
|
|
|
368
368
|
children: [
|
|
369
369
|
/* @__PURE__ */ E(S, {
|
|
370
370
|
label: e("Amount"),
|
|
371
|
-
children:
|
|
371
|
+
children: m(l.amount, l.currency)
|
|
372
372
|
}),
|
|
373
373
|
/* @__PURE__ */ E(S, {
|
|
374
374
|
label: e("First outcome"),
|
|
@@ -376,24 +376,24 @@ function B() {
|
|
|
376
376
|
}),
|
|
377
377
|
/* @__PURE__ */ E(S, {
|
|
378
378
|
label: e("Collected"),
|
|
379
|
-
children: l.collected_at ? `${
|
|
379
|
+
children: l.collected_at ? `${p(l.collected_at)}${l.recovered_by ? ` · ${l.recovered_by}` : ""}` : "—"
|
|
380
380
|
}),
|
|
381
381
|
/* @__PURE__ */ E(S, {
|
|
382
382
|
label: l.outcome === "open" ? "Closes" : "Closed",
|
|
383
|
-
children:
|
|
383
|
+
children: p(l.closes_at)
|
|
384
384
|
}),
|
|
385
385
|
/* @__PURE__ */ E(S, {
|
|
386
386
|
label: e("Subscription"),
|
|
387
387
|
children: /* @__PURE__ */ E(I, {
|
|
388
388
|
to: `/subscriptions/${l.subscription_id}`,
|
|
389
|
-
children:
|
|
389
|
+
children: d(l.subscription_id, 16)
|
|
390
390
|
})
|
|
391
391
|
}),
|
|
392
392
|
/* @__PURE__ */ E(S, {
|
|
393
393
|
label: e("Customer"),
|
|
394
394
|
children: /* @__PURE__ */ E(I, {
|
|
395
395
|
to: `/customers/${l.customer_id}`,
|
|
396
|
-
children:
|
|
396
|
+
children: d(l.customer_id, 16)
|
|
397
397
|
})
|
|
398
398
|
})
|
|
399
399
|
]
|
|
@@ -416,4 +416,4 @@ function B() {
|
|
|
416
416
|
//#endregion
|
|
417
417
|
export { L as AttemptDetailPage, P as AttemptsPage, B as CycleDetailPage, z as CyclesPage };
|
|
418
418
|
|
|
419
|
-
//# sourceMappingURL=admin-attempts-
|
|
419
|
+
//# sourceMappingURL=admin-attempts-CP5CWyNR.js.map
|