@andev2005/movie-glu-sdk 1.0.5 → 1.0.7

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/dist/index.d.mts CHANGED
@@ -99,23 +99,24 @@ type FilmDetailsResponse = {
99
99
  film_name: string;
100
100
  other_titles?: OtherTitles;
101
101
  version_type?: string;
102
- images: FilmImages;
103
- synopsis_long: string;
102
+ images?: FilmImages;
103
+ synopsis_short?: string;
104
+ synopsis_long?: string;
104
105
  distributor_id?: number;
105
106
  distributor?: string;
106
- release_dates: ReleaseDate[];
107
- age_rating: AgeRating[];
107
+ release_dates?: ReleaseDate[];
108
+ age_rating?: AgeRating[];
108
109
  duration_mins?: number;
109
- review_stars?: number;
110
+ review_stars?: number | string;
110
111
  review_txt?: string;
111
- trailers: Trailers | null;
112
- genres: Genre[];
113
- cast: Cast[];
114
- directors: Director[];
115
- producers: Producer[];
116
- writers: Writer[];
117
- show_dates: ShowDate[];
118
- alternate_versions: AlternateVersion[];
112
+ trailers?: Trailers | null;
113
+ genres?: Genre[];
114
+ cast?: Cast[];
115
+ directors?: Director[];
116
+ producers?: Producer[];
117
+ writers?: Writer[];
118
+ show_dates?: ShowDate[];
119
+ alternate_versions?: AlternateVersion[];
119
120
  status: Status;
120
121
  };
