@irohalab/mira-sdk-angular 0.2.1 → 0.4.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.
Files changed (57) hide show
  1. package/api/default.service.d.ts +217 -3
  2. package/api/default.serviceInterface.d.ts +82 -3
  3. package/esm2022/api/default.service.mjs +508 -4
  4. package/esm2022/api/default.serviceInterface.mjs +1 -1
  5. package/esm2022/model/createFavoriteRequestBody.mjs +2 -0
  6. package/esm2022/model/createFavoriteResponse.mjs +2 -0
  7. package/esm2022/model/createSubItemFavoriteRequestBody.mjs +12 -0
  8. package/esm2022/model/createSubItemFavoriteResponse.mjs +2 -0
  9. package/esm2022/model/entityBase.mjs +3 -3
  10. package/esm2022/model/favorite.mjs +2 -0
  11. package/esm2022/model/favoriteStatus.mjs +18 -0
  12. package/esm2022/model/getMainItemByIdResponse.mjs +1 -1
  13. package/esm2022/model/getOnAirItemListResponse.mjs +1 -1
  14. package/esm2022/model/getSubItemResponse.mjs +2 -0
  15. package/esm2022/model/imageInfo.mjs +3 -3
  16. package/esm2022/model/itemEntity.mjs +1 -1
  17. package/esm2022/model/itemSubType.mjs +3 -3
  18. package/esm2022/model/itemType.mjs +3 -3
  19. package/esm2022/model/listFavoritesResponse.mjs +2 -0
  20. package/esm2022/model/listMainItemResponse.mjs +2 -0
  21. package/esm2022/model/listSubItemFavoriteResponse.mjs +2 -0
  22. package/esm2022/model/mainItem.mjs +1 -1
  23. package/esm2022/model/models.mjs +13 -1
  24. package/esm2022/model/onAirItem.mjs +1 -1
  25. package/esm2022/model/patchFavoriteBody.mjs +2 -0
  26. package/esm2022/model/propertyValue.mjs +1 -1
  27. package/esm2022/model/propertyValueValue.mjs +3 -3
  28. package/esm2022/model/subItem.mjs +1 -1
  29. package/esm2022/model/subItemFavorite.mjs +2 -0
  30. package/fesm2022/irohalab-mira-sdk-angular.mjs +548 -15
  31. package/fesm2022/irohalab-mira-sdk-angular.mjs.map +1 -1
  32. package/model/createFavoriteRequestBody.d.ts +17 -0
  33. package/model/createFavoriteResponse.d.ts +18 -0
  34. package/model/createSubItemFavoriteRequestBody.d.ts +13 -0
  35. package/model/createSubItemFavoriteResponse.d.ts +18 -0
  36. package/model/entityBase.d.ts +3 -3
  37. package/model/favorite.d.ts +30 -0
  38. package/model/favoriteStatus.d.ts +18 -0
  39. package/model/getMainItemByIdResponse.d.ts +2 -2
  40. package/model/getOnAirItemListResponse.d.ts +2 -2
  41. package/model/getSubItemResponse.d.ts +18 -0
  42. package/model/imageInfo.d.ts +3 -3
  43. package/model/itemEntity.d.ts +3 -3
  44. package/model/itemSubType.d.ts +2 -2
  45. package/model/itemType.d.ts +2 -2
  46. package/model/listFavoritesResponse.d.ts +25 -0
  47. package/model/listMainItemResponse.d.ts +25 -0
  48. package/model/listSubItemFavoriteResponse.d.ts +22 -0
  49. package/model/mainItem.d.ts +3 -3
  50. package/model/models.d.ts +12 -0
  51. package/model/onAirItem.d.ts +3 -3
  52. package/model/patchFavoriteBody.d.ts +16 -0
  53. package/model/propertyValue.d.ts +2 -2
  54. package/model/propertyValueValue.d.ts +2 -2
  55. package/model/subItem.d.ts +3 -3
  56. package/model/subItemFavorite.d.ts +26 -0
  57. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from '@angular/core';
3
3
  import * as i1 from '@angular/common/http';
4
- import { HttpHeaders, HttpParams, HttpContext } from '@angular/common/http';
4
+ import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
5
5
 
