@irohalab/mira-sdk-angular 1.14.0 → 1.15.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 +82 -129
- package/api/default.service.d.ts +74 -9
- package/api/default.serviceInterface.d.ts +31 -1
- package/api.base.service.d.ts +21 -0
- package/configuration.d.ts +5 -2
- package/encoder.d.ts +6 -0
- package/fesm2022/irohalab-mira-sdk-angular.mjs +579 -734
- package/fesm2022/irohalab-mira-sdk-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/model/batchGetMainItemByIdListResult.d.ts +0 -1
- package/model/batchGetSubItemByIdListResult.d.ts +0 -1
- package/model/characterRelationsWithMainItems.d.ts +0 -1
- package/model/clientMapping.d.ts +0 -1
- package/model/createSubItemFavoriteRequestBody.d.ts +0 -1
- package/model/deleteClientMappingByMainItemResponse.d.ts +0 -1
- package/model/errorResponse.d.ts +0 -1
- package/model/favorite.d.ts +0 -1
- package/model/favoriteProgress.d.ts +0 -1
- package/model/favoriteStatus.d.ts +6 -7
- package/model/getFavoriteResponse.d.ts +13 -0
- package/model/getOnAirItemListResponse.d.ts +0 -1
- package/model/idListRequestBody.d.ts +0 -1
- package/model/imageInfo.d.ts +0 -1
- package/model/itemCastCharacterRelation.d.ts +0 -1
- package/model/itemEntity.d.ts +0 -1
- package/model/itemPersonRelation.d.ts +0 -1
- package/model/itemRelation.d.ts +0 -1
- package/model/itemRelationsWithMainItems.d.ts +0 -1
- package/model/itemSubType.d.ts +44 -45
- package/model/itemType.d.ts +13 -14
- package/model/listFavoritesResponse.d.ts +0 -1
- package/model/listMainItemResponse.d.ts +0 -1
- package/model/listSubItemFavoriteResponse.d.ts +0 -1
- package/model/mainItem.d.ts +0 -1
- package/model/mainItemBasic.d.ts +0 -1
- package/model/mainType.d.ts +4 -5
- package/model/models.d.ts +1 -0
- package/model/onAirItem.d.ts +0 -1
- package/model/patchFavoriteBody.d.ts +0 -1
- package/model/personRelationsWithMainItems.d.ts +0 -1
- package/model/propertyType.d.ts +6 -7
- package/model/propertyValue.d.ts +0 -1
- package/model/propertyValueValue.d.ts +0 -1
- package/model/subItem.d.ts +6 -7
- package/model/subItemFavorite.d.ts +0 -1
- package/model/succeedEmptyResponse.d.ts +0 -1
- package/model/syncFavoritesRequestBody.d.ts +0 -1
- package/model/syncFavoritesRequestBodyFavoritesInner.d.ts +0 -1
- package/model/syncFavoritesResponse.d.ts +0 -1
- package/package.json +3 -5
- package/provide-api.d.ts +3 -0
- package/query.params.d.ts +61 -0
- package/esm2022/api/api.mjs +0 -5
- package/esm2022/api/default.service.mjs +0 -1489
- package/esm2022/api/default.serviceInterface.mjs +0 -2
- package/esm2022/api.module.mjs +0 -40
- package/esm2022/configuration.mjs +0 -129
- package/esm2022/encoder.mjs +0 -19
- package/esm2022/index.mjs +0 -7
- package/esm2022/irohalab-mira-sdk-angular.mjs +0 -5
- package/esm2022/model/batchGetMainItemByIdListResult.mjs +0 -2
- package/esm2022/model/batchGetSubItemByIdListResult.mjs +0 -2
- package/esm2022/model/characterRelationsWithMainItems.mjs +0 -2
- package/esm2022/model/clientMapping.mjs +0 -2
- package/esm2022/model/createSubItemFavoriteRequestBody.mjs +0 -12
- package/esm2022/model/deleteClientMappingByMainItemResponse.mjs +0 -12
- package/esm2022/model/errorResponse.mjs +0 -12
- package/esm2022/model/favorite.mjs +0 -2
- package/esm2022/model/favoriteProgress.mjs +0 -12
- package/esm2022/model/favoriteStatus.mjs +0 -18
- package/esm2022/model/getOnAirItemListResponse.mjs +0 -2
- package/esm2022/model/idListRequestBody.mjs +0 -12
- package/esm2022/model/imageInfo.mjs +0 -12
- package/esm2022/model/itemCastCharacterRelation.mjs +0 -12
- package/esm2022/model/itemEntity.mjs +0 -2
- package/esm2022/model/itemPersonRelation.mjs +0 -12
- package/esm2022/model/itemRelation.mjs +0 -12
- package/esm2022/model/itemRelationsWithMainItems.mjs +0 -2
- package/esm2022/model/itemSubType.mjs +0 -56
- package/esm2022/model/itemType.mjs +0 -25
- package/esm2022/model/listFavoritesResponse.mjs +0 -2
- package/esm2022/model/listMainItemResponse.mjs +0 -2
- package/esm2022/model/listSubItemFavoriteResponse.mjs +0 -2
- package/esm2022/model/mainItem.mjs +0 -2
- package/esm2022/model/mainItemBasic.mjs +0 -2
- package/esm2022/model/mainType.mjs +0 -16
- package/esm2022/model/models.mjs +0 -39
- package/esm2022/model/onAirItem.mjs +0 -2
- package/esm2022/model/patchFavoriteBody.mjs +0 -2
- package/esm2022/model/personRelationsWithMainItems.mjs +0 -2
- package/esm2022/model/propertyType.mjs +0 -18
- package/esm2022/model/propertyValue.mjs +0 -2
- package/esm2022/model/propertyValueValue.mjs +0 -12
- package/esm2022/model/subItem.mjs +0 -12
- package/esm2022/model/subItemFavorite.mjs +0 -2
- package/esm2022/model/succeedEmptyResponse.mjs +0 -12
- package/esm2022/model/syncFavoritesRequestBody.mjs +0 -2
- package/esm2022/model/syncFavoritesRequestBodyFavoritesInner.mjs +0 -12
- package/esm2022/model/syncFavoritesResponse.mjs +0 -2
- package/esm2022/param.mjs +0 -2
- package/esm2022/variables.mjs +0 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken,
|
|
2
|
+
import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeEnvironmentProviders } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
|
-
import { HttpHeaders, HttpContext
|
|
4
|
+
import { HttpParams, HttpHeaders, HttpContext } from '@angular/common/http';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Custom HttpParameterCodec
|
|
@@ -21,6 +21,145 @@ class CustomHttpParameterCodec {
|
|
|
21
21
|
return decodeURIComponent(v);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
class IdentityHttpParameterCodec {
|
|
25
|
+
encodeKey(k) {
|
|
26
|
+
return k;
|
|
27
|
+
}
|
|
28
|
+
encodeValue(v) {
|
|
29
|
+
return v;
|
|
30
|
+
}
|
|
31
|
+
decodeKey(k) {
|
|
32
|
+
return k;
|
|
33
|
+
}
|
|
34
|
+
decodeValue(v) {
|
|
35
|
+
return v;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var QueryParamStyle;
|
|
40
|
+
(function (QueryParamStyle) {
|
|
41
|
+
QueryParamStyle[QueryParamStyle["Json"] = 0] = "Json";
|
|
42
|
+
QueryParamStyle[QueryParamStyle["Form"] = 1] = "Form";
|
|
43
|
+
QueryParamStyle[QueryParamStyle["DeepObject"] = 2] = "DeepObject";
|
|
44
|
+
QueryParamStyle[QueryParamStyle["SpaceDelimited"] = 3] = "SpaceDelimited";
|
|
45
|
+
QueryParamStyle[QueryParamStyle["PipeDelimited"] = 4] = "PipeDelimited";
|
|
46
|
+
})(QueryParamStyle || (QueryParamStyle = {}));
|
|
47
|
+
class OpenApiHttpParams {
|
|
48
|
+
params = new Map();
|
|
49
|
+
defaults;
|
|
50
|
+
encoder;
|
|
51
|
+
/**
|
|
52
|
+
* @param encoder Parameter serializer
|
|
53
|
+
* @param defaults Global defaults used when a specific parameter has no explicit options.
|
|
54
|
+
* By OpenAPI default, explode is true for query params with style=form.
|
|
55
|
+
*/
|
|
56
|
+
constructor(encoder, defaults) {
|
|
57
|
+
this.encoder = encoder || new CustomHttpParameterCodec();
|
|
58
|
+
this.defaults = {
|
|
59
|
+
explode: defaults?.explode ?? true,
|
|
60
|
+
delimiter: defaults?.delimiter ?? ",",
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
resolveOptions(local) {
|
|
64
|
+
return {
|
|
65
|
+
explode: local?.explode ?? this.defaults.explode,
|
|
66
|
+
delimiter: local?.delimiter ?? this.defaults.delimiter,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Replace the parameter's values and (optionally) its options.
|
|
71
|
+
* Options are stored per-parameter (not global).
|
|
72
|
+
*/
|
|
73
|
+
set(key, values, options) {
|
|
74
|
+
const arr = Array.isArray(values) ? values.slice() : [values];
|
|
75
|
+
const opts = this.resolveOptions(options);
|
|
76
|
+
this.params.set(key, { values: arr, options: opts });
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Append a single value to the parameter. If the parameter didn't exist it will be created
|
|
81
|
+
* and use resolved options (global defaults merged with any provided options).
|
|
82
|
+
*/
|
|
83
|
+
append(key, value, options) {
|
|
84
|
+
const entry = this.params.get(key);
|
|
85
|
+
if (entry) {
|
|
86
|
+
// If new options provided, override the stored options for subsequent serialization
|
|
87
|
+
if (options) {
|
|
88
|
+
entry.options = this.resolveOptions({ ...entry.options, ...options });
|
|
89
|
+
}
|
|
90
|
+
entry.values.push(value);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
this.set(key, [value], options);
|
|
94
|
+
}
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Serialize to a query string according to per-parameter OpenAPI options.
|
|
99
|
+
* - If explode=true for that parameter → repeated key=value pairs (each value encoded).
|
|
100
|
+
* - If explode=false for that parameter → single key=value where values are individually encoded
|
|
101
|
+
* and joined using the configured delimiter. The delimiter character is inserted AS-IS
|
|
102
|
+
* (not percent-encoded).
|
|
103
|
+
*/
|
|
104
|
+
toString() {
|
|
105
|
+
const records = this.toRecord();
|
|
106
|
+
const parts = [];
|
|
107
|
+
for (const key in records) {
|
|
108
|
+
parts.push(`${key}=${records[key]}`);
|
|
109
|
+
}
|
|
110
|
+
return parts.join("&");
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Return parameters as a plain record.
|
|
114
|
+
* - If a parameter has exactly one value, returns that value directly.
|
|
115
|
+
* - If a parameter has multiple values, returns a readonly array of values.
|
|
116
|
+
*/
|
|
117
|
+
toRecord() {
|
|
118
|
+
const parts = {};
|
|
119
|
+
for (const [key, entry] of this.params.entries()) {
|
|
120
|
+
const encodedKey = this.encoder.encodeKey(key);
|
|
121
|
+
if (entry.options.explode) {
|
|
122
|
+
parts[encodedKey] = entry.values.map((v) => this.encoder.encodeValue(v));
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
const encodedValues = entry.values.map((v) => this.encoder.encodeValue(v));
|
|
126
|
+
// join with the delimiter *unencoded*
|
|
127
|
+
parts[encodedKey] = encodedValues.join(entry.options.delimiter);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return parts;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Return an Angular's HttpParams with an identity parameter codec as the parameters are already encoded.
|
|
134
|
+
*/
|
|
135
|
+
toHttpParams() {
|
|
136
|
+
const records = this.toRecord();
|
|
137
|
+
let httpParams = new HttpParams({ encoder: new IdentityHttpParameterCodec() });
|
|
138
|
+
return httpParams.appendAll(records);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function concatHttpParamsObject(httpParams, key, item, delimiter) {
|
|
142
|
+
let keyAndValues = [];
|
|
143
|
+
for (const k in item) {
|
|
144
|
+
keyAndValues.push(k);
|
|
145
|
+
const value = item[k];
|
|
146
|
+
if (Array.isArray(value)) {
|
|
147
|
+
keyAndValues.push(...value.map(convertToString));
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
keyAndValues.push(convertToString(value));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return httpParams.set(key, keyAndValues, { explode: false, delimiter: delimiter });
|
|
154
|
+
}
|
|
155
|
+
function convertToString(value) {
|
|
156
|
+
if (value instanceof Date) {
|
|
157
|
+
return value.toISOString();
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
return value.toString();
|
|
161
|
+
}
|
|
162
|
+
}
|
|
24
163
|
|
|
25
164
|
const BASE_PATH = new InjectionToken('basePath');
|
|
26
165
|
const COLLECTION_FORMATS = {
|
|
@@ -61,26 +200,30 @@ class MiraConfiguration {
|
|
|
61
200
|
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
62
201
|
*/
|
|
63
202
|
credentials;
|
|
64
|
-
constructor(
|
|
65
|
-
|
|
66
|
-
|
|
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;
|
|
203
|
+
constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials } = {}) {
|
|
204
|
+
if (apiKeys) {
|
|
205
|
+
this.apiKeys = apiKeys;
|
|
74
206
|
}
|
|
75
|
-
|
|
76
|
-
this.
|
|
207
|
+
if (username !== undefined) {
|
|
208
|
+
this.username = username;
|
|
77
209
|
}
|
|
78
|
-
if (
|
|
79
|
-
this.
|
|
210
|
+
if (password !== undefined) {
|
|
211
|
+
this.password = password;
|
|
80
212
|
}
|
|
81
|
-
|
|
82
|
-
this.
|
|
213
|
+
if (accessToken !== undefined) {
|
|
214
|
+
this.accessToken = accessToken;
|
|
215
|
+
}
|
|
216
|
+
if (basePath !== undefined) {
|
|
217
|
+
this.basePath = basePath;
|
|
83
218
|
}
|
|
219
|
+
if (withCredentials !== undefined) {
|
|
220
|
+
this.withCredentials = withCredentials;
|
|
221
|
+
}
|
|
222
|
+
if (encoder) {
|
|
223
|
+
this.encoder = encoder;
|
|
224
|
+
}
|
|
225
|
+
this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param));
|
|
226
|
+
this.credentials = credentials ?? {};
|
|
84
227
|
// init default oAuth2 credential
|
|
85
228
|
if (!this.credentials['oAuth2']) {
|
|
86
229
|
this.credentials['oAuth2'] = () => {
|
|
@@ -135,8 +278,8 @@ class MiraConfiguration {
|
|
|
135
278
|
* @return True if the given MIME is JSON, false otherwise.
|
|
136
279
|
*/
|
|
137
280
|
isJsonMime(mime) {
|
|
138
|
-
const jsonMime =
|
|
139
|
-
return mime !== null &&
|
|
281
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
282
|
+
return mime !== null && jsonMime.test(mime);
|
|
140
283
|
}
|
|
141
284
|
lookupCredential(key) {
|
|
142
285
|
const value = this.credentials[key];
|
|
@@ -144,6 +287,18 @@ class MiraConfiguration {
|
|
|
144
287
|
? value()
|
|
145
288
|
: value;
|
|
146
289
|
}
|
|
290
|
+
addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
|
|
291
|
+
const value = this.lookupCredential(credentialKey);
|
|
292
|
+
return value
|
|
293
|
+
? headers.set(headerName, (prefix ?? '') + value)
|
|
294
|
+
: headers;
|
|
295
|
+
}
|
|
296
|
+
addCredentialToQuery(credentialKey, paramName, query) {
|
|
297
|
+
const value = this.lookupCredential(credentialKey);
|
|
298
|
+
return value
|
|
299
|
+
? query.set(paramName, value)
|
|
300
|
+
: query;
|
|
301
|
+
}
|
|
147
302
|
defaultEncodeParam(param) {
|
|
148
303
|
// This implementation exists as fallback for missing configuration
|
|
149
304
|
// and for backwards compatibility to older typescript-angular generator versions.
|
|
@@ -161,7 +316,6 @@ class MiraConfiguration {
|
|
|
161
316
|
|
|
162
317
|
/**
|
|
163
318
|
* mira API
|
|
164
|
-
* API for Project-Mira
|
|
165
319
|
*
|
|
166
320
|
*
|
|
167
321
|
*
|
|
@@ -169,18 +323,13 @@ class MiraConfiguration {
|
|
|
169
323
|
* https://openapi-generator.tech
|
|
170
324
|
* Do not edit the class manually.
|
|
171
325
|
*/
|
|
172
|
-
|
|
173
|
-
class DefaultMira {
|
|
174
|
-
httpClient;
|
|
326
|
+
class BaseService {
|
|
175
327
|
basePath = 'http://localhost';
|
|
176
328
|
defaultHeaders = new HttpHeaders();
|
|
177
|
-
configuration
|
|
329
|
+
configuration;
|
|
178
330
|
encoder;
|
|
179
|
-
constructor(
|
|
180
|
-
this.
|
|
181
|
-
if (configuration) {
|
|
182
|
-
this.configuration = configuration;
|
|
183
|
-
}
|
|
331
|
+
constructor(basePath, configuration) {
|
|
332
|
+
this.configuration = configuration || new MiraConfiguration();
|
|
184
333
|
if (typeof this.configuration.basePath !== 'string') {
|
|
185
334
|
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
186
335
|
if (firstBasePath != undefined) {
|
|
@@ -193,74 +342,101 @@ class DefaultMira {
|
|
|
193
342
|
}
|
|
194
343
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
195
344
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
if (typeof value === "object" && value instanceof Date === false) {
|
|
199
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
203
|
-
}
|
|
204
|
-
return httpParams;
|
|
345
|
+
canConsumeForm(consumes) {
|
|
346
|
+
return consumes.indexOf('multipart/form-data') !== -1;
|
|
205
347
|
}
|
|
206
|
-
|
|
207
|
-
if (value
|
|
348
|
+
addToHttpParams(httpParams, key, value, paramStyle, explode) {
|
|
349
|
+
if (value === null || value === undefined) {
|
|
208
350
|
return httpParams;
|
|
209
351
|
}
|
|
210
|
-
if (
|
|
211
|
-
if (
|
|
212
|
-
|
|
352
|
+
if (paramStyle === QueryParamStyle.DeepObject) {
|
|
353
|
+
if (typeof value !== 'object') {
|
|
354
|
+
throw Error(`An object must be provided for key ${key} as it is a deep object`);
|
|
355
|
+
}
|
|
356
|
+
return Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams);
|
|
357
|
+
}
|
|
358
|
+
else if (paramStyle === QueryParamStyle.Json) {
|
|
359
|
+
return httpParams.append(key, JSON.stringify(value));
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
// Form-style, SpaceDelimited or PipeDelimited
|
|
363
|
+
if (Object(value) !== value) {
|
|
364
|
+
// If it is a primitive type, add its string representation
|
|
365
|
+
return httpParams.append(key, value.toString());
|
|
213
366
|
}
|
|
214
367
|
else if (value instanceof Date) {
|
|
215
|
-
|
|
216
|
-
|
|
368
|
+
return httpParams.append(key, value.toISOString());
|
|
369
|
+
}
|
|
370
|
+
else if (Array.isArray(value) || value instanceof Set) {
|
|
371
|
+
// Otherwise, if it's an array or set, add each element.
|
|
372
|
+
const array = Array.isArray(value) ? value : Array.from(value);
|
|
373
|
+
if (paramStyle === QueryParamStyle.Form) {
|
|
374
|
+
return httpParams.set(key, array, { explode: explode, delimiter: ',' });
|
|
375
|
+
}
|
|
376
|
+
else if (paramStyle === QueryParamStyle.SpaceDelimited) {
|
|
377
|
+
return httpParams.set(key, array, { explode: explode, delimiter: ' ' });
|
|
217
378
|
}
|
|
218
379
|
else {
|
|
219
|
-
|
|
380
|
+
// PipeDelimited
|
|
381
|
+
return httpParams.set(key, array, { explode: explode, delimiter: '|' });
|
|
220
382
|
}
|
|
221
383
|
}
|
|
222
384
|
else {
|
|
223
|
-
|
|
385
|
+
// Otherwise, if it's an object, add each field.
|
|
386
|
+
if (paramStyle === QueryParamStyle.Form) {
|
|
387
|
+
if (explode) {
|
|
388
|
+
Object.keys(value).forEach(k => {
|
|
389
|
+
httpParams = this.addToHttpParams(httpParams, k, value[k], paramStyle, explode);
|
|
390
|
+
});
|
|
391
|
+
return httpParams;
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
return concatHttpParamsObject(httpParams, key, value, ',');
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
else if (paramStyle === QueryParamStyle.SpaceDelimited) {
|
|
398
|
+
return concatHttpParamsObject(httpParams, key, value, ' ');
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
// PipeDelimited
|
|
402
|
+
return concatHttpParamsObject(httpParams, key, value, '|');
|
|
403
|
+
}
|
|
224
404
|
}
|
|
225
405
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* mira API
|
|
411
|
+
*
|
|
412
|
+
*
|
|
413
|
+
*
|
|
414
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
415
|
+
* https://openapi-generator.tech
|
|
416
|
+
* Do not edit the class manually.
|
|
417
|
+
*/
|
|
418
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
419
|
+
class DefaultMira extends BaseService {
|
|
420
|
+
httpClient;
|
|
421
|
+
constructor(httpClient, basePath, configuration) {
|
|
422
|
+
super(basePath, configuration);
|
|
423
|
+
this.httpClient = httpClient;
|
|
233
424
|
}
|
|
234
425
|
addClientMapping(request_body, observe = 'body', reportProgress = false, options) {
|
|
235
426
|
if (request_body === null || request_body === undefined) {
|
|
236
427
|
throw new Error('Required parameter request_body was null or undefined when calling addClientMapping.');
|
|
237
428
|
}
|
|
238
429
|
let localVarHeaders = this.defaultHeaders;
|
|
239
|
-
let localVarCredential;
|
|
240
430
|
// authentication (oAuth2) required
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
246
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
247
|
-
// to determine the Accept header
|
|
248
|
-
const httpHeaderAccepts = [
|
|
249
|
-
'application/json'
|
|
250
|
-
];
|
|
251
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
252
|
-
}
|
|
431
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
432
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
433
|
+
'application/json'
|
|
434
|
+
]);
|
|
253
435
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
254
436
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
255
437
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
localVarHttpContext = new HttpContext();
|
|
259
|
-
}
|
|
260
|
-
let localVarTransferCache = options && options.transferCache;
|
|
261
|
-
if (localVarTransferCache === undefined) {
|
|
262
|
-
localVarTransferCache = true;
|
|
263
|
-
}
|
|
438
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
439
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
264
440
|
// to determine the Content-Type header
|
|
265
441
|
const consumes = [
|
|
266
442
|
'application/json'
|
|
@@ -282,14 +458,15 @@ class DefaultMira {
|
|
|
282
458
|
}
|
|
283
459
|
}
|
|
284
460
|
let localVarPath = `/client-mapping`;
|
|
285
|
-
|
|
461
|
+
const { basePath, withCredentials } = this.configuration;
|
|
462
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
286
463
|
context: localVarHttpContext,
|
|
287
464
|
body: request_body,
|
|
288
465
|
responseType: responseType_,
|
|
289
|
-
withCredentials:
|
|
466
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
290
467
|
headers: localVarHeaders,
|
|
291
468
|
observe: observe,
|
|
292
|
-
transferCache: localVarTransferCache,
|
|
469
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
293
470
|
reportProgress: reportProgress
|
|
294
471
|
});
|
|
295
472
|
}
|
|
@@ -298,31 +475,16 @@ class DefaultMira {
|
|
|
298
475
|
throw new Error('Required parameter IdListRequestBody was null or undefined when calling batchGetMainItemByIdList.');
|
|
299
476
|
}
|
|
300
477
|
let localVarHeaders = this.defaultHeaders;
|
|
301
|
-
let localVarCredential;
|
|
302
478
|
// authentication (oAuth2) required
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
308
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
309
|
-
// to determine the Accept header
|
|
310
|
-
const httpHeaderAccepts = [
|
|
311
|
-
'application/json'
|
|
312
|
-
];
|
|
313
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
314
|
-
}
|
|
479
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
480
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
481
|
+
'application/json'
|
|
482
|
+
]);
|
|
315
483
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
316
484
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
317
485
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
localVarHttpContext = new HttpContext();
|
|
321
|
-
}
|
|
322
|
-
let localVarTransferCache = options && options.transferCache;
|
|
323
|
-
if (localVarTransferCache === undefined) {
|
|
324
|
-
localVarTransferCache = true;
|
|
325
|
-
}
|
|
486
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
487
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
326
488
|
// to determine the Content-Type header
|
|
327
489
|
const consumes = [
|
|
328
490
|
'application/json'
|
|
@@ -344,14 +506,15 @@ class DefaultMira {
|
|
|
344
506
|
}
|
|
345
507
|
}
|
|
346
508
|
let localVarPath = `/client-mapping/batch/main`;
|
|
347
|
-
|
|
509
|
+
const { basePath, withCredentials } = this.configuration;
|
|
510
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
348
511
|
context: localVarHttpContext,
|
|
349
512
|
body: IdListRequestBody,
|
|
350
513
|
responseType: responseType_,
|
|
351
|
-
withCredentials:
|
|
514
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
352
515
|
headers: localVarHeaders,
|
|
353
516
|
observe: observe,
|
|
354
|
-
transferCache: localVarTransferCache,
|
|
517
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
355
518
|
reportProgress: reportProgress
|
|
356
519
|
});
|
|
357
520
|
}
|
|
@@ -360,31 +523,16 @@ class DefaultMira {
|
|
|
360
523
|
throw new Error('Required parameter IdListRequestBody was null or undefined when calling batchGetSubItemsByIdList.');
|
|
361
524
|
}
|
|
362
525
|
let localVarHeaders = this.defaultHeaders;
|
|
363
|
-
let localVarCredential;
|
|
364
526
|
// authentication (oAuth2) required
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
370
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
371
|
-
// to determine the Accept header
|
|
372
|
-
const httpHeaderAccepts = [
|
|
373
|
-
'application/json'
|
|
374
|
-
];
|
|
375
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
376
|
-
}
|
|
527
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
528
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
529
|
+
'application/json'
|
|
530
|
+
]);
|
|
377
531
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
378
532
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
379
533
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
localVarHttpContext = new HttpContext();
|
|
383
|
-
}
|
|
384
|
-
let localVarTransferCache = options && options.transferCache;
|
|
385
|
-
if (localVarTransferCache === undefined) {
|
|
386
|
-
localVarTransferCache = true;
|
|
387
|
-
}
|
|
534
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
535
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
388
536
|
// to determine the Content-Type header
|
|
389
537
|
const consumes = [
|
|
390
538
|
'application/json'
|
|
@@ -406,14 +554,15 @@ class DefaultMira {
|
|
|
406
554
|
}
|
|
407
555
|
}
|
|
408
556
|
let localVarPath = `/client-mapping/batch/subItem`;
|
|
409
|
-
|
|
557
|
+
const { basePath, withCredentials } = this.configuration;
|
|
558
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
410
559
|
context: localVarHttpContext,
|
|
411
560
|
body: IdListRequestBody,
|
|
412
561
|
responseType: responseType_,
|
|
413
|
-
withCredentials:
|
|
562
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
414
563
|
headers: localVarHeaders,
|
|
415
564
|
observe: observe,
|
|
416
|
-
transferCache: localVarTransferCache,
|
|
565
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
417
566
|
reportProgress: reportProgress
|
|
418
567
|
});
|
|
419
568
|
}
|
|
@@ -422,31 +571,16 @@ class DefaultMira {
|
|
|
422
571
|
throw new Error('Required parameter Favorite was null or undefined when calling createFavorite.');
|
|
423
572
|
}
|
|
424
573
|
let localVarHeaders = this.defaultHeaders;
|
|
425
|
-
let localVarCredential;
|
|
426
574
|
// authentication (oAuth2) required
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
432
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
433
|
-
// to determine the Accept header
|
|
434
|
-
const httpHeaderAccepts = [
|
|
435
|
-
'application/json'
|
|
436
|
-
];
|
|
437
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
438
|
-
}
|
|
575
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
576
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
577
|
+
'application/json'
|
|
578
|
+
]);
|
|
439
579
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
440
580
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
441
581
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
localVarHttpContext = new HttpContext();
|
|
445
|
-
}
|
|
446
|
-
let localVarTransferCache = options && options.transferCache;
|
|
447
|
-
if (localVarTransferCache === undefined) {
|
|
448
|
-
localVarTransferCache = true;
|
|
449
|
-
}
|
|
582
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
583
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
450
584
|
// to determine the Content-Type header
|
|
451
585
|
const consumes = [
|
|
452
586
|
'application/json'
|
|
@@ -468,14 +602,15 @@ class DefaultMira {
|
|
|
468
602
|
}
|
|
469
603
|
}
|
|
470
604
|
let localVarPath = `/favorite`;
|
|
471
|
-
|
|
605
|
+
const { basePath, withCredentials } = this.configuration;
|
|
606
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
472
607
|
context: localVarHttpContext,
|
|
473
608
|
body: Favorite,
|
|
474
609
|
responseType: responseType_,
|
|
475
|
-
withCredentials:
|
|
610
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
476
611
|
headers: localVarHeaders,
|
|
477
612
|
observe: observe,
|
|
478
|
-
transferCache: localVarTransferCache,
|
|
613
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
479
614
|
reportProgress: reportProgress
|
|
480
615
|
});
|
|
481
616
|
}
|
|
@@ -484,31 +619,16 @@ class DefaultMira {
|
|
|
484
619
|
throw new Error('Required parameter CreateSubItemFavoriteRequestBody was null or undefined when calling createSubItemFavorite.');
|
|
485
620
|
}
|
|
486
621
|
let localVarHeaders = this.defaultHeaders;
|
|
487
|
-
let localVarCredential;
|
|
488
622
|
// authentication (oAuth2) required
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
494
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
495
|
-
// to determine the Accept header
|
|
496
|
-
const httpHeaderAccepts = [
|
|
497
|
-
'application/json'
|
|
498
|
-
];
|
|
499
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
500
|
-
}
|
|
623
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
624
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
625
|
+
'application/json'
|
|
626
|
+
]);
|
|
501
627
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
502
628
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
503
629
|
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
localVarHttpContext = new HttpContext();
|
|
507
|
-
}
|
|
508
|
-
let localVarTransferCache = options && options.transferCache;
|
|
509
|
-
if (localVarTransferCache === undefined) {
|
|
510
|
-
localVarTransferCache = true;
|
|
511
|
-
}
|
|
630
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
631
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
512
632
|
// to determine the Content-Type header
|
|
513
633
|
const consumes = [
|
|
514
634
|
'application/json'
|
|
@@ -530,14 +650,15 @@ class DefaultMira {
|
|
|
530
650
|
}
|
|
531
651
|
}
|
|
532
652
|
let localVarPath = `/favorite/sub`;
|
|
533
|
-
|
|
653
|
+
const { basePath, withCredentials } = this.configuration;
|
|
654
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
534
655
|
context: localVarHttpContext,
|
|
535
656
|
body: CreateSubItemFavoriteRequestBody,
|
|
536
657
|
responseType: responseType_,
|
|
537
|
-
withCredentials:
|
|
658
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
538
659
|
headers: localVarHeaders,
|
|
539
660
|
observe: observe,
|
|
540
|
-
transferCache: localVarTransferCache,
|
|
661
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
541
662
|
reportProgress: reportProgress
|
|
542
663
|
});
|
|
543
664
|
}
|
|
@@ -546,31 +667,16 @@ class DefaultMira {
|
|
|
546
667
|
throw new Error('Required parameter id was null or undefined when calling deleteClientMappingByMainItemId.');
|
|
547
668
|
}
|
|
548
669
|
let localVarHeaders = this.defaultHeaders;
|
|
549
|
-
let localVarCredential;
|
|
550
670
|
// authentication (oAuth2) required
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
556
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
557
|
-
// to determine the Accept header
|
|
558
|
-
const httpHeaderAccepts = [
|
|
559
|
-
'application/json'
|
|
560
|
-
];
|
|
561
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
562
|
-
}
|
|
671
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
672
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
673
|
+
'application/json'
|
|
674
|
+
]);
|
|
563
675
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
564
676
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
565
677
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
localVarHttpContext = new HttpContext();
|
|
569
|
-
}
|
|
570
|
-
let localVarTransferCache = options && options.transferCache;
|
|
571
|
-
if (localVarTransferCache === undefined) {
|
|
572
|
-
localVarTransferCache = true;
|
|
573
|
-
}
|
|
678
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
679
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
574
680
|
let responseType_ = 'json';
|
|
575
681
|
if (localVarHttpHeaderAcceptSelected) {
|
|
576
682
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -584,13 +690,14 @@ class DefaultMira {
|
|
|
584
690
|
}
|
|
585
691
|
}
|
|
586
692
|
let localVarPath = `/client-mapping/main/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
587
|
-
|
|
693
|
+
const { basePath, withCredentials } = this.configuration;
|
|
694
|
+
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
588
695
|
context: localVarHttpContext,
|
|
589
696
|
responseType: responseType_,
|
|
590
|
-
withCredentials:
|
|
697
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
591
698
|
headers: localVarHeaders,
|
|
592
699
|
observe: observe,
|
|
593
|
-
transferCache: localVarTransferCache,
|
|
700
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
594
701
|
reportProgress: reportProgress
|
|
595
702
|
});
|
|
596
703
|
}
|
|
@@ -599,31 +706,16 @@ class DefaultMira {
|
|
|
599
706
|
throw new Error('Required parameter id was null or undefined when calling deleteFavorite.');
|
|
600
707
|
}
|
|
601
708
|
let localVarHeaders = this.defaultHeaders;
|
|
602
|
-
let localVarCredential;
|
|
603
709
|
// authentication (oAuth2) required
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
609
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
610
|
-
// to determine the Accept header
|
|
611
|
-
const httpHeaderAccepts = [
|
|
612
|
-
'application/json'
|
|
613
|
-
];
|
|
614
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
615
|
-
}
|
|
710
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
711
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
712
|
+
'application/json'
|
|
713
|
+
]);
|
|
616
714
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
617
715
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
618
716
|
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
localVarHttpContext = new HttpContext();
|
|
622
|
-
}
|
|
623
|
-
let localVarTransferCache = options && options.transferCache;
|
|
624
|
-
if (localVarTransferCache === undefined) {
|
|
625
|
-
localVarTransferCache = true;
|
|
626
|
-
}
|
|
717
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
718
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
627
719
|
let responseType_ = 'json';
|
|
628
720
|
if (localVarHttpHeaderAcceptSelected) {
|
|
629
721
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -637,13 +729,14 @@ class DefaultMira {
|
|
|
637
729
|
}
|
|
638
730
|
}
|
|
639
731
|
let localVarPath = `/favorite/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
640
|
-
|
|
732
|
+
const { basePath, withCredentials } = this.configuration;
|
|
733
|
+
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
641
734
|
context: localVarHttpContext,
|
|
642
735
|
responseType: responseType_,
|
|
643
|
-
withCredentials:
|
|
736
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
644
737
|
headers: localVarHeaders,
|
|
645
738
|
observe: observe,
|
|
646
|
-
transferCache: localVarTransferCache,
|
|
739
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
647
740
|
reportProgress: reportProgress
|
|
648
741
|
});
|
|
649
742
|
}
|
|
@@ -652,31 +745,55 @@ class DefaultMira {
|
|
|
652
745
|
throw new Error('Required parameter id was null or undefined when calling deleteSubItemFavorite.');
|
|
653
746
|
}
|
|
654
747
|
let localVarHeaders = this.defaultHeaders;
|
|
655
|
-
let localVarCredential;
|
|
656
748
|
// authentication (oAuth2) required
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
662
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
663
|
-
// to determine the Accept header
|
|
664
|
-
const httpHeaderAccepts = [
|
|
665
|
-
'application/json'
|
|
666
|
-
];
|
|
667
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
668
|
-
}
|
|
749
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
750
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
751
|
+
'application/json'
|
|
752
|
+
]);
|
|
669
753
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
670
754
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
671
755
|
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
756
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
757
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
758
|
+
let responseType_ = 'json';
|
|
759
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
760
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
761
|
+
responseType_ = 'text';
|
|
762
|
+
}
|
|
763
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
764
|
+
responseType_ = 'json';
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
responseType_ = 'blob';
|
|
768
|
+
}
|
|
675
769
|
}
|
|
676
|
-
let
|
|
677
|
-
|
|
678
|
-
|
|
770
|
+
let localVarPath = `/favorite/sub/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
771
|
+
const { basePath, withCredentials } = this.configuration;
|
|
772
|
+
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
773
|
+
context: localVarHttpContext,
|
|
774
|
+
responseType: responseType_,
|
|
775
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
776
|
+
headers: localVarHeaders,
|
|
777
|
+
observe: observe,
|
|
778
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
779
|
+
reportProgress: reportProgress
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
getFavoriteById(id, observe = 'body', reportProgress = false, options) {
|
|
783
|
+
if (id === null || id === undefined) {
|
|
784
|
+
throw new Error('Required parameter id was null or undefined when calling getFavoriteById.');
|
|
679
785
|
}
|
|
786
|
+
let localVarHeaders = this.defaultHeaders;
|
|
787
|
+
// authentication (oAuth2) required
|
|
788
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
789
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
790
|
+
'application/json'
|
|
791
|
+
]);
|
|
792
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
793
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
794
|
+
}
|
|
795
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
796
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
680
797
|
let responseType_ = 'json';
|
|
681
798
|
if (localVarHttpHeaderAcceptSelected) {
|
|
682
799
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -689,14 +806,15 @@ class DefaultMira {
|
|
|
689
806
|
responseType_ = 'blob';
|
|
690
807
|
}
|
|
691
808
|
}
|
|
692
|
-
let localVarPath = `/favorite
|
|
693
|
-
|
|
809
|
+
let localVarPath = `/favorite/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
810
|
+
const { basePath, withCredentials } = this.configuration;
|
|
811
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
694
812
|
context: localVarHttpContext,
|
|
695
813
|
responseType: responseType_,
|
|
696
|
-
withCredentials:
|
|
814
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
697
815
|
headers: localVarHeaders,
|
|
698
816
|
observe: observe,
|
|
699
|
-
transferCache: localVarTransferCache,
|
|
817
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
700
818
|
reportProgress: reportProgress
|
|
701
819
|
});
|
|
702
820
|
}
|
|
@@ -705,31 +823,16 @@ class DefaultMira {
|
|
|
705
823
|
throw new Error('Required parameter id was null or undefined when calling getFavoriteByMainItemId.');
|
|
706
824
|
}
|
|
707
825
|
let localVarHeaders = this.defaultHeaders;
|
|
708
|
-
let localVarCredential;
|
|
709
826
|
// authentication (oAuth2) required
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
715
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
716
|
-
// to determine the Accept header
|
|
717
|
-
const httpHeaderAccepts = [
|
|
718
|
-
'application/json'
|
|
719
|
-
];
|
|
720
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
721
|
-
}
|
|
827
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
828
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
829
|
+
'application/json'
|
|
830
|
+
]);
|
|
722
831
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
723
832
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
724
833
|
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
localVarHttpContext = new HttpContext();
|
|
728
|
-
}
|
|
729
|
-
let localVarTransferCache = options && options.transferCache;
|
|
730
|
-
if (localVarTransferCache === undefined) {
|
|
731
|
-
localVarTransferCache = true;
|
|
732
|
-
}
|
|
834
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
835
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
733
836
|
let responseType_ = 'json';
|
|
734
837
|
if (localVarHttpHeaderAcceptSelected) {
|
|
735
838
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -743,13 +846,14 @@ class DefaultMira {
|
|
|
743
846
|
}
|
|
744
847
|
}
|
|
745
848
|
let localVarPath = `/favorite/main/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
746
|
-
|
|
849
|
+
const { basePath, withCredentials } = this.configuration;
|
|
850
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
747
851
|
context: localVarHttpContext,
|
|
748
852
|
responseType: responseType_,
|
|
749
|
-
withCredentials:
|
|
853
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
750
854
|
headers: localVarHeaders,
|
|
751
855
|
observe: observe,
|
|
752
|
-
transferCache: localVarTransferCache,
|
|
856
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
753
857
|
reportProgress: reportProgress
|
|
754
858
|
});
|
|
755
859
|
}
|
|
@@ -760,39 +864,20 @@ class DefaultMira {
|
|
|
760
864
|
if (epType === null || epType === undefined) {
|
|
761
865
|
throw new Error('Required parameter epType was null or undefined when calling getFavoriteProgressByMainItemId.');
|
|
762
866
|
}
|
|
763
|
-
let localVarQueryParameters = new
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}
|
|
767
|
-
if (epType !== undefined && epType !== null) {
|
|
768
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, epType, 'epType');
|
|
769
|
-
}
|
|
867
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
868
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'mainItemId', mainItemId, QueryParamStyle.Form, true);
|
|
869
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'epType', epType, QueryParamStyle.Form, true);
|
|
770
870
|
let localVarHeaders = this.defaultHeaders;
|
|
771
|
-
let localVarCredential;
|
|
772
871
|
// authentication (oAuth2) required
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
778
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
779
|
-
// to determine the Accept header
|
|
780
|
-
const httpHeaderAccepts = [
|
|
781
|
-
'application/json'
|
|
782
|
-
];
|
|
783
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
784
|
-
}
|
|
872
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
873
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
874
|
+
'application/json'
|
|
875
|
+
]);
|
|
785
876
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
786
877
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
787
878
|
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
localVarHttpContext = new HttpContext();
|
|
791
|
-
}
|
|
792
|
-
let localVarTransferCache = options && options.transferCache;
|
|
793
|
-
if (localVarTransferCache === undefined) {
|
|
794
|
-
localVarTransferCache = true;
|
|
795
|
-
}
|
|
879
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
880
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
796
881
|
let responseType_ = 'json';
|
|
797
882
|
if (localVarHttpHeaderAcceptSelected) {
|
|
798
883
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -806,14 +891,15 @@ class DefaultMira {
|
|
|
806
891
|
}
|
|
807
892
|
}
|
|
808
893
|
let localVarPath = `/favorite/progress`;
|
|
809
|
-
|
|
894
|
+
const { basePath, withCredentials } = this.configuration;
|
|
895
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
810
896
|
context: localVarHttpContext,
|
|
811
|
-
params: localVarQueryParameters,
|
|
897
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
812
898
|
responseType: responseType_,
|
|
813
|
-
withCredentials:
|
|
899
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
814
900
|
headers: localVarHeaders,
|
|
815
901
|
observe: observe,
|
|
816
|
-
transferCache: localVarTransferCache,
|
|
902
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
817
903
|
reportProgress: reportProgress
|
|
818
904
|
});
|
|
819
905
|
}
|
|
@@ -821,39 +907,20 @@ class DefaultMira {
|
|
|
821
907
|
if (id === null || id === undefined) {
|
|
822
908
|
throw new Error('Required parameter id was null or undefined when calling getMainItemById.');
|
|
823
909
|
}
|
|
824
|
-
let localVarQueryParameters = new
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
if (subItems !== undefined && subItems !== null) {
|
|
829
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, subItems, 'subItems');
|
|
830
|
-
}
|
|
910
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
911
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'coverImage', coverImage, QueryParamStyle.Form, true);
|
|
912
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'subItems', subItems, QueryParamStyle.Form, true);
|
|
831
913
|
let localVarHeaders = this.defaultHeaders;
|
|
832
|
-
let localVarCredential;
|
|
833
914
|
// authentication (oAuth2) required
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
839
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
840
|
-
// to determine the Accept header
|
|
841
|
-
const httpHeaderAccepts = [
|
|
842
|
-
'application/json'
|
|
843
|
-
];
|
|
844
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
845
|
-
}
|
|
915
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
916
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
917
|
+
'application/json'
|
|
918
|
+
]);
|
|
846
919
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
847
920
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
848
921
|
}
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
localVarHttpContext = new HttpContext();
|
|
852
|
-
}
|
|
853
|
-
let localVarTransferCache = options && options.transferCache;
|
|
854
|
-
if (localVarTransferCache === undefined) {
|
|
855
|
-
localVarTransferCache = true;
|
|
856
|
-
}
|
|
922
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
923
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
857
924
|
let responseType_ = 'json';
|
|
858
925
|
if (localVarHttpHeaderAcceptSelected) {
|
|
859
926
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -867,14 +934,15 @@ class DefaultMira {
|
|
|
867
934
|
}
|
|
868
935
|
}
|
|
869
936
|
let localVarPath = `/public/item/main/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
870
|
-
|
|
937
|
+
const { basePath, withCredentials } = this.configuration;
|
|
938
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
871
939
|
context: localVarHttpContext,
|
|
872
|
-
params: localVarQueryParameters,
|
|
940
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
873
941
|
responseType: responseType_,
|
|
874
|
-
withCredentials:
|
|
942
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
875
943
|
headers: localVarHeaders,
|
|
876
944
|
observe: observe,
|
|
877
|
-
transferCache: localVarTransferCache,
|
|
945
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
878
946
|
reportProgress: reportProgress
|
|
879
947
|
});
|
|
880
948
|
}
|
|
@@ -883,31 +951,16 @@ class DefaultMira {
|
|
|
883
951
|
throw new Error('Required parameter id was null or undefined when calling getRelationsOfCharacter.');
|
|
884
952
|
}
|
|
885
953
|
let localVarHeaders = this.defaultHeaders;
|
|
886
|
-
let localVarCredential;
|
|
887
954
|
// authentication (oAuth2) required
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
893
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
894
|
-
// to determine the Accept header
|
|
895
|
-
const httpHeaderAccepts = [
|
|
896
|
-
'application/json'
|
|
897
|
-
];
|
|
898
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
899
|
-
}
|
|
955
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
956
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
957
|
+
'application/json'
|
|
958
|
+
]);
|
|
900
959
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
901
960
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
902
961
|
}
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
localVarHttpContext = new HttpContext();
|
|
906
|
-
}
|
|
907
|
-
let localVarTransferCache = options && options.transferCache;
|
|
908
|
-
if (localVarTransferCache === undefined) {
|
|
909
|
-
localVarTransferCache = true;
|
|
910
|
-
}
|
|
962
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
963
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
911
964
|
let responseType_ = 'json';
|
|
912
965
|
if (localVarHttpHeaderAcceptSelected) {
|
|
913
966
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -921,13 +974,14 @@ class DefaultMira {
|
|
|
921
974
|
}
|
|
922
975
|
}
|
|
923
976
|
let localVarPath = `/public/relation/character/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
924
|
-
|
|
977
|
+
const { basePath, withCredentials } = this.configuration;
|
|
978
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
925
979
|
context: localVarHttpContext,
|
|
926
980
|
responseType: responseType_,
|
|
927
|
-
withCredentials:
|
|
981
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
928
982
|
headers: localVarHeaders,
|
|
929
983
|
observe: observe,
|
|
930
|
-
transferCache: localVarTransferCache,
|
|
984
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
931
985
|
reportProgress: reportProgress
|
|
932
986
|
});
|
|
933
987
|
}
|
|
@@ -936,31 +990,16 @@ class DefaultMira {
|
|
|
936
990
|
throw new Error('Required parameter id was null or undefined when calling getRelationsOfItem.');
|
|
937
991
|
}
|
|
938
992
|
let localVarHeaders = this.defaultHeaders;
|
|
939
|
-
let localVarCredential;
|
|
940
993
|
// authentication (oAuth2) required
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
946
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
947
|
-
// to determine the Accept header
|
|
948
|
-
const httpHeaderAccepts = [
|
|
949
|
-
'application/json'
|
|
950
|
-
];
|
|
951
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
952
|
-
}
|
|
994
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
995
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
996
|
+
'application/json'
|
|
997
|
+
]);
|
|
953
998
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
954
999
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
955
1000
|
}
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
localVarHttpContext = new HttpContext();
|
|
959
|
-
}
|
|
960
|
-
let localVarTransferCache = options && options.transferCache;
|
|
961
|
-
if (localVarTransferCache === undefined) {
|
|
962
|
-
localVarTransferCache = true;
|
|
963
|
-
}
|
|
1001
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1002
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
964
1003
|
let responseType_ = 'json';
|
|
965
1004
|
if (localVarHttpHeaderAcceptSelected) {
|
|
966
1005
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -974,13 +1013,14 @@ class DefaultMira {
|
|
|
974
1013
|
}
|
|
975
1014
|
}
|
|
976
1015
|
let localVarPath = `/public/relation/item/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
977
|
-
|
|
1016
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1017
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
978
1018
|
context: localVarHttpContext,
|
|
979
1019
|
responseType: responseType_,
|
|
980
|
-
withCredentials:
|
|
1020
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
981
1021
|
headers: localVarHeaders,
|
|
982
1022
|
observe: observe,
|
|
983
|
-
transferCache: localVarTransferCache,
|
|
1023
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
984
1024
|
reportProgress: reportProgress
|
|
985
1025
|
});
|
|
986
1026
|
}
|
|
@@ -989,31 +1029,16 @@ class DefaultMira {
|
|
|
989
1029
|
throw new Error('Required parameter id was null or undefined when calling getRelationsOfPerson.');
|
|
990
1030
|
}
|
|
991
1031
|
let localVarHeaders = this.defaultHeaders;
|
|
992
|
-
let localVarCredential;
|
|
993
1032
|
// authentication (oAuth2) required
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
999
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1000
|
-
// to determine the Accept header
|
|
1001
|
-
const httpHeaderAccepts = [
|
|
1002
|
-
'application/json'
|
|
1003
|
-
];
|
|
1004
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1005
|
-
}
|
|
1033
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1034
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1035
|
+
'application/json'
|
|
1036
|
+
]);
|
|
1006
1037
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1007
1038
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1008
1039
|
}
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
localVarHttpContext = new HttpContext();
|
|
1012
|
-
}
|
|
1013
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1014
|
-
if (localVarTransferCache === undefined) {
|
|
1015
|
-
localVarTransferCache = true;
|
|
1016
|
-
}
|
|
1040
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1041
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1017
1042
|
let responseType_ = 'json';
|
|
1018
1043
|
if (localVarHttpHeaderAcceptSelected) {
|
|
1019
1044
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -1027,13 +1052,14 @@ class DefaultMira {
|
|
|
1027
1052
|
}
|
|
1028
1053
|
}
|
|
1029
1054
|
let localVarPath = `/public/relation/person/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1030
|
-
|
|
1055
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1056
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1031
1057
|
context: localVarHttpContext,
|
|
1032
1058
|
responseType: responseType_,
|
|
1033
|
-
withCredentials:
|
|
1059
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1034
1060
|
headers: localVarHeaders,
|
|
1035
1061
|
observe: observe,
|
|
1036
|
-
transferCache: localVarTransferCache,
|
|
1062
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1037
1063
|
reportProgress: reportProgress
|
|
1038
1064
|
});
|
|
1039
1065
|
}
|
|
@@ -1042,31 +1068,16 @@ class DefaultMira {
|
|
|
1042
1068
|
throw new Error('Required parameter id was null or undefined when calling getSubItemById.');
|
|
1043
1069
|
}
|
|
1044
1070
|
let localVarHeaders = this.defaultHeaders;
|
|
1045
|
-
let localVarCredential;
|
|
1046
1071
|
// authentication (oAuth2) required
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1052
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1053
|
-
// to determine the Accept header
|
|
1054
|
-
const httpHeaderAccepts = [
|
|
1055
|
-
'application/json'
|
|
1056
|
-
];
|
|
1057
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1058
|
-
}
|
|
1072
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1073
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1074
|
+
'application/json'
|
|
1075
|
+
]);
|
|
1059
1076
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1060
1077
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1061
1078
|
}
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
localVarHttpContext = new HttpContext();
|
|
1065
|
-
}
|
|
1066
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1067
|
-
if (localVarTransferCache === undefined) {
|
|
1068
|
-
localVarTransferCache = true;
|
|
1069
|
-
}
|
|
1079
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1080
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1070
1081
|
let responseType_ = 'json';
|
|
1071
1082
|
if (localVarHttpHeaderAcceptSelected) {
|
|
1072
1083
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -1080,13 +1091,14 @@ class DefaultMira {
|
|
|
1080
1091
|
}
|
|
1081
1092
|
}
|
|
1082
1093
|
let localVarPath = `/public/item/main/subItem/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1083
|
-
|
|
1094
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1095
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1084
1096
|
context: localVarHttpContext,
|
|
1085
1097
|
responseType: responseType_,
|
|
1086
|
-
withCredentials:
|
|
1098
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1087
1099
|
headers: localVarHeaders,
|
|
1088
1100
|
observe: observe,
|
|
1089
|
-
transferCache: localVarTransferCache,
|
|
1101
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1090
1102
|
reportProgress: reportProgress
|
|
1091
1103
|
});
|
|
1092
1104
|
}
|
|
@@ -1094,48 +1106,23 @@ class DefaultMira {
|
|
|
1094
1106
|
if (status === null || status === undefined) {
|
|
1095
1107
|
throw new Error('Required parameter status was null or undefined when calling listFavorites.');
|
|
1096
1108
|
}
|
|
1097
|
-
let localVarQueryParameters = new
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}
|
|
1104
|
-
if (limit !== undefined && limit !== null) {
|
|
1105
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
1106
|
-
}
|
|
1107
|
-
if (orderBy !== undefined && orderBy !== null) {
|
|
1108
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, 'orderBy');
|
|
1109
|
-
}
|
|
1110
|
-
if (sort !== undefined && sort !== null) {
|
|
1111
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sort, 'sort');
|
|
1112
|
-
}
|
|
1109
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1110
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'status', status, QueryParamStyle.Form, true);
|
|
1111
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'offset', offset, QueryParamStyle.Form, true);
|
|
1112
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'limit', limit, QueryParamStyle.Form, true);
|
|
1113
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'orderBy', orderBy, QueryParamStyle.Form, true);
|
|
1114
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'sort', sort, QueryParamStyle.Form, true);
|
|
1113
1115
|
let localVarHeaders = this.defaultHeaders;
|
|
1114
|
-
let localVarCredential;
|
|
1115
1116
|
// authentication (oAuth2) required
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1121
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1122
|
-
// to determine the Accept header
|
|
1123
|
-
const httpHeaderAccepts = [
|
|
1124
|
-
'application/json'
|
|
1125
|
-
];
|
|
1126
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1127
|
-
}
|
|
1117
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1118
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1119
|
+
'application/json'
|
|
1120
|
+
]);
|
|
1128
1121
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1129
1122
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1130
1123
|
}
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
localVarHttpContext = new HttpContext();
|
|
1134
|
-
}
|
|
1135
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1136
|
-
if (localVarTransferCache === undefined) {
|
|
1137
|
-
localVarTransferCache = true;
|
|
1138
|
-
}
|
|
1124
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1125
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1139
1126
|
let responseType_ = 'json';
|
|
1140
1127
|
if (localVarHttpHeaderAcceptSelected) {
|
|
1141
1128
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -1149,72 +1136,40 @@ class DefaultMira {
|
|
|
1149
1136
|
}
|
|
1150
1137
|
}
|
|
1151
1138
|
let localVarPath = `/favorite`;
|
|
1152
|
-
|
|
1139
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1140
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1153
1141
|
context: localVarHttpContext,
|
|
1154
|
-
params: localVarQueryParameters,
|
|
1142
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1155
1143
|
responseType: responseType_,
|
|
1156
|
-
withCredentials:
|
|
1144
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1157
1145
|
headers: localVarHeaders,
|
|
1158
1146
|
observe: observe,
|
|
1159
|
-
transferCache: localVarTransferCache,
|
|
1147
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1160
1148
|
reportProgress: reportProgress
|
|
1161
1149
|
});
|
|
1162
1150
|
}
|
|
1163
1151
|
listMainItems(serviceClientId, mainType, type, subType, offset, limit, orderBy, sort, keyword, observe = 'body', reportProgress = false, options) {
|
|
1164
|
-
let localVarQueryParameters = new
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
if (subType !== undefined && subType !== null) {
|
|
1175
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, subType, 'subType');
|
|
1176
|
-
}
|
|
1177
|
-
if (offset !== undefined && offset !== null) {
|
|
1178
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, offset, 'offset');
|
|
1179
|
-
}
|
|
1180
|
-
if (limit !== undefined && limit !== null) {
|
|
1181
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
1182
|
-
}
|
|
1183
|
-
if (orderBy !== undefined && orderBy !== null) {
|
|
1184
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, 'orderBy');
|
|
1185
|
-
}
|
|
1186
|
-
if (sort !== undefined && sort !== null) {
|
|
1187
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sort, 'sort');
|
|
1188
|
-
}
|
|
1189
|
-
if (keyword !== undefined && keyword !== null) {
|
|
1190
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, keyword, 'keyword');
|
|
1191
|
-
}
|
|
1152
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1153
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'serviceClientId', serviceClientId, QueryParamStyle.Form, true);
|
|
1154
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'mainType', mainType, QueryParamStyle.Form, true);
|
|
1155
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'type', type, QueryParamStyle.Form, true);
|
|
1156
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'subType', subType, QueryParamStyle.Form, true);
|
|
1157
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'offset', offset, QueryParamStyle.Form, true);
|
|
1158
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'limit', limit, QueryParamStyle.Form, true);
|
|
1159
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'orderBy', orderBy, QueryParamStyle.Form, true);
|
|
1160
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'sort', sort, QueryParamStyle.Form, true);
|
|
1161
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'keyword', keyword, QueryParamStyle.Form, true);
|
|
1192
1162
|
let localVarHeaders = this.defaultHeaders;
|
|
1193
|
-
let localVarCredential;
|
|
1194
1163
|
// authentication (oAuth2) required
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1200
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1201
|
-
// to determine the Accept header
|
|
1202
|
-
const httpHeaderAccepts = [
|
|
1203
|
-
'application/json'
|
|
1204
|
-
];
|
|
1205
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1206
|
-
}
|
|
1164
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1165
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1166
|
+
'application/json'
|
|
1167
|
+
]);
|
|
1207
1168
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1208
1169
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1209
1170
|
}
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
localVarHttpContext = new HttpContext();
|
|
1213
|
-
}
|
|
1214
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1215
|
-
if (localVarTransferCache === undefined) {
|
|
1216
|
-
localVarTransferCache = true;
|
|
1217
|
-
}
|
|
1171
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1172
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1218
1173
|
let responseType_ = 'json';
|
|
1219
1174
|
if (localVarHttpHeaderAcceptSelected) {
|
|
1220
1175
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -1228,63 +1183,37 @@ class DefaultMira {
|
|
|
1228
1183
|
}
|
|
1229
1184
|
}
|
|
1230
1185
|
let localVarPath = `/public/item/main`;
|
|
1231
|
-
|
|
1186
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1187
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1232
1188
|
context: localVarHttpContext,
|
|
1233
|
-
params: localVarQueryParameters,
|
|
1189
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1234
1190
|
responseType: responseType_,
|
|
1235
|
-
withCredentials:
|
|
1191
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1236
1192
|
headers: localVarHeaders,
|
|
1237
1193
|
observe: observe,
|
|
1238
|
-
transferCache: localVarTransferCache,
|
|
1194
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1239
1195
|
reportProgress: reportProgress
|
|
1240
1196
|
});
|
|
1241
1197
|
}
|
|
1242
1198
|
listSubItemFavorites(itemId, offset, limit, orderBy, sort, subItem, observe = 'body', reportProgress = false, options) {
|
|
1243
|
-
let localVarQueryParameters = new
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
if (limit !== undefined && limit !== null) {
|
|
1251
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
1252
|
-
}
|
|
1253
|
-
if (orderBy !== undefined && orderBy !== null) {
|
|
1254
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, 'orderBy');
|
|
1255
|
-
}
|
|
1256
|
-
if (sort !== undefined && sort !== null) {
|
|
1257
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sort, 'sort');
|
|
1258
|
-
}
|
|
1259
|
-
if (subItem !== undefined && subItem !== null) {
|
|
1260
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, subItem, 'subItem');
|
|
1261
|
-
}
|
|
1199
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1200
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'itemId', itemId, QueryParamStyle.Form, true);
|
|
1201
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'offset', offset, QueryParamStyle.Form, true);
|
|
1202
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'limit', limit, QueryParamStyle.Form, true);
|
|
1203
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'orderBy', orderBy, QueryParamStyle.Form, true);
|
|
1204
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'sort', sort, QueryParamStyle.Form, true);
|
|
1205
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'subItem', subItem, QueryParamStyle.Form, true);
|
|
1262
1206
|
let localVarHeaders = this.defaultHeaders;
|
|
1263
|
-
let localVarCredential;
|
|
1264
1207
|
// authentication (oAuth2) required
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1270
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1271
|
-
// to determine the Accept header
|
|
1272
|
-
const httpHeaderAccepts = [
|
|
1273
|
-
'application/json'
|
|
1274
|
-
];
|
|
1275
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1276
|
-
}
|
|
1208
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1209
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1210
|
+
'application/json'
|
|
1211
|
+
]);
|
|
1277
1212
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1278
1213
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1279
1214
|
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
localVarHttpContext = new HttpContext();
|
|
1283
|
-
}
|
|
1284
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1285
|
-
if (localVarTransferCache === undefined) {
|
|
1286
|
-
localVarTransferCache = true;
|
|
1287
|
-
}
|
|
1215
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1216
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1288
1217
|
let responseType_ = 'json';
|
|
1289
1218
|
if (localVarHttpHeaderAcceptSelected) {
|
|
1290
1219
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -1298,14 +1227,15 @@ class DefaultMira {
|
|
|
1298
1227
|
}
|
|
1299
1228
|
}
|
|
1300
1229
|
let localVarPath = `/favorite/sub`;
|
|
1301
|
-
|
|
1230
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1231
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1302
1232
|
context: localVarHttpContext,
|
|
1303
|
-
params: localVarQueryParameters,
|
|
1233
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1304
1234
|
responseType: responseType_,
|
|
1305
|
-
withCredentials:
|
|
1235
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1306
1236
|
headers: localVarHeaders,
|
|
1307
1237
|
observe: observe,
|
|
1308
|
-
transferCache: localVarTransferCache,
|
|
1238
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1309
1239
|
reportProgress: reportProgress
|
|
1310
1240
|
});
|
|
1311
1241
|
}
|
|
@@ -1313,36 +1243,19 @@ class DefaultMira {
|
|
|
1313
1243
|
if (type === null || type === undefined) {
|
|
1314
1244
|
throw new Error('Required parameter type was null or undefined when calling onAirItem.');
|
|
1315
1245
|
}
|
|
1316
|
-
let localVarQueryParameters = new
|
|
1317
|
-
|
|
1318
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, type, 'type');
|
|
1319
|
-
}
|
|
1246
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1247
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'type', type, QueryParamStyle.Form, true);
|
|
1320
1248
|
let localVarHeaders = this.defaultHeaders;
|
|
1321
|
-
let localVarCredential;
|
|
1322
1249
|
// authentication (oAuth2) required
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1328
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1329
|
-
// to determine the Accept header
|
|
1330
|
-
const httpHeaderAccepts = [
|
|
1331
|
-
'application/json'
|
|
1332
|
-
];
|
|
1333
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1334
|
-
}
|
|
1250
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1251
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1252
|
+
'application/json'
|
|
1253
|
+
]);
|
|
1335
1254
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1336
1255
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1337
1256
|
}
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
localVarHttpContext = new HttpContext();
|
|
1341
|
-
}
|
|
1342
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1343
|
-
if (localVarTransferCache === undefined) {
|
|
1344
|
-
localVarTransferCache = true;
|
|
1345
|
-
}
|
|
1257
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1258
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1346
1259
|
let responseType_ = 'json';
|
|
1347
1260
|
if (localVarHttpHeaderAcceptSelected) {
|
|
1348
1261
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -1356,14 +1269,15 @@ class DefaultMira {
|
|
|
1356
1269
|
}
|
|
1357
1270
|
}
|
|
1358
1271
|
let localVarPath = `/public/item/on-air`;
|
|
1359
|
-
|
|
1272
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1273
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1360
1274
|
context: localVarHttpContext,
|
|
1361
|
-
params: localVarQueryParameters,
|
|
1275
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1362
1276
|
responseType: responseType_,
|
|
1363
|
-
withCredentials:
|
|
1277
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1364
1278
|
headers: localVarHeaders,
|
|
1365
1279
|
observe: observe,
|
|
1366
|
-
transferCache: localVarTransferCache,
|
|
1280
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1367
1281
|
reportProgress: reportProgress
|
|
1368
1282
|
});
|
|
1369
1283
|
}
|
|
@@ -1375,31 +1289,16 @@ class DefaultMira {
|
|
|
1375
1289
|
throw new Error('Required parameter PatchFavoriteBody was null or undefined when calling patchFavorite.');
|
|
1376
1290
|
}
|
|
1377
1291
|
let localVarHeaders = this.defaultHeaders;
|
|
1378
|
-
let localVarCredential;
|
|
1379
1292
|
// authentication (oAuth2) required
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1385
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1386
|
-
// to determine the Accept header
|
|
1387
|
-
const httpHeaderAccepts = [
|
|
1388
|
-
'application/json'
|
|
1389
|
-
];
|
|
1390
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1391
|
-
}
|
|
1293
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1294
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1295
|
+
'application/json'
|
|
1296
|
+
]);
|
|
1392
1297
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1393
1298
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1394
1299
|
}
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
localVarHttpContext = new HttpContext();
|
|
1398
|
-
}
|
|
1399
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1400
|
-
if (localVarTransferCache === undefined) {
|
|
1401
|
-
localVarTransferCache = true;
|
|
1402
|
-
}
|
|
1300
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1301
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1403
1302
|
// to determine the Content-Type header
|
|
1404
1303
|
const consumes = [
|
|
1405
1304
|
'application/json'
|
|
@@ -1421,14 +1320,15 @@ class DefaultMira {
|
|
|
1421
1320
|
}
|
|
1422
1321
|
}
|
|
1423
1322
|
let localVarPath = `/favorite/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1424
|
-
|
|
1323
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1324
|
+
return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
|
|
1425
1325
|
context: localVarHttpContext,
|
|
1426
1326
|
body: PatchFavoriteBody,
|
|
1427
1327
|
responseType: responseType_,
|
|
1428
|
-
withCredentials:
|
|
1328
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1429
1329
|
headers: localVarHeaders,
|
|
1430
1330
|
observe: observe,
|
|
1431
|
-
transferCache: localVarTransferCache,
|
|
1331
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1432
1332
|
reportProgress: reportProgress
|
|
1433
1333
|
});
|
|
1434
1334
|
}
|
|
@@ -1436,36 +1336,19 @@ class DefaultMira {
|
|
|
1436
1336
|
if (prefix === null || prefix === undefined) {
|
|
1437
1337
|
throw new Error('Required parameter prefix was null or undefined when calling predictMainItemName.');
|
|
1438
1338
|
}
|
|
1439
|
-
let localVarQueryParameters = new
|
|
1440
|
-
|
|
1441
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, prefix, 'prefix');
|
|
1442
|
-
}
|
|
1339
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1340
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'prefix', prefix, QueryParamStyle.Form, true);
|
|
1443
1341
|
let localVarHeaders = this.defaultHeaders;
|
|
1444
|
-
let localVarCredential;
|
|
1445
1342
|
// authentication (oAuth2) required
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1451
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1452
|
-
// to determine the Accept header
|
|
1453
|
-
const httpHeaderAccepts = [
|
|
1454
|
-
'application/json'
|
|
1455
|
-
];
|
|
1456
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1457
|
-
}
|
|
1343
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1344
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1345
|
+
'application/json'
|
|
1346
|
+
]);
|
|
1458
1347
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1459
1348
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1460
1349
|
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
localVarHttpContext = new HttpContext();
|
|
1464
|
-
}
|
|
1465
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1466
|
-
if (localVarTransferCache === undefined) {
|
|
1467
|
-
localVarTransferCache = true;
|
|
1468
|
-
}
|
|
1350
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1351
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1469
1352
|
let responseType_ = 'json';
|
|
1470
1353
|
if (localVarHttpHeaderAcceptSelected) {
|
|
1471
1354
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -1479,14 +1362,15 @@ class DefaultMira {
|
|
|
1479
1362
|
}
|
|
1480
1363
|
}
|
|
1481
1364
|
let localVarPath = `/public/item/predict`;
|
|
1482
|
-
|
|
1365
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1366
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1483
1367
|
context: localVarHttpContext,
|
|
1484
|
-
params: localVarQueryParameters,
|
|
1368
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1485
1369
|
responseType: responseType_,
|
|
1486
|
-
withCredentials:
|
|
1370
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1487
1371
|
headers: localVarHeaders,
|
|
1488
1372
|
observe: observe,
|
|
1489
|
-
transferCache: localVarTransferCache,
|
|
1373
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1490
1374
|
reportProgress: reportProgress
|
|
1491
1375
|
});
|
|
1492
1376
|
}
|
|
@@ -1495,31 +1379,16 @@ class DefaultMira {
|
|
|
1495
1379
|
throw new Error('Required parameter SyncFavoritesRequestBody was null or undefined when calling syncFavorites.');
|
|
1496
1380
|
}
|
|
1497
1381
|
let localVarHeaders = this.defaultHeaders;
|
|
1498
|
-
let localVarCredential;
|
|
1499
1382
|
// authentication (oAuth2) required
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1505
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1506
|
-
// to determine the Accept header
|
|
1507
|
-
const httpHeaderAccepts = [
|
|
1508
|
-
'application/json'
|
|
1509
|
-
];
|
|
1510
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1511
|
-
}
|
|
1383
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1384
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1385
|
+
'application/json'
|
|
1386
|
+
]);
|
|
1512
1387
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1513
1388
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1514
1389
|
}
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
localVarHttpContext = new HttpContext();
|
|
1518
|
-
}
|
|
1519
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1520
|
-
if (localVarTransferCache === undefined) {
|
|
1521
|
-
localVarTransferCache = true;
|
|
1522
|
-
}
|
|
1390
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1391
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1523
1392
|
// to determine the Content-Type header
|
|
1524
1393
|
const consumes = [
|
|
1525
1394
|
'application/json'
|
|
@@ -1541,14 +1410,15 @@ class DefaultMira {
|
|
|
1541
1410
|
}
|
|
1542
1411
|
}
|
|
1543
1412
|
let localVarPath = `/favorite/sync`;
|
|
1544
|
-
|
|
1413
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1414
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
1545
1415
|
context: localVarHttpContext,
|
|
1546
1416
|
body: SyncFavoritesRequestBody,
|
|
1547
1417
|
responseType: responseType_,
|
|
1548
|
-
withCredentials:
|
|
1418
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1549
1419
|
headers: localVarHeaders,
|
|
1550
1420
|
observe: observe,
|
|
1551
|
-
transferCache: localVarTransferCache,
|
|
1421
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1552
1422
|
reportProgress: reportProgress
|
|
1553
1423
|
});
|
|
1554
1424
|
}
|
|
@@ -1562,42 +1432,21 @@ class DefaultMira {
|
|
|
1562
1432
|
if (epType === null || epType === undefined) {
|
|
1563
1433
|
throw new Error('Required parameter epType was null or undefined when calling updateFavoriteProgress.');
|
|
1564
1434
|
}
|
|
1565
|
-
let localVarQueryParameters = new
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
if (progress !== undefined && progress !== null) {
|
|
1570
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, progress, 'progress');
|
|
1571
|
-
}
|
|
1572
|
-
if (epType !== undefined && epType !== null) {
|
|
1573
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, epType, 'epType');
|
|
1574
|
-
}
|
|
1435
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1436
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'mainItemId', mainItemId, QueryParamStyle.Form, true);
|
|
1437
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'progress', progress, QueryParamStyle.Form, true);
|
|
1438
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'epType', epType, QueryParamStyle.Form, true);
|
|
1575
1439
|
let localVarHeaders = this.defaultHeaders;
|
|
1576
|
-
let localVarCredential;
|
|
1577
1440
|
// authentication (oAuth2) required
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1583
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1584
|
-
// to determine the Accept header
|
|
1585
|
-
const httpHeaderAccepts = [
|
|
1586
|
-
'application/json'
|
|
1587
|
-
];
|
|
1588
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1589
|
-
}
|
|
1441
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('oAuth2', 'Authorization', localVarHeaders, 'Bearer ');
|
|
1442
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1443
|
+
'application/json'
|
|
1444
|
+
]);
|
|
1590
1445
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1591
1446
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1592
1447
|
}
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
localVarHttpContext = new HttpContext();
|
|
1596
|
-
}
|
|
1597
|
-
let localVarTransferCache = options && options.transferCache;
|
|
1598
|
-
if (localVarTransferCache === undefined) {
|
|
1599
|
-
localVarTransferCache = true;
|
|
1600
|
-
}
|
|
1448
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1449
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1601
1450
|
let responseType_ = 'json';
|
|
1602
1451
|
if (localVarHttpHeaderAcceptSelected) {
|
|
1603
1452
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -1611,21 +1460,22 @@ class DefaultMira {
|
|
|
1611
1460
|
}
|
|
1612
1461
|
}
|
|
1613
1462
|
let localVarPath = `/favorite/progress`;
|
|
1614
|
-
|
|
1463
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1464
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
1615
1465
|
context: localVarHttpContext,
|
|
1616
|
-
params: localVarQueryParameters,
|
|
1466
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1617
1467
|
responseType: responseType_,
|
|
1618
|
-
withCredentials:
|
|
1468
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1619
1469
|
headers: localVarHeaders,
|
|
1620
1470
|
observe: observe,
|
|
1621
|
-
transferCache: localVarTransferCache,
|
|
1471
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1622
1472
|
reportProgress: reportProgress
|
|
1623
1473
|
});
|
|
1624
1474
|
}
|
|
1625
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1626
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1475
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DefaultMira, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: MiraConfiguration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1476
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DefaultMira, providedIn: 'root' });
|
|
1627
1477
|
}
|
|
1628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DefaultMira, decorators: [{
|
|
1629
1479
|
type: Injectable,
|
|
1630
1480
|
args: [{
|
|
1631
1481
|
providedIn: 'root'
|
|
@@ -1643,7 +1493,6 @@ const APIS = [DefaultMira];
|
|
|
1643
1493
|
|
|
1644
1494
|
/**
|
|
1645
1495
|
* mira API
|
|
1646
|
-
* API for Project-Mira
|
|
1647
1496
|
*
|
|
1648
1497
|
*
|
|
1649
1498
|
*
|
|
@@ -1654,7 +1503,6 @@ const APIS = [DefaultMira];
|
|
|
1654
1503
|
|
|
1655
1504
|
/**
|
|
1656
1505
|
* mira API
|
|
1657
|
-
* API for Project-Mira
|
|
1658
1506
|
*
|
|
1659
1507
|
*
|
|
1660
1508
|
*
|
|
@@ -1665,7 +1513,6 @@ const APIS = [DefaultMira];
|
|
|
1665
1513
|
|
|
1666
1514
|
/**
|
|
1667
1515
|
* mira API
|
|
1668
|
-
* API for Project-Mira
|
|
1669
1516
|
*
|
|
1670
1517
|
*
|
|
1671
1518
|
*
|
|
@@ -1676,7 +1523,6 @@ const APIS = [DefaultMira];
|
|
|
1676
1523
|
|
|
1677
1524
|
/**
|
|
1678
1525
|
* mira API
|
|
1679
|
-
* API for Project-Mira
|
|
1680
1526
|
*
|
|
1681
1527
|
*
|
|
1682
1528
|
*
|
|
@@ -1687,7 +1533,6 @@ const APIS = [DefaultMira];
|
|
|
1687
1533
|
|
|
1688
1534
|
/**
|
|
1689
1535
|
* mira API
|
|
1690
|
-
* API for Project-Mira
|
|
1691
1536
|
*
|
|
1692
1537
|
*
|
|
1693
1538
|
*
|
|
@@ -1705,7 +1550,6 @@ const FavoriteStatus = {
|
|
|
1705
1550
|
|
|
1706
1551
|
/**
|
|
1707
1552
|
* mira API
|
|
1708
|
-
* API for Project-Mira
|
|
1709
1553
|
*
|
|
1710
1554
|
*
|
|
1711
1555
|
*
|
|
@@ -1716,7 +1560,6 @@ const FavoriteStatus = {
|
|
|
1716
1560
|
|
|
1717
1561
|
/**
|
|
1718
1562
|
* mira API
|
|
1719
|
-
* API for Project-Mira
|
|
1720
1563
|
*
|
|
1721
1564
|
*
|
|
1722
1565
|
*
|
|
@@ -1727,7 +1570,6 @@ const FavoriteStatus = {
|
|
|
1727
1570
|
|
|
1728
1571
|
/**
|
|
1729
1572
|
* mira API
|
|
1730
|
-
* API for Project-Mira
|
|
1731
1573
|
*
|
|
1732
1574
|
*
|
|
1733
1575
|
*
|
|
@@ -1738,7 +1580,6 @@ const FavoriteStatus = {
|
|
|
1738
1580
|
|
|
1739
1581
|
/**
|
|
1740
1582
|
* mira API
|
|
1741
|
-
* API for Project-Mira
|
|
1742
1583
|
*
|
|
1743
1584
|
*
|
|
1744
1585
|
*
|
|
@@ -1749,7 +1590,6 @@ const FavoriteStatus = {
|
|
|
1749
1590
|
|
|
1750
1591
|
/**
|
|
1751
1592
|
* mira API
|
|
1752
|
-
* API for Project-Mira
|
|
1753
1593
|
*
|
|
1754
1594
|
*
|
|
1755
1595
|
*
|
|
@@ -1760,7 +1600,6 @@ const FavoriteStatus = {
|
|
|
1760
1600
|
|
|
1761
1601
|
/**
|
|
1762
1602
|
* mira API
|
|
1763
|
-
* API for Project-Mira
|
|
1764
1603
|
*
|
|
1765
1604
|
*
|
|
1766
1605
|
*
|
|
@@ -1816,7 +1655,6 @@ const ItemSubType = {
|
|
|
1816
1655
|
|
|
1817
1656
|
/**
|
|
1818
1657
|
* mira API
|
|
1819
|
-
* API for Project-Mira
|
|
1820
1658
|
*
|
|
1821
1659
|
*
|
|
1822
1660
|
*
|
|
@@ -1841,7 +1679,6 @@ const ItemType = {
|
|
|
1841
1679
|
|
|
1842
1680
|
/**
|
|
1843
1681
|
* mira API
|
|
1844
|
-
* API for Project-Mira
|
|
1845
1682
|
*
|
|
1846
1683
|
*
|
|
1847
1684
|
*
|
|
@@ -1857,7 +1694,6 @@ const MainType = {
|
|
|
1857
1694
|
|
|
1858
1695
|
/**
|
|
1859
1696
|
* mira API
|
|
1860
|
-
* API for Project-Mira
|
|
1861
1697
|
*
|
|
1862
1698
|
*
|
|
1863
1699
|
*
|
|
@@ -1875,7 +1711,6 @@ const PropertyType = {
|
|
|
1875
1711
|
|
|
1876
1712
|
/**
|
|
1877
1713
|
* mira API
|
|
1878
|
-
* API for Project-Mira
|
|
1879
1714
|
*
|
|
1880
1715
|
*
|
|
1881
1716
|
*
|
|
@@ -1898,7 +1733,6 @@ var SubItem;
|
|
|
1898
1733
|
|
|
1899
1734
|
/**
|
|
1900
1735
|
* mira API
|
|
1901
|
-
* API for Project-Mira
|
|
1902
1736
|
*
|
|
1903
1737
|
*
|
|
1904
1738
|
*
|
|
@@ -1909,7 +1743,6 @@ var SubItem;
|
|
|
1909
1743
|
|
|
1910
1744
|
/**
|
|
1911
1745
|
* mira API
|
|
1912
|
-
* API for Project-Mira
|
|
1913
1746
|
*
|
|
1914
1747
|
*
|
|
1915
1748
|
*
|
|
@@ -1934,11 +1767,11 @@ class MiraApiModule {
|
|
|
1934
1767
|
'See also https://github.com/angular/angular/issues/20575');
|
|
1935
1768
|
}
|
|
1936
1769
|
}
|
|
1937
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1938
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1939
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1770
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: MiraApiModule, deps: [{ token: MiraApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1771
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: MiraApiModule });
|
|
1772
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: MiraApiModule });
|
|
1940
1773
|
}
|
|
1941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: MiraApiModule, decorators: [{
|
|
1942
1775
|
type: NgModule,
|
|
1943
1776
|
args: [{
|
|
1944
1777
|
imports: [],
|
|
@@ -1954,9 +1787,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImpor
|
|
|
1954
1787
|
type: Optional
|
|
1955
1788
|
}] }] });
|
|
1956
1789
|
|
|
1790
|
+
// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
|
|
1791
|
+
function provideApi(configOrBasePath) {
|
|
1792
|
+
return makeEnvironmentProviders([
|
|
1793
|
+
typeof configOrBasePath === "string"
|
|
1794
|
+
? { provide: BASE_PATH, useValue: configOrBasePath }
|
|
1795
|
+
: {
|
|
1796
|
+
provide: MiraConfiguration,
|
|
1797
|
+
useValue: new MiraConfiguration({ ...configOrBasePath }),
|
|
1798
|
+
},
|
|
1799
|
+
]);
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1957
1802
|
/**
|
|
1958
1803
|
* Generated bundle index. Do not edit.
|
|
1959
1804
|
*/
|
|
1960
1805
|
|
|
1961
|
-
export { APIS, BASE_PATH, COLLECTION_FORMATS, DefaultMira, FavoriteStatus, ItemSubType, ItemType, MainType, MiraApiModule, MiraConfiguration, PropertyType, SubItem };
|
|
1806
|
+
export { APIS, BASE_PATH, COLLECTION_FORMATS, DefaultMira, FavoriteStatus, ItemSubType, ItemType, MainType, MiraApiModule, MiraConfiguration, PropertyType, SubItem, provideApi };
|
|
1962
1807
|
//# sourceMappingURL=irohalab-mira-sdk-angular.mjs.map
|