@openrails/billing-ui 0.268.3 → 0.270.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 +164 -62
- package/dist/admin/lib/api/endpoints.d.ts +3 -7
- package/dist/admin/lib/api/import-endpoints.d.ts +44 -0
- package/dist/admin/lib/api/index.d.ts +17 -7
- package/dist/admin/lib/api/types.d.ts +0 -29
- package/dist/admin/lib/import-queries.d.ts +66 -0
- package/dist/admin/lib/mutations.d.ts +1 -5
- package/dist/admin/lib/queries.d.ts +6 -20
- package/dist/admin/messages.d.ts +176 -7
- package/dist/admin/pages/catalog/index.d.ts +0 -1
- package/dist/admin/pages/imports/detail.d.ts +2 -0
- package/dist/admin/pages/imports/index.d.ts +2 -0
- package/dist/admin/pages/imports/mapping-csv.d.ts +10 -0
- package/dist/admin/pages/imports/progress.d.ts +21 -0
- package/dist/admin/pages/imports/records.d.ts +2 -0
- package/dist/admin/pages/imports/shared.d.ts +22 -0
- package/dist/admin/pages/parked/index.d.ts +2 -0
- package/dist/admin/pages/proposals/grouping.d.ts +13 -0
- package/dist/admin/pages/proposals/index.d.ts +2 -0
- package/dist/admin/pages/provider-prices/index.d.ts +2 -0
- package/dist/admin/pages/provider-prices/map-dialog.d.ts +11 -0
- package/dist/admin/routes.d.ts +1 -1
- package/dist/{admin-attempts-BLeeKABa.js → admin-attempts-DyDDt-qw.js} +81 -82
- package/dist/admin-attempts-DyDDt-qw.js.map +1 -0
- package/dist/{admin-auth-DWVWxDup.js → admin-auth-1aZIgXiS.js} +2 -2
- package/dist/{admin-auth-DWVWxDup.js.map → admin-auth-1aZIgXiS.js.map} +1 -1
- package/dist/{admin-badge-CrEqD9Ew.js → admin-badge-pgG6D9-a.js} +2 -2
- package/dist/{admin-badge-CrEqD9Ew.js.map → admin-badge-pgG6D9-a.js.map} +1 -1
- package/dist/{admin-button-a7bDFgp0.js → admin-button-CrcYk5r0.js} +2 -2
- package/dist/{admin-button-a7bDFgp0.js.map → admin-button-CrcYk5r0.js.map} +1 -1
- package/dist/{admin-capabilities-QYUuJXvG.js → admin-capabilities-BDcZeHL_.js} +2 -2
- package/dist/{admin-capabilities-QYUuJXvG.js.map → admin-capabilities-BDcZeHL_.js.map} +1 -1
- package/dist/{admin-card-D1tz8Lbh.js → admin-card-DvTMc5Se.js} +2 -2
- package/dist/{admin-card-D1tz8Lbh.js.map → admin-card-DvTMc5Se.js.map} +1 -1
- package/dist/{admin-catalog-ggiDgWsR.js → admin-catalog-BlF5mnu4.js} +285 -382
- package/dist/admin-catalog-BlF5mnu4.js.map +1 -0
- package/dist/{admin-dom-VkcwevWr.js → admin-cursor-pager-CIb3Jw2F.js} +20 -25
- package/dist/admin-cursor-pager-CIb3Jw2F.js.map +1 -0
- package/dist/{admin-customers-BVMg-gUv.js → admin-customers-EpfoWDh-.js} +13 -13
- package/dist/{admin-customers-BVMg-gUv.js.map → admin-customers-EpfoWDh-.js.map} +1 -1
- package/dist/{admin-dashboard-Cc13i8i9.js → admin-dashboard-CJE63yz4.js} +46 -46
- package/dist/{admin-dashboard-Cc13i8i9.js.map → admin-dashboard-CJE63yz4.js.map} +1 -1
- package/dist/{admin-data-table-BL84xKKF.js → admin-data-table-hvFcJepL.js} +16 -16
- package/dist/{admin-data-table-BL84xKKF.js.map → admin-data-table-hvFcJepL.js.map} +1 -1
- package/dist/{admin-detail-CaEwBdX9.js → admin-detail-BRP6pL7t.js} +51 -51
- package/dist/{admin-detail-CaEwBdX9.js.map → admin-detail-BRP6pL7t.js.map} +1 -1
- package/dist/{admin-detail-9YAep3ts.js → admin-detail-CRzFb_pa.js} +232 -232
- package/dist/{admin-detail-9YAep3ts.js.map → admin-detail-CRzFb_pa.js.map} +1 -1
- package/dist/admin-detail-Ceod8AXy.js +299 -0
- package/dist/admin-detail-Ceod8AXy.js.map +1 -0
- package/dist/{admin-detail-C8t5jBps.js → admin-detail-QLxU8r-5.js} +62 -62
- package/dist/{admin-detail-C8t5jBps.js.map → admin-detail-QLxU8r-5.js.map} +1 -1
- package/dist/admin-detail-pPC8Q9l-.js +710 -0
- package/dist/{admin-detail-D2zcz_Xm.js.map → admin-detail-pPC8Q9l-.js.map} +1 -1
- package/dist/{admin-dialog-CiAw5vx-.js → admin-dialog-BSRf9Zre.js} +24 -24
- package/dist/{admin-dialog-CiAw5vx-.js.map → admin-dialog-BSRf9Zre.js.map} +1 -1
- package/dist/admin-dom-C7Y7A6Wa.js +8 -0
- package/dist/admin-dom-C7Y7A6Wa.js.map +1 -0
- package/dist/{admin-dropdown-menu-CYJbmqK2.js → admin-dropdown-menu-D0E5rwmn.js} +2 -2
- package/dist/{admin-dropdown-menu-CYJbmqK2.js.map → admin-dropdown-menu-D0E5rwmn.js.map} +1 -1
- package/dist/{admin-fact-card-BHTpDlaX.js → admin-fact-card-BPSVhS15.js} +2 -2
- package/dist/{admin-fact-card-BHTpDlaX.js.map → admin-fact-card-BPSVhS15.js.map} +1 -1
- package/dist/{admin-health-BUnjbvYR.js → admin-health-D0L5Kig7.js} +84 -84
- package/dist/{admin-health-BUnjbvYR.js.map → admin-health-D0L5Kig7.js.map} +1 -1
- package/dist/admin-imports-TCOljTgw.js +269 -0
- package/dist/admin-imports-TCOljTgw.js.map +1 -0
- package/dist/{admin-input-C-S_RGGo.js → admin-input-DJAK9nmk.js} +2 -2
- package/dist/{admin-input-C-S_RGGo.js.map → admin-input-DJAK9nmk.js.map} +1 -1
- package/dist/{admin-label-DPVYDdSO.js → admin-label-aviN9Gng.js} +2 -2
- package/dist/{admin-label-DPVYDdSO.js.map → admin-label-aviN9Gng.js.map} +1 -1
- package/dist/{admin-linked-table-row-D-gbTT7a.js → admin-linked-table-row-BGr7JXeM.js} +6 -6
- package/dist/{admin-linked-table-row-D-gbTT7a.js.map → admin-linked-table-row-BGr7JXeM.js.map} +1 -1
- package/dist/admin-map-dialog-DpGaIq52.js +135 -0
- package/dist/admin-map-dialog-DpGaIq52.js.map +1 -0
- package/dist/admin-mapping-csv-FtkyTBmk.js +56 -0
- package/dist/admin-mapping-csv-FtkyTBmk.js.map +1 -0
- package/dist/{admin-metering-BjbL0jjT.js → admin-metering-D-e-37Jn.js} +285 -285
- package/dist/{admin-metering-BjbL0jjT.js.map → admin-metering-D-e-37Jn.js.map} +1 -1
- package/dist/admin-ops-CQP4TzWM.js +235 -0
- package/dist/admin-ops-CQP4TzWM.js.map +1 -0
- package/dist/{admin-orders-BVW9-Fs9.js → admin-orders-BJ7W5S8P.js} +32 -32
- package/dist/{admin-orders-BVW9-Fs9.js.map → admin-orders-BJ7W5S8P.js.map} +1 -1
- package/dist/admin-parked-7HL8mOjw.js +193 -0
- package/dist/admin-parked-7HL8mOjw.js.map +1 -0
- package/dist/{admin-payments-C5MsFFmm.js → admin-payments-CzkzqYA1.js} +17 -17
- package/dist/{admin-payments-C5MsFFmm.js.map → admin-payments-CzkzqYA1.js.map} +1 -1
- package/dist/{admin-price-detail-D517JYHB.js → admin-price-detail-CSI5oKdb.js} +74 -74
- package/dist/{admin-price-detail-D517JYHB.js.map → admin-price-detail-CSI5oKdb.js.map} +1 -1
- package/dist/{admin-price-wizard-bj36o3ux.js → admin-price-wizard-CBEcNGvP.js} +38 -38
- package/dist/{admin-price-wizard-bj36o3ux.js.map → admin-price-wizard-CBEcNGvP.js.map} +1 -1
- package/dist/admin-proposals-dtgijWKz.js +375 -0
- package/dist/admin-proposals-dtgijWKz.js.map +1 -0
- package/dist/admin-provider-prices-ChuponcZ.js +246 -0
- package/dist/admin-provider-prices-ChuponcZ.js.map +1 -0
- package/dist/{admin-range-picker-D2aFF8IV.js → admin-range-picker-De36L-AP.js} +12 -12
- package/dist/{admin-range-picker-D2aFF8IV.js.map → admin-range-picker-De36L-AP.js.map} +1 -1
- package/dist/admin-records-CUHUOXAU.js +391 -0
- package/dist/admin-records-CUHUOXAU.js.map +1 -0
- package/dist/{admin-reports-D-ob04d4.js → admin-reports-BFGS_PWf.js} +45 -45
- package/dist/{admin-reports-D-ob04d4.js.map → admin-reports-BFGS_PWf.js.map} +1 -1
- package/dist/{admin-select-C8O7nx72.js → admin-select-BUcEU5Rg.js} +2 -2
- package/dist/{admin-select-C8O7nx72.js.map → admin-select-BUcEU5Rg.js.map} +1 -1
- package/dist/{admin-settings-Bs6cLcqi.js → admin-settings-DYC-c7mJ.js} +296 -296
- package/dist/{admin-settings-Bs6cLcqi.js.map → admin-settings-DYC-c7mJ.js.map} +1 -1
- package/dist/admin-shared-CzG8Pan3.js +222 -0
- package/dist/admin-shared-CzG8Pan3.js.map +1 -0
- package/dist/{admin-skeleton-wfocg2PJ.js → admin-skeleton-B0yzYY_X.js} +2 -2
- package/dist/{admin-skeleton-wfocg2PJ.js.map → admin-skeleton-B0yzYY_X.js.map} +1 -1
- package/dist/{admin-status-badge-D_gDMrht.js → admin-status-badge-0-K37EfN.js} +7 -2
- package/dist/admin-status-badge-0-K37EfN.js.map +1 -0
- package/dist/{admin-subscriptions-DYR1RGMO.js → admin-subscriptions-CvW-YFs0.js} +74 -74
- package/dist/{admin-subscriptions-DYR1RGMO.js.map → admin-subscriptions-CvW-YFs0.js.map} +1 -1
- package/dist/{admin-switch-F5D0AYjT.js → admin-switch-DDorugaw.js} +2 -2
- package/dist/{admin-switch-F5D0AYjT.js.map → admin-switch-DDorugaw.js.map} +1 -1
- package/dist/{admin-table-nUij5fLc.js → admin-table-BU6Tie69.js} +2 -2
- package/dist/{admin-table-nUij5fLc.js.map → admin-table-BU6Tie69.js.map} +1 -1
- package/dist/{admin-tabs-C3myjKdr.js → admin-tabs-D5lqdVcC.js} +2 -2
- package/dist/{admin-tabs-C3myjKdr.js.map → admin-tabs-D5lqdVcC.js.map} +1 -1
- package/dist/{admin-textarea-v-L-PXIc.js → admin-textarea-Dc6lnEub.js} +2 -2
- package/dist/{admin-textarea-v-L-PXIc.js.map → admin-textarea-Dc6lnEub.js.map} +1 -1
- package/dist/{admin-typed-confirm-dialog-BLgpuikW.js → admin-typed-confirm-dialog-Bk6XxmPb.js} +6 -6
- package/dist/{admin-typed-confirm-dialog-BLgpuikW.js.map → admin-typed-confirm-dialog-Bk6XxmPb.js.map} +1 -1
- package/dist/{admin-utils-6yE4YIVI.js → admin-utils-B9eEBNsR.js} +398 -146
- package/dist/admin-utils-B9eEBNsR.js.map +1 -0
- package/dist/{admin-widget-viz-BiEfckd4.js → admin-widget-viz-8aukE3v_.js} +34 -34
- package/dist/{admin-widget-viz-BiEfckd4.js.map → admin-widget-viz-8aukE3v_.js.map} +1 -1
- package/dist/admin.css +1 -1
- package/dist/admin.js +489 -265
- package/dist/admin.js.map +1 -1
- package/dist/client/generated/error-codes.d.ts +1 -1
- package/dist/client/generated/routes.d.ts +94 -22
- package/dist/client/generated/wire.d.ts +90 -22
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/dist/admin-attempts-BLeeKABa.js.map +0 -1
- package/dist/admin-catalog-ggiDgWsR.js.map +0 -1
- package/dist/admin-detail-D2zcz_Xm.js +0 -710
- package/dist/admin-dom-VkcwevWr.js.map +0 -1
- package/dist/admin-ops-DT8epiXg.js +0 -217
- package/dist/admin-ops-DT8epiXg.js.map +0 -1
- package/dist/admin-status-badge-D_gDMrht.js.map +0 -1
- package/dist/admin-utils-6yE4YIVI.js.map +0 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AdminClient } from './api/client';
|
|
2
|
+
import { AdminAPI } from './api';
|
|
3
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
4
|
+
import { ParkedFilters, ProposalFilters, ProviderCatalogFilters, PSPImportFilters, PSPImportRecordFilters } from './api/import-endpoints';
|
|
5
|
+
import { CreatePSPImportParams, CreateProviderPriceParams, LinkPSPImportParams, PSPImport, PSPImportMapping } from '../../client/generated/wire';
|
|
6
|
+
export declare const importBusy: (status?: PSPImport["status"]) => status is "applying" | "pulling";
|
|
7
|
+
export declare function createImportQueries(client: AdminClient, api: AdminAPI): {
|
|
8
|
+
importKeys: {
|
|
9
|
+
imports: () => readonly [...string[], "psp-imports"];
|
|
10
|
+
import: (id: string) => readonly [...string[], "psp-imports", string];
|
|
11
|
+
providerCatalog: () => readonly [...string[], "provider-catalog"];
|
|
12
|
+
parked: () => readonly [...string[], "parked"];
|
|
13
|
+
proposals: () => readonly [...string[], "proposals"];
|
|
14
|
+
catalog: () => readonly [...string[], "catalog"];
|
|
15
|
+
ops: () => readonly [...string[], "ops"];
|
|
16
|
+
};
|
|
17
|
+
importQueries: {
|
|
18
|
+
list: (filters: PSPImportFilters, limit: number, cursor?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').ListPage<PSPImport>, Error, import('../../client/generated/wire').ListPage<PSPImport>, (string | number | PSPImportFilters | undefined)[]>, "queryFn"> & {
|
|
19
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').ListPage<PSPImport>, (string | number | PSPImportFilters | undefined)[], never> | undefined;
|
|
20
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | number | PSPImportFilters | undefined)[], import('../../client/generated/wire').ListPage<PSPImport>, Error>;
|
|
21
|
+
latest: (psp: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<PSPImport, Error, PSPImport, string[]>, "queryFn"> & {
|
|
22
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<PSPImport, string[], never> | undefined;
|
|
23
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], PSPImport, Error>;
|
|
24
|
+
detail: (id: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<PSPImport, Error, PSPImport, readonly [...string[], "psp-imports", string]>, "queryFn"> & {
|
|
25
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<PSPImport, readonly [...string[], "psp-imports", string], never> | undefined;
|
|
26
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "psp-imports", string], PSPImport, Error>;
|
|
27
|
+
records: (id: string, filters: PSPImportRecordFilters, limit: number, cursor?: string, version?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').PSPImportRecord>, Error, import('../../client/generated/wire').ListPage<import('../../client/generated/wire').PSPImportRecord>, (string | number | PSPImportRecordFilters | undefined)[]>, "queryFn"> & {
|
|
28
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').PSPImportRecord>, (string | number | PSPImportRecordFilters | undefined)[], never> | undefined;
|
|
29
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | number | PSPImportRecordFilters | undefined)[], import('../../client/generated/wire').ListPage<import('../../client/generated/wire').PSPImportRecord>, Error>;
|
|
30
|
+
providerCatalog: (filters: ProviderCatalogFilters, limit: number, cursor?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').ProviderCatalogObject>, Error, import('../../client/generated/wire').ListPage<import('../../client/generated/wire').ProviderCatalogObject>, (string | number | ProviderCatalogFilters | undefined)[]>, "queryFn"> & {
|
|
31
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').ProviderCatalogObject>, (string | number | ProviderCatalogFilters | undefined)[], never> | undefined;
|
|
32
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | number | ProviderCatalogFilters | undefined)[], import('../../client/generated/wire').ListPage<import('../../client/generated/wire').ProviderCatalogObject>, Error>;
|
|
33
|
+
providerPrice: (psp: string, ref: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').ProviderCatalogObject | null, Error, import('../../client/generated/wire').ProviderCatalogObject | null, string[]>, "queryFn"> & {
|
|
34
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').ProviderCatalogObject | null, string[], never> | undefined;
|
|
35
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], import('../../client/generated/wire').ProviderCatalogObject | null, Error>;
|
|
36
|
+
parked: (filters: ParkedFilters, limit: number, cursor?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').ParkedSubscription>, Error, import('../../client/generated/wire').ListPage<import('../../client/generated/wire').ParkedSubscription>, (string | number | ParkedFilters | undefined)[]>, "queryFn"> & {
|
|
37
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').ParkedSubscription>, (string | number | ParkedFilters | undefined)[], never> | undefined;
|
|
38
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | number | ParkedFilters | undefined)[], import('../../client/generated/wire').ListPage<import('../../client/generated/wire').ParkedSubscription>, Error>;
|
|
39
|
+
proposals: (filters: ProposalFilters) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').Finding[], Error, import('../../client/generated/wire').Finding[], (string | ProposalFilters)[]>, "queryFn"> & {
|
|
40
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').Finding[], (string | ProposalFilters)[], never> | undefined;
|
|
41
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | ProposalFilters)[], import('../../client/generated/wire').Finding[], Error>;
|
|
42
|
+
customers: (ids: string[]) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Customer>, Error, import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Customer>, (string | string[])[]>, "queryFn"> & {
|
|
43
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Customer>, (string | string[])[], never> | undefined;
|
|
44
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | string[])[], import('../../client/generated/wire').ListPage<import('../../client/generated/wire').Customer>, Error>;
|
|
45
|
+
};
|
|
46
|
+
importMutations: {
|
|
47
|
+
create: (queryClient: QueryClient) => Omit<import('@tanstack/react-query').UseMutationOptions<PSPImport, Error, CreatePSPImportParams, unknown>, "mutationKey">;
|
|
48
|
+
link: (queryClient: QueryClient) => Omit<import('@tanstack/react-query').UseMutationOptions<PSPImport, Error, {
|
|
49
|
+
id: string;
|
|
50
|
+
params: LinkPSPImportParams;
|
|
51
|
+
}, unknown>, "mutationKey">;
|
|
52
|
+
apply: (queryClient: QueryClient) => Omit<import('@tanstack/react-query').UseMutationOptions<PSPImport, Error, string, unknown>, "mutationKey">;
|
|
53
|
+
setMappings: () => Omit<import('@tanstack/react-query').UseMutationOptions<import('../../client/generated/wire').PSPImportMappingsResult, Error, PSPImportMapping[], unknown>, "mutationKey">;
|
|
54
|
+
mapPrice: (queryClient: QueryClient) => Omit<import('@tanstack/react-query').UseMutationOptions<import('../../client/generated/wire').Price, Error, CreateProviderPriceParams, unknown>, "mutationKey">;
|
|
55
|
+
decide: (queryClient: QueryClient) => Omit<import('@tanstack/react-query').UseMutationOptions<import('../../client/generated/wire').ProposalResults, Error, {
|
|
56
|
+
action: "approve" | "dismiss";
|
|
57
|
+
ids: string[];
|
|
58
|
+
notes: string;
|
|
59
|
+
key: string;
|
|
60
|
+
}, unknown>, "mutationKey">;
|
|
61
|
+
dismissPrice: (queryClient: QueryClient) => Omit<import('@tanstack/react-query').UseMutationOptions<import('../../client/generated/wire').FindingResolution, Error, {
|
|
62
|
+
finding: string;
|
|
63
|
+
notes: string;
|
|
64
|
+
}, unknown>, "mutationKey">;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -12,10 +12,7 @@ export declare function createMutations(client: AdminClient, api: AdminAPI, quer
|
|
|
12
12
|
exportCustomers: () => import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<Customer[], Error, string, unknown>, "mutationKey">;
|
|
13
13
|
exportSubscriptions: () => import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<import('./api/types').RawSubscription[], Error, SubscriptionFilters, unknown>, "mutationKey">;
|
|
14
14
|
exportPayments: () => import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<import('../../client/generated/wire').Payment[], Error, PaymentFilters, unknown>, "mutationKey">;
|
|
15
|
-
resolveFinding: (queryClient: QueryClient) => import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<{
|
|
16
|
-
finding: import('./api/types').Finding;
|
|
17
|
-
execution?: Record<string, unknown>;
|
|
18
|
-
}, Error, {
|
|
15
|
+
resolveFinding: (queryClient: QueryClient) => import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<import('../../client/generated/wire').FindingResolution, Error, {
|
|
19
16
|
id: string;
|
|
20
17
|
outcome: "approve" | "ignore";
|
|
21
18
|
notes: string;
|
|
@@ -57,7 +54,6 @@ export declare function createMutations(client: AdminClient, api: AdminAPI, quer
|
|
|
57
54
|
document: string;
|
|
58
55
|
force: boolean;
|
|
59
56
|
}, unknown>, "mutationKey">;
|
|
60
|
-
refreshPSPs: (queryClient: QueryClient) => import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<import('../../client/generated/wire').PSPRefresh, Error, void, unknown>, "mutationKey">;
|
|
61
57
|
createProduct: (queryClient: QueryClient) => import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<import('../../client/generated/wire').Product, Error, ProductRequest, unknown>, "mutationKey">;
|
|
62
58
|
updateProduct: (queryClient: QueryClient) => import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<import('../../client/generated/wire').Product, unknown, {
|
|
63
59
|
id: string;
|
|
@@ -17,7 +17,6 @@ declare const buildQueryKeys: (root: () => MerchantRoot) => {
|
|
|
17
17
|
attempts: () => readonly [...string[], "payment-attempts"];
|
|
18
18
|
cycles: () => readonly [...string[], "renewals"];
|
|
19
19
|
catalog: () => readonly [...string[], "catalog"];
|
|
20
|
-
catalogDrift: () => readonly [...string[], "catalog", "drift"];
|
|
21
20
|
usageMeters: () => readonly [...string[], "catalog", "meters"];
|
|
22
21
|
usageMeter: (key: string) => readonly [...string[], "catalog", "meters", string];
|
|
23
22
|
settings: () => readonly [...string[], "settings"];
|
|
@@ -39,7 +38,6 @@ export declare function createQueries(client: AdminClient, api: AdminAPI): {
|
|
|
39
38
|
attempts: () => readonly [...string[], "payment-attempts"];
|
|
40
39
|
cycles: () => readonly [...string[], "renewals"];
|
|
41
40
|
catalog: () => readonly [...string[], "catalog"];
|
|
42
|
-
catalogDrift: () => readonly [...string[], "catalog", "drift"];
|
|
43
41
|
usageMeters: () => readonly [...string[], "catalog", "meters"];
|
|
44
42
|
usageMeter: (key: string) => readonly [...string[], "catalog", "meters", string];
|
|
45
43
|
settings: () => readonly [...string[], "settings"];
|
|
@@ -289,18 +287,6 @@ export declare function createQueries(client: AdminClient, api: AdminAPI): {
|
|
|
289
287
|
priceKey: string | undefined;
|
|
290
288
|
limit: number;
|
|
291
289
|
})[], import('./api/client').CursorEnvelope<import('../../client/generated/wire').PriceMigration>, Error>;
|
|
292
|
-
catalogDrift: (enabled?: boolean, limit?: number, cursor?: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<ListPage<import('./api/types').Finding>, Error, ListPage<import('./api/types').Finding>, (string | {
|
|
293
|
-
limit: number;
|
|
294
|
-
cursor: string | undefined;
|
|
295
|
-
})[]>, "queryFn"> & {
|
|
296
|
-
queryFn?: import('@tanstack/react-query').QueryFunction<ListPage<import('./api/types').Finding>, (string | {
|
|
297
|
-
limit: number;
|
|
298
|
-
cursor: string | undefined;
|
|
299
|
-
})[], never> | undefined;
|
|
300
|
-
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | {
|
|
301
|
-
limit: number;
|
|
302
|
-
cursor: string | undefined;
|
|
303
|
-
})[], ListPage<import('./api/types').Finding>, Error>;
|
|
304
290
|
pspRouting: (priceId: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('./api/types').PSPRoutingPreview, Error, import('./api/types').PSPRoutingPreview, string[]>, "queryFn"> & {
|
|
305
291
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('./api/types').PSPRoutingPreview, string[], never> | undefined;
|
|
306
292
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], import('./api/types').PSPRoutingPreview, Error>;
|
|
@@ -322,15 +308,15 @@ export declare function createQueries(client: AdminClient, api: AdminAPI): {
|
|
|
322
308
|
usageMeter: (key: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../client/generated/wire').Meter, Error, import('../../client/generated/wire').Meter, readonly [...string[], "catalog", "meters", string]>, "queryFn"> & {
|
|
323
309
|
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../client/generated/wire').Meter, readonly [...string[], "catalog", "meters", string], never> | undefined;
|
|
324
310
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "catalog", "meters", string], import('../../client/generated/wire').Meter, Error>;
|
|
325
|
-
findings: (enabled?: boolean) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<ListPage<import('
|
|
311
|
+
findings: (enabled?: boolean) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<ListPage<import('../../client/generated/wire').Finding>, Error, ListPage<import('../../client/generated/wire').Finding>, (string | {
|
|
326
312
|
limit: number;
|
|
327
313
|
})[]>, "queryFn"> & {
|
|
328
|
-
queryFn?: import('@tanstack/react-query').QueryFunction<ListPage<import('
|
|
314
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<ListPage<import('../../client/generated/wire').Finding>, (string | {
|
|
329
315
|
limit: number;
|
|
330
316
|
})[], never> | undefined;
|
|
331
317
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | {
|
|
332
318
|
limit: number;
|
|
333
|
-
})[], ListPage<import('
|
|
319
|
+
})[], ListPage<import('../../client/generated/wire').Finding>, Error>;
|
|
334
320
|
findingSummary: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<FindingsGauges, Error, FindingsGauges, string[]>, "queryFn"> & {
|
|
335
321
|
queryFn?: import('@tanstack/react-query').QueryFunction<FindingsGauges, string[], never> | undefined;
|
|
336
322
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], FindingsGauges, Error>;
|
|
@@ -358,9 +344,9 @@ export declare function createQueries(client: AdminClient, api: AdminAPI): {
|
|
|
358
344
|
widgetMetrics: (query?: MetricsQuery) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<MetricsResult, Error, MetricsResult, (string | MetricsQuery)[]>, "queryFn"> & {
|
|
359
345
|
queryFn?: import('@tanstack/react-query').QueryFunction<MetricsResult, (string | MetricsQuery)[], never> | undefined;
|
|
360
346
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<(string | MetricsQuery)[], MetricsResult, Error>;
|
|
361
|
-
notifications: (enabled: boolean) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<ListPage<import('
|
|
362
|
-
queryFn?: import('@tanstack/react-query').QueryFunction<ListPage<import('
|
|
363
|
-
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "notifications"], ListPage<import('
|
|
347
|
+
notifications: (enabled: boolean) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<ListPage<import('../../client/generated/wire').Finding>, Error, ListPage<import('../../client/generated/wire').Finding>, readonly [...string[], "notifications"]>, "queryFn"> & {
|
|
348
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<ListPage<import('../../client/generated/wire').Finding>, readonly [...string[], "notifications"], never> | undefined;
|
|
349
|
+
} & import('@tanstack/react-query').QueryKeyWithDataTag<readonly [...string[], "notifications"], ListPage<import('../../client/generated/wire').Finding>, Error>;
|
|
364
350
|
unreadNotifications: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
|
|
365
351
|
queryFn?: import('@tanstack/react-query').QueryFunction<number, string[], never> | undefined;
|
|
366
352
|
} & import('@tanstack/react-query').QueryKeyWithDataTag<string[], number, Error>;
|
package/dist/admin/messages.d.ts
CHANGED
|
@@ -14,24 +14,39 @@ export declare const billingAdminMessages: {
|
|
|
14
14
|
readonly " Product access": " Product access";
|
|
15
15
|
readonly " Refund": " Refund";
|
|
16
16
|
readonly " affected \u00B7 requires human confirm": " affected · requires human confirm";
|
|
17
|
+
readonly " approved": " approved";
|
|
17
18
|
readonly " balance": " balance";
|
|
19
|
+
readonly " blocked and ": " blocked and ";
|
|
20
|
+
readonly " corrections Apply approves": " corrections Apply approves";
|
|
18
21
|
readonly " credentials \u00B7 ": " credentials · ";
|
|
19
22
|
readonly " days away. Card networks require that much notice before a price goes up. You can change the number in Settings.": " days away. Card networks require that much notice before a price goes up. You can change the number in Settings.";
|
|
20
23
|
readonly " days. Pick a shorter range.": " days. Pick a shorter range.";
|
|
24
|
+
readonly " dismissed": " dismissed";
|
|
21
25
|
readonly " is not a supported currency.": " is not a supported currency.";
|
|
22
26
|
readonly " left alone because another change was already scheduled for them.": " left alone because another change was already scheduled for them.";
|
|
27
|
+
readonly " linked; ": " linked; ";
|
|
23
28
|
readonly " more": " more";
|
|
24
29
|
readonly " of": " of";
|
|
30
|
+
readonly " of ": " of ";
|
|
25
31
|
readonly " of 3:": " of 3:";
|
|
32
|
+
readonly " of them end access, move money or write to a provider.": " of them end access, move money or write to a provider.";
|
|
26
33
|
readonly " on ": " on ";
|
|
34
|
+
readonly " open proposals": " open proposals";
|
|
27
35
|
readonly " rail. Remaining refundable: ": " rail. Remaining refundable: ";
|
|
36
|
+
readonly " requests.": " requests.";
|
|
28
37
|
readonly " seats.": " seats.";
|
|
29
38
|
readonly " subscription": " subscription";
|
|
39
|
+
readonly " superseded": " superseded";
|
|
30
40
|
readonly " to": " to";
|
|
31
41
|
readonly " to ": " to ";
|
|
32
42
|
readonly " to confirm": " to confirm";
|
|
43
|
+
readonly " to delete, in ": " to delete, in ";
|
|
44
|
+
readonly " to set, ": " to set, ";
|
|
33
45
|
readonly " to this customer.": " to this customer.";
|
|
46
|
+
readonly " unmatched or conflicting stay staged.": " unmatched or conflicting stay staged.";
|
|
47
|
+
readonly " were refused: ": " were refused: ";
|
|
34
48
|
readonly " with this shape.": " with this shape.";
|
|
49
|
+
readonly " \u00B7 applied ": " · applied ";
|
|
35
50
|
readonly " \u00B7 due ": " · due ";
|
|
36
51
|
readonly " \u00B7 exp ": " · exp ";
|
|
37
52
|
readonly " \u00B7 last seen": " · last seen";
|
|
@@ -42,6 +57,7 @@ export declare const billingAdminMessages: {
|
|
|
42
57
|
readonly '"Not sent to provider" is fixed by publishing the catalog. Everything else is fixed under Settings, Payment providers.': "\"Not sent to provider\" is fixed by publishing the catalog. Everything else is fixed under Settings, Payment providers.";
|
|
43
58
|
readonly ", an edit set": ", an edit set";
|
|
44
59
|
readonly ", before another action.": ", before another action.";
|
|
60
|
+
readonly ", deleted: ": ", deleted: ";
|
|
45
61
|
readonly ". Active holds may prevent revocation. Payment refunds are managed separately.": ". Active holds may prevent revocation. Payment refunds are managed separately.";
|
|
46
62
|
readonly ". Currency and interval stay locked to the current price.": ". Currency and interval stay locked to the current price.";
|
|
47
63
|
readonly "/app/usage-events": "/app/usage-events";
|
|
@@ -49,9 +65,13 @@ export declare const billingAdminMessages: {
|
|
|
49
65
|
readonly "30 days": "30 days";
|
|
50
66
|
readonly "365 days": "365 days";
|
|
51
67
|
readonly "7 days": "7 days";
|
|
68
|
+
readonly "90 days": "90 days";
|
|
52
69
|
readonly ": the batch says": ": the batch says";
|
|
53
70
|
readonly ": yours ": ": yours ";
|
|
71
|
+
readonly "A CSV file with the header mapping,key,customer maps your own identifiers to customers. An empty customer deletes that mapping.": "A CSV file with the header mapping,key,customer maps your own identifiers to customers. An empty customer deletes that mapping.";
|
|
54
72
|
readonly "A collection of this order is in progress. It must finish, or be resolved with ": "A collection of this order is in progress. It must finish, or be resolved with ";
|
|
73
|
+
readonly "A manual link wins over every rule.": "A manual link wins over every rule.";
|
|
74
|
+
readonly "A newer import of this PSP supersedes this one: link and apply ": "A newer import of this PSP supersedes this one: link and apply ";
|
|
55
75
|
readonly "A price going down needs no notice, so today is fine.": "A price going down needs no notice, so today is fine.";
|
|
56
76
|
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.";
|
|
57
77
|
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.";
|
|
@@ -77,19 +97,30 @@ export declare const billingAdminMessages: {
|
|
|
77
97
|
readonly "Alert email": "Alert email";
|
|
78
98
|
readonly All: "All";
|
|
79
99
|
readonly "All PSPs": "All PSPs";
|
|
100
|
+
readonly "All kinds": "All kinds";
|
|
101
|
+
readonly "All open proposals": "All open proposals";
|
|
80
102
|
readonly "All origins": "All origins";
|
|
81
103
|
readonly "All owners": "All owners";
|
|
82
104
|
readonly "All rails": "All rails";
|
|
105
|
+
readonly "All reasons": "All reasons";
|
|
83
106
|
readonly "All statuses": "All statuses";
|
|
84
107
|
readonly Allowance: "Allowance";
|
|
85
108
|
readonly "Also revoke access immediately": "Also revoke access immediately";
|
|
86
109
|
readonly "Also revoke granted access": "Also revoke granted access";
|
|
87
110
|
readonly Amount: "Amount";
|
|
88
111
|
readonly "Amount (": "Amount (";
|
|
112
|
+
readonly Applied: "Applied";
|
|
113
|
+
readonly Apply: "Apply";
|
|
114
|
+
readonly "Apply again": "Apply again";
|
|
89
115
|
readonly "Apply catalog": "Apply catalog";
|
|
90
116
|
readonly "Apply catalog changes": "Apply catalog changes";
|
|
91
117
|
readonly "Apply filters": "Apply filters";
|
|
118
|
+
readonly "Apply import": "Apply import";
|
|
119
|
+
readonly "Apply queued": "Apply queued";
|
|
92
120
|
readonly "Apply reviewed batch": "Apply reviewed batch";
|
|
121
|
+
readonly "Approvals and dismissals need a signed-in person: an API key or service token cannot decide them.": "Approvals and dismissals need a signed-in person: an API key or service token cannot decide them.";
|
|
122
|
+
readonly Approve: "Approve";
|
|
123
|
+
readonly "Approve ": "Approve ";
|
|
93
124
|
readonly Archive: "Archive";
|
|
94
125
|
readonly Ask: "Ask";
|
|
95
126
|
readonly "Ask an administrator for a role that includes it.": "Ask an administrator for a role that includes it.";
|
|
@@ -119,6 +150,98 @@ export declare const billingAdminMessages: {
|
|
|
119
150
|
readonly "Catalog updates are disabled. The console is read-only.": "Catalog updates are disabled. The console is read-only.";
|
|
120
151
|
readonly "Catalog updates are unavailable. You can still browse products and prices.": "Catalog updates are unavailable. You can still browse products and prices.";
|
|
121
152
|
readonly "Category / reason": "Category / reason";
|
|
153
|
+
readonly Change: "Change";
|
|
154
|
+
readonly "Choose a price": "Choose a price";
|
|
155
|
+
readonly "Choose a product": "Choose a product";
|
|
156
|
+
readonly Clear: "Clear";
|
|
157
|
+
readonly "Customer id": "Customer id";
|
|
158
|
+
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.";
|
|
159
|
+
readonly Dismiss: "Dismiss";
|
|
160
|
+
readonly "Dismiss ": "Dismiss ";
|
|
161
|
+
readonly "Dismiss provider price": "Dismiss provider price";
|
|
162
|
+
readonly "Dismissed proposals close without changing anything.": "Dismissed proposals close without changing anything.";
|
|
163
|
+
readonly "Each approved change applies on its own, if what it was based on has not moved.": "Each approved change applies on its own, if what it was based on has not moved.";
|
|
164
|
+
readonly "Each import pulls one PSP read-only and stages what it read. Link and map what it staged, then apply it.": "Each import pulls one PSP read-only and stages what it read. Link and map what it staged, then apply it.";
|
|
165
|
+
readonly Effects: "Effects";
|
|
166
|
+
readonly Evidence: "Evidence";
|
|
167
|
+
readonly Facts: "Facts";
|
|
168
|
+
readonly Failed: "Failed";
|
|
169
|
+
readonly "Find a customer with billing": "Find a customer with billing";
|
|
170
|
+
readonly Findings: "Findings";
|
|
171
|
+
readonly "From import ": "From import ";
|
|
172
|
+
readonly "Full history": "Full history";
|
|
173
|
+
readonly "Grants: ": "Grants: ";
|
|
174
|
+
readonly "History since": "History since";
|
|
175
|
+
readonly "History start date": "History start date";
|
|
176
|
+
readonly "History through ": "History through ";
|
|
177
|
+
readonly "Import of ": "Import of ";
|
|
178
|
+
readonly "Import records": "Import records";
|
|
179
|
+
readonly Landing: "Landing";
|
|
180
|
+
readonly "Lands the linked records as billing. ": "Lands the linked records as billing. ";
|
|
181
|
+
readonly "Lines ": "Lines ";
|
|
182
|
+
readonly Link: "Link";
|
|
183
|
+
readonly "Link record": "Link record";
|
|
184
|
+
readonly "Link removed: re-linking": "Link removed: re-linking";
|
|
185
|
+
readonly "Link saved: re-linking": "Link saved: re-linking";
|
|
186
|
+
readonly "Link to customer": "Link to customer";
|
|
187
|
+
readonly Linking: "Linking";
|
|
188
|
+
readonly "Linking rules": "Linking rules";
|
|
189
|
+
readonly "Links by the rules of this PSP's latest import:": "Links by the rules of this PSP's latest import:";
|
|
190
|
+
readonly "Listing prices needs catalog read.": "Listing prices needs catalog read.";
|
|
191
|
+
readonly "Live provider subscriptions OpenRails could not land. Each lands once, by itself, when its cause is fixed.": "Live provider subscriptions OpenRails could not land. Each lands once, by itself, when its cause is fixed.";
|
|
192
|
+
readonly Map: "Map";
|
|
193
|
+
readonly "Map provider price": "Map provider price";
|
|
194
|
+
readonly "Map to product": "Map to product";
|
|
195
|
+
readonly Mapped: "Mapped";
|
|
196
|
+
readonly "Mapped to": "Mapped to";
|
|
197
|
+
readonly "Mapping a price edits the catalog: it needs ": "Mapping a price edits the catalog: it needs ";
|
|
198
|
+
readonly "Mappings file": "Mappings file";
|
|
199
|
+
readonly "Mappings set: ": "Mappings set: ";
|
|
200
|
+
readonly "Needs ": "Needs ";
|
|
201
|
+
readonly "No PSP has been pulled yet.": "No PSP has been pulled yet.";
|
|
202
|
+
readonly "No PSP here has a catalog OpenRails observes.": "No PSP here has a catalog OpenRails observes.";
|
|
203
|
+
readonly "No proposals are open.": "No proposals are open.";
|
|
204
|
+
readonly "No provider prices match.": "No provider prices match.";
|
|
205
|
+
readonly "No records in this state.": "No records in this state.";
|
|
206
|
+
readonly "No staged subscription names a plan.": "No staged subscription names a plan.";
|
|
207
|
+
readonly "Not observed yet: read from the provider when mapped": "Not observed yet: read from the provider when mapped";
|
|
208
|
+
readonly "Notes (optional)": "Notes (optional)";
|
|
209
|
+
readonly "Notes (required)": "Notes (required)";
|
|
210
|
+
readonly "Nothing is parked.": "Nothing is parked.";
|
|
211
|
+
readonly Object: "Object";
|
|
212
|
+
readonly "Offer as a tier-change target": "Offer as a tier-change target";
|
|
213
|
+
readonly "PSP imports": "PSP imports";
|
|
214
|
+
readonly Parked: "Parked";
|
|
215
|
+
readonly "Parked subscriptions": "Parked subscriptions";
|
|
216
|
+
readonly Plan: "Plan";
|
|
217
|
+
readonly "Plans its subscriptions name": "Plans its subscriptions name";
|
|
218
|
+
readonly "Price cleared: re-linking": "Price cleared: re-linking";
|
|
219
|
+
readonly "Price dismissed": "Price dismissed";
|
|
220
|
+
readonly "Price key": "Price key";
|
|
221
|
+
readonly "Price mapped": "Price mapped";
|
|
222
|
+
readonly "Price saved: re-linking": "Price saved: re-linking";
|
|
223
|
+
readonly "Prices each PSP's own catalog holds, as OpenRails last observed them. A subscription on an unmapped price cannot land: map it to a product, or dismiss it as not yours.": "Prices each PSP's own catalog holds, as OpenRails last observed them. A subscription on an unmapped price cannot land: map it to a product, or dismiss it as not yours.";
|
|
224
|
+
readonly Progress: "Progress";
|
|
225
|
+
readonly Proposals: "Proposals";
|
|
226
|
+
readonly "Provider price": "Provider price";
|
|
227
|
+
readonly "Provider prices": "Provider prices";
|
|
228
|
+
readonly "Provider ref": "Provider ref";
|
|
229
|
+
readonly "Provider subscription": "Provider subscription";
|
|
230
|
+
readonly "Pulled: ready to apply": "Pulled: ready to apply";
|
|
231
|
+
readonly "Re-link": "Re-link";
|
|
232
|
+
readonly "Re-link an import to apply them:": "Re-link an import to apply them:";
|
|
233
|
+
readonly "Re-link requested": "Re-link requested";
|
|
234
|
+
readonly "Reading catalog and roster": "Reading catalog and roster";
|
|
235
|
+
readonly "Reads the PSP's catalog, customers, subscriptions and history again, read-only. Nothing lands before you apply it.": "Reads the PSP's catalog, customers, subscriptions and history again, read-only. Nothing lands before you apply it.";
|
|
236
|
+
readonly Reconcile: "Reconcile";
|
|
237
|
+
readonly "Reconcile PSP": "Reconcile PSP";
|
|
238
|
+
readonly "Reconcile a PSP": "Reconcile a PSP";
|
|
239
|
+
readonly "Reconcile started": "Reconcile started";
|
|
240
|
+
readonly "Record state": "Record state";
|
|
241
|
+
readonly Records: "Records";
|
|
242
|
+
readonly Reload: "Reload";
|
|
243
|
+
readonly Retired: "Retired";
|
|
244
|
+
readonly "Review records": "Review records";
|
|
122
245
|
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.";
|
|
123
246
|
readonly "Change payment method": "Change payment method";
|
|
124
247
|
readonly "Change price": "Change price";
|
|
@@ -188,7 +311,6 @@ export declare const billingAdminMessages: {
|
|
|
188
311
|
readonly "Delete webhook": "Delete webhook";
|
|
189
312
|
readonly Description: "Description";
|
|
190
313
|
readonly "Description (optional)": "Description (optional)";
|
|
191
|
-
readonly Detected: "Detected";
|
|
192
314
|
readonly Dimension: "Dimension";
|
|
193
315
|
readonly Dimensions: "Dimensions";
|
|
194
316
|
readonly Directory: "Directory";
|
|
@@ -201,7 +323,6 @@ export declare const billingAdminMessages: {
|
|
|
201
323
|
readonly "Download CSV": "Download CSV";
|
|
202
324
|
readonly "Draft: new price": "Draft: new price";
|
|
203
325
|
readonly "Draft: price change": "Draft: price change";
|
|
204
|
-
readonly Drift: "Drift";
|
|
205
326
|
readonly Due: "Due";
|
|
206
327
|
readonly "Due now": "Due now";
|
|
207
328
|
readonly "Due: ": "Due: ";
|
|
@@ -232,7 +353,6 @@ export declare const billingAdminMessages: {
|
|
|
232
353
|
readonly Expires: "Expires";
|
|
233
354
|
readonly "Expires (optional)": "Expires (optional)";
|
|
234
355
|
readonly Failure: "Failure";
|
|
235
|
-
readonly Field: "Field";
|
|
236
356
|
readonly Filter: "Filter";
|
|
237
357
|
readonly "Filter meters on this page": "Filter meters on this page";
|
|
238
358
|
readonly "Filter this page\u2026": "Filter this page…";
|
|
@@ -361,7 +481,6 @@ export declare const billingAdminMessages: {
|
|
|
361
481
|
readonly "No maximum": "No maximum";
|
|
362
482
|
readonly "No meters on this page match \u201C": "No meters on this page match “";
|
|
363
483
|
readonly "No missed rebills in this range.": "No missed rebills in this range.";
|
|
364
|
-
readonly "No open drift events. Catalog is in sync.": "No open drift events. Catalog is in sync.";
|
|
365
484
|
readonly "No payment methods on file.": "No payment methods on file.";
|
|
366
485
|
readonly "No payments recorded.": "No payments recorded.";
|
|
367
486
|
readonly "No payments.": "No payments.";
|
|
@@ -442,11 +561,27 @@ export declare const billingAdminMessages: {
|
|
|
442
561
|
readonly "Pick a rail\u2026": "Pick a rail…";
|
|
443
562
|
readonly "Pick an environment\u2026": "Pick an environment…";
|
|
444
563
|
readonly "Live: real money": "Live: real money";
|
|
564
|
+
readonly "Select ": "Select ";
|
|
565
|
+
readonly "Select all ": "Select all ";
|
|
566
|
+
readonly "Sending request ": "Sending request ";
|
|
567
|
+
readonly "Sent in ": "Sent in ";
|
|
568
|
+
readonly "Set price": "Set price";
|
|
569
|
+
readonly "Settings \u203A PSPs": "Settings › PSPs";
|
|
570
|
+
readonly Show: "Show";
|
|
571
|
+
readonly "Show released": "Show released";
|
|
572
|
+
readonly "Since a date": "Since a date";
|
|
573
|
+
readonly "Started ": "Started ";
|
|
574
|
+
readonly Terms: "Terms";
|
|
445
575
|
readonly "Test: the provider's own system, no money moves": "Test: the provider's own system, no money moves";
|
|
446
576
|
readonly "Sandbox: the provider's separate sandbox": "Sandbox: the provider's separate sandbox";
|
|
447
577
|
readonly "Mainnet: real money": "Mainnet: real money";
|
|
448
578
|
readonly "Devnet: Solana's development network": "Devnet: Solana's development network";
|
|
449
579
|
readonly "Testnet: Solana's test network": "Testnet: Solana's test network";
|
|
580
|
+
readonly "The customer holds this product already: cancel one at the provider.": "The customer holds this product already: cancel one at the provider.";
|
|
581
|
+
readonly "The provider listed far fewer live subscriptions than OpenRails holds, so nothing was proposed. Check the PSP's account and reconcile again.": "The provider listed far fewer live subscriptions than OpenRails holds, so nothing was proposed. Check the PSP's account and reconcile again.";
|
|
582
|
+
readonly "The provider refused this PSP's credentials. A new pull starts when they change in ": "The provider refused this PSP's credentials. A new pull starts when they change in ";
|
|
583
|
+
readonly "The provider retired it: it keeps billing its subscriptions and is never sold.": "The provider retired it: it keeps billing its subscriptions and is never sold.";
|
|
584
|
+
readonly "This PSP cannot be read: it is gone, or a credential the pull needs is not declared.": "This PSP cannot be read: it is gone, or a credential the pull needs is not declared.";
|
|
450
585
|
readonly Treasury: "Treasury";
|
|
451
586
|
readonly "Gateway ID": "Gateway ID";
|
|
452
587
|
readonly "Client account number": "Client account number";
|
|
@@ -497,7 +632,6 @@ export declare const billingAdminMessages: {
|
|
|
497
632
|
readonly Reference: "Reference";
|
|
498
633
|
readonly Refresh: "Refresh";
|
|
499
634
|
readonly "Refresh payment methods": "Refresh payment methods";
|
|
500
|
-
readonly "Refresh scan": "Refresh scan";
|
|
501
635
|
readonly "Refresh widget": "Refresh widget";
|
|
502
636
|
readonly Refund: "Refund";
|
|
503
637
|
readonly "Refund payment": "Refund payment";
|
|
@@ -507,7 +641,6 @@ export declare const billingAdminMessages: {
|
|
|
507
641
|
readonly Refused: "Refused";
|
|
508
642
|
readonly "Register event properties used by filters or matrix rates.": "Register event properties used by filters or matrix rates.";
|
|
509
643
|
readonly Remaining: "Remaining";
|
|
510
|
-
readonly Remote: "Remote";
|
|
511
644
|
readonly Remove: "Remove";
|
|
512
645
|
readonly "Remove the default rate?": "Remove the default rate?";
|
|
513
646
|
readonly Renewal: "Renewal";
|
|
@@ -521,7 +654,6 @@ export declare const billingAdminMessages: {
|
|
|
521
654
|
readonly Reset: "Reset";
|
|
522
655
|
readonly Resolve: "Resolve";
|
|
523
656
|
readonly "Resolve finding": "Resolve finding";
|
|
524
|
-
readonly Resource: "Resource";
|
|
525
657
|
readonly Result: "Result";
|
|
526
658
|
readonly Retry: "Retry";
|
|
527
659
|
readonly Reverses: "Reverses";
|
|
@@ -614,11 +746,15 @@ export declare const billingAdminMessages: {
|
|
|
614
746
|
readonly Unit: "Unit";
|
|
615
747
|
readonly "Unit price": "Unit price";
|
|
616
748
|
readonly "Units per package": "Units per package";
|
|
749
|
+
readonly Unlink: "Unlink";
|
|
750
|
+
readonly Unmapped: "Unmapped";
|
|
617
751
|
readonly Unpaid: "Unpaid";
|
|
618
752
|
readonly "Until a date": "Until a date";
|
|
619
753
|
readonly Unverified: "Unverified";
|
|
620
754
|
readonly Up: "Up";
|
|
621
755
|
readonly Updated: "Updated";
|
|
756
|
+
readonly Upload: "Upload";
|
|
757
|
+
readonly "Upload mappings": "Upload mappings";
|
|
622
758
|
readonly "Upper limit": "Upper limit";
|
|
623
759
|
readonly "Usage billed": "Usage billed";
|
|
624
760
|
readonly "Use matrix rates": "Use matrix rates";
|
|
@@ -645,44 +781,77 @@ export declare const billingAdminMessages: {
|
|
|
645
781
|
readonly "You're all caught up.": "You're all caught up.";
|
|
646
782
|
readonly "Your directory holds no contact for this customer.": "Your directory holds no contact for this customer.";
|
|
647
783
|
readonly "Your role does not have permission to read the merchant catalog.": "Your role does not have permission to read the merchant catalog.";
|
|
784
|
+
readonly "access revocations": "access revocations";
|
|
648
785
|
readonly active: "active";
|
|
649
786
|
readonly "active-seats": "active-seats";
|
|
650
787
|
readonly "alerts@example.com": "alerts@example.com";
|
|
651
788
|
readonly "api-tokens": "api-tokens";
|
|
652
789
|
readonly archived: "archived";
|
|
653
790
|
readonly "at the first renewal from ": "at the first renewal from ";
|
|
791
|
+
readonly blocked: "blocked";
|
|
654
792
|
readonly breadcrumb: "breadcrumb";
|
|
793
|
+
readonly "changed cards": "changed cards";
|
|
794
|
+
readonly conflict: "conflict";
|
|
795
|
+
readonly customer: "customer";
|
|
655
796
|
readonly default: "default";
|
|
797
|
+
readonly deleted: "deleted";
|
|
656
798
|
readonly disabled: "disabled";
|
|
657
799
|
readonly "drafted by copilot": "drafted by copilot";
|
|
658
800
|
readonly "draining (": "draining (";
|
|
659
801
|
readonly "e.g. #billing-alerts": "e.g. #billing-alerts";
|
|
802
|
+
readonly "ends access": "ends access";
|
|
660
803
|
readonly "eu, us": "eu, us";
|
|
804
|
+
readonly finding: "finding";
|
|
661
805
|
readonly "gpt-5": "gpt-5";
|
|
806
|
+
readonly held: "held";
|
|
662
807
|
readonly "held ": "held ";
|
|
663
808
|
readonly "https://example.com/account": "https://example.com/account";
|
|
664
809
|
readonly "https://example.com/logo.png": "https://example.com/logo.png";
|
|
665
810
|
readonly "https://example.com/subscribe": "https://example.com/subscribe";
|
|
666
811
|
readonly "https://example.com/support": "https://example.com/support";
|
|
812
|
+
readonly imported: "imported";
|
|
813
|
+
readonly inactive: "inactive";
|
|
814
|
+
readonly "its finding is ignored; subscriptions on it stay parked.": "its finding is ignored; subscriptions on it stay parked.";
|
|
667
815
|
readonly "key: ": "key: ";
|
|
816
|
+
readonly linked: "linked";
|
|
668
817
|
readonly "metadata.model": "metadata.model";
|
|
818
|
+
readonly "missed charges": "missed charges";
|
|
819
|
+
readonly "missed refunds": "missed refunds";
|
|
669
820
|
readonly model: "model";
|
|
670
821
|
readonly moved: "moved";
|
|
822
|
+
readonly "moves money": "moves money";
|
|
671
823
|
readonly "no data in range": "no data in range";
|
|
824
|
+
readonly "no entitlements": "no entitlements";
|
|
672
825
|
readonly "no measure": "no measure";
|
|
673
826
|
readonly "of ": "of ";
|
|
674
827
|
readonly offered: "offered";
|
|
675
828
|
readonly "openrails intents resolve": "openrails intents resolve";
|
|
676
829
|
readonly "premium, downloads": "premium, downloads";
|
|
677
830
|
readonly "premium-monthly": "premium-monthly";
|
|
831
|
+
readonly "price ": "price ";
|
|
678
832
|
readonly "prior version": "prior version";
|
|
833
|
+
readonly "provider schedules to cancel": "provider schedules to cancel";
|
|
834
|
+
readonly "provider write": "provider write";
|
|
679
835
|
readonly "read-only": "read-only";
|
|
836
|
+
readonly "refunds after a cancel": "refunds after a cancel";
|
|
680
837
|
readonly "refused: ": "refused: ";
|
|
838
|
+
readonly "renewals to adopt": "renewals to adopt";
|
|
681
839
|
readonly retired: "retired";
|
|
840
|
+
readonly "review only": "review only";
|
|
682
841
|
readonly selected: "selected";
|
|
683
842
|
readonly skipped: "skipped";
|
|
843
|
+
readonly "skipped renewals to collect": "skipped renewals to collect";
|
|
844
|
+
readonly subscription: "subscription";
|
|
845
|
+
readonly "subscription corrections": "subscription corrections";
|
|
846
|
+
readonly "subscriptions ended at the provider": "subscriptions ended at the provider";
|
|
847
|
+
readonly "subscriptions to create": "subscriptions to create";
|
|
848
|
+
readonly "that import": "that import";
|
|
684
849
|
readonly "token.used": "token.used";
|
|
685
850
|
readonly tokens: "tokens";
|
|
851
|
+
readonly transaction: "transaction";
|
|
852
|
+
readonly unmatched: "unmatched";
|
|
853
|
+
readonly "via ": "via ";
|
|
854
|
+
readonly "waiting for import": "waiting for import";
|
|
686
855
|
readonly "why is this being canceled?": "why is this being canceled?";
|
|
687
856
|
readonly "\u00B7 owed ": "· owed ";
|
|
688
857
|
readonly "\u2190 Orders": "← Orders";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PSPImportMapping } from '../../../client/generated/wire';
|
|
2
|
+
export interface MappingRow extends PSPImportMapping {
|
|
3
|
+
line: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const MAPPING_CHUNK = 100;
|
|
6
|
+
export declare function parseMappingCSV(text: string): {
|
|
7
|
+
rows: MappingRow[];
|
|
8
|
+
errors: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare function chunks<T>(rows: T[], size?: number): T[][];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PSPImport } from '../../../client/generated/wire';
|
|
2
|
+
export type ImportProgress = {
|
|
3
|
+
phase: "reading";
|
|
4
|
+
} | {
|
|
5
|
+
phase: "history";
|
|
6
|
+
through: string;
|
|
7
|
+
percent?: number;
|
|
8
|
+
} | {
|
|
9
|
+
phase: "linking";
|
|
10
|
+
} | {
|
|
11
|
+
phase: "landing";
|
|
12
|
+
} | {
|
|
13
|
+
phase: "pulled";
|
|
14
|
+
} | {
|
|
15
|
+
phase: "applied";
|
|
16
|
+
} | {
|
|
17
|
+
phase: "failed";
|
|
18
|
+
};
|
|
19
|
+
export declare function importProgress(imp: PSPImport): ImportProgress;
|
|
20
|
+
export declare function successor(imp: PSPImport, imports: PSPImport[]): PSPImport;
|
|
21
|
+
export declare function recordCount(imp: PSPImport, state: PSPImport["counts"][number]["state"], kind?: PSPImport["counts"][number]["kind"]): number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PSP, PSPImport, PSPImportRule, ProviderCatalogTerms } from '../../../client/generated/wire';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const selectClass = "h-8 w-full rounded-md border bg-background px-2";
|
|
4
|
+
export declare const IMPORT_RAILS: string[];
|
|
5
|
+
export declare function usePSPs(): {
|
|
6
|
+
list: PSP[];
|
|
7
|
+
byId: Map<string, PSP>;
|
|
8
|
+
};
|
|
9
|
+
export declare function ruleText(rule: PSPImportRule): string;
|
|
10
|
+
export declare function termsText(terms: ProviderCatalogTerms | null, rail?: string): string;
|
|
11
|
+
export declare function ProgressText({ imp }: {
|
|
12
|
+
imp: PSPImport;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
export declare function ReconcileDialog({ psp: initial, onClose, }: {
|
|
15
|
+
psp?: string;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
export declare function useSuccessor(imp?: PSPImport): PSPImport | undefined;
|
|
19
|
+
export declare function Superseded({ by }: {
|
|
20
|
+
by: PSPImport;
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
export declare function pspKey(byId: Map<string, PSP>, id: string): string;
|