diff options
author | Florian Dold <florian@dold.me> | 2024-09-23 19:28:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-09-23 19:28:49 +0200 |
commit | a86cae90440002dfcd2528aa79c31e6168c1c80c (patch) | |
tree | 2babac6dbcb5b67c5fc836acd8a0893655e304d1 /packages/merchant-backoffice-ui | |
parent | 250206d6e9d57eb576091aed86ac051c16053329 (diff) |
util: deprecate outdated merchant API type declaration
Still in use in the UI
Diffstat (limited to 'packages/merchant-backoffice-ui')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/urls.ts | 4 | ||||
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.tsx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/urls.ts b/packages/merchant-backoffice-ui/src/hooks/urls.ts index 95e1c04f3..50d592584 100644 --- a/packages/merchant-backoffice-ui/src/hooks/urls.ts +++ b/packages/merchant-backoffice-ui/src/hooks/urls.ts @@ -155,7 +155,7 @@ export const API_GET_INSTANCE_BY_ID = ( export const API_GET_INSTANCE_KYC_BY_ID = ( id: string, -): Query<unknown, TalerMerchantApi.AccountKycRedirects> => ({ +): Query<unknown, TalerMerchantApi.LegacyAccountKycRedirects> => ({ method: "GET", url: `http://backend/management/instances/${id}/kyc`, }); @@ -207,7 +207,7 @@ export const API_GET_CURRENT_INSTANCE: Query< export const API_GET_CURRENT_INSTANCE_KYC: Query< unknown, - TalerMerchantApi.AccountKycRedirects + TalerMerchantApi.LegacyAccountKycRedirects > = { method: "GET", url: `http://backend/instances/default/private/kyc`, diff --git a/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.tsx index 16bbd4b18..52c813716 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.tsx @@ -24,7 +24,7 @@ import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { h, VNode } from "preact"; export interface Props { - status: TalerMerchantApi.AccountKycRedirects; + status: TalerMerchantApi.LegacyAccountKycRedirects; } export function ListPage({ status }: Props): VNode { @@ -85,7 +85,7 @@ export function ListPage({ status }: Props): VNode { ); } interface PendingTableProps { - entries: TalerMerchantApi.MerchantAccountKycRedirect[]; + entries: TalerMerchantApi.LegacyMerchantAccountKycRedirect[]; } interface TimedOutTableProps { |