UNPKG

autumn-js

Version:
17 lines (14 loc) 702 B
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-Bf18ATYi.mjs'; import { HookParams, HookResult } from './types.mjs'; import '../plan-CUExbmy9.mjs'; import '@tanstack/react-query'; import '../client/AutumnClientError.mjs'; type UseEntityParams = HookParams<ClientGetEntityParams, GetEntityResponse | null>; type UseEntityResult = HookResult<GetEntityResponse | null>; /** * Fetches an Autumn entity (sub-resource of a customer, eg. a seat or project). * * @returns Entity data including subscriptions, purchases, and balances. */ declare const useEntity: (params: UseEntityParams) => UseEntityResult; export { type UseEntityParams, type UseEntityResult, useEntity };