6
6
  /**
7
7
  * Custom HttpParameterCodec
@@ -152,8 +152,8 @@ class MiraConfiguration {
152
152
  }
153
153
 
154
154
  /**
155
- * mira Item API
156
- * Item API for Project-Mira
155
+ * mira API
156
+ * API for Project-Mira
157
157
  *
158
158
  *
159
159
  *
@@ -223,6 +223,208 @@ class DefaultMira {
223
223
  }
224
224
  return httpParams;
225
225
  }
226
+ createFavorite(CreateFavoriteRequestBody, observe = 'body', reportProgress = false, options) {
227
+ if (CreateFavoriteRequestBody === null || CreateFavoriteRequestBody === undefined) {
228
+ throw new Error('Required parameter CreateFavoriteRequestBody was null or undefined when calling createFavorite.');
229
+ }
230
+ let localVarHeaders = this.defaultHeaders;
231
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
232
+ if (localVarHttpHeaderAcceptSelected === undefined) {
233
+ // to determine the Accept header
234
+ const httpHeaderAccepts = [
235
+ 'application/json'
236
+ ];
237
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
238
+ }
239
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
240
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
241
+ }
242
+ let localVarHttpContext = options && options.context;
243
+ if (localVarHttpContext === undefined) {
244
+ localVarHttpContext = new HttpContext();
245
+ }
246
+ let localVarTransferCache = options && options.transferCache;
247
+ if (localVarTransferCache === undefined) {
248
+ localVarTransferCache = true;
249
+ }
250
+ // to determine the Content-Type header
251
+ const consumes = [
252
+ 'application/json'
253
+ ];
254
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
255
+ if (httpContentTypeSelected !== undefined) {
256
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
257
+ }
258
+ let responseType_ = 'json';
259
+ if (localVarHttpHeaderAcceptSelected) {
260
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
261
+ responseType_ = 'text';
262
+ }
263
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
264
+ responseType_ = 'json';
265
+ }
266
+ else {
267
+ responseType_ = 'blob';
268
+ }
269
+ }
270
+ let localVarPath = `/favorite`;
271
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
272
+ context: localVarHttpContext,
273
+ body: CreateFavoriteRequestBody,
274
+ responseType: responseType_,
275
+ withCredentials: this.configuration.withCredentials,
276
+ headers: localVarHeaders,
277
+ observe: observe,
278
+ transferCache: localVarTransferCache,
279
+ reportProgress: reportProgress
280
+ });
281
+ }
282
+ createSubItemFavorite(CreateSubItemFavoriteRequestBody, observe = 'body', reportProgress = false, options) {
283
+ if (CreateSubItemFavoriteRequestBody === null || CreateSubItemFavoriteRequestBody === undefined) {
284
+ throw new Error('Required parameter CreateSubItemFavoriteRequestBody was null or undefined when calling createSubItemFavorite.');
285
+ }
286
+ let localVarHeaders = this.defaultHeaders;
287
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
288
+ if (localVarHttpHeaderAcceptSelected === undefined) {
289
+ // to determine the Accept header
290
+ const httpHeaderAccepts = [
291
+ 'application/json'
292
+ ];
293
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
294
+ }
295
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
296
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
297
+ }
298
+ let localVarHttpContext = options && options.context;
299
+ if (localVarHttpContext === undefined) {
300
+ localVarHttpContext = new HttpContext();
301
+ }
302
+ let localVarTransferCache = options && options.transferCache;
303
+ if (localVarTransferCache === undefined) {
304
+ localVarTransferCache = true;
305
+ }
306
+ // to determine the Content-Type header
307
+ const consumes = [
308
+ 'application/json'
309
+ ];
310
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
311
+ if (httpContentTypeSelected !== undefined) {
312
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
313
+ }
314
+ let responseType_ = 'json';
315
+ if (localVarHttpHeaderAcceptSelected) {
316
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
317
+ responseType_ = 'text';
318
+ }
319
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
320
+ responseType_ = 'json';
321
+ }
322
+ else {
323
+ responseType_ = 'blob';
324
+ }
325
+ }
326
+ let localVarPath = `/favorite/sub`;
327
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
328
+ context: localVarHttpContext,
329
+ body: CreateSubItemFavoriteRequestBody,
330
+ responseType: responseType_,
331
+ withCredentials: this.configuration.withCredentials,
332
+ headers: localVarHeaders,
333
+ observe: observe,
334
+ transferCache: localVarTransferCache,
335
+ reportProgress: reportProgress
336
+ });
337
+ }
338
+ deleteFavorite(id, observe = 'body', reportProgress = false, options) {
339
+ if (id === null || id === undefined) {
340
+ throw new Error('Required parameter id was null or undefined when calling deleteFavorite.');
341
+ }
342
+ let localVarHeaders = this.defaultHeaders;
343
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
344
+ if (localVarHttpHeaderAcceptSelected === undefined) {
345
+ // to determine the Accept header
346
+ const httpHeaderAccepts = [];
347
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
348
+ }
349
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
350
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
351
+ }
352
+ let localVarHttpContext = options && options.context;
353
+ if (localVarHttpContext === undefined) {
354
+ localVarHttpContext = new HttpContext();
355
+ }
356
+ let localVarTransferCache = options && options.transferCache;
357
+ if (localVarTransferCache === undefined) {
358
+ localVarTransferCache = true;
359
+ }
360
+ let responseType_ = 'json';
361
+ if (localVarHttpHeaderAcceptSelected) {
362
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
363
+ responseType_ = 'text';
364
+ }
365
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
366
+ responseType_ = 'json';
367
+ }
368
+ else {
369
+ responseType_ = 'blob';
370
+ }
371
+ }
372
+ let localVarPath = `/favorite/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
373
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
374
+ context: localVarHttpContext,
375
+ responseType: responseType_,
376
+ withCredentials: this.configuration.withCredentials,
377
+ headers: localVarHeaders,
378
+ observe: observe,
379
+ transferCache: localVarTransferCache,
380
+ reportProgress: reportProgress
381
+ });
382
+ }
383
+ deleteSubItemFavorite(id, observe = 'body', reportProgress = false, options) {
384
+ if (id === null || id === undefined) {
385
+ throw new Error('Required parameter id was null or undefined when calling deleteSubItemFavorite.');
386
+ }
387
+ let localVarHeaders = this.defaultHeaders;
388
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
389
+ if (localVarHttpHeaderAcceptSelected === undefined) {
390
+ // to determine the Accept header
391
+ const httpHeaderAccepts = [];
392
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
393
+ }
394
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
395
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
396
+ }
397
+ let localVarHttpContext = options && options.context;
398
+ if (localVarHttpContext === undefined) {
399
+ localVarHttpContext = new HttpContext();
400
+ }
401
+ let localVarTransferCache = options && options.transferCache;
402
+ if (localVarTransferCache === undefined) {
403
+ localVarTransferCache = true;
404
+ }
405
+ let responseType_ = 'json';
406
+ if (localVarHttpHeaderAcceptSelected) {
407
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
408
+ responseType_ = 'text';
409
+ }
410
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
411
+ responseType_ = 'json';
412
+ }
413
+ else {
414
+ responseType_ = 'blob';
415
+ }
416
+ }
417
+ let localVarPath = `/favorite/sub/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
418
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
419
+ context: localVarHttpContext,
420
+ responseType: responseType_,
421
+ withCredentials: this.configuration.withCredentials,
422
+ headers: localVarHeaders,
423
+ observe: observe,
424
+ transferCache: localVarTransferCache,
425
+ reportProgress: reportProgress
426
+ });
427
+ }
226
428
  getMainItemById(id, coverImage, observe = 'body', reportProgress = false, options) {
227
429
  if (id === null || id === undefined) {
228
430
  throw new Error('Required parameter id was null or undefined when calling getMainItemById.');
@@ -263,7 +465,252 @@ class DefaultMira {
263
465
  responseType_ = 'blob';
264
466
  }
265
467
  }
266
- let localVarPath = `/public/item/main/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
468
+ let localVarPath = `/public/item/main/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
469
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
470
+ context: localVarHttpContext,
471
+ params: localVarQueryParameters,
472
+ responseType: responseType_,
473
+ withCredentials: this.configuration.withCredentials,
474
+ headers: localVarHeaders,
475
+ observe: observe,
476
+ transferCache: localVarTransferCache,
477
+ reportProgress: reportProgress
478
+ });
479
+ }
480
+ getSubItemById(id, observe = 'body', reportProgress = false, options) {
481
+ if (id === null || id === undefined) {
482
+ throw new Error('Required parameter id was null or undefined when calling getSubItemById.');
483
+ }
484
+ let localVarHeaders = this.defaultHeaders;
485
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
486
+ if (localVarHttpHeaderAcceptSelected === undefined) {
487
+ // to determine the Accept header
488
+ const httpHeaderAccepts = [
489
+ 'application/json'
490
+ ];
491
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
492
+ }
493
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
494
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
495
+ }
496
+ let localVarHttpContext = options && options.context;
497
+ if (localVarHttpContext === undefined) {
498
+ localVarHttpContext = new HttpContext();
499
+ }
500
+ let localVarTransferCache = options && options.transferCache;
501
+ if (localVarTransferCache === undefined) {
502
+ localVarTransferCache = true;
503
+ }
504
+ let responseType_ = 'json';
505
+ if (localVarHttpHeaderAcceptSelected) {
506
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
507
+ responseType_ = 'text';
508
+ }
509
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
510
+ responseType_ = 'json';
511
+ }
512
+ else {
513
+ responseType_ = 'blob';
514
+ }
515
+ }
516
+ let localVarPath = `/public/item/main/subItem/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
517
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
518
+ context: localVarHttpContext,
519
+ responseType: responseType_,
520
+ withCredentials: this.configuration.withCredentials,
521
+ headers: localVarHeaders,
522
+ observe: observe,
523
+ transferCache: localVarTransferCache,
524
+ reportProgress: reportProgress
525
+ });
526
+ }
527
+ listFavorites(status, offset, limit, orderBy, sort, observe = 'body', reportProgress = false, options) {
528
+ if (status === null || status === undefined) {
529
+ throw new Error('Required parameter status was null or undefined when calling listFavorites.');
530
+ }
531
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
532
+ if (status !== undefined && status !== null) {
533
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, 'status');
534
+ }
535
+ if (offset !== undefined && offset !== null) {
536
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, offset, 'offset');
537
+ }
538
+ if (limit !== undefined && limit !== null) {
539
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
540
+ }
541
+ if (orderBy !== undefined && orderBy !== null) {
542
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, 'orderBy');
543
+ }
544
+ if (sort !== undefined && sort !== null) {
545
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sort, 'sort');
546
+ }
547
+ let localVarHeaders = this.defaultHeaders;
548
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
549
+ if (localVarHttpHeaderAcceptSelected === undefined) {
550
+ // to determine the Accept header
551
+ const httpHeaderAccepts = [
552
+ 'application/json'
553
+ ];
554
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
555
+ }
556
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
557
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
558
+ }
559
+ let localVarHttpContext = options && options.context;
560
+ if (localVarHttpContext === undefined) {
561
+ localVarHttpContext = new HttpContext();
562
+ }
563
+ let localVarTransferCache = options && options.transferCache;
564
+ if (localVarTransferCache === undefined) {
565
+ localVarTransferCache = true;
566
+ }
567
+ let responseType_ = 'json';
568
+ if (localVarHttpHeaderAcceptSelected) {
569
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
570
+ responseType_ = 'text';
571
+ }
572
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
573
+ responseType_ = 'json';
574
+ }
575
+ else {
576
+ responseType_ = 'blob';
577
+ }
578
+ }
579
+ let localVarPath = `/favorite`;
580
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
581
+ context: localVarHttpContext,
582
+ params: localVarQueryParameters,
583
+ responseType: responseType_,
584
+ withCredentials: this.configuration.withCredentials,
585
+ headers: localVarHeaders,
586
+ observe: observe,
587
+ transferCache: localVarTransferCache,
588
+ reportProgress: reportProgress
589
+ });
590
+ }
591
+ listMainItems(mainType, type, subType, offset, limit, orderBy, sort, keyword, observe = 'body', reportProgress = false, options) {
592
+ if (mainType === null || mainType === undefined) {
593
+ throw new Error('Required parameter mainType was null or undefined when calling listMainItems.');
594
+ }
595
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
596
+ if (mainType !== undefined && mainType !== null) {
597
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, mainType, 'mainType');
598
+ }
599
+ if (type !== undefined && type !== null) {
600
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, type, 'type');
601
+ }
602
+ if (subType !== undefined && subType !== null) {
603
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, subType, 'subType');
604
+ }
605
+ if (offset !== undefined && offset !== null) {
606
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, offset, 'offset');
607
+ }
608
+ if (limit !== undefined && limit !== null) {
609
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
610
+ }
611
+ if (orderBy !== undefined && orderBy !== null) {
612
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, 'orderBy');
613
+ }
614
+ if (sort !== undefined && sort !== null) {
615
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sort, 'sort');
616
+ }
617
+ if (keyword !== undefined && keyword !== null) {
618
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, keyword, 'keyword');
619
+ }
620
+ let localVarHeaders = this.defaultHeaders;
621
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
622
+ if (localVarHttpHeaderAcceptSelected === undefined) {
623
+ // to determine the Accept header
624
+ const httpHeaderAccepts = [
625
+ 'application/json'
626
+ ];
627
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
628
+ }
629
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
630
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
631
+ }
632
+ let localVarHttpContext = options && options.context;
633
+ if (localVarHttpContext === undefined) {
634
+ localVarHttpContext = new HttpContext();
635
+ }
636
+ let localVarTransferCache = options && options.transferCache;
637
+ if (localVarTransferCache === undefined) {
638
+ localVarTransferCache = true;
639
+ }
640
+ let responseType_ = 'json';
641
+ if (localVarHttpHeaderAcceptSelected) {
642
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
643
+ responseType_ = 'text';
644
+ }
645
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
646
+ responseType_ = 'json';
647
+ }
648
+ else {
649
+ responseType_ = 'blob';
650
+ }
651
+ }
652
+ let localVarPath = `/public/item/main`;
653
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
654
+ context: localVarHttpContext,
655
+ params: localVarQueryParameters,
656
+ responseType: responseType_,
657
+ withCredentials: this.configuration.withCredentials,
658
+ headers: localVarHeaders,
659
+ observe: observe,
660
+ transferCache: localVarTransferCache,
661
+ reportProgress: reportProgress
662
+ });
663
+ }
664
+ listSubItemFavorites(itemId, offset, limit, orderBy, sort, observe = 'body', reportProgress = false, options) {
665
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
666
+ if (itemId !== undefined && itemId !== null) {
667
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, itemId, 'itemId');
668
+ }
669
+ if (offset !== undefined && offset !== null) {
670
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, offset, 'offset');
671
+ }
672
+ if (limit !== undefined && limit !== null) {
673
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
674
+ }
675
+ if (orderBy !== undefined && orderBy !== null) {
676
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, 'orderBy');
677
+ }
678
+ if (sort !== undefined && sort !== null) {
679
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sort, 'sort');
680
+ }
681
+ let localVarHeaders = this.defaultHeaders;
682
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
683
+ if (localVarHttpHeaderAcceptSelected === undefined) {
684
+ // to determine the Accept header
685
+ const httpHeaderAccepts = [
686
+ 'application/json'
687
+ ];
688
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
689
+ }
690
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
691
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
692
+ }
693
+ let localVarHttpContext = options && options.context;
694
+ if (localVarHttpContext === undefined) {
695
+ localVarHttpContext = new HttpContext();
696
+ }
697
+ let localVarTransferCache = options && options.transferCache;
698
+ if (localVarTransferCache === undefined) {
699
+ localVarTransferCache = true;
700
+ }
701
+ let responseType_ = 'json';
702
+ if (localVarHttpHeaderAcceptSelected) {
703
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
704
+ responseType_ = 'text';
705
+ }
706
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
707
+ responseType_ = 'json';
708
+ }
709
+ else {
710
+ responseType_ = 'blob';
711
+ }
712
+ }
713
+ let localVarPath = `/favorite/sub`;
267
714
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
268
715
  context: localVarHttpContext,
269
716
  params: localVarQueryParameters,
@@ -327,6 +774,63 @@ class DefaultMira {
327
774
  reportProgress: reportProgress
328
775
  });
329
776
  }
777
+ patchFavorite(id, PatchFavoriteBody, observe = 'body', reportProgress = false, options) {
778
+ if (id === null || id === undefined) {
779
+ throw new Error('Required parameter id was null or undefined when calling patchFavorite.');
780
+ }
781
+ if (PatchFavoriteBody === null || PatchFavoriteBody === undefined) {
782
+ throw new Error('Required parameter PatchFavoriteBody was null or undefined when calling patchFavorite.');
783
+ }
784
+ let localVarHeaders = this.defaultHeaders;
785
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
786
+ if (localVarHttpHeaderAcceptSelected === undefined) {
787
+ // to determine the Accept header
788
+ const httpHeaderAccepts = [];
789
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
790
+ }
791
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
792
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
793
+ }
794
+ let localVarHttpContext = options && options.context;
795
+ if (localVarHttpContext === undefined) {
796
+ localVarHttpContext = new HttpContext();
797
+ }
798
+ let localVarTransferCache = options && options.transferCache;
799
+ if (localVarTransferCache === undefined) {
800
+ localVarTransferCache = true;
801
+ }
802
+ // to determine the Content-Type header
803
+ const consumes = [
804
+ 'application/json'
805
+ ];
806
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
807
+ if (httpContentTypeSelected !== undefined) {
808
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
809
+ }
810
+ let responseType_ = 'json';
811
+ if (localVarHttpHeaderAcceptSelected) {
812
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
813
+ responseType_ = 'text';
814
+ }
815
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
816
+ responseType_ = 'json';
817
+ }
818
+ else {
819
+ responseType_ = 'blob';
820
+ }
821
+ }
822
+ let localVarPath = `/favorite/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
823
+ return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, {
824
+ context: localVarHttpContext,
825
+ body: PatchFavoriteBody,
826
+ responseType: responseType_,
827
+ withCredentials: this.configuration.withCredentials,
828
+ headers: localVarHeaders,
829
+ observe: observe,
830
+ transferCache: localVarTransferCache,
831
+ reportProgress: reportProgress
832
+ });
833
+ }
330
834
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DefaultMira, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: MiraConfiguration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
331
835
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DefaultMira, providedIn: 'root' });
332
836
  }
@@ -347,8 +851,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImpor
347
851
  const APIS = [DefaultMira];
348
852
 
349
853
  /**
350
- * mira Item API
351
- * Item API for Project-Mira
854
+ * mira API
855
+ * API for Project-Mira
856
+ *
857
+ *
858
+ *
859
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
860
+ * https://openapi-generator.tech
861
+ * Do not edit the class manually.
862
+ */
863
+
864
+ /**
865
+ * mira API
866
+ * API for Project-Mira
352
867
  *
353
868
  *
354
869
  *
@@ -358,8 +873,26 @@ const APIS = [DefaultMira];
358
873
  */
