climb-onyx-gui 0.14.0-dev → 0.14.0-dev.3

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.
@@ -1,4 +1,4 @@
1
- import { ProjectField, FieldsResponse, ErrorResponse, ChoicesResponse } from '../types';
1
+ import { ChoicesResponse, ErrorResponse, FieldsResponse, ProjectField } from '../types';
2
2
 
3
3
  declare const useFieldsInfo: (fieldsResponse: FieldsResponse | ErrorResponse) => {
4
4
  name: string;
@@ -8,4 +8,4 @@ declare const useFieldsInfo: (fieldsResponse: FieldsResponse | ErrorResponse) =>
8
8
  };
9
9
  declare const useChoiceDescriptions: (data: ChoicesResponse | ErrorResponse) => Map<string, string>;
10
10
  declare const useChoicesDescriptions: (fields: string[], data: (ChoicesResponse | ErrorResponse)[]) => Map<string, Map<string, string>>;
11
- export { useFieldsInfo, useChoiceDescriptions, useChoicesDescriptions };
11
+ export { useChoiceDescriptions, useChoicesDescriptions, useFieldsInfo };
@@ -1,5 +1,6 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
1
2
  import { OnyxProps, ProjectProps } from '../interfaces';
2
- import { GraphConfig } from '../types';
3
+ import { DetailResponse, ErrorResponse, GraphConfig, ListResponse } from '../types';
3
4
 
