Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,6 @@ $defs:
minimum: 0
maximum: 50000000
example: 1337
notify-moe:
oneOf:
- type: "null"
- type: string
minLength: 1
maxLength: 50
example: "-cQb5Fmmg"
themoviedb:
oneOf:
- type: "null"
Expand Down Expand Up @@ -158,7 +151,6 @@ $defs:
imdb: tt0164917
kitsu: null
livechart: null
notify-moe: "-cQb5Fmmg"
themoviedb: null
thetvdb: null
myanimelist: null
Expand Down Expand Up @@ -308,7 +300,6 @@ paths:
- anisearch
- kitsu
- livechart
- notify-moe
- myanimelist
- name: id
in: query
Expand Down Expand Up @@ -356,7 +347,6 @@ paths:
example:
- anilist: 1337
- anidb: 1337
- notify-moe: -cQb5Fmmg
oneOf:
- type: object
minProperties: 1
Expand Down Expand Up @@ -398,12 +388,6 @@ paths:
- type: integer
minimum: 0
maximum: 50000000
notify-moe:
oneOf:
- type: "null"
- type: string
minLength: 1
maxLength: 50
myanimelist:
oneOf:
- type: "null"
Expand Down Expand Up @@ -454,12 +438,6 @@ paths:
- type: integer
minimum: 0
maximum: 50000000
notify-moe:
oneOf:
- type: "null"
- type: string
minLength: 1
maxLength: 50
myanimelist:
oneOf:
- type: "null"
Expand Down
2 changes: 0 additions & 2 deletions src/db/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const Source = {
IMDB: "imdb",
Kitsu: "kitsu",
LiveChart: "livechart",
NotifyMoe: "notify-moe",
TheMovieDB: "themoviedb",
TheTVDB: "thetvdb",
MAL: "myanimelist",
Expand All @@ -30,7 +29,6 @@ export type Relation = {
[Source.IMDB]?: `tt${string}`
[Source.Kitsu]?: number
[Source.LiveChart]?: number
[Source.NotifyMoe]?: string
[Source.TheMovieDB]?: number
[Source.TheTVDB]?: number
[Source.MAL]?: number
Expand Down
3 changes: 0 additions & 3 deletions src/routes/v2/ids/handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const createRelations = async <N extends number>(
imdb: `tt${id++}`,
kitsu: id++,
livechart: id++,
"notify-moe": `${id++}`,
themoviedb: id++,
thetvdb: id++,
myanimelist: id++,
Expand Down Expand Up @@ -80,7 +79,6 @@ describe("query params", () => {
imdb: null!,
kitsu: null!,
livechart: null!,
"notify-moe": null!,
themoviedb: null!,
thetvdb: null!,
myanimelist: null!,
Expand Down Expand Up @@ -165,7 +163,6 @@ describe("json body", () => {
imdb: null!,
kitsu: null!,
livechart: null!,
"notify-moe": null!,
themoviedb: null!,
thetvdb: null!,
myanimelist: null!,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/v2/ids/schemas/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export const numberIdSourceSchema = v.picklist([
"myanimelist",
])

export const stringIdSourceSchema = v.picklist(["anime-planet", "notify-moe"])
export const stringIdSourceSchema = v.picklist(["anime-planet"])
1 change: 0 additions & 1 deletion src/routes/v2/ids/schemas/json-body.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const okCases = [
anisearch: 1337,
kitsu: 1337,
livechart: 1337,
"notify-moe": "1337",
myanimelist: 1337,
},
true,
Expand Down
1 change: 0 additions & 1 deletion src/routes/v2/ids/schemas/json-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const singularItemInputSchema = v.pipe(
anisearch: numberIdSchema,
kitsu: numberIdSchema,
livechart: numberIdSchema,
"notify-moe": stringIdSchema,
myanimelist: numberIdSchema,
}),
),
Expand Down
1 change: 0 additions & 1 deletion src/routes/v2/include.test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export const testIncludeQueryParam = (
imdb: null,
kitsu: null,
livechart: null,
"notify-moe": null,
themoviedb: null,
thetvdb: null,
myanimelist: null,
Expand Down
4 changes: 0 additions & 4 deletions src/routes/v2/special/handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const createRelations = async <N extends number>(
imdb: `tt${specialId ?? id++}`,
kitsu: id++,
livechart: id++,
"notify-moe": `${id++}`,
themoviedb: specialId ?? id++,
thetvdb: specialId ?? id++,
myanimelist: id++,
Expand Down Expand Up @@ -71,7 +70,6 @@ describe("imdb", () => {
imdb: "tt1337",
kitsu: null!,
livechart: null!,
"notify-moe": null!,
themoviedb: null!,
thetvdb: null!,
myanimelist: null!,
Expand Down Expand Up @@ -117,7 +115,6 @@ describe("thetvdb", () => {
imdb: null!,
kitsu: null!,
livechart: null!,
"notify-moe": null!,
themoviedb: null!,
thetvdb: 1337,
myanimelist: null!,
Expand Down Expand Up @@ -165,7 +162,6 @@ describe("themoviedb", () => {
imdb: null!,
kitsu: null!,
livechart: null!,
"notify-moe": null!,
themoviedb: 1337,
thetvdb: null!,
myanimelist: null!,
Expand Down
1 change: 0 additions & 1 deletion src/update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ it("handles duplicates", async () => {
Source.AniSearch,
Source.Kitsu,
Source.LiveChart,
Source.NotifyMoe,
Source.MAL,
]

Expand Down
2 changes: 0 additions & 2 deletions src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export type AnimeListsSchema = Array<{
kitsu_id?: number
livechart_id?: number
mal_id?: number
"notify.moe_id"?: string
themoviedb_id?: number | "unknown"
tvdb_id?: number
}>
Expand Down Expand Up @@ -95,7 +94,6 @@ export const formatEntry = (entry: AnimeListsSchema[number]): Relation => ({
kitsu: handleBadValues(entry.kitsu_id),
livechart: handleBadValues(entry.livechart_id),
myanimelist: handleBadValues(entry.mal_id),
"notify-moe": handleBadValues(entry["notify.moe_id"]),
themoviedb: handleBadValues(entry.themoviedb_id),
thetvdb: handleBadValues(entry.tvdb_id),
})
Expand Down