1 | import { AxiosRequestConfig } from 'axios';
|
2 | import { UseQueryOptions, UseQueryResult } from 'react-query';
|
3 | import { AriesHookBase } from './aries';
|
4 |
|
5 | interface OrganizationsBase {
|
6 | data: {
|
7 | organizations: [
|
8 | {
|
9 | links: {
|
10 | permissions: { href: string };
|
11 | patients: { href: string };
|
12 | self: { href: string };
|
13 | admin: { href: string };
|
14 | businessArrangements: { href: string };
|
15 | users: { href: string };
|
16 | };
|
17 | id: string;
|
18 | customerId: string;
|
19 | name: string;
|
20 | status: string;
|
21 | statusCode: string;
|
22 | types: [{ code: string; value: string }];
|
23 |
|
24 | primaryControllingAuthority: {
|
25 | lastName: string;
|
26 | firstName: string;
|
27 | primaryPhone: string;
|
28 | email: string;
|
29 | };
|
30 |
|
31 | physicalAddress: {
|
32 | line1: string;
|
33 | city: string;
|
34 | state: string;
|
35 | stateCode: string;
|
36 | zipCode: string;
|
37 | };
|
38 | mailingAddress: {
|
39 | line1: string;
|
40 | city: string;
|
41 | state: string;
|
42 | stateCode: string;
|
43 | zipCode: string;
|
44 | };
|
45 | billingAddress: {
|
46 | line1: string;
|
47 | city: string;
|
48 | state: string;
|
49 | stateCode: string;
|
50 | zipCode: string;
|
51 | };
|
52 | regions: { code: string; value: string }[];
|
53 | npis: { number: string }[];
|
54 | taxIds: { number: string; type: string }[];
|
55 |
|
56 | phoneNumber: {
|
57 | areaCode: string;
|
58 | exchange: string;
|
59 | phoneNumber: string;
|
60 | };
|
61 | numberOfLicensedPhysicians: string;
|
62 | numberOfLicensedClinicians: string;
|
63 | }
|
64 | ];
|
65 | };
|
66 | }
|
67 |
|
68 | type Organizations = AriesHookBase & OrganizationsBase;
|
69 |
|
70 | export declare function useOrganizations(
|
71 | config: AxiosRequestConfig,
|
72 | options?: UseQueryOptions<Organizations, unknown>
|
73 | ): UseQueryResult<Organizations, unknown>;
|
74 |
|
75 | export default useOrganizations;
|