@irohalab/mira-sdk-angular 1.12.0 → 1.13.0

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.
@@ -20,6 +20,8 @@ import { PersonRelationsWithMainItems } from '../model/personRelationsWithMainIt
20
20
  import { SubItem } from '../model/subItem';
21
21
  import { SubItemFavorite } from '../model/subItemFavorite';
22
22
  import { SucceedEmptyResponse } from '../model/succeedEmptyResponse';
23
+ import { SyncFavoritesRequestBody } from '../model/syncFavoritesRequestBody';
24
+ import { SyncFavoritesResponse } from '../model/syncFavoritesResponse';
23
25
  import { MiraConfiguration } from '../configuration';
24
26
  import { DefaultMiraInterface } from './default.serviceInterface';
25
27
  import * as i0 from "@angular/core";
@@ -494,6 +496,27 @@ export declare class DefaultMira implements DefaultMiraInterface {
494
496
  context?: HttpContext;
495
497
  transferCache?: boolean;
496
498
  }): Observable<HttpEvent<Array<string>>>;
499
+ /**
500
+ * Sync favorites from external source, merge with existing favorites
501
+ * @param SyncFavoritesRequestBody
502
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
503
+ * @param reportProgress flag to report request and response progress.
504
+ */
505
+ syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, observe?: 'body', reportProgress?: boolean, options?: {
506
+ httpHeaderAccept?: 'application/json';
507
+ context?: HttpContext;
508
+ transferCache?: boolean;
509
+ }): Observable<SyncFavoritesResponse>;
510
+ syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, observe?: 'response', reportProgress?: boolean, options?: {
511
+ httpHeaderAccept?: 'application/json';
512
+ context?: HttpContext;
513
+ transferCache?: boolean;
514
+ }): Observable<HttpResponse<SyncFavoritesResponse>>;
515
+ syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, observe?: 'events', reportProgress?: boolean, options?: {
516
+ httpHeaderAccept?: 'application/json';
517
+ context?: HttpContext;
518
+ transferCache?: boolean;
519
+ }): Observable<HttpEvent<SyncFavoritesResponse>>;
497
520
  /**
498
521
  * update progress of a favorite, will create/delete SubItemFavorite
499
522
  * @param mainItemId
@@ -30,6 +30,8 @@ import { PersonRelationsWithMainItems } from '../model/models';
30
30
  import { SubItem } from '../model/models';
31
31
  import { SubItemFavorite } from '../model/models';
32
32
  import { SucceedEmptyResponse } from '../model/models';
33
+ import { SyncFavoritesRequestBody } from '../model/models';
34
+ import { SyncFavoritesResponse } from '../model/models';
33
35
  import { MiraConfiguration } from '../configuration';
34
36
  export interface DefaultMiraInterface {
35
37
  defaultHeaders: HttpHeaders;
@@ -181,6 +183,12 @@ export interface DefaultMiraInterface {
181
183
  * @param prefix start part of the name
182
184
  */
183
185
  predictMainItemName(prefix: string, extraHttpRequestParams?: any): Observable<Array<string>>;
186
+ /**
187
+ *
188
+ * Sync favorites from external source, merge with existing favorites
189
+ * @param SyncFavoritesRequestBody
190
+ */
191
+ syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, extraHttpRequestParams?: any): Observable<SyncFavoritesResponse>;
184
192
  /**
185
193
  *
186
194
  * update progress of a favorite, will create/delete SubItemFavorite