@irohalab/mira-sdk-angular 1.10.0 → 1.11.1

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.
@@ -2,6 +2,7 @@ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, H
2
2
  import { Observable } from 'rxjs';
3
3
  import { BatchGetMainItemByIdListResult } from '../model/batchGetMainItemByIdListResult';
4
4
  import { BatchGetSubItemByIdListResult } from '../model/batchGetSubItemByIdListResult';
5
+ import { CharacterRelationsWithMainItems } from '../model/characterRelationsWithMainItems';
5
6
  import { ClientMapping } from '../model/clientMapping';
6
7
  import { CreateSubItemFavoriteRequestBody } from '../model/createSubItemFavoriteRequestBody';
7
8
  import { DeleteClientMappingByMainItemResponse } from '../model/deleteClientMappingByMainItemResponse';
@@ -9,11 +10,13 @@ import { Favorite } from '../model/favorite';
9
10
  import { FavoriteProgress } from '../model/favoriteProgress';
10
11
  import { GetOnAirItemListResponse } from '../model/getOnAirItemListResponse';
11
12
  import { IdListRequestBody } from '../model/idListRequestBody';
13
+ import { ItemRelationsWithMainItems } from '../model/itemRelationsWithMainItems';
12
14
  import { ListFavoritesResponse } from '../model/listFavoritesResponse';
13
15
  import { ListMainItemResponse } from '../model/listMainItemResponse';
14
16
  import { ListSubItemFavoriteResponse } from '../model/listSubItemFavoriteResponse';
15
17
  import { MainItem } from '../model/mainItem';
16
18
  import { PatchFavoriteBody } from '../model/patchFavoriteBody';
19
+ import { PersonRelationsWithMainItems } from '../model/personRelationsWithMainItems';
17
20
  import { SubItem } from '../model/subItem';
18
21
  import { SubItemFavorite } from '../model/subItemFavorite';
19
22
  import { SucceedEmptyResponse } from '../model/succeedEmptyResponse';
@@ -263,6 +266,69 @@ export declare class DefaultMira implements DefaultMiraInterface {
263
266
  context?: HttpContext;
264
267
  transferCache?: boolean;
265
268
  }): Observable<HttpEvent<MainItem>>;
