@irohalab/mira-sdk-angular 1.11.0 → 1.12.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.
@@ -8,9 +8,9 @@
8
8
  * https://openapi-generator.tech
9
9
  * Do not edit the class manually.
10
10
  */
11
+ import { MainItemBasic } from './mainItemBasic';
11
12
  import { ItemCastCharacterRelation } from './itemCastCharacterRelation';
12
- import { MainItem } from './mainItem';
13
13
  export interface CharacterRelationsWithMainItems {
14
- mainItems: Array<MainItem>;
14
+ mainItems: Array<MainItemBasic>;
15
15
  relatedItems: Array<ItemCastCharacterRelation>;
16
16
  }
@@ -8,12 +8,12 @@
8
8
  * https://openapi-generator.tech
9
9
  * Do not edit the class manually.
10
10
  */
11
+ import { MainItemBasic } from './mainItemBasic';
11
12
  import { ItemPersonRelation } from './itemPersonRelation';
12
13
  import { ItemCastCharacterRelation } from './itemCastCharacterRelation';
13
- import { MainItem } from './mainItem';
14
14
  import { ItemRelation } from './itemRelation';
15
15
  export interface ItemRelationsWithMainItems {
16
- mainItems: Array<MainItem>;
16
+ mainItems: Array<MainItemBasic>;
17
17
  relatedItems: Array<ItemRelation>;
18
18
  relatedPersons: Array<ItemPersonRelation>;
19
19
  relatedCharacters: Array<ItemCastCharacterRelation>;
@@ -12,6 +12,7 @@ import { ItemSubType } from './itemSubType';
12
12
  import { ItemType } from './itemType';
13
13
  import { SubItem } from './subItem';
14
14
  import { PropertyValue } from './propertyValue';
15
+ import { MainType } from './mainType';
15
16
  import { ImageInfo } from './imageInfo';
16
17
  export interface MainItem {
17
18
  id: string;
@@ -25,7 +26,7 @@ export interface MainItem {
25
26
  properties: {
26
27
  [key: string]: PropertyValue;
27
28
  };
28
- mainType: MainItem.MainTypeEnum;
29
+ mainType: MainType;
29
30
  type: ItemType;
30
31
  subType?: ItemSubType;
31
32
  /**
@@ -38,10 +39,4 @@ export interface MainItem {
38
39
  summary?: string;
39
40
  }
40
41
  export declare namespace MainItem {
41
- type MainTypeEnum = 0 | 1 | 2;
42
- const MainTypeEnum: {
43
- Item: MainTypeEnum;
44
- Person: MainTypeEnum;
45
- Character: MainTypeEnum;
46
- };
47
42
  }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * mira API
3
+ * API for Project-Mira
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import { ItemSubType } from './itemSubType';
12
+ import { ItemType } from './itemType';
13
+ import { MainType } from './mainType';
14
+ import { ImageInfo } from './imageInfo';
15
+ export interface MainItemBasic {
16
+ id: string;
17
+ bgmId: string;
18
+ mainType: MainType;
19
+ type: ItemType;
20
+ subType: ItemSubType;
21
+ /**
22
+ * determine if the MainItem is collection item
23
+ */
24
+ isCollection: boolean;
25
+ coverImage?: ImageInfo;
26
+ squareImage?: ImageInfo;
27
+ name?: string;
28
+ nameCn?: string;
29
+ }
30
+ export declare namespace MainItemBasic {
31
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * mira API
3
+ * API for Project-Mira
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ export type MainType = 0 | 1 | 2;
12
+ export declare const MainType: {
13
+ Item: MainType;
14
+ Person: MainType;
15
+ Character: MainType;
16
+ };
package/model/models.d.ts CHANGED
@@ -22,6 +22,8 @@ export * from './listFavoritesResponse';
22
22
  export * from './listMainItemResponse';
23
23
  export * from './listSubItemFavoriteResponse';
24
24
  export * from './mainItem';
25
+ export * from './mainItemBasic';
26
+ export * from './mainType';
25
27
  export * from './onAirItem';
26
28
  export * from './patchFavoriteBody';
27
29
  export * from './personRelationsWithMainItems';
@@ -8,11 +8,11 @@
8
8
  * https://openapi-generator.tech
9
9
  * Do not edit the class manually.
10
10
  */
11
+ import { MainItemBasic } from './mainItemBasic';
11
12
  import { ItemPersonRelation } from './itemPersonRelation';
12
13
  import { ItemCastCharacterRelation } from './itemCastCharacterRelation';
13
- import { MainItem } from './mainItem';
14
14
  export interface PersonRelationsWithMainItems {
15
- mainItems: Array<MainItem>;
15
+ mainItems: Array<MainItemBasic>;
16
16
  relatedItems: Array<ItemPersonRelation>;
17
17
  relatedCharacters: Array<ItemCastCharacterRelation>;
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@irohalab/mira-sdk-angular",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"