359
874
 
360
875
  /**
361
- * mira Item API
362
- * Item API for Project-Mira
876
+ * mira API
877
+ * API for Project-Mira
878
+ *
879
+ *
880
+ *
881
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
882
+ * https://openapi-generator.tech
883
+ * Do not edit the class manually.
884
+ */
885
+ const FavoriteStatus = {
886
+ Planned: 'Planned',
887
+ Watched: 'Watched',
888
+ Watching: 'Watching',
889
+ OnHold: 'OnHold',
890
+ Dropped: 'Dropped'
891
+ };
892
+
893
+ /**
894
+ * mira API
895
+ * API for Project-Mira
363
896
  *
364
897
  *
365
898
  *
@@ -369,8 +902,8 @@ const APIS = [DefaultMira];
369
902
  */
370
903
 
371
904
  /**
372
- * mira Item API
373
- * Item API for Project-Mira
905
+ * mira API
906
+ * API for Project-Mira
374
907
  *
375
908
  *
376
909
  *
@@ -425,8 +958,8 @@ const ItemSubType = {
425
958
  };
426
959
 
427
960
  /**
428
- * mira Item API
429
- * Item API for Project-Mira
961
+ * mira API
962
+ * API for Project-Mira
430
963
  *
431
964
  *
432
965
  *
@@ -470,8 +1003,8 @@ var PropertyValue;
470
1003
  })(PropertyValue || (PropertyValue = {}));
471
1004
 
472
1005
  /**
473
- * mira Item API
474
- * Item API for Project-Mira
1006
+ * mira API
1007
+ * API for Project-Mira
475
1008
  *
476
1009
  *
477
1010
  *
@@ -532,5 +1065,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImpor
532
1065
  * Generated bundle index. Do not edit.
533
1066
  */
534
1067
 
535
- export { APIS, BASE_PATH, COLLECTION_FORMATS, DefaultMira, ItemSubType, ItemType, MainItem, MiraApiModule, MiraConfiguration, PropertyValue, SubItem };
1068
+ export { APIS, BASE_PATH, COLLECTION_FORMATS, DefaultMira, FavoriteStatus, ItemSubType, ItemType, MainItem, MiraApiModule, MiraConfiguration, PropertyValue, SubItem };
536
1069
  //# sourceMappingURL=irohalab-mira-sdk-angular.mjs.map