Skip to content

Commit 4c6a6cd

Browse files
committed
return properties are no unprocessed.
1 parent c4ae721 commit 4c6a6cd

File tree

14 files changed

+157
-46
lines changed

14 files changed

+157
-46
lines changed

api.yml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,35 @@ components:
481481
- VirtualBoy
482482
- WonderSwanColor
483483
- WonderSwan
484+
PropertyValue:
485+
title: PropertyValue
486+
type: object
487+
required:
488+
- value
489+
- locked
490+
properties:
491+
propertyType:
492+
type: string
493+
nullable: true
494+
enum:
495+
- Staff
496+
- Item
497+
- Character
498+
- Info
499+
- Cast
500+
locked:
501+
type: boolean
502+
value:
503+
oneOf:
504+
- type: string
505+
- type: array
506+
items:
507+
type: object
508+
additionalProperties:
509+
type: string
510+
- type: array
511+
items:
512+
type: string
484513
OnAirItem:
485514
type: object
486515
required:
@@ -529,16 +558,7 @@ components:
529558
properties:
530559
type: object
531560
additionalProperties:
532-
oneOf:
533-
- type: string
534-
- type: array
535-
items:
536-
type: object
537-
additionalProperties:
538-
type: string
539-
- type: array
540-
items:
541-
type: string
561+
$ref: '#/components/schemas/PropertyValue'
542562
MainItem:
543563
allOf:
544564
- $ref: '#/components/schemas/ItemEntity'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mira-sdk",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "SDK for project-mira",
55
"main": "index.js",
66
"scripts": {

sdk/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@irohalab/mira-sdk-angular",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

sdk/angular/projects/mira-sdk-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@irohalab/mira-sdk-angular",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"peerDependencies": {
55
"@angular/common": "^18.2.0",
66
"@angular/core": "^18.2.0"

sdk/angular/projects/mira-sdk-angular/src/.openapi-generator/FILES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ model/favoriteStatus.ts
1515
model/getOnAirItemListResponse.ts
1616
model/imageInfo.ts
1717
model/itemEntity.ts
18-
model/itemEntityPropertiesValue.ts
1918
model/itemSubType.ts
2019
model/itemType.ts
2120
model/listFavoritesResponse.ts
@@ -25,6 +24,8 @@ model/mainItem.ts
2524
model/models.ts
2625
model/onAirItem.ts
2726
model/patchFavoriteBody.ts
27+
model/propertyValue.ts
28+
model/propertyValueValue.ts
2829
model/subItem.ts
2930
model/subItemFavorite.ts
3031
model/succeedEmptyResponse.ts

sdk/angular/projects/mira-sdk-angular/src/model/itemEntity.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://openapi-generator.tech
99
* Do not edit the class manually.
1010
*/
11-
import { ItemEntityPropertiesValue } from './itemEntityPropertiesValue';
11+
import { PropertyValue } from './propertyValue';
1212

1313

1414
export interface ItemEntity {
@@ -20,6 +20,6 @@ export interface ItemEntity {
2020
publicTime?: string;
2121
name?: string;
2222
name_cn?: string;
23-
properties: { [key: string]: ItemEntityPropertiesValue; };
23+
properties: { [key: string]: PropertyValue; };
2424
}
2525

sdk/angular/projects/mira-sdk-angular/src/model/mainItem.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* Do not edit the class manually.
1010
*/
1111
import { ItemSubType } from './itemSubType';
12-
import { ItemEntityPropertiesValue } from './itemEntityPropertiesValue';
1312
import { ItemType } from './itemType';
1413
import { SubItem } from './subItem';
14+
import { PropertyValue } from './propertyValue';
1515
import { ImageInfo } from './imageInfo';
1616

1717

@@ -24,7 +24,7 @@ export interface MainItem {
2424
publicTime?: string;
2525
name?: string;
2626
name_cn?: string;
27-
properties: { [key: string]: ItemEntityPropertiesValue; };
27+
properties: { [key: string]: PropertyValue; };
2828
mainType: MainItem.MainTypeEnum;
2929
type: ItemType;
3030
subType?: ItemSubType;

sdk/angular/projects/mira-sdk-angular/src/model/models.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export * from './favoriteStatus';
55
export * from './getOnAirItemListResponse';
66
export * from './imageInfo';
77
export * from './itemEntity';
8-
export * from './itemEntityPropertiesValue';
98
export * from './itemSubType';
109
export * from './itemType';
1110
export * from './listFavoritesResponse';
@@ -14,6 +13,8 @@ export * from './listSubItemFavoriteResponse';
1413
export * from './mainItem';
1514
export * from './onAirItem';
1615
export * from './patchFavoriteBody';
16+
export * from './propertyValue';
17+
export * from './propertyValueValue';
1718
export * from './subItem';
1819
export * from './subItemFavorite';
1920
export * from './succeedEmptyResponse';
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 { PropertyValueValue } from './propertyValueValue';
12+
13+
14+
export interface PropertyValue {
15+
propertyType?: PropertyValue.PropertyTypeEnum | null;
16+
locked: boolean;
17+
value: PropertyValueValue;
18+
}
19+
export namespace PropertyValue {
20+
export type PropertyTypeEnum = 'Staff' | 'Item' | 'Character' | 'Info' | 'Cast';
21+
export const PropertyTypeEnum = {
22+
Staff: 'Staff' as PropertyTypeEnum,
23+
Item: 'Item' as PropertyTypeEnum,
24+
Character: 'Character' as PropertyTypeEnum,
25+
Info: 'Info' as PropertyTypeEnum,
26+
Cast: 'Cast' as PropertyTypeEnum
27+
};
28+
}
29+
30+

sdk/angular/projects/mira-sdk-angular/src/model/itemEntityPropertiesValue.ts renamed to sdk/angular/projects/mira-sdk-angular/src/model/propertyValueValue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212

1313
/**
14-
* @type ItemEntityPropertiesValue
14+
* @type PropertyValueValue
1515
* @export
1616
*/
17-
export type ItemEntityPropertiesValue = Array<string> | Array<{ [key: string]: string; }> | string;
17+
export type PropertyValueValue = Array<string> | Array<{ [key: string]: string; }> | string;
1818

sdk/angular/projects/mira-sdk-angular/src/model/subItem.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* https://openapi-generator.tech
99
* Do not edit the class manually.
1010
*/
11-
import { ItemEntityPropertiesValue } from './itemEntityPropertiesValue';
1211
import { MainItem } from './mainItem';
12+
import { PropertyValue } from './propertyValue';
1313

1414

1515
export interface SubItem {
@@ -21,7 +21,7 @@ export interface SubItem {
2121
publicTime?: string;
2222
name?: string;
2323
name_cn?: string;
24-
properties: { [key: string]: ItemEntityPropertiesValue; };
24+
properties: { [key: string]: PropertyValue; };
2525
type: SubItem.TypeEnum;
2626
episodeType: SubItem.EpisodeTypeEnum | null;
2727
ep?: number | null;

sdk/fetch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@irohalab/mira-sdk-fetch",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Fetch client for Project Mira SDK",
55
"author": "irohalab",
66
"repository": {

sdk/fetch/src/models/index.ts

Lines changed: 51 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,11 @@ export interface ItemEntity {
179179
nameCn?: string;
180180
/**
181181
*
182-
* @type {{ [key: string]: ItemEntityPropertiesValue; }}
182+
* @type {{ [key: string]: PropertyValue; }}
183183
* @memberof ItemEntity
184184
*/
185-
properties: { [key: string]: ItemEntityPropertiesValue; };
185+
properties: { [key: string]: PropertyValue; };
186186
}
187-
/**
188-
* @type ItemEntityPropertiesValue
189-
*
190-
* @export
191-
*/
192-
export type ItemEntityPropertiesValue = Array<string> | Array<{ [key: string]: string; }> | string;
193187

194188
/**
195189
*
@@ -358,10 +352,10 @@ export interface MainItem {
358352
nameCn?: string;
359353
/**
360354
*
361-
* @type {{ [key: string]: ItemEntityPropertiesValue; }}
355+
* @type {{ [key: string]: PropertyValue; }}
362356
* @memberof MainItem
363357
*/
364-
properties: { [key: string]: ItemEntityPropertiesValue; };
358+
properties: { [key: string]: PropertyValue; };
365359
/**
366360
*
367361
* @type {number}
@@ -507,6 +501,51 @@ export interface PatchFavoriteBody {
507501
}
508502

509503

504+
/**
505+
*
506+
* @export
507+
* @interface PropertyValue
508+
*/
509+
export interface PropertyValue {
510+
/**
511+
*
512+
* @type {string}
513+
* @memberof PropertyValue
514+
*/
515+
propertyType?: PropertyValuePropertyTypeEnum | null;
516+
/**
517+
*
518+
* @type {boolean}
519+
* @memberof PropertyValue
520+
*/
521+
locked: boolean;
522+
/**
523+
*
524+
* @type {PropertyValueValue}
525+
* @memberof PropertyValue
526+
*/
527+
value: PropertyValueValue;
528+
}
529+
530+
531+
/**
532+
* @export
533+
*/
534+
export const PropertyValuePropertyTypeEnum = {
535+
Staff: 'Staff',
536+
Item: 'Item',
537+
Character: 'Character',
538+
Info: 'Info',
539+
Cast: 'Cast'
540+
} as const;
541+
export type PropertyValuePropertyTypeEnum = typeof PropertyValuePropertyTypeEnum[keyof typeof PropertyValuePropertyTypeEnum];
542+
543+
/**
544+
* @type PropertyValueValue
545+
*
546+
* @export
547+
*/
548+
export type PropertyValueValue = Array<string> | Array<{ [key: string]: string; }> | string;
510549
/**
511550
*
512551
* @export
@@ -545,10 +584,10 @@ export interface SubItem {
545584
nameCn?: string;
546585
/**
547586
*
548-
* @type {{ [key: string]: ItemEntityPropertiesValue; }}
587+
* @type {{ [key: string]: PropertyValue; }}
549588
* @memberof SubItem
550589
*/
551-
properties: { [key: string]: ItemEntityPropertiesValue; };
590+
properties: { [key: string]: PropertyValue; };
552591
/**
553592
*
554593
* @type {number}

specification/items.yml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,35 @@ components:
265265
- VirtualBoy
266266
- WonderSwanColor
267267
- WonderSwan
268+
PropertyValue:
269+
title: PropertyValue
270+
type: object
271+
required:
272+
- 'value'
273+
- 'locked'
274+
properties:
275+
propertyType:
276+
type: string
277+
nullable: true
278+
enum:
279+
- Staff
280+
- Item
281+
- Character
282+
- Info
283+
- Cast
284+
locked:
285+
type: boolean
286+
value:
287+
oneOf:
288+
- type: string
289+
- type: array
290+
items:
291+
type: object
292+
additionalProperties:
293+
type: string
294+
- type: array
295+
items:
296+
type: string
268297
OnAirItem:
269298
type: object
270299
required:
@@ -313,16 +342,7 @@ components:
313342
properties:
314343
type: object
315344
additionalProperties:
316-
oneOf:
317-
- type: string
318-
- type: array
319-
items:
320-
type: object
321-
additionalProperties:
322-
type: string
323-
- type: array
324-
items:
325-
type: string
345+
$ref: '#/components/schemas/PropertyValue'
326346
MainItem:
327347
allOf:
328348
- $ref: '#/components/schemas/ItemEntity'

0 commit comments

Comments
 (0)