@irohalab/mira-sdk-angular 0.3.0 → 0.5.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 (58) hide show
  1. package/api/default.service.d.ts +214 -0
  2. package/api/default.serviceInterface.d.ts +81 -2
  3. package/esm2022/api/default.service.mjs +507 -3
  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/favorite.mjs +2 -0
  10. package/esm2022/model/favoriteStatus.mjs +18 -0
  11. package/esm2022/model/getMainItemByIdResponse.mjs +1 -1
  12. package/esm2022/model/getOnAirItemListResponse.mjs +1 -1
  13. package/esm2022/model/getSubItemResponse.mjs +2 -0
  14. package/esm2022/model/imageInfo.mjs +3 -3
  15. package/esm2022/model/itemEntity.mjs +1 -1
  16. package/esm2022/model/itemEntityPropertiesValue.mjs +12 -0
  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 +14 -4
  24. package/esm2022/model/onAirItem.mjs +1 -1
  25. package/esm2022/model/patchFavoriteBody.mjs +2 -0
  26. package/esm2022/model/subItem.mjs +1 -1
  27. package/esm2022/model/subItemFavorite.mjs +2 -0
  28. package/fesm2022/irohalab-mira-sdk-angular.mjs +545 -34
  29. package/fesm2022/irohalab-mira-sdk-angular.mjs.map +1 -1
  30. package/model/createFavoriteRequestBody.d.ts +17 -0
  31. package/model/createFavoriteResponse.d.ts +18 -0
  32. package/model/createSubItemFavoriteRequestBody.d.ts +13 -0
  33. package/model/createSubItemFavoriteResponse.d.ts +18 -0
  34. package/model/favorite.d.ts +20 -0
  35. package/model/favoriteStatus.d.ts +18 -0
  36. package/model/getMainItemByIdResponse.d.ts +2 -2
  37. package/model/getOnAirItemListResponse.d.ts +2 -2
  38. package/model/getSubItemResponse.d.ts +18 -0
  39. package/model/imageInfo.d.ts +2 -2
  40. package/model/itemEntity.d.ts +6 -21
  41. package/model/{propertyValueValue.d.ts → itemEntityPropertiesValue.d.ts} +4 -4
  42. package/model/itemSubType.d.ts +2 -2
  43. package/model/itemType.d.ts +2 -2
  44. package/model/listFavoritesResponse.d.ts +25 -0
  45. package/model/listMainItemResponse.d.ts +25 -0
  46. package/model/listSubItemFavoriteResponse.d.ts +22 -0
  47. package/model/mainItem.d.ts +8 -21
  48. package/model/models.d.ts +13 -3
  49. package/model/onAirItem.d.ts +2 -2
  50. package/model/patchFavoriteBody.d.ts +16 -0
  51. package/model/subItem.d.ts +10 -21
  52. package/model/subItemFavorite.d.ts +16 -0
  53. package/package.json +1 -1
  54. package/esm2022/model/entityBase.mjs +0 -12
  55. package/esm2022/model/propertyValue.mjs +0 -11
  56. package/esm2022/model/propertyValueValue.mjs +0 -12
  57. package/model/entityBase.d.ts +0 -23
  58. package/model/propertyValue.d.ts +0 -26
