climb-onyx-gui 0.16.5 → 0.16.6

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,11 +1,8 @@
1
- import { ErrorResponse, DetailResponse, Choices, Field, Fields } from '../types';
2
- declare const useFieldsInfo: (data: DetailResponse<Fields> | ErrorResponse | undefined) => {
3
- name: string;
4
- description: string;
5
- fields: Map<string, Field>;
6
- defaultFields: string[];
7
- };
8
- declare const useFieldDescriptions: (fields: Map<string, Field>) => Map<string, string>;
9
- declare const useChoiceDescriptions: (data: DetailResponse<Choices> | ErrorResponse | undefined) => Map<string, string>;
10
- declare const useChoicesDescriptions: (fields: string[], data: (DetailResponse<Choices> | ErrorResponse)[]) => Map<string, Map<string, string>>;
11
- export { useChoiceDescriptions, useChoicesDescriptions, useFieldsInfo, useFieldDescriptions, };
1
+ import { ErrorResponse, DetailResponse, Choices, Field, Fields, ListResponse, TypeObject, Lookup, Project, ProjectPermissionGroup } from '../types';
2
+ export declare const useProjects: (data: ListResponse<ProjectPermissionGroup> | ErrorResponse | undefined) => Project[];
3
+ export declare const useFields: (data: DetailResponse<Fields> | ErrorResponse | undefined) => Fields;
4
+ export declare const useTypeLookups: (data: ListResponse<TypeObject> | ErrorResponse | undefined) => Map<string, string[]>;
5
+ export declare const useFieldDescriptions: (fields: Map<string, Field>) => Map<string, string>;
6
+ export declare const useLookupDescriptions: (data: ListResponse<Lookup> | ErrorResponse | undefined) => Map<string, string>;
7
+ export declare const useChoiceDescriptions: (data: DetailResponse<Choices> | ErrorResponse | undefined) => Map<string, string>;
8
+ export declare const useChoicesDescriptions: (fields: string[], data: (DetailResponse<Choices> | ErrorResponse)[]) => Map<string, Map<string, string>>;
@@ -19,45 +19,45 @@ interface GraphQueryProps extends ProjectProps {
19
19
  graphConfig: GraphConfig;
20
20
  }
21
21
  /** Fetch types */
22
- declare const useTypesQuery: (props: OnyxProps) => UseQueryResult<ListResponse<TypeObject> | ErrorResponse, Error>;
22
+ export declare const useTypesQuery: (props: OnyxProps) => UseQueryResult<ListResponse<TypeObject> | ErrorResponse, Error>;
23
23
  /** Fetch lookups */
24
- declare const useLookupsQuery: (props: OnyxProps) => UseQueryResult<ListResponse<Lookup> | ErrorResponse, Error>;
24
+ export declare const useLookupsQuery: (props: OnyxProps) => UseQueryResult<ListResponse<Lookup> | ErrorResponse, Error>;
25
25
  /** Fetch user profile */
26
- declare const useProfileQuery: (props: OnyxProps) => UseQueryResult<DetailResponse<Profile> | ErrorResponse, Error>;
26
+ export declare const useProfileQuery: (props: OnyxProps) => UseQueryResult<DetailResponse<Profile> | ErrorResponse, Error>;
27
27
  /** Fetch user project permissions */
28
- declare const useProjectPermissionsQuery: (props: OnyxProps) => UseQueryResult<ListResponse<ProjectPermissionGroup> | ErrorResponse, Error>;
28
+ export declare const useProjectPermissionsQuery: (props: OnyxProps) => UseQueryResult<ListResponse<ProjectPermissionGroup> | ErrorResponse, Error>;
29
29
  /** Fetch project fields */
30
- declare const useFieldsQuery: (props: ProjectProps) => UseQueryResult<DetailResponse<Fields> | ErrorResponse, Error>;
30
+ export declare const useFieldsQuery: (props: ProjectProps) => UseQueryResult<DetailResponse<Fields> | ErrorResponse, Error>;
31
31
  /** Fetch analysis fields */
32
- declare const useAnalysisFieldsQuery: (props: ProjectProps) => UseQueryResult<DetailResponse<Fields> | ErrorResponse, Error>;
32
+ export declare const useAnalysisFieldsQuery: (props: ProjectProps) => UseQueryResult<DetailResponse<Fields> | ErrorResponse, Error>;
33
33
  /** Fetch choices for a field */
