Skip to content

Commit

Permalink
fixed npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
jjoel1630 committed Nov 11, 2024
1 parent fb5464f commit 174e002
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/data/sampledata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const data: MCAPFileInformation[] = [
export const data: MCAPFileInformationNew[] = [
{
id: "505deb4b-44a8-48dd-9da6-a671c1d3eccd",
mcap_files: [
Expand Down
52 changes: 42 additions & 10 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
type MCAPFileInformation = {
id: string;
car_model: string;
schema_versions?: null;
mcap_files: {
signed_url: string;
file_name: string;
}[];
mat_files: {
signed_url: string;
file_name: string;
}[];
content_files: {
vn_lat_lon_plot: {
signed_url: string;
file_name: string;
}[];
};
mcap_file_name: string;
matlab_file_name: string;
aws_bucket: string;
mcap_path: string;
mat_path: string;
vn_lat_lon_path: string;
velocity_plot_path: string;
date: string;
location: string;
notes?: string;
event_type?: string;
signed_url?: string;
};

type SearchFilter = {
location?: string;
searchText?: string;
date?: string;
eventType?: string;
afterDate?: string;
beforeDate?: string;
};

type FileType = {
file_name: string;
signed_url: string;
Expand All @@ -8,7 +49,7 @@ type ContentFileType = {
signed_url: string;
};

type MCAPFileInformation = {
type MCAPFileInformationNew = {
id: string;
schema_versions?: null;
mcap_files: FileType[];
Expand All @@ -20,12 +61,3 @@ type MCAPFileInformation = {
event_type?: string;
schema?: { [key: string]: string };
};

type SearchFilter = {
location?: string;
searchText?: string;
date?: string;
eventType?: string;
afterDate?: string;
beforeDate?: string;
};

0 comments on commit 174e002

Please sign in to comment.