@@ -0,0 +1,25 @@
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 { Favorite } from './favorite';
12
+ export interface ListFavoritesResponse {
13
+ /**
14
+ * a list of Favorite
15
+ */
16
+ data: Array<Favorite>;
17
+ /**
18
+ * total number of the result
19
+ */
20
+ total: number;
21
+ /**
22
+ * result code, 0 is successful.
23
+ */
24
+ status: number;
25
+ }
@@ -0,0 +1,25 @@
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 { MainItem } from './mainItem';
12
+ export interface ListMainItemResponse {
13
+ /**
14
+ * a list of MainItems
15
+ */
16
+ data: Array<MainItem>;
17
+ /**
18
+ * total number of the result
19
+ */
20
+ total: number;
21
+ /**
22
+ * result code, 0 is successful.
23
+ */
24
+ status: number;
25
+ }
@@ -0,0 +1,22 @@
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 { SubItemFavorite } from './subItemFavorite';
12
+ export interface ListSubItemFavoriteResponse {
13
+ data: SubItemFavorite;
14
+ /**
15
+ * total number of the result, if itemId is provided, this field will not available
16
+ */
17
+ total?: number;
18
+ /**
19
+ * result code, 0 is successful.
20
+ */
21
+ status: number;
22
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * mira Item API
3
- * Item API for Project-Mira
2
+ * mira API
3
+ * API for Project-Mira
4
4
  *
5
5
  *
6
6
  *
@@ -9,37 +9,22 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  import { ItemSubType } from './itemSubType';
12
+ import { ItemEntityPropertiesValue } from './itemEntityPropertiesValue';
12
13
  import { ItemType } from './itemType';
13
14
  import { SubItem } from './subItem';
14
- import { PropertyValue } from './propertyValue';
15
15
  import { ImageInfo } from './imageInfo';
16
16
  export interface MainItem {
17
17
  id: string;
18
- /**
19
- * RFC3339 Datetime
20
- */
21
- createdTime: string;
22
- /**
23
- * RFC3339 Datetime to set the updateTime
24
- */
25
- updateTime?: string;
26
- version: number;
27
- deleted: boolean;
28
18
  bgmId: number;
29
- isBgmHide: boolean;
30
- lockedInBgm: boolean;
31
19
  /**
32
20
  * Not used for ItemType.Individual and ItemType.Character
33
21
  */
34
22
  publicTime?: string;
35
- /**
36
- * Not used for ItemType.Individual and ItemType.Character
37
- */
38
- isPublicTimeLocked: boolean;
23
+ name?: string;
24
+ name_cn?: string;
39
25
  properties: {
40
- [key: string]: PropertyValue;
26
+ [key: string]: ItemEntityPropertiesValue;
41
27
  };
42
- isCoverImageLocked: boolean;
43
28
  mainType: MainItem.MainTypeEnum;
44
29
  type: ItemType;
45
30
  subType?: ItemSubType;
@@ -48,7 +33,9 @@ export interface MainItem {
48
33
  */
49
34
  isCollection: boolean;
50
35
  coverImage?: ImageInfo;
36
+ squareImage?: ImageInfo;
51
37
  subItem?: Array<SubItem>;
38
+ summary?: string;
52
39
  }
53
40
  export declare namespace MainItem {
54
41
  type MainTypeEnum = 0 | 1 | 2;
package/model/models.d.ts CHANGED
@@ -1,12 +1,22 @@
1
- export * from './entityBase';
1
+ export * from './createFavoriteRequestBody';
2
+ export * from './createFavoriteResponse';
3
+ export * from './createSubItemFavoriteRequestBody';
4
+ export * from './createSubItemFavoriteResponse';
5
+ export * from './favorite';
6
+ export * from './favoriteStatus';
2
7
  export * from './getMainItemByIdResponse';
3
8
  export * from './getOnAirItemListResponse';
9
+ export * from './getSubItemResponse';
4
10
  export * from './imageInfo';
5
11
  export * from './itemEntity';
12
+ export * from './itemEntityPropertiesValue';
6
13
  export * from './itemSubType';
7
14
  export * from './itemType';
15
+ export * from './listFavoritesResponse';
16
+ export * from './listMainItemResponse';
17
+ export * from './listSubItemFavoriteResponse';
8
18
  export * from './mainItem';
9
19
  export * from './onAirItem';
10
- export * from './propertyValue';
11
- export * from './propertyValueValue';
20
+ export * from './patchFavoriteBody';
12
21
  export * from './subItem';
22
+ export * from './subItemFavorite';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * mira Item API
3
- * Item API for Project-Mira
2
+ * mira API
3
+ * API for Project-Mira
4
4
  *
5
5
  *
6
6
  *
@@ -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
+ import { FavoriteStatus } from './favoriteStatus';
12
+ export interface PatchFavoriteBody {
13
+ status: FavoriteStatus;
14
+ }
15
+ export declare namespace PatchFavoriteBody {
16
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * mira Item API
3
- * Item API for Project-Mira
2
+ * mira API
3
+ * API for Project-Mira
4
4
  *
5
5
  *
6
6
  *
@@ -8,39 +8,28 @@
8
8
  * https://openapi-generator.tech
9
9
  * Do not edit the class manually.
10
10
  */
11
- import { PropertyValue } from './propertyValue';
11
+ import { ItemEntityPropertiesValue } from './itemEntityPropertiesValue';
12
+ import { MainItem } from './mainItem';
12
13
  export interface SubItem {
13
14
  id: string;
14
- /**
15
- * RFC3339 Datetime
16
- */
17
- createdTime: string;
18
- /**
19
- * RFC3339 Datetime to set the updateTime
20
- */
21
- updateTime?: string;
22
- version: number;
23
- deleted: boolean;
24
15
  bgmId: number;
25
- isBgmHide: boolean;
26
- lockedInBgm: boolean;
27
16
  /**
28
17
  * Not used for ItemType.Individual and ItemType.Character
29
18
  */
30
19
  publicTime?: string;
31
- /**
32
- * Not used for ItemType.Individual and ItemType.Character
33
- */
34
- isPublicTimeLocked: boolean;
20
+ name?: string;
21
+ name_cn?: string;
35
22
  properties: {
36
- [key: string]: PropertyValue;
23
+ [key: string]: ItemEntityPropertiesValue;
37
24
  };
38
- isCoverImageLocked: boolean;
39
25
  type: SubItem.TypeEnum;
40
26
  episodeType: SubItem.EpisodeTypeEnum | null;
41
27
  ep?: number | null;
42
28
  disc?: number | null;
29
+ desc?: string;
43
30
  sort: number;
31
+ mainItemId: string;
32
+ mainItem?: MainItem;
44
33
  }
45
34
  export declare namespace SubItem {
46
35
  type TypeEnum = 0 | 1;
@@ -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
+ import { SubItem } from './subItem';
12
+ export interface SubItemFavorite {
13
+ id: string;
14
+ subItem: SubItem;
15
+ userId: string;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@irohalab/mira-sdk-angular",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"
@@ -1,12 +0,0 @@
1
- /**
2
- * mira Item API
3
- * Item 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 {};
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50aXR5QmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL21pcmEtc2RrLWFuZ3VsYXIvc3JjL21vZGVsL2VudGl0eUJhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7OztHQVNHIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBtaXJhIEl0ZW0gQVBJXG4gKiBJdGVtIEFQSSBmb3IgUHJvamVjdC1NaXJhXG4gKlxuICogXG4gKlxuICogTk9URTogVGhpcyBjbGFzcyBpcyBhdXRvIGdlbmVyYXRlZCBieSBPcGVuQVBJIEdlbmVyYXRvciAoaHR0cHM6Ly9vcGVuYXBpLWdlbmVyYXRvci50ZWNoKS5cbiAqIGh0dHBzOi8vb3BlbmFwaS1nZW5lcmF0b3IudGVjaFxuICogRG8gbm90IGVkaXQgdGhlIGNsYXNzIG1hbnVhbGx5LlxuICovXG5cblxuZXhwb3J0IGludGVyZmFjZSBFbnRpdHlCYXNlIHsgXG4gICAgaWQ6IHN0cmluZztcbiAgICAvKipcbiAgICAgKiBSRkMzMzM5IERhdGV0aW1lXG4gICAgICovXG4gICAgY3JlYXRlZFRpbWU6IHN0cmluZztcbiAgICAvKipcbiAgICAgKiBSRkMzMzM5IERhdGV0aW1lIHRvIHNldCB0aGUgdXBkYXRlVGltZVxuICAgICAqL1xuICAgIHVwZGF0ZVRpbWU/OiBzdHJpbmc7XG4gICAgdmVyc2lvbjogbnVtYmVyO1xuICAgIGRlbGV0ZWQ6IGJvb2xlYW47XG59XG5cbiJdfQ==
@@ -1,11 +0,0 @@
1
- export var PropertyValue;
2
- (function (PropertyValue) {
3
- PropertyValue.PropertyTypeEnum = {
4
- Staff: 'Staff',
5
- Item: 'Item',
6
- Character: 'Character',
7
- Info: 'Info',
8
- Cast: 'Cast'
9
- };
10
- })(PropertyValue || (PropertyValue = {}));
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlWYWx1ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL21pcmEtc2RrLWFuZ3VsYXIvc3JjL21vZGVsL3Byb3BlcnR5VmFsdWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JBLE1BQU0sS0FBVyxhQUFhLENBUzdCO0FBVEQsV0FBaUIsYUFBYTtJQUViLDhCQUFnQixHQUFHO1FBQzVCLEtBQUssRUFBRSxPQUEyQjtRQUNsQyxJQUFJLEVBQUUsTUFBMEI7UUFDaEMsU0FBUyxFQUFFLFdBQStCO1FBQzFDLElBQUksRUFBRSxNQUEwQjtRQUNoQyxJQUFJLEVBQUUsTUFBMEI7S0FDbkMsQ0FBQztBQUNOLENBQUMsRUFUZ0IsYUFBYSxLQUFiLGFBQWEsUUFTN0IiLCJzb3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cGVydHlUeXBlRW51bSxcbiAgICAgICAgQ2FzdDogJ0Nhc3QnIGFzIFByb3BlcnR5VHlwZUVudW1cbiAgICB9O1xufVxuXG5cbiJdfQ==
@@ -1,12 +0,0 @@
1
- /**
2
- * mira Item API
3
- * Item 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 {};
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlWYWx1ZVZhbHVlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbWlyYS1zZGstYW5ndWxhci9zcmMvbW9kZWwvcHJvcGVydHlWYWx1ZVZhbHVlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7R0FTRyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogbWlyYSBJdGVtIEFQSVxuICogSXRlbSBBUEkgZm9yIFByb2plY3QtTWlyYVxuICpcbiAqIFxuICpcbiAqIE5PVEU6IFRoaXMgY2xhc3MgaXMgYXV0byBnZW5lcmF0ZWQgYnkgT3BlbkFQSSBHZW5lcmF0b3IgKGh0dHBzOi8vb3BlbmFwaS1nZW5lcmF0b3IudGVjaCkuXG4gKiBodHRwczovL29wZW5hcGktZ2VuZXJhdG9yLnRlY2hcbiAqIERvIG5vdCBlZGl0IHRoZSBjbGFzcyBtYW51YWxseS5cbiAqL1xuXG5cbi8qKlxuICogQHR5cGUgUHJvcGVydHlWYWx1ZVZhbHVlXG4gKiBAZXhwb3J0XG4gKi9cbmV4cG9ydCB0eXBlIFByb3BlcnR5VmFsdWVWYWx1ZSA9IEFycmF5PHN0cmluZz4gfCBBcnJheTx7IFtrZXk6IHN0cmluZ106IHN0cmluZzsgfT4gfCBzdHJpbmc7XG5cbiJdfQ==
@@ -1,23 +0,0 @@
1
- /**
2
- * mira Item API
3
- * Item 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 interface EntityBase {
12
- id: string;
13
- /**
14
- * RFC3339 Datetime
15
- */
16
- createdTime: string;
17
- /**
18
- * RFC3339 Datetime to set the updateTime
19
- */
20
- updateTime?: string;
21
- version: number;
22
- deleted: boolean;
23
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * mira Item API
3
- * Item 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 { PropertyValueValue } from './propertyValueValue';
12
- export interface PropertyValue {
13
- propertyType?: PropertyValue.PropertyTypeEnum | null;
14
- locked: boolean;
15
- value: PropertyValueValue;
16
- }
17
- export declare namespace PropertyValue {
18
- type PropertyTypeEnum = 'Staff' | 'Item' | 'Character' | 'Info' | 'Cast';
19
- const PropertyTypeEnum: {
20
- Staff: PropertyTypeEnum;
21
- Item: PropertyTypeEnum;
22
- Character: PropertyTypeEnum;
23
- Info: PropertyTypeEnum;
24
- Cast: PropertyTypeEnum;
25
- };
26
- }