4
5
  interface ChoiceProps extends ProjectProps {
5
6
  field: string;
@@ -7,17 +8,11 @@ interface ChoiceProps extends ProjectProps {
7
8
  interface ChoicesProps extends ProjectProps {
8
9
  fields: string[];
9
10
  }
10
- interface RecordIDProps extends ProjectProps {
11
- recordID: string;
12
- }
13
- interface AnalysisIDProps extends ProjectProps {
14
- analysisID: string;
15
- }
16
- interface GenericIDProps extends ProjectProps {
17
- searchPath: string;
11
+ interface IDProps extends ProjectProps {
12
+ searchPath?: string;
18
13
  ID: string;
19
14
  }
20
- interface GenericQueryProps extends ProjectProps {
15
+ interface QueryProps extends ProjectProps {
21
16
  searchPath: string;
22
17
  searchParameters: string;
23
18
  }
@@ -25,45 +20,45 @@ interface GraphQueryProps extends ProjectProps {
25
20
  graphConfig: GraphConfig;
26
21
  }
27
22
  /** Fetch types */
28
- declare const useTypesQuery: (props: OnyxProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
23
+ declare const useTypesQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
29
24
  /** Fetch lookups */
30
- declare const useLookupsQuery: (props: OnyxProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
25
+ declare const useLookupsQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
31
26
  /** Fetch user profile */
32
- declare const useProfileQuery: (props: OnyxProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
27
+ declare const useProfileQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
33
28
  /** Fetch user project permissions */
34
- declare const useProjectPermissionsQuery: (props: OnyxProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
29
+ declare const useProjectPermissionsQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
35
30
  /** Fetch project fields */
36
- declare const useProjectFieldsQuery: (props: ProjectProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
31
+ declare const useProjectFieldsQuery: (props: ProjectProps) => UseQueryResult<any, unknown>;
37
32
  /** Fetch analysis fields */
38
- declare const useAnalysisFieldsQuery: (props: ProjectProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
33
+ declare const useAnalysisFieldsQuery: (props: ProjectProps) => UseQueryResult<any, unknown>;
39
34
  /** Fetch choices for a field */
40
- declare const useChoicesQuery: (props: ChoiceProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
35
+ declare const useChoicesQuery: (props: ChoiceProps) => UseQueryResult<any, unknown>;
41
36
  /** Fetch choices for multiple fields */
42
- declare const useChoicesQueries: (props: ChoicesProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>[];
37
+ declare const useChoicesQueries: (props: ChoicesProps) => UseQueryResult<any, unknown>[];
43
38
  /** Fetch user activity */
44
- declare const useActivityQuery: (props: OnyxProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
39
+ declare const useActivityQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
45
40
  /** Fetch site users */
46
- declare const useSiteUsersQuery: (props: OnyxProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
41
+ declare const useSiteUsersQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
47
42
  /** Fetch history from ID */
48
- declare const useHistoryQuery: (props: GenericIDProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
43
+ declare const useHistoryQuery: (props: IDProps) => UseQueryResult<any, unknown>;
49
44
  /** Fetch record from record ID */
50
- declare const useRecordQuery: (props: RecordIDProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
45
+ declare const useRecordQuery: (props: IDProps) => UseQueryResult<DetailResponse | ErrorResponse, Error>;
51
46
  /** Fetch record analyses from record ID */
52
- declare const useRecordAnalysesQuery: (props: RecordIDProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
47
+ declare const useRecordAnalysesQuery: (props: IDProps) => UseQueryResult<any, unknown>;
53
48
  /** Fetch analysis from analysis ID */
54
- declare const useAnalysisQuery: (props: AnalysisIDProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
49
+ declare const useAnalysisQuery: (props: IDProps) => UseQueryResult<DetailResponse | ErrorResponse, Error>;
55
50
  /** Fetch analysis records from analysis ID */
56
- declare const useAnalysisRecordsQuery: (props: AnalysisIDProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
51
+ declare const useAnalysisRecordsQuery: (props: IDProps) => UseQueryResult<any, unknown>;
57
52
  /** Fetch upstream analyses from analysis ID */
58
- declare const useAnalysisUpstreamQuery: (props: AnalysisIDProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
53
+ declare const useAnalysisUpstreamQuery: (props: IDProps) => UseQueryResult<ListResponse | ErrorResponse, Error>;
59
54
  /** Fetch downstream analyses from analysis ID */
60
- declare const useAnalysisDownstreamQuery: (props: AnalysisIDProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
55
+ declare const useAnalysisDownstreamQuery: (props: IDProps) => UseQueryResult<ListResponse | ErrorResponse, Error>;
61
56
  /** Fetch results from path and search parameters */
62
- declare const useResultsQuery: (props: GenericQueryProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
57
+ declare const useResultsQuery: (props: QueryProps) => UseQueryResult<any, unknown>;
63
58
  /** Fetch count from path and search parameters */
64
- declare const useCountQuery: (props: GenericQueryProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
59
+ declare const useCountQuery: (props: QueryProps) => UseQueryResult<any, unknown>;
65
60
  /** Fetch summary from project and field */
66
- declare const useSummaryQuery: (props: GraphQueryProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
61
+ declare const useSummaryQuery: (props: GraphQueryProps) => UseQueryResult<any, unknown>;
67
62
  /** Fetch grouped summary from project, field, and groupBy */
68
- declare const useGroupedSummaryQuery: (props: GraphQueryProps) => import('@tanstack/react-query').UseQueryResult<any, unknown>;
69
- export { useTypesQuery, useLookupsQuery, useProfileQuery, useProjectPermissionsQuery, useProjectFieldsQuery, useAnalysisFieldsQuery, useChoicesQuery, useChoicesQueries, useActivityQuery, useSiteUsersQuery, useRecordQuery, useHistoryQuery, useRecordAnalysesQuery, useAnalysisQuery, useAnalysisRecordsQuery, useAnalysisUpstreamQuery, useAnalysisDownstreamQuery, useResultsQuery, useCountQuery, useSummaryQuery, useGroupedSummaryQuery, };
63
+ declare const useGroupedSummaryQuery: (props: GraphQueryProps) => UseQueryResult<any, unknown>;
64
+ export { useActivityQuery, useAnalysisDownstreamQuery, useAnalysisFieldsQuery, useAnalysisQuery, useAnalysisRecordsQuery, useAnalysisUpstreamQuery, useChoicesQueries, useChoicesQuery, useCountQuery, useGroupedSummaryQuery, useHistoryQuery, useLookupsQuery, useProfileQuery, useProjectFieldsQuery, useProjectPermissionsQuery, useRecordAnalysesQuery, useRecordQuery, useResultsQuery, useSiteUsersQuery, useSummaryQuery, useTypesQuery, };