@tmdb-graphql-api/resolvers 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tmdb-graphql-api/resolvers",
3
3
  "description": "The TMDB GraphQL resolvers module.",
4
- "version": "0.0.18",
4
+ "version": "0.0.20",
5
5
  "author": "Dylan Aubrey",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/badbatch/themoviedb-graphql-api",
@@ -40,7 +40,7 @@
40
40
  "query-string": "^8.1.0",
41
41
  "type-fest": "^4.5.0",
42
42
  "@tmdb-graphql-api/rest-client": "0.0.8",
43
- "@tmdb-graphql-api/schema": "0.0.15"
43
+ "@tmdb-graphql-api/schema": "0.0.16"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@babel/runtime": "<8",
package/src/main.ts CHANGED
@@ -82,7 +82,7 @@ import {
82
82
  type SearchMediaType,
83
83
  } from './types.ts';
84
84
 
85
- export const resolvers: Record<string, Record<string, FieldResolver>> = {
85
+ export const resolvers: Record<string, Record<string, string | number | FieldResolver>> = {
86
86
  Certifications: {
87
87
  CA_QC: (obj: Certifications) => obj['CA-QC' as keyof Certifications],
88
88
  },
@@ -137,6 +137,22 @@ export const resolvers: Record<string, Record<string, FieldResolver>> = {
137
137
  videos: resolveMovieVideos,
138
138
  watchProviders: resolveMovieWatchProviders,
139
139
  },
140
+ MovieStatus: {
141
+ CANCELED: 'Canceled',
142
+ IN_PRODUCTION: 'In Production',
143
+ PLANNED: 'Planned',
144
+ POST_PRODUCTION: 'Post Production',
145
+ RELEASED: 'Released',
146
+ RUMORED: 'Rumored',
147
+ },
148
+ MoviesReleaseType: {
149
+ DIGITAL: 4,
150
+ PHYSICAL: 5,
151
+ PREMIER: 1,
152
+ THEATRICAL: 3,
153
+ THEATRICAL_LIMITED: 2,
154
+ TV: 6,
155
+ },
140
156
  Network: {
141
157
  ...makeFallbackFieldResolvers('Network', resolveNetwork),
142
158
  alternativeNames: resolveNetworkAlternativeNames,
@@ -215,6 +231,23 @@ export const resolvers: Record<string, Record<string, FieldResolver>> = {
215
231
  videos: resolveTvVideos,
216
232
  watchProviders: resolveTvWatchProviders,
217
233
  },
234
+ TvStatus: {
235
+ CANCELED: 'Canceled',
236
+ ENDED: 'Ended',
237
+ IN_PRODUCTION: 'In Production',
238
+ PILOT: 'Pilot',
239
+ PLANNED: 'Planned',
240
+ RETURNING_SERIES: 'Returning Series',
241
+ },
242
+ TvType: {
243
+ DOCUMENTARY: 'Documentary',
244
+ MINISERIES: 'Miniseries',
245
+ NEWS: 'News',
246
+ REALITY: 'Reality',
247
+ SCRIPTED: 'Scripted',
248
+ TALK_SHOW: 'Talk Show',
249
+ VIDEO: 'Video',
250
+ },
218
251
  Video: {
219
252
  type: resolveVideoType,
220
253
  },