Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

406 B
Raw Blame
import type { BillingInfo } from "metabase-types/api";

import { EnterpriseApi } from "./api";

export const billingInfoApi = EnterpriseApi.injectEndpoints({
  endpoints: (builder) => ({
    getBillingInfo: builder.query<BillingInfo, void>({
      query: () => ({
        method: "GET",
        url: "/api/ee/billing",
      }),
    }),
  }),
});

export const { useGetBillingInfoQuery } = billingInfoApi;