121
122
  type CinemaDetailsResponse = {
@@ -162,11 +163,11 @@ type Status = {
162
163
  };
163
164
  type OtherTitles = Record<string, string>;
164
165
  type ReleaseDate = {
165
- release_date: string;
166
+ release_date?: string;
166
167
  notes?: string;
167
168
  };
168
169
  type AgeRating = {
169
- rating: string;
170
+ rating?: string;
170
171
  age_rating_image?: string;
171
172
  age_advisory?: string;
172
173
  };
@@ -215,24 +216,28 @@ type Film = {
215
216
  imdb_title_id?: string;
216
217
  film_name: string;
217
218
  other_titles?: OtherTitles;
218
- release_dates: ReleaseDate[];
219
- age_rating: AgeRating[];
220
- film_trailer: string | null;
221
- synopsis_long: string;
222
- images: FilmImages;
223
- };
224
- type FilmComingSoon = {
225
- film_id: number;
226
- imdb_id?: number;
227
- imdb_title_id?: string;
228
- film_name: string;
229
- other_titles?: OtherTitles;
230
- release_dates: ReleaseDate[];
231
- age_rating: AgeRating[];
232
- film_trailer: string | null;
233
- synopsis_long: string;
234
- images: FilmImages;
235
- };
219
+ version_type?: string;
220
+ images?: FilmImages;
221
+ synopsis_short?: string;
222
+ synopsis_long?: string;
223
+ distributor_id?: number;
224
+ distributor?: string;
225
+ release_dates?: ReleaseDate[];
226
+ age_rating?: AgeRating[];
227
+ duration_mins?: number;
228
+ review_stars?: number | string;
229
+ review_txt?: string;
230
+ trailers?: Trailers | null;
231
+ genres?: Genre[];
232
+ cast?: Cast[];
233
+ directors?: Director[];
234
+ producers?: Producer[];
235
+ writers?: Writer[];
236
+ show_dates?: ShowDate[];
237
+ alternate_versions?: AlternateVersion[];
238
+ film_trailer?: string | null;
239
+ };
240
+ type FilmComingSoon = Film;
236
241
  type Genre = {
237
242
  genre_id: number;
238
243
  genre_name: string;
@@ -259,7 +264,7 @@ type AlternateVersion = {
259
264
  version_type: string;
260
265
  };
261
266
  type TrailerItem = {
262
- film_trailer: string;
267
+ film_trailer?: string;
263
268
  trailer_image?: string;
264
269
  version?: number;
265
270
  quality?: string;
package/dist/index.d.ts CHANGED
@@ -99,23 +99,24 @@ type FilmDetailsResponse = {
99
99
  film_name: string;
100
100
  other_titles?: OtherTitles;
101
101
  version_type?: string;
102
- images: FilmImages;
103
- synopsis_long: string;
102
+ images?: FilmImages;
103
+ synopsis_short?: string;
104
+ synopsis_long?: string;
104
105
  distributor_id?: number;
105
106
  distributor?: string;
106
- release_dates: ReleaseDate[];
107
- age_rating: AgeRating[];
107
+ release_dates?: ReleaseDate[];
108
+ age_rating?: AgeRating[];
108
109
  duration_mins?: number;
109
- review_stars?: number;
110
+ review_stars?: number | string;
110
111
  review_txt?: string;
111
- trailers: Trailers | null;
112
- genres: Genre[];
113
- cast: Cast[];
114
- directors: Director[];
115
- producers: Producer[];
116
- writers: Writer[];
117
- show_dates: ShowDate[];
118
- alternate_versions: AlternateVersion[];
112
+ trailers?: Trailers | null;
113
+ genres?: Genre[];
114
+ cast?: Cast[];
115
+ directors?: Director[];
116
+ producers?: Producer[];
117
+ writers?: Writer[];
118
+ show_dates?: ShowDate[];
119
+ alternate_versions?: AlternateVersion[];
119
120
  status: Status;
120
121
  };
121
122
  type CinemaDetailsResponse = {
@@ -162,11 +163,11 @@ type Status = {
162
163
  };
163
164
  type OtherTitles = Record<string, string>;
164
165
  type ReleaseDate = {
165
- release_date: string;
166
+ release_date?: string;
166
167
  notes?: string;
167
168
  };
168
169
  type AgeRating = {
169
- rating: string;
170
+ rating?: string;
170
171
  age_rating_image?: string;
171
172
  age_advisory?: string;
172
173
  };
@@ -215,24 +216,28 @@ type Film = {
215
216
  imdb_title_id?: string;
216
217
  film_name: string;
217
218
  other_titles?: OtherTitles;
218
- release_dates: ReleaseDate[];
219
- age_rating: AgeRating[];
220
- film_trailer: string | null;
221
- synopsis_long: string;
222
- images: FilmImages;
223
- };
224
- type FilmComingSoon = {
225
- film_id: number;
226
- imdb_id?: number;
227
- imdb_title_id?: string;
228
- film_name: string;
229
- other_titles?: OtherTitles;
230
- release_dates: ReleaseDate[];
231
- age_rating: AgeRating[];
232
- film_trailer: string | null;
233
- synopsis_long: string;
234
- images: FilmImages;
235
- };
219
+ version_type?: string;
220
+ images?: FilmImages;
221
+ synopsis_short?: string;
222
+ synopsis_long?: string;
223
+ distributor_id?: number;
224
+ distributor?: string;
225
+ release_dates?: ReleaseDate[];
226
+ age_rating?: AgeRating[];
227
+ duration_mins?: number;
228
+ review_stars?: number | string;
229
+ review_txt?: string;
230
+ trailers?: Trailers | null;
231
+ genres?: Genre[];
232
+ cast?: Cast[];
233
+ directors?: Director[];
234
+ producers?: Producer[];
235
+ writers?: Writer[];
236
+ show_dates?: ShowDate[];
237
+ alternate_versions?: AlternateVersion[];
238
+ film_trailer?: string | null;
239
+ };
240
+ type FilmComingSoon = Film;
236
241
  type Genre = {
237
242
  genre_id: number;
238
243
  genre_name: string;
@@ -259,7 +264,7 @@ type AlternateVersion = {
259
264
  version_type: string;
260
265
  };
261
266
  type TrailerItem = {
262
- film_trailer: string;
267
+ film_trailer?: string;
263
268
  trailer_image?: string;
264
269
  version?: number;
265
270
  quality?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andev2005/movie-glu-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/type.ts CHANGED
@@ -120,23 +120,24 @@ export type FilmDetailsResponse = {
120
120
  film_name: string;
121
121
  other_titles?: OtherTitles;
122
122
  version_type?: string;
123
- images: FilmImages;
124
- synopsis_long: string;
123
+ images?: FilmImages;
124
+ synopsis_short?: string;
125
+ synopsis_long?: string;
125
126
  distributor_id?: number;
126
127
  distributor?: string;
127
- release_dates: ReleaseDate[];
128
- age_rating: AgeRating[];
128
+ release_dates?: ReleaseDate[];
129
+ age_rating?: AgeRating[];
129
130
  duration_mins?: number;
130
- review_stars?: number;
131
+ review_stars?: number | string;
131
132
  review_txt?: string;
132
- trailers: Trailers | null;
133
- genres: Genre[];
134
- cast: Cast[];
135
- directors: Director[];
136
- producers: Producer[];
137
- writers: Writer[];
138
- show_dates: ShowDate[];
139
- alternate_versions: AlternateVersion[];
133
+ trailers?: Trailers | null;
134
+ genres?: Genre[];
135
+ cast?: Cast[];
136
+ directors?: Director[];
137
+ producers?: Producer[];
138
+ writers?: Writer[];
139
+ show_dates?: ShowDate[];
140
+ alternate_versions?: AlternateVersion[];
140
141
  status: Status;
141
142
  };
142
143
 
@@ -190,12 +191,12 @@ export type Status = {
190
191
  export type OtherTitles = Record<string, string>;
191
192
 
192
193
  export type ReleaseDate = {
193
- release_date: string;
194
+ release_date?: string;
194
195
  notes?: string;
195
196
  };
196
197
 
197
198
  export type AgeRating = {
198
- rating: string;
199
+ rating?: string;
199
200
  age_rating_image?: string;
200
201
  age_advisory?: string;
201
202
  };
@@ -251,25 +252,29 @@ export type Film = {
251
252
  imdb_title_id?: string;
252
253
  film_name: string;
253
254
  other_titles?: OtherTitles;
254
- release_dates: ReleaseDate[];
255
- age_rating: AgeRating[];
256
- film_trailer: string | null;
257
- synopsis_long: string;
258
- images: FilmImages;
255
+ version_type?: string;
256
+ images?: FilmImages;
257
+ synopsis_short?: string;
258
+ synopsis_long?: string;
259
+ distributor_id?: number;
260
+ distributor?: string;
261
+ release_dates?: ReleaseDate[];
262
+ age_rating?: AgeRating[];
263
+ duration_mins?: number;
264
+ review_stars?: number | string;
265
+ review_txt?: string;
266
+ trailers?: Trailers | null;
267
+ genres?: Genre[];
268
+ cast?: Cast[];
269
+ directors?: Director[];
270
+ producers?: Producer[];
271
+ writers?: Writer[];
272
+ show_dates?: ShowDate[];
273
+ alternate_versions?: AlternateVersion[];
274
+ film_trailer?: string | null;
259
275
  };
260
276
 
261
- export type FilmComingSoon = {
262
- film_id: number;
263
- imdb_id?: number;
264
- imdb_title_id?: string;
265
- film_name: string;
266
- other_titles?: OtherTitles;
267
- release_dates: ReleaseDate[];
268
- age_rating: AgeRating[];
269
- film_trailer: string | null;
270
- synopsis_long: string;
271
- images: FilmImages;
272
- };
277
+ export type FilmComingSoon = Film;
273
278
 
274
279
  export type Genre = {
275
280
  genre_id: number;
@@ -303,7 +308,7 @@ export type AlternateVersion = {
303
308
  };
304
309
 
305
310
  export type TrailerItem = {
306
- film_trailer: string;
311
+ film_trailer?: string;
307
312
  trailer_image?: string;
308
313
  version?: number;
309
314
  quality?: string;