UNPKG

@availity/hooks

Version:

A group of pre-built hooks that are common in most apps

76 lines (68 loc) 1.96 kB
import { AxiosRequestConfig } from 'axios'; import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { AriesHookBase } from './aries'; interface OrganizationsBase { data: { organizations: [ { links: { permissions: { href: string }; patients: { href: string }; self: { href: string }; admin: { href: string }; businessArrangements: { href: string }; users: { href: string }; }; id: string; customerId: string; name: string; status: string; statusCode: string; types: [{ code: string; value: string }]; primaryControllingAuthority: { lastName: string; firstName: string; primaryPhone: string; email: string; }; physicalAddress: { line1: string; city: string; state: string; stateCode: string; zipCode: string; }; mailingAddress: { line1: string; city: string; state: string; stateCode: string; zipCode: string; }; billingAddress: { line1: string; city: string; state: string; stateCode: string; zipCode: string; }; regions: { code: string; value: string }[]; npis: { number: string }[]; taxIds: { number: string; type: string }[]; phoneNumber: { areaCode: string; exchange: string; phoneNumber: string; }; numberOfLicensedPhysicians: string; numberOfLicensedClinicians: string; } ]; }; } type Organizations = AriesHookBase & OrganizationsBase; export declare function useOrganizations( config: AxiosRequestConfig, options?: UseQueryOptions<Organizations, unknown> ): UseQueryResult<Organizations, unknown>; export default useOrganizations;