34
- declare const useChoicesQuery: (props: ChoiceProps) => UseQueryResult<DetailResponse<Choices> | ErrorResponse, Error>;
34
+ export declare const useChoicesQuery: (props: ChoiceProps) => UseQueryResult<DetailResponse<Choices> | ErrorResponse, Error>;
35
35
  /** Fetch choices for multiple fields */
36
- declare const useChoicesQueries: (props: ChoicesProps) => UseQueryResult<any, unknown>[];
36
+ export declare const useChoicesQueries: (props: ChoicesProps) => UseQueryResult<any, unknown>[];
37
37
  /** Fetch user activity */
38
- declare const useActivityQuery: (props: OnyxProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
38
+ export declare const useActivityQuery: (props: OnyxProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
39
39
  /** Fetch site users */
40
- declare const useSiteUsersQuery: (props: OnyxProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
40
+ export declare const useSiteUsersQuery: (props: OnyxProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
41
41
  /** Fetch history from ID */
42
- declare const useHistoryQuery: (props: IDProps) => UseQueryResult<DetailResponse<HistoricalEntries> | ErrorResponse, Error>;
42
+ export declare const useHistoryQuery: (props: IDProps) => UseQueryResult<DetailResponse<HistoricalEntries> | ErrorResponse, Error>;
43
43
  /** Fetch record from record ID */
44
- declare const useRecordQuery: (props: IDProps) => UseQueryResult<DetailResponse<RecordType> | ErrorResponse, Error>;
44
+ export declare const useRecordQuery: (props: IDProps) => UseQueryResult<DetailResponse<RecordType> | ErrorResponse, Error>;
45
45
  /** Fetch record analyses from record ID */
46
- declare const useRecordAnalysesQuery: (props: IDProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
46
+ export declare const useRecordAnalysesQuery: (props: IDProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
47
47
  /** Fetch analysis from analysis ID */
48
- declare const useAnalysisQuery: (props: IDProps) => UseQueryResult<DetailResponse<RecordType> | ErrorResponse, Error>;
48
+ export declare const useAnalysisQuery: (props: IDProps) => UseQueryResult<DetailResponse<RecordType> | ErrorResponse, Error>;
49
49
  /** Fetch analysis records from analysis ID */
50
- declare const useAnalysisRecordsQuery: (props: IDProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
50
+ export declare const useAnalysisRecordsQuery: (props: IDProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
51
51
  /** Fetch upstream analyses from analysis ID */
52
- declare const useAnalysisUpstreamQuery: (props: IDProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
52
+ export declare const useAnalysisUpstreamQuery: (props: IDProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
53
53
  /** Fetch downstream analyses from analysis ID */
54
- declare const useAnalysisDownstreamQuery: (props: IDProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
54
+ export declare const useAnalysisDownstreamQuery: (props: IDProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
55
55
  /** Fetch results from path and search parameters */
56
- declare const useResultsQuery: (props: QueryProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
56
+ export declare const useResultsQuery: (props: QueryProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
57
57
  /** Fetch count from path and search parameters */
58
- declare const useCountQuery: (props: QueryProps) => UseQueryResult<any, unknown>;
58
+ export declare const useCountQuery: (props: QueryProps) => UseQueryResult<any, unknown>;
59
59
  /** Fetch summary from project and field */
60
- declare const useSummaryQuery: (props: GraphQueryProps) => UseQueryResult<any, unknown>;
60
+ export declare const useSummaryQuery: (props: GraphQueryProps) => UseQueryResult<any, unknown>;
61
61
  /** Fetch grouped summary from project, field, and groupBy */
62
- declare const useGroupedSummaryQuery: (props: GraphQueryProps) => UseQueryResult<any, unknown>;
63
- export { useActivityQuery, useAnalysisDownstreamQuery, useAnalysisFieldsQuery, useAnalysisQuery, useAnalysisRecordsQuery, useAnalysisUpstreamQuery, useChoicesQueries, useChoicesQuery, useCountQuery, useGroupedSummaryQuery, useHistoryQuery, useLookupsQuery, useProfileQuery, useFieldsQuery, useProjectPermissionsQuery, useRecordAnalysesQuery, useRecordQuery, useResultsQuery, useSiteUsersQuery, useSummaryQuery, useTypesQuery, };
62
+ export declare const useGroupedSummaryQuery: (props: GraphQueryProps) => UseQueryResult<any, unknown>;
63
+ export {};