@irohalab/mira-sdk-angular 0.1.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.
- package/README.md +181 -0
- package/api/api.d.ts +4 -0
- package/api/default.service.d.ts +42 -0
- package/api/default.serviceInterface.d.ts +27 -0
- package/api.module.d.ts +11 -0
- package/configuration.d.ts +104 -0
- package/encoder.d.ts +11 -0
- package/esm2022/api/api.mjs +5 -0
- package/esm2022/api/default.service.mjs +156 -0
- package/esm2022/api/default.serviceInterface.mjs +2 -0
- package/esm2022/api.module.mjs +40 -0
- package/esm2022/configuration.mjs +121 -0
- package/esm2022/encoder.mjs +19 -0
- package/esm2022/index.mjs +7 -0
- package/esm2022/irohalab-mira-sdk-angular.mjs +5 -0
- package/esm2022/model/entityBase.mjs +12 -0
- package/esm2022/model/getMainItemListResponse.mjs +2 -0
- package/esm2022/model/imageInfo.mjs +12 -0
- package/esm2022/model/itemEntity.mjs +2 -0
- package/esm2022/model/mainItem.mjs +68 -0
- package/esm2022/model/models.mjs +9 -0
- package/esm2022/model/propertyValue.mjs +11 -0
- package/esm2022/model/propertyValueValue.mjs +12 -0
- package/esm2022/model/subItem.mjs +12 -0
- package/esm2022/param.mjs +2 -0
- package/esm2022/variables.mjs +9 -0
- package/fesm2022/irohalab-mira-sdk-angular.mjs +468 -0
- package/fesm2022/irohalab-mira-sdk-angular.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/model/entityBase.d.ts +23 -0
- package/model/getMainItemListResponse.d.ts +25 -0
- package/model/imageInfo.d.ts +22 -0
- package/model/itemEntity.d.ts +39 -0
- package/model/mainItem.d.ts +119 -0
- package/model/models.d.ts +8 -0
- package/model/propertyValue.d.ts +26 -0
- package/model/propertyValueValue.d.ts +17 -0
- package/model/subItem.d.ts +56 -0
- package/package.json +29 -0
- package/param.d.ts +37 -0
- package/variables.d.ts +8 -0
|
@@ -0,0 +1,119 @@
|
|
|
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 { SubItem } from './subItem';
|
|
12
|
+
import { PropertyValue } from './propertyValue';
|
|
13
|
+
import { ImageInfo } from './imageInfo';
|
|
14
|
+
export interface MainItem {
|
|
15
|
+
id: number;
|
|
16
|
+
/**
|
|
17
|
+
* RFC3339 Datetime
|
|
18
|
+
*/
|
|
19
|
+
createdTime: string;
|
|
20
|
+
/**
|
|
21
|
+
* RFC3339 Datetime to set the updateTime
|
|
22
|
+
*/
|
|
23
|
+
updateTime?: string;
|
|
24
|
+
version: number;
|
|
25
|
+
deleted: boolean;
|
|
26
|
+
bgmId: number;
|
|
27
|
+
isBgmHide: boolean;
|
|
28
|
+
lockedInBgm: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Not used for ItemType.Individual and ItemType.Character
|
|
31
|
+
*/
|
|
32
|
+
publicTime?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Not used for ItemType.Individual and ItemType.Character
|
|
35
|
+
*/
|
|
36
|
+
isPublicTimeLocked: boolean;
|
|
37
|
+
properties: {
|
|
38
|
+
[key: string]: PropertyValue;
|
|
39
|
+
};
|
|
40
|
+
isCoverImageLocked: boolean;
|
|
41
|
+
mainType: MainItem.MainTypeEnum;
|
|
42
|
+
type: MainItem.TypeEnum;
|
|
43
|
+
subType?: MainItem.SubTypeEnum;
|
|
44
|
+
/**
|
|
45
|
+
* determine if the MainItem is collection item
|
|
46
|
+
*/
|
|
47
|
+
isCollection: boolean;
|
|
48
|
+
coverImage?: ImageInfo;
|
|
49
|
+
subItem?: Array<SubItem>;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace MainItem {
|
|
52
|
+
type MainTypeEnum = 0 | 1 | 2;
|
|
53
|
+
const MainTypeEnum: {
|
|
54
|
+
Item: MainTypeEnum;
|
|
55
|
+
Person: MainTypeEnum;
|
|
56
|
+
Character: MainTypeEnum;
|
|
57
|
+
};
|
|
58
|
+
type TypeEnum = 'anime' | 'game' | 'music' | 'book' | 'individual' | 'character' | 'real' | 'association' | 'corporation' | 'organization' | 'ship' | 'mechanic';
|
|
59
|
+
const TypeEnum: {
|
|
60
|
+
Anime: TypeEnum;
|
|
61
|
+
Game: TypeEnum;
|
|
62
|
+
Music: TypeEnum;
|
|
63
|
+
Book: TypeEnum;
|
|
64
|
+
Individual: TypeEnum;
|
|
65
|
+
Character: TypeEnum;
|
|
66
|
+
RealWorld: TypeEnum;
|
|
67
|
+
Association: TypeEnum;
|
|
68
|
+
Corporation: TypeEnum;
|
|
69
|
+
Organization: TypeEnum;
|
|
70
|
+
Ship: TypeEnum;
|
|
71
|
+
Mechanic: TypeEnum;
|
|
72
|
+
};
|
|
73
|
+
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
|
+
const SubTypeEnum: {
|
|
75
|
+
Other: SubTypeEnum;
|
|
76
|
+
TV: SubTypeEnum;
|
|
77
|
+
Web: SubTypeEnum;
|
|
78
|
+
OVA: SubTypeEnum;
|
|
79
|
+
Movie: SubTypeEnum;
|
|
80
|
+
Novel: SubTypeEnum;
|
|
81
|
+
Comic: SubTypeEnum;
|
|
82
|
+
Illustration: SubTypeEnum;
|
|
83
|
+
DramaJp: SubTypeEnum;
|
|
84
|
+
DramaEn: SubTypeEnum;
|
|
85
|
+
DramaCn: SubTypeEnum;
|
|
86
|
+
PC: SubTypeEnum;
|
|
87
|
+
NDS: SubTypeEnum;
|
|
88
|
+
PSP: SubTypeEnum;
|
|
89
|
+
PS2: SubTypeEnum;
|
|
90
|
+
PS3: SubTypeEnum;
|
|
91
|
+
Xbox360: SubTypeEnum;
|
|
92
|
+
Mac: SubTypeEnum;
|
|
93
|
+
PS5: SubTypeEnum;
|
|
94
|
+
XboxSeriesXS: SubTypeEnum;
|
|
95
|
+
PS4: SubTypeEnum;
|
|
96
|
+
XboxOne: SubTypeEnum;
|
|
97
|
+
NintendoSwitch: SubTypeEnum;
|
|
98
|
+
WiiU: SubTypeEnum;
|
|
99
|
+
Wii: SubTypeEnum;
|
|
100
|
+
PSVita: SubTypeEnum;
|
|
101
|
+
N3DS: SubTypeEnum;
|
|
102
|
+
IOS: SubTypeEnum;
|
|
103
|
+
Android: SubTypeEnum;
|
|
104
|
+
ARC: SubTypeEnum;
|
|
105
|
+
XBOX: SubTypeEnum;
|
|
106
|
+
GameCube: SubTypeEnum;
|
|
107
|
+
Dreamcast: SubTypeEnum;
|
|
108
|
+
Nintendo64: SubTypeEnum;
|
|
109
|
+
PlayStation: SubTypeEnum;
|
|
110
|
+
SFC: SubTypeEnum;
|
|
111
|
+
FC: SubTypeEnum;
|
|
112
|
+
NEOGEOPocketColor: SubTypeEnum;
|
|
113
|
+
GBA: SubTypeEnum;
|
|
114
|
+
GB: SubTypeEnum;
|
|
115
|
+
VirtualBoy: SubTypeEnum;
|
|
116
|
+
WonderSwanColor: SubTypeEnum;
|
|
117
|
+
WonderSwan: SubTypeEnum;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './entityBase';
|
|
2
|
+
export * from './getMainItemListResponse';
|
|
3
|
+
export * from './imageInfo';
|
|
4
|
+
export * from './itemEntity';
|
|
5
|
+
export * from './mainItem';
|
|
6
|
+
export * from './propertyValue';
|
|
7
|
+
export * from './propertyValueValue';
|
|
8
|
+
export * from './subItem';
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* @type PropertyValueValue
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export type PropertyValueValue = Array<string> | Array<{
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
}> | string;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { PropertyValue } from './propertyValue';
|
|
12
|
+
export interface SubItem {
|
|
13
|
+
id: number;
|
|
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
|
+
bgmId: number;
|
|
25
|
+
isBgmHide: boolean;
|
|
26
|
+
lockedInBgm: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Not used for ItemType.Individual and ItemType.Character
|
|
29
|
+
*/
|
|
30
|
+
publicTime?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Not used for ItemType.Individual and ItemType.Character
|
|
33
|
+
*/
|
|
34
|
+
isPublicTimeLocked: boolean;
|
|
35
|
+
properties: {
|
|
36
|
+
[key: string]: PropertyValue;
|
|
37
|
+
};
|
|
38
|
+
isCoverImageLocked: boolean;
|
|
39
|
+
type: SubItem.TypeEnum;
|
|
40
|
+
episodeType: SubItem.EpisodeTypeEnum | null;
|
|
41
|
+
ep?: number | null;
|
|
42
|
+
disc?: number | null;
|
|
43
|
+
sort: number;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace SubItem {
|
|
46
|
+
type TypeEnum = 0 | 1;
|
|
47
|
+
const TypeEnum: {
|
|
48
|
+
Episode: TypeEnum;
|
|
49
|
+
Song: TypeEnum;
|
|
50
|
+
};
|
|
51
|
+
type EpisodeTypeEnum = 0 | 1;
|
|
52
|
+
const EpisodeTypeEnum: {
|
|
53
|
+
Episode: EpisodeTypeEnum;
|
|
54
|
+
Special: EpisodeTypeEnum;
|
|
55
|
+
};
|
|
56
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@irohalab/mira-sdk-angular",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.2.0",
|
|
6
|
+
"@angular/core": "^18.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public",
|
|
14
|
+
"registry": "https://registry.npmjs.org/"
|
|
15
|
+
},
|
|
16
|
+
"module": "fesm2022/irohalab-mira-sdk-angular.mjs",
|
|
17
|
+
"typings": "index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./package.json": {
|
|
20
|
+
"default": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"esm2022": "./esm2022/irohalab-mira-sdk-angular.mjs",
|
|
25
|
+
"esm": "./esm2022/irohalab-mira-sdk-angular.mjs",
|
|
26
|
+
"default": "./fesm2022/irohalab-mira-sdk-angular.mjs"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/param.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard parameter styles defined by OpenAPI spec
|
|
3
|
+
*/
|
|
4
|
+
export type StandardParamStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
|
|
5
|
+
/**
|
|
6
|
+
* The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
|
|
7
|
+
*/
|
|
8
|
+
export type ParamStyle = StandardParamStyle | string;
|
|
9
|
+
/**
|
|
10
|
+
* Standard parameter locations defined by OpenAPI spec
|
|
11
|
+
*/
|
|
12
|
+
export type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
|
|
13
|
+
/**
|
|
14
|
+
* Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
15
|
+
*/
|
|
16
|
+
export type StandardDataType = "integer" | "number" | "boolean" | "string" | "object" | "array";
|
|
17
|
+
/**
|
|
18
|
+
* Standard {@link DataType}s plus your own types/classes.
|
|
19
|
+
*/
|
|
20
|
+
export type DataType = StandardDataType | string;
|
|
21
|
+
/**
|
|
22
|
+
* Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
23
|
+
*/
|
|
24
|
+
export type StandardDataFormat = "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password";
|
|
25
|
+
export type DataFormat = StandardDataFormat | string;
|
|
26
|
+
/**
|
|
27
|
+
* The parameter to encode.
|
|
28
|
+
*/
|
|
29
|
+
export interface Param {
|
|
30
|
+
name: string;
|
|
31
|
+
value: unknown;
|
|
32
|
+
in: ParamLocation;
|
|
33
|
+
style: ParamStyle;
|
|
34
|
+
explode: boolean;
|
|
35
|
+
dataType: DataType;
|
|
36
|
+
dataFormat: DataFormat | undefined;
|
|
37
|
+
}
|