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

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/dist/types.d.ts CHANGED
@@ -1,3 +1,18 @@
1
+ declare enum RecordTabKeys {
2
+ Data = "record-data-tab",
3
+ History = "record-history-tab",
4
+ Analyses = "record-analyses-tab"
5
+ }
6
+ declare enum AnalysisTabKeys {
7
+ Data = "analysis-data-tab",
8
+ History = "analysis-history-tab",
9
+ Records = "analysis-records-tab",
10
+ Upstream = "analysis-upstream-tab",
11
+ Downstream = "analysis-downstream-tab"
12
+ }
13
+ declare enum DataPanelTabKeys {
14
+ Details = "data-panel-details"
15
+ }
1
16
  type FieldType = "text" | "choice" | "integer" | "decimal" | "date" | "datetime" | "bool" | "relation" | "array" | "structure" | "";
2
17
  type GraphType = "line" | "bar" | "pie" | "";
3
18
  type ProjectField = {
@@ -64,12 +79,12 @@ type SuccessResponse = {
64
79
  status: "success";
65
80
  code: number;
66
81
  };
67
- type RecordListResponse = SuccessResponse & {
82
+ type ListResponse = SuccessResponse & {
68
83
  data: RecordType[];
69
84
  next: string | null;
70
85
  previous: string | null;
71
86
  };
72
- type RecordDetailResponse = SuccessResponse & {
87
+ type DetailResponse = SuccessResponse & {
73
88
  data: RecordType;
74
89
  };
75
90
  type FieldsResponse = SuccessResponse & {
@@ -82,5 +97,5 @@ type FieldsResponse = SuccessResponse & {
82
97
  type ChoicesResponse = SuccessResponse & {
83
98
  data: Record<string, ChoiceDescription>;
84
99
  };
85
- export type { FieldType, GraphType, ProjectField, FilterConfig, GraphConfig, TypeObject, LookupObject, ChoiceDescription, OptionType, ErrorType, RecordType, SummaryType, ProjectPermissionType, ErrorResponse, SuccessResponse, RecordListResponse, RecordDetailResponse, FieldsResponse, ChoicesResponse, };
86
- export { ExportStatus };
100
+ export type { ChoiceDescription, ChoicesResponse, DetailResponse, ErrorResponse, ErrorType, FieldsResponse, FieldType, FilterConfig, GraphConfig, GraphType, ListResponse, LookupObject, OptionType, ProjectField, ProjectPermissionType, RecordType, SuccessResponse, SummaryType, TypeObject, };
101
+ export { AnalysisTabKeys, DataPanelTabKeys, ExportStatus, RecordTabKeys };
@@ -1,15 +1,15 @@
1
- import { RecordDetailResponse, ErrorResponse, FilterConfig } from '../types';
2
- import { OnyxProps, ExportHandlerProps } from '../interfaces';
1
+ import { ExportHandlerProps, OnyxProps } from '../interfaces';
2
+ import { DetailResponse, ErrorResponse, FilterConfig } from '../types';
3
3
 
4
4
  /** Returns a random hexadecimal string. */
5
5
  declare function generateKey(): string;
6
6
  /** Generate a default file name prefix based on the project code and search parameters. */
7
7
  declare function getDefaultFileNamePrefix(project: string, searchParameters: string): string;
8
- interface RecordDetailResponseProps extends OnyxProps {
9
- response: RecordDetailResponse | ErrorResponse;
8
+ interface DetailResponseProps extends OnyxProps {
9
+ response: DetailResponse | ErrorResponse | undefined;
10
10
  }
11
11
  /** Handler for converting JSON data to a string for file export. */
12
- declare function handleJSONExport(props: RecordDetailResponseProps): (exportProps: ExportHandlerProps) => void;
12
+ declare function handleJSONExport(props: DetailResponseProps): (exportProps: ExportHandlerProps) => void;
13
13
  /** Takes an array of FilterConfig objects and formats into an array of field (+lookup), value pairs. */
14
14
  declare function formatFilters(filters: FilterConfig[]): string[][];
15
- export { generateKey, getDefaultFileNamePrefix, handleJSONExport, formatFilters, };
15
+ export { formatFilters, generateKey, getDefaultFileNamePrefix, handleJSONExport, };
@@ -1,3 +1,3 @@
1
1
  export declare const s3BucketsMessage = "If you haven't already, please make sure you have clicked the 'Get Started With S3 Buckets' button under the 'S3 Buckets' tab on BRYN.";
2
- export declare const recentActivityMessage = "Your 50 most recent API requests will be listed here. If you see anything suspicious, please contact CLIMB-TRE support immediately.";
2
+ export declare const recentActivityMessage = "Your most recent API requests will be listed here. If you see anything suspicious, please contact CLIMB-TRE support immediately.";
3
3
  export declare const errorModalMessage = "Please try again or contact CLIMB-TRE support if the problem persists.";
@@ -18,4 +18,4 @@ declare const graphStyles: {
18
18
  };
19
19
  };
20
20
  };
21
- export { selectStyles, graphStyles };
21
+ export { graphStyles, selectStyles };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "climb-onyx-gui",
3
- "version": "0.14.0-dev",
3
+ "version": "0.14.0-dev.2",
4
4
  "type": "module",
5
5
  "main": "dist/climb-onyx-gui.js",
6
6
  "types": "dist/main.d.ts",
File without changes
@@ -1,9 +0,0 @@
1
- import { ErrorResponse, RecordDetailResponse } from '../types';
2
- import { DataProps } from '../interfaces';
3
-
4
- interface ObjectDetailsProps extends DataProps {
5
- data: RecordDetailResponse | ErrorResponse;
6
- handleErrorModalShow: (error: Error) => void;
7
- }
8
- declare function ObjectDetails(props: ObjectDetailsProps): import("react/jsx-runtime").JSX.Element;
9
- export default ObjectDetails;