269
+ /**
270
+ * get all related (Item , Cast) MainItem of an Character Type MainItem.
271
+ * @param id MainItem id
272
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
273
+ * @param reportProgress flag to report request and response progress.
274
+ */
275
+ getRelationsOfCharacter(id: string, observe?: 'body', reportProgress?: boolean, options?: {
276
+ httpHeaderAccept?: 'application/json';
277
+ context?: HttpContext;
278
+ transferCache?: boolean;
279
+ }): Observable<CharacterRelationsWithMainItems>;
280
+ getRelationsOfCharacter(id: string, observe?: 'response', reportProgress?: boolean, options?: {
281
+ httpHeaderAccept?: 'application/json';
282
+ context?: HttpContext;
283
+ transferCache?: boolean;
284
+ }): Observable<HttpResponse<CharacterRelationsWithMainItems>>;
285
+ getRelationsOfCharacter(id: string, observe?: 'events', reportProgress?: boolean, options?: {
286
+ httpHeaderAccept?: 'application/json';
287
+ context?: HttpContext;
288
+ transferCache?: boolean;
289
+ }): Observable<HttpEvent<CharacterRelationsWithMainItems>>;
290
+ /**
291
+ * get all related (Item, Staff, Cast, Character) MainItem of an Item Type MainItem.
292
+ * @param id MainItem id
293
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
294
+ * @param reportProgress flag to report request and response progress.
295
+ */
296
+ getRelationsOfItem(id: string, observe?: 'body', reportProgress?: boolean, options?: {
297
+ httpHeaderAccept?: 'application/json';
298
+ context?: HttpContext;
299
+ transferCache?: boolean;
300
+ }): Observable<ItemRelationsWithMainItems>;
301
+ getRelationsOfItem(id: string, observe?: 'response', reportProgress?: boolean, options?: {
302
+ httpHeaderAccept?: 'application/json';
303
+ context?: HttpContext;
304
+ transferCache?: boolean;
305
+ }): Observable<HttpResponse<ItemRelationsWithMainItems>>;
306
+ getRelationsOfItem(id: string, observe?: 'events', reportProgress?: boolean, options?: {
307
+ httpHeaderAccept?: 'application/json';
308
+ context?: HttpContext;
309
+ transferCache?: boolean;
310
+ }): Observable<HttpEvent<ItemRelationsWithMainItems>>;
311
+ /**
312
+ * get all related (Item , Character) MainItem of an Person Type MainItem.
313
+ * @param id MainItem id
314
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
315
+ * @param reportProgress flag to report request and response progress.
316
+ */
317
+ getRelationsOfPerson(id: string, observe?: 'body', reportProgress?: boolean, options?: {
318
+ httpHeaderAccept?: 'application/json';
319
+ context?: HttpContext;
320
+ transferCache?: boolean;
321
+ }): Observable<PersonRelationsWithMainItems>;
322
+ getRelationsOfPerson(id: string, observe?: 'response', reportProgress?: boolean, options?: {
323
+ httpHeaderAccept?: 'application/json';
324
+ context?: HttpContext;
325
+ transferCache?: boolean;
326
+ }): Observable<HttpResponse<PersonRelationsWithMainItems>>;
327
+ getRelationsOfPerson(id: string, observe?: 'events', reportProgress?: boolean, options?: {
328
+ httpHeaderAccept?: 'application/json';
329
+ context?: HttpContext;
330
+ transferCache?: boolean;
331
+ }): Observable<HttpEvent<PersonRelationsWithMainItems>>;
266
332
  /**
267
333
  * get a SubItem by id
268
334
  * @param id SubItem Id
@@ -12,6 +12,7 @@ import { HttpHeaders } from '@angular/common/http';
12
12
  import { Observable } from 'rxjs';
13
13
  import { BatchGetMainItemByIdListResult } from '../model/models';
14
14
  import { BatchGetSubItemByIdListResult } from '../model/models';
15
+ import { CharacterRelationsWithMainItems } from '../model/models';
15
16
  import { ClientMapping } from '../model/models';
16
17
  import { CreateSubItemFavoriteRequestBody } from '../model/models';
17
18
  import { DeleteClientMappingByMainItemResponse } from '../model/models';
@@ -19,11 +20,13 @@ import { Favorite } from '../model/models';
19
20
  import { FavoriteProgress } from '../model/models';
20
21
  import { GetOnAirItemListResponse } from '../model/models';
21
22
  import { IdListRequestBody } from '../model/models';
23
+ import { ItemRelationsWithMainItems } from '../model/models';
22
24
  import { ListFavoritesResponse } from '../model/models';
23
25
  import { ListMainItemResponse } from '../model/models';
24
26
  import { ListSubItemFavoriteResponse } from '../model/models';
25
27
  import { MainItem } from '../model/models';
26
28
  import { PatchFavoriteBody } from '../model/models';
29
+ import { PersonRelationsWithMainItems } from '../model/models';
27
30
  import { SubItem } from '../model/models';
28
31
  import { SubItemFavorite } from '../model/models';
29
32
  import { SucceedEmptyResponse } from '../model/models';
@@ -100,6 +103,24 @@ export interface DefaultMiraInterface {
100
103
  * @param subItems populate subItems if true
101
104
  */
102
105
  getMainItemById(id: string, coverImage?: string, subItems?: string, extraHttpRequestParams?: any): Observable<MainItem>;
106
+ /**
107
+ *
108
+ * get all related (Item , Cast) MainItem of an Character Type MainItem.
109
+ * @param id MainItem id
110
+ */
111
+ getRelationsOfCharacter(id: string, extraHttpRequestParams?: any): Observable<CharacterRelationsWithMainItems>;
112
+ /**
113
+ *
114
+ * get all related (Item, Staff, Cast, Character) MainItem of an Item Type MainItem.
115
+ * @param id MainItem id
116
+ */
117
+ getRelationsOfItem(id: string, extraHttpRequestParams?: any): Observable<ItemRelationsWithMainItems>;
118
+ /**
119
+ *
120
+ * get all related (Item , Character) MainItem of an Person Type MainItem.
121
+ * @param id MainItem id
122
+ */
123
+ getRelationsOfPerson(id: string, extraHttpRequestParams?: any): Observable<PersonRelationsWithMainItems>;
103
124
  /**
104
125
  *
105
126
  * get a SubItem by id