docs: update bulk insert video documentation

This commit is contained in:
2026-07-02 21:49:05 +07:00
parent 51693959b6
commit 9cfb793e59
2 changed files with 66 additions and 88 deletions

View File

@ -16,14 +16,27 @@ export const bulkInsertVideoSchema = {
service_id: t.String({ service_id: t.String({
description: "The ID of the video service", description: "The ID of the video service",
}), }),
priority: t.Optional(t.Number({
description: "The priority of the video (can't be duplicate)",
})),
video_code: t.String({ video_code: t.String({
description: "The code of the video on the service", description: "The code of the video on the service",
}), }),
short_code: t.Optional(
t.String({
description: "The code of the preview video on the service",
}),
),
thumbnail_code: t.Optional( thumbnail_code: t.Optional(
t.String({ t.String({
description: "The code of the thumbnail for the video on the service", description: "The code of the thumbnail for the video on the service",
}), }),
), ),
download_code: t.Optional(
t.String({
description: "The code of the download link for the video on the service",
})
)
}), }),
), ),
}), }),

View File

@ -1,35 +0,0 @@
import { t } from "elysia";
import { AppRouteSchema } from "../../../helpers/types/AppRouteSchema";
export const updateAllEpisodeThumbnailSchema = {
body: t.Object({
service_reference_id: t.String({
description: "The ID of the service to which the target of episode thumbnails belong",
}),
}),
detail: {
summary: "Bulk update episode thumbnails",
description:
"Perform bulk update of episode thumbnails for all episodes associated with a specific service reference ID. This operation fetches the latest thumbnail data from external sources and updates the existing episode records in the database accordingly.",
responses: {
204: {
description: "Updating episode thumbnails operation completed successfully",
content: {
"application/json": {
schema: {
type: "object",
properties: {
success: { type: "boolean", default: true },
status: { type: "integer", default: 204 },
message: {
type: "string",
default: "Updating {newEpisodeThumbnailsCount} episode thumbnails operation completed successfully",
},
},
},
},
},
},
},
},
} satisfies AppRouteSchema;