@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,468 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common/http';
|
|
4
|
+
import { HttpHeaders, HttpParams, HttpContext } from '@angular/common/http';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Custom HttpParameterCodec
|
|
8
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
9
|
+
*/
|
|
10
|
+
class CustomHttpParameterCodec {
|
|
11
|
+
encodeKey(k) {
|
|
12
|
+
return encodeURIComponent(k);
|
|
13
|
+
}
|
|
14
|
+
encodeValue(v) {
|
|
15
|
+
return encodeURIComponent(v);
|
|
16
|
+
}
|
|
17
|
+
decodeKey(k) {
|
|
18
|
+
return decodeURIComponent(k);
|
|
19
|
+
}
|
|
20
|
+
decodeValue(v) {
|
|
21
|
+
return decodeURIComponent(v);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
26
|
+
const COLLECTION_FORMATS = {
|
|
27
|
+
'csv': ',',
|
|
28
|
+
'tsv': ' ',
|
|
29
|
+
'ssv': ' ',
|
|
30
|
+
'pipes': '|'
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
class MiraConfiguration {
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
36
|
+
*/
|
|
37
|
+
apiKeys;
|
|
38
|
+
username;
|
|
39
|
+
password;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
42
|
+
*/
|
|
43
|
+
accessToken;
|
|
44
|
+
basePath;
|
|
45
|
+
withCredentials;
|
|
46
|
+
/**
|
|
47
|
+
* Takes care of encoding query- and form-parameters.
|
|
48
|
+
*/
|
|
49
|
+
encoder;
|
|
50
|
+
/**
|
|
51
|
+
* Encoding of various path parameter
|
|
52
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
53
|
+
* <p>
|
|
54
|
+
* See {@link README.md} for more details
|
|
55
|
+
* </p>
|
|
56
|
+
*/
|
|
57
|
+
encodeParam;
|
|
58
|
+
/**
|
|
59
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
60
|
+
* document. They should map to the value used for authentication
|
|
61
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
62
|
+
*/
|
|
63
|
+
credentials;
|
|
64
|
+
constructor(configurationParameters = {}) {
|
|
65
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
66
|
+
this.username = configurationParameters.username;
|
|
67
|
+
this.password = configurationParameters.password;
|
|
68
|
+
this.accessToken = configurationParameters.accessToken;
|
|
69
|
+
this.basePath = configurationParameters.basePath;
|
|
70
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
71
|
+
this.encoder = configurationParameters.encoder;
|
|
72
|
+
if (configurationParameters.encodeParam) {
|
|
73
|
+
this.encodeParam = configurationParameters.encodeParam;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
77
|
+
}
|
|
78
|
+
if (configurationParameters.credentials) {
|
|
79
|
+
this.credentials = configurationParameters.credentials;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
this.credentials = {};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Select the correct content-type to use for a request.
|
|
87
|
+
* Uses {@link MiraConfiguration#isJsonMime} to determine the correct content-type.
|
|
88
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
89
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
90
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
91
|
+
*/
|
|
92
|
+
selectHeaderContentType(contentTypes) {
|
|
93
|
+
if (contentTypes.length === 0) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
const type = contentTypes.find((x) => this.isJsonMime(x));
|
|
97
|
+
if (type === undefined) {
|
|
98
|
+
return contentTypes[0];
|
|
99
|
+
}
|
|
100
|
+
return type;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Select the correct accept content-type to use for a request.
|
|
104
|
+
* Uses {@link MiraConfiguration#isJsonMime} to determine the correct accept content-type.
|
|
105
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
106
|
+
* @param accepts - the array of content types that are available for selection.
|
|
107
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
108
|
+
*/
|
|
109
|
+
selectHeaderAccept(accepts) {
|
|
110
|
+
if (accepts.length === 0) {
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
const type = accepts.find((x) => this.isJsonMime(x));
|
|
114
|
+
if (type === undefined) {
|
|
115
|
+
return accepts[0];
|
|
116
|
+
}
|
|
117
|
+
return type;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Check if the given MIME is a JSON MIME.
|
|
121
|
+
* JSON MIME examples:
|
|
122
|
+
* application/json
|
|
123
|
+
* application/json; charset=UTF8
|
|
124
|
+
* APPLICATION/JSON
|
|
125
|
+
* application/vnd.company+json
|
|
126
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
127
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
128
|
+
*/
|
|
129
|
+
isJsonMime(mime) {
|
|
130
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
131
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
132
|
+
}
|
|
133
|
+
lookupCredential(key) {
|
|
134
|
+
const value = this.credentials[key];
|
|
135
|
+
return typeof value === 'function'
|
|
136
|
+
? value()
|
|
137
|
+
: value;
|
|
138
|
+
}
|
|
139
|
+
defaultEncodeParam(param) {
|
|
140
|
+
// This implementation exists as fallback for missing configuration
|
|
141
|
+
// and for backwards compatibility to older typescript-angular generator versions.
|
|
142
|
+
// It only works for the 'simple' parameter style.
|
|
143
|
+
// Date-handling only works for the 'date-time' format.
|
|
144
|
+
// All other styles and Date-formats are probably handled incorrectly.
|
|
145
|
+
//
|
|
146
|
+
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
147
|
+
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
148
|
+
? param.value.toISOString()
|
|
149
|
+
: param.value;
|
|
150
|
+
return encodeURIComponent(String(value));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* mira Item API
|
|
156
|
+
* Item API for Project-Mira
|
|
157
|
+
*
|
|
158
|
+
*
|
|
159
|
+
*
|
|
160
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
161
|
+
* https://openapi-generator.tech
|
|
162
|
+
* Do not edit the class manually.
|
|
163
|
+
*/
|
|
164
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
165
|
+
class DefaultMira {
|
|
166
|
+
httpClient;
|
|
167
|
+
basePath = 'http://localhost';
|
|
168
|
+
defaultHeaders = new HttpHeaders();
|
|
169
|
+
configuration = new MiraConfiguration();
|
|
170
|
+
encoder;
|
|
171
|
+
constructor(httpClient, basePath, configuration) {
|
|
172
|
+
this.httpClient = httpClient;
|
|
173
|
+
if (configuration) {
|
|
174
|
+
this.configuration = configuration;
|
|
175
|
+
}
|
|
176
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
177
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
178
|
+
if (firstBasePath != undefined) {
|
|
179
|
+
basePath = firstBasePath;
|
|
180
|
+
}
|
|
181
|
+
if (typeof basePath !== 'string') {
|
|
182
|
+
basePath = this.basePath;
|
|
183
|
+
}
|
|
184
|
+
this.configuration.basePath = basePath;
|
|
185
|
+
}
|
|
186
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
187
|
+
}
|
|
188
|
+
// @ts-ignore
|
|
189
|
+
addToHttpParams(httpParams, value, key) {
|
|
190
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
191
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
195
|
+
}
|
|
196
|
+
return httpParams;
|
|
197
|
+
}
|
|
198
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
199
|
+
if (value == null) {
|
|
200
|
+
return httpParams;
|
|
201
|
+
}
|
|
202
|
+
if (typeof value === "object") {
|
|
203
|
+
if (Array.isArray(value)) {
|
|
204
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
205
|
+
}
|
|
206
|
+
else if (value instanceof Date) {
|
|
207
|
+
if (key != null) {
|
|
208
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
throw Error("key may not be null if value is Date");
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else if (key != null) {
|
|
219
|
+
httpParams = httpParams.append(key, value);
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
throw Error("key may not be null if value is not object or array");
|
|
223
|
+
}
|
|
224
|
+
return httpParams;
|
|
225
|
+
}
|
|
226
|
+
listMainItems(sort, orderBy, offset, limit, observe = 'body', reportProgress = false, options) {
|
|
227
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
228
|
+
if (sort !== undefined && sort !== null) {
|
|
229
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sort, 'sort');
|
|
230
|
+
}
|
|
231
|
+
if (orderBy !== undefined && orderBy !== null) {
|
|
232
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, 'orderBy');
|
|
233
|
+
}
|
|
234
|
+
if (offset !== undefined && offset !== null) {
|
|
235
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, offset, 'offset');
|
|
236
|
+
}
|
|
237
|
+
if (limit !== undefined && limit !== null) {
|
|
238
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
239
|
+
}
|
|
240
|
+
let localVarHeaders = this.defaultHeaders;
|
|
241
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
242
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
243
|
+
// to determine the Accept header
|
|
244
|
+
const httpHeaderAccepts = [
|
|
245
|
+
'application/json'
|
|
246
|
+
];
|
|
247
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
248
|
+
}
|
|
249
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
250
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
251
|
+
}
|
|
252
|
+
let localVarHttpContext = options && options.context;
|
|
253
|
+
if (localVarHttpContext === undefined) {
|
|
254
|
+
localVarHttpContext = new HttpContext();
|
|
255
|
+
}
|
|
256
|
+
let localVarTransferCache = options && options.transferCache;
|
|
257
|
+
if (localVarTransferCache === undefined) {
|
|
258
|
+
localVarTransferCache = true;
|
|
259
|
+
}
|
|
260
|
+
let responseType_ = 'json';
|
|
261
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
262
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
263
|
+
responseType_ = 'text';
|
|
264
|
+
}
|
|
265
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
266
|
+
responseType_ = 'json';
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
responseType_ = 'blob';
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
let localVarPath = `/public/item/main`;
|
|
273
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
274
|
+
context: localVarHttpContext,
|
|
275
|
+
params: localVarQueryParameters,
|
|
276
|
+
responseType: responseType_,
|
|
277
|
+
withCredentials: this.configuration.withCredentials,
|
|
278
|
+
headers: localVarHeaders,
|
|
279
|
+
observe: observe,
|
|
280
|
+
transferCache: localVarTransferCache,
|
|
281
|
+
reportProgress: reportProgress
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DefaultMira, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: MiraConfiguration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
285
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DefaultMira, providedIn: 'root' });
|
|
286
|
+
}
|
|
287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DefaultMira, decorators: [{
|
|
288
|
+
type: Injectable,
|
|
289
|
+
args: [{
|
|
290
|
+
providedIn: 'root'
|
|
291
|
+
}]
|
|
292
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
293
|
+
type: Optional
|
|
294
|
+
}, {
|
|
295
|
+
type: Inject,
|
|
296
|
+
args: [BASE_PATH]
|
|
297
|
+
}] }, { type: MiraConfiguration, decorators: [{
|
|
298
|
+
type: Optional
|
|
299
|
+
}] }] });
|
|
300
|
+
|
|
301
|
+
const APIS = [DefaultMira];
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* mira Item API
|
|
305
|
+
* Item API for Project-Mira
|
|
306
|
+
*
|
|
307
|
+
*
|
|
308
|
+
*
|
|
309
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
310
|
+
* https://openapi-generator.tech
|
|
311
|
+
* Do not edit the class manually.
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* mira Item API
|
|
316
|
+
* Item API for Project-Mira
|
|
317
|
+
*
|
|
318
|
+
*
|
|
319
|
+
*
|
|
320
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
321
|
+
* https://openapi-generator.tech
|
|
322
|
+
* Do not edit the class manually.
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
var MainItem;
|
|
326
|
+
(function (MainItem) {
|
|
327
|
+
MainItem.MainTypeEnum = {
|
|
328
|
+
Item: 0,
|
|
329
|
+
Person: 1,
|
|
330
|
+
Character: 2
|
|
331
|
+
};
|
|
332
|
+
MainItem.TypeEnum = {
|
|
333
|
+
Anime: 'anime',
|
|
334
|
+
Game: 'game',
|
|
335
|
+
Music: 'music',
|
|
336
|
+
Book: 'book',
|
|
337
|
+
Individual: 'individual',
|
|
338
|
+
Character: 'character',
|
|
339
|
+
RealWorld: 'real',
|
|
340
|
+
Association: 'association',
|
|
341
|
+
Corporation: 'corporation',
|
|
342
|
+
Organization: 'organization',
|
|
343
|
+
Ship: 'ship',
|
|
344
|
+
Mechanic: 'mechanic'
|
|
345
|
+
};
|
|
346
|
+
MainItem.SubTypeEnum = {
|
|
347
|
+
Other: 'other',
|
|
348
|
+
TV: 'TV',
|
|
349
|
+
Web: 'web',
|
|
350
|
+
OVA: 'OVA',
|
|
351
|
+
Movie: 'movie',
|
|
352
|
+
Novel: 'Novel',
|
|
353
|
+
Comic: 'Comic',
|
|
354
|
+
Illustration: 'Illustration',
|
|
355
|
+
DramaJp: 'jp',
|
|
356
|
+
DramaEn: 'en',
|
|
357
|
+
DramaCn: 'cn',
|
|
358
|
+
PC: 'PC',
|
|
359
|
+
NDS: 'NDS',
|
|
360
|
+
PSP: 'PSP',
|
|
361
|
+
PS2: 'PS2',
|
|
362
|
+
PS3: 'PS3',
|
|
363
|
+
Xbox360: 'Xbox360',
|
|
364
|
+
Mac: 'Mac OS',
|
|
365
|
+
PS5: 'PS5',
|
|
366
|
+
XboxSeriesXS: 'Xbox Series X/S',
|
|
367
|
+
PS4: 'PS4',
|
|
368
|
+
XboxOne: 'Xbox One',
|
|
369
|
+
NintendoSwitch: 'Nintendo Switch',
|
|
370
|
+
WiiU: 'Wii U',
|
|
371
|
+
Wii: 'Wii',
|
|
372
|
+
PSVita: 'PS Vita',
|
|
373
|
+
N3DS: '3DS',
|
|
374
|
+
IOS: 'iOS',
|
|
375
|
+
Android: 'Android',
|
|
376
|
+
ARC: 'ARC',
|
|
377
|
+
XBOX: 'XBOX',
|
|
378
|
+
GameCube: 'GameCube',
|
|
379
|
+
Dreamcast: 'Dreamcast',
|
|
380
|
+
Nintendo64: 'Nitendo 64',
|
|
381
|
+
PlayStation: 'PlayStation',
|
|
382
|
+
SFC: 'SFC',
|
|
383
|
+
FC: 'FC',
|
|
384
|
+
NEOGEOPocketColor: 'NEOGEO Pocket Color',
|
|
385
|
+
GBA: 'GBA',
|
|
386
|
+
GB: 'GB',
|
|
387
|
+
VirtualBoy: 'Virtual Boy',
|
|
388
|
+
WonderSwanColor: 'WonderSwan Color',
|
|
389
|
+
WonderSwan: 'WonderSwan'
|
|
390
|
+
};
|
|
391
|
+
})(MainItem || (MainItem = {}));
|
|
392
|
+
|
|
393
|
+
var PropertyValue;
|
|
394
|
+
(function (PropertyValue) {
|
|
395
|
+
PropertyValue.PropertyTypeEnum = {
|
|
396
|
+
Staff: 'Staff',
|
|
397
|
+
Item: 'Item',
|
|
398
|
+
Character: 'Character',
|
|
399
|
+
Info: 'Info',
|
|
400
|
+
Cast: 'Cast'
|
|
401
|
+
};
|
|
402
|
+
})(PropertyValue || (PropertyValue = {}));
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* mira Item API
|
|
406
|
+
* Item API for Project-Mira
|
|
407
|
+
*
|
|
408
|
+
*
|
|
409
|
+
*
|
|
410
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
411
|
+
* https://openapi-generator.tech
|
|
412
|
+
* Do not edit the class manually.
|
|
413
|
+
*/
|
|
414
|
+
|
|
415
|
+
var SubItem;
|
|
416
|
+
(function (SubItem) {
|
|
417
|
+
SubItem.TypeEnum = {
|
|
418
|
+
Episode: 0,
|
|
419
|
+
Song: 1
|
|
420
|
+
};
|
|
421
|
+
SubItem.EpisodeTypeEnum = {
|
|
422
|
+
Episode: 0,
|
|
423
|
+
Special: 1
|
|
424
|
+
};
|
|
425
|
+
})(SubItem || (SubItem = {}));
|
|
426
|
+
|
|
427
|
+
class MiraApiModule {
|
|
428
|
+
static forRoot(configurationFactory) {
|
|
429
|
+
return {
|
|
430
|
+
ngModule: MiraApiModule,
|
|
431
|
+
providers: [{ provide: MiraConfiguration, useFactory: configurationFactory }]
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
constructor(parentModule, http) {
|
|
435
|
+
if (parentModule) {
|
|
436
|
+
throw new Error('MiraApiModule is already loaded. Import in your base AppModule only.');
|
|
437
|
+
}
|
|
438
|
+
if (!http) {
|
|
439
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
440
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: MiraApiModule, deps: [{ token: MiraApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
444
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.3", ngImport: i0, type: MiraApiModule });
|
|
445
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: MiraApiModule });
|
|
446
|
+
}
|
|
447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: MiraApiModule, decorators: [{
|
|
448
|
+
type: NgModule,
|
|
449
|
+
args: [{
|
|
450
|
+
imports: [],
|
|
451
|
+
declarations: [],
|
|
452
|
+
exports: [],
|
|
453
|
+
providers: []
|
|
454
|
+
}]
|
|
455
|
+
}], ctorParameters: () => [{ type: MiraApiModule, decorators: [{
|
|
456
|
+
type: Optional
|
|
457
|
+
}, {
|
|
458
|
+
type: SkipSelf
|
|
459
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
460
|
+
type: Optional
|
|
461
|
+
}] }] });
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Generated bundle index. Do not edit.
|
|
465
|
+
*/
|
|
466
|
+
|
|
467
|
+
export { APIS, BASE_PATH, COLLECTION_FORMATS, DefaultMira, MainItem, MiraApiModule, MiraConfiguration, PropertyValue, SubItem };
|
|
468
|
+
//# sourceMappingURL=irohalab-mira-sdk-angular.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"irohalab-mira-sdk-angular.mjs","sources":["../../../projects/mira-sdk-angular/src/encoder.ts","../../../projects/mira-sdk-angular/src/variables.ts","../../../projects/mira-sdk-angular/src/configuration.ts","../../../projects/mira-sdk-angular/src/api/default.service.ts","../../../projects/mira-sdk-angular/src/api/api.ts","../../../projects/mira-sdk-angular/src/model/entityBase.ts","../../../projects/mira-sdk-angular/src/model/imageInfo.ts","../../../projects/mira-sdk-angular/src/model/mainItem.ts","../../../projects/mira-sdk-angular/src/model/propertyValue.ts","../../../projects/mira-sdk-angular/src/model/propertyValueValue.ts","../../../projects/mira-sdk-angular/src/model/subItem.ts","../../../projects/mira-sdk-angular/src/api.module.ts","../../../projects/mira-sdk-angular/src/irohalab-mira-sdk-angular.ts"],"sourcesContent":["import { HttpParameterCodec } from '@angular/common/http';\n\n/**\n * Custom HttpParameterCodec\n * Workaround for https://github.com/angular/angular/issues/18261\n */\nexport class CustomHttpParameterCodec implements HttpParameterCodec {\n encodeKey(k: string): string {\n return encodeURIComponent(k);\n }\n encodeValue(v: string): string {\n return encodeURIComponent(v);\n }\n decodeKey(k: string): string {\n return decodeURIComponent(k);\n }\n decodeValue(v: string): string {\n return decodeURIComponent(v);\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const BASE_PATH = new InjectionToken<string>('basePath');\nexport const COLLECTION_FORMATS = {\n 'csv': ',',\n 'tsv': ' ',\n 'ssv': ' ',\n 'pipes': '|'\n}\n","import { HttpParameterCodec } from '@angular/common/http';\nimport { Param } from './param';\n\nexport interface MiraConfigurationParameters {\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n apiKeys?: {[ key: string ]: string};\n username?: string;\n password?: string;\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n accessToken?: string | (() => string);\n basePath?: string;\n withCredentials?: boolean;\n /**\n * Takes care of encoding query- and form-parameters.\n */\n encoder?: HttpParameterCodec;\n /**\n * Override the default method for encoding path parameters in various\n * <a href=\"https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values\">styles</a>.\n * <p>\n * See {@link README.md} for more details\n * </p>\n */\n encodeParam?: (param: Param) => string;\n /**\n * The keys are the names in the securitySchemes section of the OpenAPI\n * document. They should map to the value used for authentication\n * minus any standard prefixes such as 'Basic' or 'Bearer'.\n */\n credentials?: {[ key: string ]: string | (() => string | undefined)};\n}\n\nexport class MiraConfiguration {\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n apiKeys?: {[ key: string ]: string};\n username?: string;\n password?: string;\n /**\n * @deprecated Since 5.0. Use credentials instead\n */\n accessToken?: string | (() => string);\n basePath?: string;\n withCredentials?: boolean;\n /**\n * Takes care of encoding query- and form-parameters.\n */\n encoder?: HttpParameterCodec;\n /**\n * Encoding of various path parameter\n * <a href=\"https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values\">styles</a>.\n * <p>\n * See {@link README.md} for more details\n * </p>\n */\n encodeParam: (param: Param) => string;\n /**\n * The keys are the names in the securitySchemes section of the OpenAPI\n * document. They should map to the value used for authentication\n * minus any standard prefixes such as 'Basic' or 'Bearer'.\n */\n credentials: {[ key: string ]: string | (() => string | undefined)};\n\n constructor(configurationParameters: MiraConfigurationParameters = {}) {\n this.apiKeys = configurationParameters.apiKeys;\n this.username = configurationParameters.username;\n this.password = configurationParameters.password;\n this.accessToken = configurationParameters.accessToken;\n this.basePath = configurationParameters.basePath;\n this.withCredentials = configurationParameters.withCredentials;\n this.encoder = configurationParameters.encoder;\n if (configurationParameters.encodeParam) {\n this.encodeParam = configurationParameters.encodeParam;\n }\n else {\n this.encodeParam = param => this.defaultEncodeParam(param);\n }\n if (configurationParameters.credentials) {\n this.credentials = configurationParameters.credentials;\n }\n else {\n this.credentials = {};\n }\n }\n\n /**\n * Select the correct content-type to use for a request.\n * Uses {@link MiraConfiguration#isJsonMime} to determine the correct content-type.\n * If no content type is found return the first found type if the contentTypes is not empty\n * @param contentTypes - the array of content types that are available for selection\n * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n */\n public selectHeaderContentType (contentTypes: string[]): string | undefined {\n if (contentTypes.length === 0) {\n return undefined;\n }\n\n const type = contentTypes.find((x: string) => this.isJsonMime(x));\n if (type === undefined) {\n return contentTypes[0];\n }\n return type;\n }\n\n /**\n * Select the correct accept content-type to use for a request.\n * Uses {@link MiraConfiguration#isJsonMime} to determine the correct accept content-type.\n * If no content type is found return the first found type if the contentTypes is not empty\n * @param accepts - the array of content types that are available for selection.\n * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n */\n public selectHeaderAccept(accepts: string[]): string | undefined {\n if (accepts.length === 0) {\n return undefined;\n }\n\n const type = accepts.find((x: string) => this.isJsonMime(x));\n if (type === undefined) {\n return accepts[0];\n }\n return type;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n\n public lookupCredential(key: string): string | undefined {\n const value = this.credentials[key];\n return typeof value === 'function'\n ? value()\n : value;\n }\n\n private defaultEncodeParam(param: Param): string {\n // This implementation exists as fallback for missing configuration\n // and for backwards compatibility to older typescript-angular generator versions.\n // It only works for the 'simple' parameter style.\n // Date-handling only works for the 'date-time' format.\n // All other styles and Date-formats are probably handled incorrectly.\n //\n // But: if that's all you need (i.e.: the most common use-case): no need for customization!\n\n const value = param.dataFormat === 'date-time' && param.value instanceof Date\n ? (param.value as Date).toISOString()\n : param.value;\n\n return encodeURIComponent(String(value));\n }\n}\n","/**\n * mira Item API\n * Item API for Project-Mira\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/* tslint:disable:no-unused-variable member-ordering */\n\nimport { Inject, Injectable, Optional } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams,\n HttpResponse, HttpEvent, HttpParameterCodec, HttpContext \n } from '@angular/common/http';\nimport { CustomHttpParameterCodec } from '../encoder';\nimport { Observable } from 'rxjs';\n\n// @ts-ignore\nimport { GetMainItemListResponse } from '../model/getMainItemListResponse';\n\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\nimport { MiraConfiguration } from '../configuration';\nimport {\n DefaultMiraInterface\n} from './default.serviceInterface';\n\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DefaultMira implements DefaultMiraInterface {\n\n protected basePath = 'http://localhost';\n public defaultHeaders = new HttpHeaders();\n public configuration = new MiraConfiguration();\n public encoder: HttpParameterCodec;\n\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: MiraConfiguration) {\n if (configuration) {\n this.configuration = configuration;\n }\n if (typeof this.configuration.basePath !== 'string') {\n const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;\n if (firstBasePath != undefined) {\n basePath = firstBasePath;\n }\n\n if (typeof basePath !== 'string') {\n basePath = this.basePath;\n }\n this.configuration.basePath = basePath;\n }\n this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();\n }\n\n\n // @ts-ignore\n private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {\n if (typeof value === \"object\" && value instanceof Date === false) {\n httpParams = this.addToHttpParamsRecursive(httpParams, value);\n } else {\n httpParams = this.addToHttpParamsRecursive(httpParams, value, key);\n }\n return httpParams;\n }\n\n private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {\n if (value == null) {\n return httpParams;\n }\n\n if (typeof value === \"object\") {\n if (Array.isArray(value)) {\n (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));\n } else if (value instanceof Date) {\n if (key != null) {\n httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));\n } else {\n throw Error(\"key may not be null if value is Date\");\n }\n } else {\n Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(\n httpParams, value[k], key != null ? `${key}.${k}` : k));\n }\n } else if (key != null) {\n httpParams = httpParams.append(key, value);\n } else {\n throw Error(\"key may not be null if value is not object or array\");\n }\n return httpParams;\n }\n\n /**\n * get a list of MainItem\n * @param sort can be asc or desc, default is desc\n * @param orderBy ordered by which field, default is createdTime\n * @param offset offset to start, default is 0\n * @param limit how many items returned per request, default is 20, maximum is 100\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public listMainItems(sort?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetMainItemListResponse>;\n 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>>;\n 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>>;\n 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> {\n\n let localVarQueryParameters = new HttpParams({encoder: this.encoder});\n if (sort !== undefined && sort !== null) {\n localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,\n <any>sort, 'sort');\n }\n if (orderBy !== undefined && orderBy !== null) {\n localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,\n <any>orderBy, 'orderBy');\n }\n if (offset !== undefined && offset !== null) {\n localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,\n <any>offset, 'offset');\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,\n <any>limit, 'limit');\n }\n\n let localVarHeaders = this.defaultHeaders;\n\n let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;\n if (localVarHttpHeaderAcceptSelected === undefined) {\n // to determine the Accept header\n const httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n }\n if (localVarHttpHeaderAcceptSelected !== undefined) {\n localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);\n }\n\n let localVarHttpContext: HttpContext | undefined = options && options.context;\n if (localVarHttpContext === undefined) {\n localVarHttpContext = new HttpContext();\n }\n\n let localVarTransferCache: boolean | undefined = options && options.transferCache;\n if (localVarTransferCache === undefined) {\n localVarTransferCache = true;\n }\n\n\n let responseType_: 'text' | 'json' | 'blob' = 'json';\n if (localVarHttpHeaderAcceptSelected) {\n if (localVarHttpHeaderAcceptSelected.startsWith('text')) {\n responseType_ = 'text';\n } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {\n responseType_ = 'json';\n } else {\n responseType_ = 'blob';\n }\n }\n\n let localVarPath = `/public/item/main`;\n return this.httpClient.request<GetMainItemListResponse>('get', `${this.configuration.basePath}${localVarPath}`,\n {\n context: localVarHttpContext,\n params: localVarQueryParameters,\n responseType: <any>responseType_,\n withCredentials: this.configuration.withCredentials,\n headers: localVarHeaders,\n observe: observe,\n transferCache: localVarTransferCache,\n reportProgress: reportProgress\n }\n );\n }\n\n}\n","export * from './default.service';\nimport { DefaultMira } from './default.service';\nexport * from './default.serviceInterface';\nexport const APIS = [DefaultMira];\n","/**\n * mira Item API\n * Item API for Project-Mira\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nexport interface EntityBase { \n id: number;\n /**\n * RFC3339 Datetime\n */\n createdTime: string;\n /**\n * RFC3339 Datetime to set the updateTime\n */\n updateTime?: string;\n version: number;\n deleted: boolean;\n}\n\n","/**\n * mira Item API\n * Item API for Project-Mira\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n/**\n * image information\n */\nexport interface ImageInfo { \n id: number;\n createTime: string;\n url: string;\n savePath: string;\n width: number;\n height: number;\n dormantColor: string;\n}\n\n","/**\n * mira Item API\n * Item API for Project-Mira\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { SubItem } from './subItem';\nimport { PropertyValue } from './propertyValue';\nimport { ImageInfo } from './imageInfo';\n\n\nexport interface MainItem { \n id: number;\n /**\n * RFC3339 Datetime\n */\n createdTime: string;\n /**\n * RFC3339 Datetime to set the updateTime\n */\n updateTime?: string;\n version: number;\n deleted: boolean;\n bgmId: number;\n isBgmHide: boolean;\n lockedInBgm: boolean;\n /**\n * Not used for ItemType.Individual and ItemType.Character\n */\n publicTime?: string;\n /**\n * Not used for ItemType.Individual and ItemType.Character\n */\n isPublicTimeLocked: boolean;\n properties: { [key: string]: PropertyValue; };\n isCoverImageLocked: boolean;\n mainType: MainItem.MainTypeEnum;\n type: MainItem.TypeEnum;\n subType?: MainItem.SubTypeEnum;\n /**\n * determine if the MainItem is collection item\n */\n isCollection: boolean;\n coverImage?: ImageInfo;\n subItem?: Array<SubItem>;\n}\nexport namespace MainItem {\n export type MainTypeEnum = 0 | 1 | 2;\n export const MainTypeEnum = {\n Item: 0 as MainTypeEnum,\n Person: 1 as MainTypeEnum,\n Character: 2 as MainTypeEnum\n };\n export type TypeEnum = 'anime' | 'game' | 'music' | 'book' | 'individual' | 'character' | 'real' | 'association' | 'corporation' | 'organization' | 'ship' | 'mechanic';\n export const TypeEnum = {\n Anime: 'anime' as TypeEnum,\n Game: 'game' as TypeEnum,\n Music: 'music' as TypeEnum,\n Book: 'book' as TypeEnum,\n Individual: 'individual' as TypeEnum,\n Character: 'character' as TypeEnum,\n RealWorld: 'real' as TypeEnum,\n Association: 'association' as TypeEnum,\n Corporation: 'corporation' as TypeEnum,\n Organization: 'organization' as TypeEnum,\n Ship: 'ship' as TypeEnum,\n Mechanic: 'mechanic' as TypeEnum\n };\n 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';\n export const SubTypeEnum = {\n Other: 'other' as SubTypeEnum,\n TV: 'TV' as SubTypeEnum,\n Web: 'web' as SubTypeEnum,\n OVA: 'OVA' as SubTypeEnum,\n Movie: 'movie' as SubTypeEnum,\n Novel: 'Novel' as SubTypeEnum,\n Comic: 'Comic' as SubTypeEnum,\n Illustration: 'Illustration' as SubTypeEnum,\n DramaJp: 'jp' as SubTypeEnum,\n DramaEn: 'en' as SubTypeEnum,\n DramaCn: 'cn' as SubTypeEnum,\n PC: 'PC' as SubTypeEnum,\n NDS: 'NDS' as SubTypeEnum,\n PSP: 'PSP' as SubTypeEnum,\n PS2: 'PS2' as SubTypeEnum,\n PS3: 'PS3' as SubTypeEnum,\n Xbox360: 'Xbox360' as SubTypeEnum,\n Mac: 'Mac OS' as SubTypeEnum,\n PS5: 'PS5' as SubTypeEnum,\n XboxSeriesXS: 'Xbox Series X/S' as SubTypeEnum,\n PS4: 'PS4' as SubTypeEnum,\n XboxOne: 'Xbox One' as SubTypeEnum,\n NintendoSwitch: 'Nintendo Switch' as SubTypeEnum,\n WiiU: 'Wii U' as SubTypeEnum,\n Wii: 'Wii' as SubTypeEnum,\n PSVita: 'PS Vita' as SubTypeEnum,\n N3DS: '3DS' as SubTypeEnum,\n IOS: 'iOS' as SubTypeEnum,\n Android: 'Android' as SubTypeEnum,\n ARC: 'ARC' as SubTypeEnum,\n XBOX: 'XBOX' as SubTypeEnum,\n GameCube: 'GameCube' as SubTypeEnum,\n Dreamcast: 'Dreamcast' as SubTypeEnum,\n Nintendo64: 'Nitendo 64' as SubTypeEnum,\n PlayStation: 'PlayStation' as SubTypeEnum,\n SFC: 'SFC' as SubTypeEnum,\n FC: 'FC' as SubTypeEnum,\n NEOGEOPocketColor: 'NEOGEO Pocket Color' as SubTypeEnum,\n GBA: 'GBA' as SubTypeEnum,\n GB: 'GB' as SubTypeEnum,\n VirtualBoy: 'Virtual Boy' as SubTypeEnum,\n WonderSwanColor: 'WonderSwan Color' as SubTypeEnum,\n WonderSwan: 'WonderSwan' as SubTypeEnum\n };\n}\n\n\n","/**\n * mira Item API\n * Item API for Project-Mira\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { PropertyValueValue } from './propertyValueValue';\n\n\nexport interface PropertyValue { \n propertyType?: PropertyValue.PropertyTypeEnum | null;\n locked: boolean;\n value: PropertyValueValue;\n}\nexport namespace PropertyValue {\n export type PropertyTypeEnum = 'Staff' | 'Item' | 'Character' | 'Info' | 'Cast';\n export const PropertyTypeEnum = {\n Staff: 'Staff' as PropertyTypeEnum,\n Item: 'Item' as PropertyTypeEnum,\n Character: 'Character' as PropertyTypeEnum,\n Info: 'Info' as PropertyTypeEnum,\n Cast: 'Cast' as PropertyTypeEnum\n };\n}\n\n\n","/**\n * mira Item API\n * Item API for Project-Mira\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n/**\n * @type PropertyValueValue\n * @export\n */\nexport type PropertyValueValue = Array<string> | Array<{ [key: string]: string; }> | string;\n\n","/**\n * mira Item API\n * Item API for Project-Mira\n *\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { PropertyValue } from './propertyValue';\n\n\nexport interface SubItem { \n id: number;\n /**\n * RFC3339 Datetime\n */\n createdTime: string;\n /**\n * RFC3339 Datetime to set the updateTime\n */\n updateTime?: string;\n version: number;\n deleted: boolean;\n bgmId: number;\n isBgmHide: boolean;\n lockedInBgm: boolean;\n /**\n * Not used for ItemType.Individual and ItemType.Character\n */\n publicTime?: string;\n /**\n * Not used for ItemType.Individual and ItemType.Character\n */\n isPublicTimeLocked: boolean;\n properties: { [key: string]: PropertyValue; };\n isCoverImageLocked: boolean;\n type: SubItem.TypeEnum;\n episodeType: SubItem.EpisodeTypeEnum | null;\n ep?: number | null;\n disc?: number | null;\n sort: number;\n}\nexport namespace SubItem {\n export type TypeEnum = 0 | 1;\n export const TypeEnum = {\n Episode: 0 as TypeEnum,\n Song: 1 as TypeEnum\n };\n export type EpisodeTypeEnum = 0 | 1;\n export const EpisodeTypeEnum = {\n Episode: 0 as EpisodeTypeEnum,\n Special: 1 as EpisodeTypeEnum\n };\n}\n\n\n","import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';\nimport { MiraConfiguration } from './configuration';\nimport { HttpClient } from '@angular/common/http';\n\n\n@NgModule({\n imports: [],\n declarations: [],\n exports: [],\n providers: []\n})\nexport class MiraApiModule {\n public static forRoot(configurationFactory: () => MiraConfiguration): ModuleWithProviders<MiraApiModule> {\n return {\n ngModule: MiraApiModule,\n providers: [ { provide: MiraConfiguration, useFactory: configurationFactory } ]\n };\n }\n\n constructor( @Optional() @SkipSelf() parentModule: MiraApiModule,\n @Optional() http: HttpClient) {\n if (parentModule) {\n throw new Error('MiraApiModule is already loaded. Import in your base AppModule only.');\n }\n if (!http) {\n throw new Error('You need to import the HttpClientModule in your AppModule! \\n' +\n 'See also https://github.com/angular/angular/issues/20575');\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.MiraConfiguration"],"mappings":";;;;;AAEA;;;AAGG;MACU,wBAAwB,CAAA;AACjC,IAAA,SAAS,CAAC,CAAS,EAAA;AACf,QAAA,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAChC;AACD,IAAA,WAAW,CAAC,CAAS,EAAA;AACjB,QAAA,OAAO,kBAAkB,CAAC,CA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A,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;wGAAb,aAAa,EAAA,CAAA,CAAA;wGAAb,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBANzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAO,EAAE;AAChB,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAO,EAAE;AAChB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;0BASiB,QAAQ;;0BAAI,QAAQ;;0BACpB,QAAQ;;;ACpB1B;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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: number;
|
|
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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { MainItem } from './mainItem';
|
|
12
|
+
export interface GetMainItemListResponse {
|
|
13
|
+
/**
|
|
14
|
+
* a list of MainItem
|
|
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 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
|
+
* image information
|
|
13
|
+
*/
|
|
14
|
+
export interface ImageInfo {
|
|
15
|
+
id: number;
|
|
16
|
+
createTime: string;
|
|
17
|
+
url: string;
|
|
18
|
+
savePath: string;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
dormantColor: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 ItemEntity {
|
|
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
|
+
}
|