Skip to content

Commit caecd24

Browse files
committed
regenerate sdk
1 parent 73df0a0 commit caecd24

File tree

12 files changed

+156
-107
lines changed

12 files changed

+156
-107
lines changed

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": "0.1.0",
3+
"version": "0.1.1",
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": "0.1.0",
3+
"version": "0.1.1",
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ encoder.ts
99
git_push.sh
1010
index.ts
1111
model/entityBase.ts
12-
model/getMainItemListResponse.ts
12+
model/getOnAirItemListResponse.ts
1313
model/imageInfo.ts
1414
model/itemEntity.ts
15+
model/itemSubType.ts
16+
model/itemType.ts
1517
model/mainItem.ts
1618
model/models.ts
19+
model/onAirItem.ts
1720
model/propertyValue.ts
1821
model/propertyValueValue.ts
1922
model/subItem.ts

sdk/angular/projects/mira-sdk-angular/src/api/default.service.ts

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { CustomHttpParameterCodec } from '../encoder';
1818
import { Observable } from 'rxjs';
1919

2020
// @ts-ignore
21-
import { GetMainItemListResponse } from '../model/getMainItemListResponse';
21+
import { GetOnAirItemListResponse } from '../model/getOnAirItemListResponse';
2222

2323
// @ts-ignore
2424
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -95,35 +95,23 @@ export class DefaultMira implements DefaultMiraInterface {
9595
}
9696

