Skip to content
Merged
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
2 changes: 1 addition & 1 deletion projects/api/deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@trakt/api",
"exports": "./src/index.ts",
"version": "0.4.25",
"version": "0.4.26",
"imports": {
"@anatine/zod-openapi": "npm:@anatine/zod-openapi@^2.2.6",
"@std/testing": "jsr:@std/testing@^1.0.5",
Expand Down
36 changes: 36 additions & 0 deletions projects/api/src/contracts/calendars/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,42 @@ Returns the merged feed of upcoming movies and episodes during the requested UTC
200: hotReleaseResponseSchema.array(),
},
},
releasesHotPremieres: {
summary: 'Get hot premieres',
description: `#### ✨ Extended Info 🎚 Filters
Returns upcoming show premieres during the requested UTC date range that are trending or highly anticipated. Curated global feed - daily-cadence formats (soap, talk, news, game shows) and specials are excluded.`,
method: 'GET',
path: '/releases/hot/premieres/:start_date/:days',
query: extendedMediaQuerySchema.merge(mediaFilterParamsSchema),
pathParams: calendarRequestParamsSchema.omit({ target: true }),
responses: {
200: calendarShowResponseSchema.array(),
},
},
releasesHotFinales: {
summary: 'Get hot finales',
description: `#### ✨ Extended Info 🎚 Filters
Returns upcoming show finales during the requested UTC date range that are trending or highly anticipated. Curated global feed - daily-cadence formats (soap, talk, news, game shows) and specials are excluded.`,
method: 'GET',
path: '/releases/hot/finales/:start_date/:days',
query: extendedMediaQuerySchema.merge(mediaFilterParamsSchema),
pathParams: calendarRequestParamsSchema.omit({ target: true }),
responses: {
200: calendarShowResponseSchema.array(),
},
},
releasesHotNew: {
summary: 'Get hot new shows',
description: `#### ✨ Extended Info 🎚 Filters
Returns upcoming series premieres during the requested UTC date range that are trending or highly anticipated. Curated global feed - daily-cadence formats (soap, talk, news, game shows) and specials are excluded.`,
method: 'GET',
path: '/releases/hot/new/:start_date/:days',
query: extendedMediaQuerySchema.merge(mediaFilterParamsSchema),
pathParams: calendarRequestParamsSchema.omit({ target: true }),
responses: {
200: calendarShowResponseSchema.array(),
},
},
}, { pathPrefix: '/calendars' });

export { calendarRequestParamsSchema };
Expand Down
Loading