/** * This file was @generated using pocketbase-typegen */ import type PocketBase from "pocketbase"; import type { RecordService } from "pocketbase"; export declare enum Collections { Collection = "collection", Country = "country", Genre = "genre", Language = "language", Movie = "movie", MovieStaff = "movieStaff", MusicAlbum = "musicAlbum", Person = "person", Role = "role", Studio = "studio", Tag = "tag", TvEpisode = "tvEpisode", TvEpisodeStaff = "tvEpisodeStaff", TvSeason = "tvSeason", TvSeasonStaff = "tvSeasonStaff", TvSeries = "tvSeries", TvSeriesStaff = "tvSeriesStaff", User = "user" } export type IsoDateString = string; export type RecordIdString = string; export type HTMLString = string; export type BaseSystemFields = { id: RecordIdString; created: IsoDateString; updated: IsoDateString; collectionId: string; collectionName: Collections; expand?: T; }; export type AuthSystemFields = BaseSystemFields & { email: string; emailVisibility: boolean; username: string; verified: boolean; }; export type CollectionRecord = { backdrop?: string[]; banners?: string[]; contentRatings?: string; description?: string; genres?: RecordIdString[]; logos?: string[]; name: string; posters?: string[]; rating?: number; releaseDate: IsoDateString; sortName: string; tags?: RecordIdString[]; thumbnails?: string[]; }; export type CountryRecord = { alpha2: string; alpha3: string; name: string; }; export type GenreRecord = { name: string; sortName: string; }; export type LanguageRecord = { iso639_1: string; iso639_2: string; name: string; }; export type MovieRecord = { backdrop?: string[]; banners?: string[]; collections?: RecordIdString[]; contentRatings?: string; country: RecordIdString; description?: string; genres?: RecordIdString[]; homepage?: string; language: RecordIdString; logos?: string[]; matchName?: string; name: string; posters?: string[]; rating?: number; releaseDate: IsoDateString; sortName: string; studios?: RecordIdString[]; tagline?: string; tags?: RecordIdString[]; thumbnails?: string[]; }; export type MovieStaffRecord = { movie: RecordIdString; person: RecordIdString; priority?: number; role: RecordIdString; }; export type MusicAlbumRecord = { backdrop?: string[]; banners?: string[]; collections?: RecordIdString[]; country: RecordIdString; description?: string; genres?: RecordIdString[]; language: RecordIdString; logos?: string[]; matchName?: string; name: string; posters?: string[]; rating?: number; releaseDate: IsoDateString; sortName: string; tags?: RecordIdString[]; thumbnails?: string[]; }; export type PersonRecord = { avatars?: string[]; backdrop?: string[]; country: RecordIdString; description?: string; dob?: IsoDateString; dod?: IsoDateString; matchName?: string; name: string; sortName: string; tags?: RecordIdString[]; thumbnails?: string[]; }; export declare enum RoleJellyfinOptions { Actor = "Actor", Director = "Director", Composer = "Composer", Writer = "Writer", GuestStar = "GuestStar", Producer = "Producer", Conductor = "Conductor", Lyricist = "Lyricist", Arranger = "Arranger", Engineer = "Engineer", Mixer = "Mixer", Remixer = "Remixer" } export type RoleRecord = { jellyfin?: RoleJellyfinOptions; name: string; }; export type StudioRecord = { backdrop?: string[]; country: RecordIdString; description?: string; foundedAt?: IsoDateString; language: RecordIdString; logos?: string[]; name: string; posters?: string[]; sortName: string; thumbnails?: string[]; }; export type TagRecord = { name: string; sortName: string; }; export type TvEpisodeRecord = { airDate: IsoDateString; backdrop?: string[]; banners?: string[]; country: RecordIdString; description?: string; language: RecordIdString; logos?: string[]; name: string; order?: number; posters?: string[]; rating?: number; sortName: string; thumbnails?: string[]; tvSeason: RecordIdString; }; export type TvEpisodeStaffRecord = { person: RecordIdString; priority?: number; role: RecordIdString; tvEpisode: RecordIdString; }; export type TvSeasonRecord = { airDate: IsoDateString; backdrop?: string[]; banners?: string[]; contentRatings?: string; country: RecordIdString; description?: string; homepage?: string; language: RecordIdString; logos?: string[]; name: string; order?: number; posters?: string[]; rating?: number; sortName: string; studios?: RecordIdString[]; tagline?: string; thumbnails?: string[]; tvSeries: RecordIdString; }; export type TvSeasonStaffRecord = { person: RecordIdString; priority?: number; role: RecordIdString; tvSeason: RecordIdString; }; export type TvSeriesRecord = { backdrop?: string[]; banners?: string[]; collections?: RecordIdString[]; contentRatings?: string; country: RecordIdString; description?: string; firstAirDate: IsoDateString; genres?: RecordIdString[]; homepage?: string; language: RecordIdString; lastAirDate?: IsoDateString; logos?: string[]; matchName?: string; name: string; posters?: string[]; rating?: number; sortName: string; studios?: RecordIdString[]; tagline?: string; tags?: RecordIdString[]; thumbnails?: string[]; }; export type TvSeriesStaffRecord = { person: RecordIdString; priority?: number; role: RecordIdString; tvSeries: RecordIdString; }; export type UserRecord = { avatar?: string; name?: string; }; export type CollectionResponse = BaseSystemFields & Required; export type CountryResponse = BaseSystemFields & Required; export type GenreResponse = BaseSystemFields & Required; export type LanguageResponse = BaseSystemFields & Required; export type MovieResponse = BaseSystemFields & Required; export type MovieStaffResponse = BaseSystemFields & Required; export type MusicAlbumResponse = BaseSystemFields & Required; export type PersonResponse = BaseSystemFields & Required; export type RoleResponse = BaseSystemFields & Required; export type StudioResponse = BaseSystemFields & Required; export type TagResponse = BaseSystemFields & Required; export type TvEpisodeResponse = BaseSystemFields & Required; export type TvEpisodeStaffResponse = BaseSystemFields & Required; export type TvSeasonResponse = BaseSystemFields & Required; export type TvSeasonStaffResponse = BaseSystemFields & Required; export type TvSeriesResponse = BaseSystemFields & Required; export type TvSeriesStaffResponse = BaseSystemFields & Required; export type UserResponse = AuthSystemFields & Required; export type CollectionRecords = { collection: CollectionRecord; country: CountryRecord; genre: GenreRecord; language: LanguageRecord; movie: MovieRecord; movieStaff: MovieStaffRecord; musicAlbum: MusicAlbumRecord; person: PersonRecord; role: RoleRecord; studio: StudioRecord; tag: TagRecord; tvEpisode: TvEpisodeRecord; tvEpisodeStaff: TvEpisodeStaffRecord; tvSeason: TvSeasonRecord; tvSeasonStaff: TvSeasonStaffRecord; tvSeries: TvSeriesRecord; tvSeriesStaff: TvSeriesStaffRecord; user: UserRecord; }; export type CollectionResponses = { collection: CollectionResponse; country: CountryResponse; genre: GenreResponse; language: LanguageResponse; movie: MovieResponse; movieStaff: MovieStaffResponse; musicAlbum: MusicAlbumResponse; person: PersonResponse; role: RoleResponse; studio: StudioResponse; tag: TagResponse; tvEpisode: TvEpisodeResponse; tvEpisodeStaff: TvEpisodeStaffResponse; tvSeason: TvSeasonResponse; tvSeasonStaff: TvSeasonStaffResponse; tvSeries: TvSeriesResponse; tvSeriesStaff: TvSeriesStaffResponse; user: UserResponse; }; export type TypedPocketBase = PocketBase & { collection(idOrName: "collection"): RecordService; collection(idOrName: "country"): RecordService; collection(idOrName: "genre"): RecordService; collection(idOrName: "language"): RecordService; collection(idOrName: "movie"): RecordService; collection(idOrName: "movieStaff"): RecordService; collection(idOrName: "musicAlbum"): RecordService; collection(idOrName: "person"): RecordService; collection(idOrName: "role"): RecordService; collection(idOrName: "studio"): RecordService; collection(idOrName: "tag"): RecordService; collection(idOrName: "tvEpisode"): RecordService; collection(idOrName: "tvEpisodeStaff"): RecordService; collection(idOrName: "tvSeason"): RecordService; collection(idOrName: "tvSeasonStaff"): RecordService; collection(idOrName: "tvSeries"): RecordService; collection(idOrName: "tvSeriesStaff"): RecordService; collection(idOrName: "user"): RecordService; };