feat(dashboard): Admin UI regions v2 (#6943)

This commit is contained in:
Frane Polić
2024-04-06 17:41:54 +02:00
committed by GitHub
parent df0751f122
commit 58c68f6715
72 changed files with 475 additions and 1687 deletions
@@ -8,6 +8,7 @@ import { customers } from "./customers"
import { invites } from "./invites"
import { productTypes } from "./product-types"
import { products } from "./products"
import { payments } from "./payments"
import { promotions } from "./promotions"
import { regions } from "./regions"
import { salesChannels } from "./sales-channels"
@@ -26,6 +27,7 @@ export const client = {
currencies: currencies,
collections: collections,
promotions: promotions,
payments: payments,
stores: stores,
salesChannels: salesChannels,
tags: tags,
@@ -0,0 +1,13 @@
import { getRequest } from "./common"
import { PaymentProvidersListRes } from "../../types/api-responses"
async function listPaymentProviders(query?: Record<string, any>) {
return getRequest<PaymentProvidersListRes, Record<string, any>>(
`/admin/payments/payment-providers`,
query
)
}
export const payments = {
listPaymentProviders,
}