@availity/hooks 5.2.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.d.ts +208 -0
- package/dist/index.js +156 -0
- package/package.json +25 -15
- package/project.json +14 -3
- package/src/index.ts +20 -0
- package/src/useCurrentRegion.ts +23 -0
- package/src/useCurrentUser.ts +24 -0
- package/src/useEffectAsync.ts +9 -0
- package/src/useMount.ts +6 -0
- package/src/useOrganizations.ts +73 -0
- package/src/usePermissions.ts +23 -0
- package/src/useProviders.ts +48 -0
- package/src/useStash.ts +21 -0
- package/src/{useTimeout.js → useTimeout.ts} +1 -1
- package/src/{useToggle.js → useToggle.ts} +2 -2
- package/src/{useUpdateNav.js → useUpdateNav.ts} +1 -1
- package/src/{useWindowDimensions.js → useWindowDimensions.ts} +9 -9
- package/stories/ResourceComponent.tsx +12 -10
- package/tests/useCurrentRegion.test.jsx +96 -0
- package/tests/useCurrentUser.test.jsx +94 -0
- package/tests/useEffectAsync.test.jsx +36 -0
- package/tests/useMount.test.jsx +24 -0
- package/tests/useOrganizations.test.jsx +112 -0
- package/tests/usePermissions.test.jsx +90 -0
- package/tests/useProviders.test.jsx +106 -0
- package/tests/useStash.test.jsx +89 -0
- package/tests/useTimeout.test.jsx +33 -0
- package/tests/useToggle.test.jsx +42 -0
- package/tests/useUpdateNav.test.jsx +46 -0
- package/tests/useWindowDimensions.test.jsx +38 -0
- package/vitest.config.ts +17 -0
- package/index.d.ts +0 -12
- package/index.js +0 -12
- package/jest.config.js +0 -7
- package/src/useCurrentRegion.js +0 -15
- package/src/useCurrentUser.js +0 -8
- package/src/useEffectAsync.js +0 -8
- package/src/useMount.js +0 -6
- package/src/useOrganizations.js +0 -8
- package/src/usePermissions.js +0 -8
- package/src/useProviders.js +0 -8
- package/src/useStash.js +0 -14
- package/tsconfig.spec.json +0 -10
- package/types/useCurrentRegion.d.ts +0 -12
- package/types/useCurrentUser.d.ts +0 -21
- package/types/useEffectAsync.d.ts +0 -3
- package/types/useMount.d.ts +0 -5
- package/types/useOrganizations.d.ts +0 -75
- package/types/usePermissions.d.ts +0 -22
- package/types/useProviders.d.ts +0 -50
- package/types/useStash.d.ts +0 -10
- package/types/useTimeout.d.ts +0 -3
- package/types/useToggle.d.ts +0 -3
- package/types/useUpdateNav.d.ts +0 -3
- package/types/useWindowDimensions.d.ts +0 -8
- /package/{types/aries.d.ts → src/types.ts} +0 -0
- /package/tests/{util.js → util.jsx} +0 -0
package/types/useProviders.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
3
|
-
import { AriesHookBase } from './aries';
|
|
4
|
-
|
|
5
|
-
interface ProvidersBase {
|
|
6
|
-
data: {
|
|
7
|
-
providers: [
|
|
8
|
-
{
|
|
9
|
-
id: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
firstName: string;
|
|
12
|
-
middleName: string;
|
|
13
|
-
uiDisplayName: string;
|
|
14
|
-
atypical: boolean;
|
|
15
|
-
npi: string;
|
|
16
|
-
customerIds: [string];
|
|
17
|
-
roles: [{ code: string; value: string }];
|
|
18
|
-
|
|
19
|
-
primarySpecialty: {
|
|
20
|
-
code: string;
|
|
21
|
-
value: string;
|
|
22
|
-
};
|
|
23
|
-
primaryFax: {
|
|
24
|
-
internationalCellularCode: string;
|
|
25
|
-
areaCode: string;
|
|
26
|
-
phoneNumber: string;
|
|
27
|
-
};
|
|
28
|
-
primaryAddress: {
|
|
29
|
-
line1: string;
|
|
30
|
-
line2: string;
|
|
31
|
-
city: string;
|
|
32
|
-
state: string;
|
|
33
|
-
stateCode: string;
|
|
34
|
-
zip: { code: string; addon: string };
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
];
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
type Providers = AriesHookBase & ProvidersBase;
|
|
42
|
-
|
|
43
|
-
type AvConfig = { customerId: number } & AxiosRequestConfig;
|
|
44
|
-
|
|
45
|
-
declare function useProviders(
|
|
46
|
-
config: AvConfig,
|
|
47
|
-
options?: UseQueryOptions<Providers, unknown>
|
|
48
|
-
): UseQueryResult<Providers, unknown>;
|
|
49
|
-
|
|
50
|
-
export default useProviders;
|
package/types/useStash.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
|
|
3
|
-
export type StashData = Record<string, unknown>;
|
|
4
|
-
|
|
5
|
-
declare function useStash(
|
|
6
|
-
sessionId: string,
|
|
7
|
-
options?: UseQueryOptions<StashData, unknown>
|
|
8
|
-
): UseQueryResult<StashData, unknown>;
|
|
9
|
-
|
|
10
|
-
export default useStash;
|
package/types/useTimeout.d.ts
DELETED
package/types/useToggle.d.ts
DELETED
package/types/useUpdateNav.d.ts
DELETED
|
File without changes
|
|
File without changes
|