9797
/**
98-
* get a list of MainItem
99-
* @param sort can be asc or desc, default is desc
100-
* @param orderBy ordered by which field, default is createdTime
101-
* @param offset offset to start, default is 0
102-
* @param limit how many items returned per request, default is 20, maximum is 100
98+
* get a list of on air MainItems with cover image
99+
* @param type type of MainItem, must be either anime or real
103100
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
104101
* @param reportProgress flag to report request and response progress.
105102
*/
106-
public listMainItems(sort?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetMainItemListResponse>;
107-
public listMainItems(sort?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetMainItemListResponse>>;
108-
public listMainItems(sort?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetMainItemListResponse>>;
109-
public listMainItems(sort?: string, orderBy?: string, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
103+
public onAirItem(type: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetOnAirItemListResponse>;
104+
public onAirItem(type: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetOnAirItemListResponse>>;
105+
public onAirItem(type: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetOnAirItemListResponse>>;
106+
public onAirItem(type: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
107+
if (type === null || type === undefined) {
108+
throw new Error('Required parameter type was null or undefined when calling onAirItem.');
109+
}
110110

111111
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
112-
if (sort !== undefined && sort !== null) {
113-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
114-
<any>sort, 'sort');
115-
}
116-
if (orderBy !== undefined && orderBy !== null) {
117-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
118-
<any>orderBy, 'orderBy');
119-
}
120-
if (offset !== undefined && offset !== null) {
121-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
122-
<any>offset, 'offset');
123-
}
124-
if (limit !== undefined && limit !== null) {
112+
if (type !== undefined && type !== null) {
125113
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
126-
<any>limit, 'limit');
114+
<any>type, 'type');
127115
}
128116

129117
let localVarHeaders = this.defaultHeaders;
@@ -162,8 +150,8 @@ export class DefaultMira implements DefaultMiraInterface {
162150
}
163151
}
164152

165-
let localVarPath = `/public/item/main`;
166-
return this.httpClient.request<GetMainItemListResponse>('get', `${this.configuration.basePath}${localVarPath}`,
153+
let localVarPath = `/public/item/on-air`;
154+
return this.httpClient.request<GetOnAirItemListResponse>('get', `${this.configuration.basePath}${localVarPath}`,
167155
{
168156
context: localVarHttpContext,
169157
params: localVarQueryParameters,

sdk/angular/projects/mira-sdk-angular/src/api/default.serviceInterface.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { HttpHeaders } from '@angular/comm
1212

1313
import { Observable } from 'rxjs';
1414

15-
import { GetMainItemListResponse } from '../model/models';
15+
import { GetOnAirItemListResponse } from '../model/models';
1616

1717

1818
import { MiraConfiguration } from '../configuration';
@@ -25,12 +25,9 @@ export interface DefaultMiraInterface {
2525

2626
/**
2727
*
28-
* get a list of MainItem
29-
* @param sort can be asc or desc, default is desc
30-
* @param orderBy ordered by which field, default is createdTime
31-
* @param offset offset to start, default is 0
32-
* @param limit how many items returned per request, default is 20, maximum is 100
28+
* get a list of on air MainItems with cover image
29+
* @param type type of MainItem, must be either anime or real
3330
*/
34-
listMainItems(sort?: string, orderBy?: string, offset?: number, limit?: number, extraHttpRequestParams?: any): Observable<GetMainItemListResponse>;
31+
onAirItem(type: string, extraHttpRequestParams?: any): Observable<GetOnAirItemListResponse>;
3532

3633
}

sdk/angular/projects/mira-sdk-angular/src/model/getMainItemListResponse.ts renamed to sdk/angular/projects/mira-sdk-angular/src/model/getOnAirItemListResponse.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
* https://openapi-generator.tech
99
* Do not edit the class manually.
1010
*/
11-
import { MainItem } from './mainItem';
11+
import { OnAirItem } from './onAirItem';
1212

1313

14-
export interface GetMainItemListResponse {
14+
export interface GetOnAirItemListResponse {
1515
/**
16-
* a list of MainItem
16+
* a list of OnAirItems
1717
*/
18-
data: Array<MainItem>;
18+
data: Array<OnAirItem>;
1919
/**
2020
* total number of the result
2121
*/
22-
total: number;
22+
total?: number;
2323
/**
2424
* result code, 0 is successful.
2525
*/

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
*/
1616
export interface ImageInfo {
1717
id: number;
18-
createTime: string;
1918
url: string;
20-
savePath: string;
2119
width: number;
2220
height: number;
2321
dormantColor: string;
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
12+
13+
export type ItemSubType = 'other' | 'TV' | 'web' | 'OVA' | 'movie' | 'Novel' | 'Comic' | 'Illustration' | 'jp' | 'en' | 'cn' | 'PC' | 'NDS' | 'PSP' | 'PS2' | 'PS3' | 'Xbox360' | 'Mac OS' | 'PS5' | 'Xbox Series X/S' | 'PS4' | 'Xbox One' | 'Nintendo Switch' | 'Wii U' | 'Wii' | 'PS Vita' | '3DS' | 'iOS' | 'Android' | 'ARC' | 'XBOX' | 'GameCube' | 'Dreamcast' | 'Nitendo 64' | 'PlayStation' | 'SFC' | 'FC' | 'NEOGEO Pocket Color' | 'GBA' | 'GB' | 'Virtual Boy' | 'WonderSwan Color' | 'WonderSwan';
14+
15+
export const ItemSubType = {
16+
Other: 'other' as ItemSubType,
17+
TV: 'TV' as ItemSubType,
18+
Web: 'web' as ItemSubType,
19+
OVA: 'OVA' as ItemSubType,
20+
Movie: 'movie' as ItemSubType,
21+
Novel: 'Novel' as ItemSubType,
22+
Comic: 'Comic' as ItemSubType,
23+
Illustration: 'Illustration' as ItemSubType,
24+
DramaJp: 'jp' as ItemSubType,
25+
DramaEn: 'en' as ItemSubType,
26+
DramaCn: 'cn' as ItemSubType,
27+
PC: 'PC' as ItemSubType,
28+
NDS: 'NDS' as ItemSubType,
29+
PSP: 'PSP' as ItemSubType,
30+
PS2: 'PS2' as ItemSubType,
31+
PS3: 'PS3' as ItemSubType,
32+
Xbox360: 'Xbox360' as ItemSubType,
33+
Mac: 'Mac OS' as ItemSubType,
34+
PS5: 'PS5' as ItemSubType,
35+
XboxSeriesXS: 'Xbox Series X/S' as ItemSubType,
36+
PS4: 'PS4' as ItemSubType,
37+
XboxOne: 'Xbox One' as ItemSubType,
38+
NintendoSwitch: 'Nintendo Switch' as ItemSubType,
39+
WiiU: 'Wii U' as ItemSubType,
40+
Wii: 'Wii' as ItemSubType,
41+
PSVita: 'PS Vita' as ItemSubType,
42+
N3DS: '3DS' as ItemSubType,
43+
IOS: 'iOS' as ItemSubType,
44+
Android: 'Android' as ItemSubType,
45+
ARC: 'ARC' as ItemSubType,
46+
XBOX: 'XBOX' as ItemSubType,
47+
GameCube: 'GameCube' as ItemSubType,
48+
Dreamcast: 'Dreamcast' as ItemSubType,
49+
Nintendo64: 'Nitendo 64' as ItemSubType,
50+
PlayStation: 'PlayStation' as ItemSubType,
51+
SFC: 'SFC' as ItemSubType,
52+
FC: 'FC' as ItemSubType,
53+
NEOGEOPocketColor: 'NEOGEO Pocket Color' as ItemSubType,
54+
GBA: 'GBA' as ItemSubType,
55+
GB: 'GB' as ItemSubType,
56+
VirtualBoy: 'Virtual Boy' as ItemSubType,
57+
WonderSwanColor: 'WonderSwan Color' as ItemSubType,
58+
WonderSwan: 'WonderSwan' as ItemSubType
59+
};
60+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
12+
13+
export type ItemType = 'anime' | 'game' | 'music' | 'book' | 'individual' | 'character' | 'real' | 'association' | 'corporation' | 'organization' | 'ship' | 'mechanic';
14+
15+
export const ItemType = {
16+
Anime: 'anime' as ItemType,
17+
Game: 'game' as ItemType,
18+
Music: 'music' as ItemType,
19+
Book: 'book' as ItemType,
20+
Individual: 'individual' as ItemType,
21+
Character: 'character' as ItemType,
22+
RealWorld: 'real' as ItemType,
23+
Association: 'association' as ItemType,
24+
Corporation: 'corporation' as ItemType,
25+
Organization: 'organization' as ItemType,
26+
Ship: 'ship' as ItemType,
27+
Mechanic: 'mechanic' as ItemType
28+
};
29+

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

Lines changed: 4 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* https://openapi-generator.tech
99
* Do not edit the class manually.
1010
*/
11+
import { ItemSubType } from './itemSubType';
12+
import { ItemType } from './itemType';
1113
import { SubItem } from './subItem';
1214
import { PropertyValue } from './propertyValue';
1315
import { ImageInfo } from './imageInfo';
@@ -39,8 +41,8 @@ export interface MainItem {
3941
properties: { [key: string]: PropertyValue; };
4042
isCoverImageLocked: boolean;
4143
mainType: MainItem.MainTypeEnum;
42-
type: MainItem.TypeEnum;
43-
subType?: MainItem.SubTypeEnum;
44+
type: ItemType;
45+
subType?: ItemSubType;
4446
/**
4547
* determine if the MainItem is collection item
4648
*/
@@ -55,67 +57,6 @@ export namespace MainItem {
5557
Person: 1 as MainTypeEnum,
5658
Character: 2 as MainTypeEnum
5759
};
58-
export type TypeEnum = 'anime' | 'game' | 'music' | 'book' | 'individual' | 'character' | 'real' | 'association' | 'corporation' | 'organization' | 'ship' | 'mechanic';
59-
export const TypeEnum = {
60-
Anime: 'anime' as TypeEnum,
61-
Game: 'game' as TypeEnum,
62-
Music: 'music' as TypeEnum,
63-
Book: 'book' as TypeEnum,
64-
Individual: 'individual' as TypeEnum,
65-
Character: 'character' as TypeEnum,
66-
RealWorld: 'real' as TypeEnum,
67-
Association: 'association' as TypeEnum,
68-
Corporation: 'corporation' as TypeEnum,
69-
Organization: 'organization' as TypeEnum,
70-
Ship: 'ship' as TypeEnum,
71-
Mechanic: 'mechanic' as TypeEnum
72-
};
73-
export type SubTypeEnum = 'other' | 'TV' | 'web' | 'OVA' | 'movie' | 'Novel' | 'Comic' | 'Illustration' | 'jp' | 'en' | 'cn' | 'PC' | 'NDS' | 'PSP' | 'PS2' | 'PS3' | 'Xbox360' | 'Mac OS' | 'PS5' | 'Xbox Series X/S' | 'PS4' | 'Xbox One' | 'Nintendo Switch' | 'Wii U' | 'Wii' | 'PS Vita' | '3DS' | 'iOS' | 'Android' | 'ARC' | 'XBOX' | 'GameCube' | 'Dreamcast' | 'Nitendo 64' | 'PlayStation' | 'SFC' | 'FC' | 'NEOGEO Pocket Color' | 'GBA' | 'GB' | 'Virtual Boy' | 'WonderSwan Color' | 'WonderSwan';
74-
export const SubTypeEnum = {
75-
Other: 'other' as SubTypeEnum,
76-
TV: 'TV' as SubTypeEnum,
77-
Web: 'web' as SubTypeEnum,
78-
OVA: 'OVA' as SubTypeEnum,
79-
Movie: 'movie' as SubTypeEnum,
80-
Novel: 'Novel' as SubTypeEnum,
81-
Comic: 'Comic' as SubTypeEnum,
82-
Illustration: 'Illustration' as SubTypeEnum,
83-
DramaJp: 'jp' as SubTypeEnum,
84-
DramaEn: 'en' as SubTypeEnum,
85-
DramaCn: 'cn' as SubTypeEnum,
86-
PC: 'PC' as SubTypeEnum,
87-
NDS: 'NDS' as SubTypeEnum,
88-
PSP: 'PSP' as SubTypeEnum,
89-
PS2: 'PS2' as SubTypeEnum,
90-
PS3: 'PS3' as SubTypeEnum,
91-
Xbox360: 'Xbox360' as SubTypeEnum,
92-
Mac: 'Mac OS' as SubTypeEnum,
93-
PS5: 'PS5' as SubTypeEnum,
94-
XboxSeriesXS: 'Xbox Series X/S' as SubTypeEnum,
95-
PS4: 'PS4' as SubTypeEnum,
96-
XboxOne: 'Xbox One' as SubTypeEnum,
97-
NintendoSwitch: 'Nintendo Switch' as SubTypeEnum,
98-
WiiU: 'Wii U' as SubTypeEnum,
99-
Wii: 'Wii' as SubTypeEnum,
100-
PSVita: 'PS Vita' as SubTypeEnum,
101-
N3DS: '3DS' as SubTypeEnum,
102-
IOS: 'iOS' as SubTypeEnum,
103-
Android: 'Android' as SubTypeEnum,
104-
ARC: 'ARC' as SubTypeEnum,
105-
XBOX: 'XBOX' as SubTypeEnum,
106-
GameCube: 'GameCube' as SubTypeEnum,
107-
Dreamcast: 'Dreamcast' as SubTypeEnum,
108-
Nintendo64: 'Nitendo 64' as SubTypeEnum,
109-
PlayStation: 'PlayStation' as SubTypeEnum,
110-
SFC: 'SFC' as SubTypeEnum,
111-
FC: 'FC' as SubTypeEnum,
112-
NEOGEOPocketColor: 'NEOGEO Pocket Color' as SubTypeEnum,
113-
GBA: 'GBA' as SubTypeEnum,
114-
GB: 'GB' as SubTypeEnum,
115-
VirtualBoy: 'Virtual Boy' as SubTypeEnum,
116-
WonderSwanColor: 'WonderSwan Color' as SubTypeEnum,
117-
WonderSwan: 'WonderSwan' as SubTypeEnum
118-
};
11960
}
12061

12162

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
export * from './entityBase';
2-
export * from './getMainItemListResponse';
2+
export * from './getOnAirItemListResponse';
33
export * from './imageInfo';
44
export * from './itemEntity';
5+
export * from './itemSubType';
6+
export * from './itemType';
57
export * from './mainItem';
8+
export * from './onAirItem';
69
export * from './propertyValue';
710
export * from './propertyValueValue';
811
export * from './subItem';
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 { ItemSubType } from './itemSubType';
12+
import { ItemType } from './itemType';
13+
import { ImageInfo } from './imageInfo';
14+
15+
16+
export interface OnAirItem {
17+
id: number;
18+
bgmId: number;
19+
/**
20+
* RFC3339 Datetime
21+
*/
22+
publicTime?: string;
23+
type: ItemType;
24+
subType?: ItemSubType;
25+
coverImage?: ImageInfo;
26+
}
27+
export namespace OnAirItem {
28+
}
29+
30+

0 commit comments

Comments
 (0)