@irohalab/mira-sdk-angular 1.7.0 → 1.8.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.
- package/api/default.service.d.ts +50 -3
- package/api/default.serviceInterface.d.ts +18 -1
- package/esm2022/api/default.service.mjs +139 -2
- package/esm2022/api/default.serviceInterface.mjs +1 -1
- package/esm2022/model/favoriteProgress.mjs +12 -0
- package/esm2022/model/models.mjs +2 -1
- package/esm2022/model/subItemFavorite.mjs +1 -1
- package/fesm2022/irohalab-mira-sdk-angular.mjs +149 -1
- package/fesm2022/irohalab-mira-sdk-angular.mjs.map +1 -1
- package/model/favoriteProgress.d.ts +13 -0
- package/model/models.d.ts +1 -0
- package/model/subItemFavorite.d.ts +1 -1
- package/package.json +1 -1
package/api/default.service.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { ClientMapping } from '../model/clientMapping';
|
|
|
6
6
|
import { CreateSubItemFavoriteRequestBody } from '../model/createSubItemFavoriteRequestBody';
|
|
7
7
|
import { DeleteClientMappingByMainItemResponse } from '../model/deleteClientMappingByMainItemResponse';
|
|
8
8
|
import { Favorite } from '../model/favorite';
|
|
9
|
+
import { FavoriteProgress } from '../model/favoriteProgress';
|
|
9
10
|
import { GetOnAirItemListResponse } from '../model/getOnAirItemListResponse';
|
|
10
11
|
import { IdListRequestBody } from '../model/idListRequestBody';
|
|
11
12
|
import { ListFavoritesResponse } from '../model/listFavoritesResponse';
|
|
@@ -217,6 +218,28 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
217
218
|
context?: HttpContext;
|
|
218
219
|
transferCache?: boolean;
|
|
219
220
|
}): Observable<HttpEvent<Favorite>>;
|
|
221
|
+
/**
|
|
222
|
+
* get favorite progress (number of SubItemFavorite from the beginning) of a episode type for mainItem
|
|
223
|
+
* @param mainItemId
|
|
224
|
+
* @param epType
|
|
225
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
226
|
+
* @param reportProgress flag to report request and response progress.
|
|
227
|
+
*/
|
|
228
|
+
getFavoriteProgressByMainItemId(mainItemId: string, epType: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
229
|
+
httpHeaderAccept?: 'application/json';
|
|
230
|
+
context?: HttpContext;
|
|
231
|
+
transferCache?: boolean;
|
|
232
|
+
}): Observable<FavoriteProgress>;
|
|
233
|
+
getFavoriteProgressByMainItemId(mainItemId: string, epType: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
234
|
+
httpHeaderAccept?: 'application/json';
|
|
235
|
+
context?: HttpContext;
|
|
236
|
+
transferCache?: boolean;
|
|
237
|
+
}): Observable<HttpResponse<FavoriteProgress>>;
|
|
238
|
+
getFavoriteProgressByMainItemId(mainItemId: string, epType: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
239
|
+
httpHeaderAccept?: 'application/json';
|
|
240
|
+
context?: HttpContext;
|
|
241
|
+
transferCache?: boolean;
|
|
242
|
+
}): Observable<HttpEvent<FavoriteProgress>>;
|
|
220
243
|
/**
|
|
221
244
|
* get a MainItem by id
|
|
222
245
|
* @param id MainItem id
|
|
@@ -322,20 +345,21 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
322
345
|
* @param limit
|
|
323
346
|
* @param orderBy
|
|
324
347
|
* @param sort
|
|
348
|
+
* @param subItem
|
|
325
349
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
326
350
|
* @param reportProgress flag to report request and response progress.
|
|
327
351
|
*/
|
|
328
|
-
listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
352
|
+
listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, observe?: 'body', reportProgress?: boolean, options?: {
|
|
329
353
|
httpHeaderAccept?: 'application/json';
|
|
330
354
|
context?: HttpContext;
|
|
331
355
|
transferCache?: boolean;
|
|
332
356
|
}): Observable<ListSubItemFavoriteResponse>;
|
|
333
|
-
listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
357
|
+
listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, observe?: 'response', reportProgress?: boolean, options?: {
|
|
334
358
|
httpHeaderAccept?: 'application/json';
|
|
335
359
|
context?: HttpContext;
|
|
336
360
|
transferCache?: boolean;
|
|
337
361
|
}): Observable<HttpResponse<ListSubItemFavoriteResponse>>;
|
|
338
|
-
listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
362
|
+
listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, observe?: 'events', reportProgress?: boolean, options?: {
|
|
339
363
|
httpHeaderAccept?: 'application/json';
|
|
340
364
|
context?: HttpContext;
|
|
341
365
|
transferCache?: boolean;
|
|
@@ -404,6 +428,29 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
404
428
|
context?: HttpContext;
|
|
405
429
|
transferCache?: boolean;
|
|
406
430
|
}): Observable<HttpEvent<Array<string>>>;
|
|
431
|
+
/**
|
|
432
|
+
* update progress of a favorite, will create/delete SubItemFavorite
|
|
433
|
+
* @param mainItemId
|
|
434
|
+
* @param progress
|
|
435
|
+
* @param epType
|
|
436
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
437
|
+
* @param reportProgress flag to report request and response progress.
|
|
438
|
+
*/
|
|
439
|
+
updateFavoriteProgress(mainItemId: string, progress: number, epType: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
440
|
+
httpHeaderAccept?: 'application/json';
|
|
441
|
+
context?: HttpContext;
|
|
442
|
+
transferCache?: boolean;
|
|
443
|
+
}): Observable<SucceedEmptyResponse>;
|
|
444
|
+
updateFavoriteProgress(mainItemId: string, progress: number, epType: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
445
|
+
httpHeaderAccept?: 'application/json';
|
|
446
|
+
context?: HttpContext;
|
|
447
|
+
transferCache?: boolean;
|
|
448
|
+
}): Observable<HttpResponse<SucceedEmptyResponse>>;
|
|
449
|
+
updateFavoriteProgress(mainItemId: string, progress: number, epType: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
450
|
+
httpHeaderAccept?: 'application/json';
|
|
451
|
+
context?: HttpContext;
|
|
452
|
+
transferCache?: boolean;
|
|
453
|
+
}): Observable<HttpEvent<SucceedEmptyResponse>>;
|
|
407
454
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultMira, [null, { optional: true; }, { optional: true; }]>;
|
|
408
455
|
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultMira>;
|
|
409
456
|
}
|
|
@@ -16,6 +16,7 @@ import { ClientMapping } from '../model/models';
|
|
|
16
16
|
import { CreateSubItemFavoriteRequestBody } from '../model/models';
|
|
17
17
|
import { DeleteClientMappingByMainItemResponse } from '../model/models';
|
|
18
18
|
import { Favorite } from '../model/models';
|
|
19
|
+
import { FavoriteProgress } from '../model/models';
|
|
19
20
|
import { GetOnAirItemListResponse } from '../model/models';
|
|
20
21
|
import { IdListRequestBody } from '../model/models';
|
|
21
22
|
import { ListFavoritesResponse } from '../model/models';
|
|
@@ -84,6 +85,13 @@ export interface DefaultMiraInterface {
|
|
|
84
85
|
* @param id
|
|
85
86
|
*/
|
|
86
87
|
getFavoriteByMainItemId(id: string, extraHttpRequestParams?: any): Observable<Favorite>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* get favorite progress (number of SubItemFavorite from the beginning) of a episode type for mainItem
|
|
91
|
+
* @param mainItemId
|
|
92
|
+
* @param epType
|
|
93
|
+
*/
|
|
94
|
+
getFavoriteProgressByMainItemId(mainItemId: string, epType: number, extraHttpRequestParams?: any): Observable<FavoriteProgress>;
|
|
87
95
|
/**
|
|
88
96
|
*
|
|
89
97
|
* get a MainItem by id
|
|
@@ -130,8 +138,9 @@ export interface DefaultMiraInterface {
|
|
|
130
138
|
* @param limit
|
|
131
139
|
* @param orderBy
|
|
132
140
|
* @param sort
|
|
141
|
+
* @param subItem
|
|
133
142
|
*/
|
|
134
|
-
listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, extraHttpRequestParams?: any): Observable<ListSubItemFavoriteResponse>;
|
|
143
|
+
listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, extraHttpRequestParams?: any): Observable<ListSubItemFavoriteResponse>;
|
|
135
144
|
/**
|
|
136
145
|
*
|
|
137
146
|
* get a list of on air MainItems with cover image
|
|
@@ -151,4 +160,12 @@ export interface DefaultMiraInterface {
|
|
|
151
160
|
* @param prefix start part of the name
|
|
152
161
|
*/
|
|
153
162
|
predictMainItemName(prefix: string, extraHttpRequestParams?: any): Observable<Array<string>>;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* update progress of a favorite, will create/delete SubItemFavorite
|
|
166
|
+
* @param mainItemId
|
|
167
|
+
* @param progress
|
|
168
|
+
* @param epType
|
|
169
|
+
*/
|
|
170
|
+
updateFavoriteProgress(mainItemId: string, progress: number, epType: number, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
|
|
154
171
|
}
|