hooked up all items on the list settings section

This commit is contained in:
Edward Tirado Jr 2026-04-05 00:36:20 -05:00
parent 53df349d9f
commit 91173021b2
32 changed files with 578 additions and 178 deletions

2
app/types/api.ts Normal file
View file

@ -0,0 +1,2 @@
export type ResourceResponse<T> = { data: T }
//export type PaginatedResponse<T> = { data: T[]; meta: PaginationMeta; links: Links }

View file

@ -1,6 +0,0 @@
export type Collaborator = {
id: number,
name: string
role: number
}

View file

@ -0,0 +1,7 @@
import type {MovieList} from "~/types/movie-list";
export type MovieListGroup = {
movie_lists: MovieList[]
shared_lists: MovieList[]
}

View file

@ -1,9 +1,9 @@
import type {Collaborator} from "~/types/collaborator";
import type {User} from "~/types/user";
import type {Role} from "~/types/role";
export type MovieListSettings = {
listName: string,
isPublic: boolean,
collaborators: Collaborator[],
collaborators: User[],
roles: Role[]
}

View file

@ -1,11 +1,13 @@
import {type MovieListSettings} from "~/types/movie-list-settings";
import type {Movie} from "~/types/movie";
import type {User} from "~/types/user";
export type MovieList = {
id: number,
id: number
name: string
is_public: boolean
movieListSettings: MovieListSettings
owner: string
role: string
movies: Movie[]
collaborators: User[]
}

View file

@ -1,5 +1,7 @@
import type {MovieCriticScore} from "~/types/movie-critic-score";
export type Movie = {
id: number,
id: number
title: string
year: number
imdb_id: string
@ -8,7 +10,7 @@ export type Movie = {
plot: string
genre: string
mpaa_rating: string
critic_scores: string
critic_scores: Array<MovieCriticScore>
poster: string
added_by: number
}

7
app/types/user.ts Normal file
View file

@ -0,0 +1,7 @@
export type User = {
id: number,
username: string
email: string
role: number
}