@irohalab/mira-sdk-angular 1.6.2 → 1.8.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.
- package/api/default.service.d.ts +54 -6
- package/api/default.serviceInterface.d.ts +20 -2
- package/esm2022/api/default.service.mjs +143 -6
- 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 +153 -5
- 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 +2 -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
|
|
@@ -288,6 +311,7 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
288
311
|
}): Observable<HttpEvent<ListFavoritesResponse>>;
|
|
289
312
|
/**
|
|
290
313
|
* list MainItems
|
|
314
|
+
* @param serviceClientId
|
|
291
315
|
* @param mainType
|
|
292
316
|
* @param type
|
|
293
317
|
* @param subType
|
|
@@ -299,17 +323,17 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
299
323
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
300
324
|
* @param reportProgress flag to report request and response progress.
|
|
301
325
|
*/
|
|
302
|
-
listMainItems(mainType
|
|
326
|
+
listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
303
327
|
httpHeaderAccept?: 'application/json';
|
|
304
328
|
context?: HttpContext;
|
|
305
329
|
transferCache?: boolean;
|
|
306
330
|
}): Observable<ListMainItemResponse>;
|
|
307
|
-
listMainItems(mainType
|
|
331
|
+
listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
308
332
|
httpHeaderAccept?: 'application/json';
|
|
309
333
|
context?: HttpContext;
|
|
310
334
|
transferCache?: boolean;
|
|
311
335
|
}): Observable<HttpResponse<ListMainItemResponse>>;
|
|
312
|
-
listMainItems(mainType
|
|
336
|
+
listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
313
337
|
httpHeaderAccept?: 'application/json';
|
|
314
338
|
context?: HttpContext;
|
|
315
339
|
transferCache?: boolean;
|
|
@@ -321,20 +345,21 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
321
345
|
* @param limit
|
|
322
346
|
* @param orderBy
|
|
323
347
|
* @param sort
|
|
348
|
+
* @param subItem
|
|
324
349
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
325
350
|
* @param reportProgress flag to report request and response progress.
|
|
326
351
|
*/
|
|
327
|
-
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?: {
|
|
328
353
|
httpHeaderAccept?: 'application/json';
|
|
329
354
|
context?: HttpContext;
|
|
330
355
|
transferCache?: boolean;
|
|
331
356
|
}): Observable<ListSubItemFavoriteResponse>;
|
|
332
|
-
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?: {
|
|
333
358
|
httpHeaderAccept?: 'application/json';
|
|
334
359
|
context?: HttpContext;
|
|
335
360
|
transferCache?: boolean;
|
|
336
361
|
}): Observable<HttpResponse<ListSubItemFavoriteResponse>>;
|
|
337
|
-
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?: {
|
|
338
363
|
httpHeaderAccept?: 'application/json';
|
|
339
364
|
context?: HttpContext;
|
|
340
365
|
transferCache?: boolean;
|
|
@@ -403,6 +428,29 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
403
428
|
context?: HttpContext;
|
|
404
429
|
transferCache?: boolean;
|
|
405
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>>;
|
|
406
454
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultMira, [null, { optional: true; }, { optional: true; }]>;
|
|
407
455
|
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultMira>;
|
|
408
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
|
|
@@ -111,6 +119,7 @@ export interface DefaultMiraInterface {
|
|
|
111
119
|
/**
|
|
112
120
|
*
|
|
113
121
|
* list MainItems
|
|
122
|
+
* @param serviceClientId
|
|
114
123
|
* @param mainType
|
|
115
124
|
* @param type
|
|
116
125
|
* @param subType
|
|
@@ -120,7 +129,7 @@ export interface DefaultMiraInterface {
|
|
|
120
129
|
* @param sort
|
|
121
130
|
* @param keyword
|
|
122
131
|
*/
|
|
123
|
-
listMainItems(mainType
|
|
132
|
+
listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, extraHttpRequestParams?: any): Observable<ListMainItemResponse>;
|
|
124
133
|
/**
|
|
125
134
|
*
|
|
126
135
|
* list SubItemFavorite
|
|
@@ -129,8 +138,9 @@ export interface DefaultMiraInterface {
|
|
|
129
138
|
* @param limit
|
|
130
139
|
* @param orderBy
|
|
131
140
|
* @param sort
|
|
141
|
+
* @param subItem
|
|
132
142
|
*/
|
|
133
|
-
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>;
|
|
134
144
|
/**
|
|
135
145
|
*
|
|
136
146
|
* get a list of on air MainItems with cover image
|
|
@@ -150,4 +160,12 @@ export interface DefaultMiraInterface {
|
|
|
150
160
|
* @param prefix start part of the name
|
|
151
161
|
*/
|
|
152
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>;
|
|
153
171
|
}
|