@irohalab/mira-sdk-angular 1.13.1 → 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 -742
- 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 +1 -9
- 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 -8
- 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,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* mira API
|
|
3
|
-
* API for Project-Mira
|
|
4
3
|
*
|
|
5
4
|
*
|
|
6
5
|
*
|
|
@@ -18,6 +17,7 @@ import { CreateSubItemFavoriteRequestBody } from '../model/models';
|
|
|
18
17
|
import { DeleteClientMappingByMainItemResponse } from '../model/models';
|
|
19
18
|
import { Favorite } from '../model/models';
|
|
20
19
|
import { FavoriteProgress } from '../model/models';
|
|
20
|
+
import { GetFavoriteResponse } from '../model/models';
|
|
21
21
|
import { GetOnAirItemListResponse } from '../model/models';
|
|
22
22
|
import { IdListRequestBody } from '../model/models';
|
|
23
23
|
import { ItemRelationsWithMainItems } from '../model/models';
|
|
@@ -39,60 +39,77 @@ export interface DefaultMiraInterface {
|
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* Add ClientMapping
|
|
42
|
+
* @endpoint post /client-mapping
|
|
42
43
|
* @param request_body
|
|
43
44
|
*/
|
|
44
45
|
addClientMapping(request_body: Array<string>, extraHttpRequestParams?: any): Observable<ClientMapping>;
|
|
45
46
|
/**
|
|
46
47
|
*
|
|
47
48
|
* get mainItems by id list
|
|
49
|
+
* @endpoint post /client-mapping/batch/main
|
|
48
50
|
* @param IdListRequestBody
|
|
49
51
|
*/
|
|
50
52
|
batchGetMainItemByIdList(IdListRequestBody: IdListRequestBody, extraHttpRequestParams?: any): Observable<BatchGetMainItemByIdListResult>;
|
|
51
53
|
/**
|
|
52
54
|
*
|
|
53
55
|
* get SubItems by id list
|
|
56
|
+
* @endpoint post /client-mapping/batch/subItem
|
|
54
57
|
* @param IdListRequestBody
|
|
55
58
|
*/
|
|
56
59
|
batchGetSubItemsByIdList(IdListRequestBody: IdListRequestBody, extraHttpRequestParams?: any): Observable<BatchGetSubItemByIdListResult>;
|
|
57
60
|
/**
|
|
58
61
|
*
|
|
59
62
|
* create a favorite for user and item
|
|
63
|
+
* @endpoint post /favorite
|
|
60
64
|
* @param Favorite
|
|
61
65
|
*/
|
|
62
66
|
createFavorite(Favorite: Favorite, extraHttpRequestParams?: any): Observable<Favorite>;
|
|
63
67
|
/**
|
|
64
68
|
*
|
|
65
69
|
* create a SubItemFavorite
|
|
70
|
+
* @endpoint post /favorite/sub
|
|
66
71
|
* @param CreateSubItemFavoriteRequestBody
|
|
67
72
|
*/
|
|
68
73
|
createSubItemFavorite(CreateSubItemFavoriteRequestBody: CreateSubItemFavoriteRequestBody, extraHttpRequestParams?: any): Observable<SubItemFavorite>;
|
|
69
74
|
/**
|
|
70
75
|
*
|
|
71
76
|
* Delete ClientMapping by MainItem id
|
|
77
|
+
* @endpoint delete /client-mapping/main/{id}
|
|
72
78
|
* @param id
|
|
73
79
|
*/
|
|
74
80
|
deleteClientMappingByMainItemId(id: string, extraHttpRequestParams?: any): Observable<DeleteClientMappingByMainItemResponse>;
|
|
75
81
|
/**
|
|
76
82
|
*
|
|
77
83
|
* Delete a favorite
|
|
84
|
+
* @endpoint delete /favorite/{id}
|
|
78
85
|
* @param id
|
|
79
86
|
*/
|
|
80
87
|
deleteFavorite(id: string, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
|
|
81
88
|
/**
|
|
82
89
|
*
|
|
83
90
|
* Delete a SubItemFavorite
|
|
91
|
+
* @endpoint delete /favorite/sub/{id}
|
|
84
92
|
* @param id
|
|
85
93
|
*/
|
|
86
94
|
deleteSubItemFavorite(id: string, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* Get a favorite by id
|
|
98
|
+
* @endpoint get /favorite/{id}
|
|
99
|
+
* @param id
|
|
100
|
+
*/
|
|
101
|
+
getFavoriteById(id: string, extraHttpRequestParams?: any): Observable<GetFavoriteResponse>;
|
|
87
102
|
/**
|
|
88
103
|
*
|
|
89
104
|
* get favorite by MainItem id
|
|
105
|
+
* @endpoint get /favorite/main/{id}
|
|
90
106
|
* @param id
|
|
91
107
|
*/
|
|
92
108
|
getFavoriteByMainItemId(id: string, extraHttpRequestParams?: any): Observable<Favorite>;
|
|
93
109
|
/**
|
|
94
110
|
*
|
|
95
111
|
* get favorite progress (number of SubItemFavorite from the beginning) of a episode type for mainItem
|
|
112
|
+
* @endpoint get /favorite/progress
|
|
96
113
|
* @param mainItemId
|
|
97
114
|
* @param epType
|
|
98
115
|
*/
|
|
@@ -100,6 +117,7 @@ export interface DefaultMiraInterface {
|
|
|
100
117
|
/**
|
|
101
118
|
*
|
|
102
119
|
* get a MainItem by id
|
|
120
|
+
* @endpoint get /public/item/main/{id}
|
|
103
121
|
* @param id MainItem id
|
|
104
122
|
* @param coverImage populate coverImage if true
|
|
105
123
|
* @param subItems populate subItems if true
|
|
@@ -108,30 +126,35 @@ export interface DefaultMiraInterface {
|
|
|
108
126
|
/**
|
|
109
127
|
*
|
|
110
128
|
* get all related (Item , Cast) MainItem of an Character Type MainItem.
|
|
129
|
+
* @endpoint get /public/relation/character/{id}
|
|
111
130
|
* @param id MainItem id
|
|
112
131
|
*/
|
|
113
132
|
getRelationsOfCharacter(id: string, extraHttpRequestParams?: any): Observable<CharacterRelationsWithMainItems>;
|
|
114
133
|
/**
|
|
115
134
|
*
|
|
116
135
|
* get all related (Item, Staff, Cast, Character) MainItem of an Item Type MainItem.
|
|
136
|
+
* @endpoint get /public/relation/item/{id}
|
|
117
137
|
* @param id MainItem id
|
|
118
138
|
*/
|
|
119
139
|
getRelationsOfItem(id: string, extraHttpRequestParams?: any): Observable<ItemRelationsWithMainItems>;
|
|
120
140
|
/**
|
|
121
141
|
*
|
|
122
142
|
* get all related (Item , Character) MainItem of an Person Type MainItem.
|
|
143
|
+
* @endpoint get /public/relation/person/{id}
|
|
123
144
|
* @param id MainItem id
|
|
124
145
|
*/
|
|
125
146
|
getRelationsOfPerson(id: string, extraHttpRequestParams?: any): Observable<PersonRelationsWithMainItems>;
|
|
126
147
|
/**
|
|
127
148
|
*
|
|
128
149
|
* get a SubItem by id
|
|
150
|
+
* @endpoint get /public/item/main/subItem/{id}
|
|
129
151
|
* @param id SubItem Id
|
|
130
152
|
*/
|
|
131
153
|
getSubItemById(id: string, extraHttpRequestParams?: any): Observable<SubItem>;
|
|
132
154
|
/**
|
|
133
155
|
*
|
|
134
156
|
* list favorites for user
|
|
157
|
+
* @endpoint get /favorite
|
|
135
158
|
* @param status
|
|
136
159
|
* @param offset
|
|
137
160
|
* @param limit
|
|
@@ -142,6 +165,7 @@ export interface DefaultMiraInterface {
|
|
|
142
165
|
/**
|
|
143
166
|
*
|
|
144
167
|
* list MainItems
|
|
168
|
+
* @endpoint get /public/item/main
|
|
145
169
|
* @param serviceClientId
|
|
146
170
|
* @param mainType
|
|
147
171
|
* @param type
|
|
@@ -156,6 +180,7 @@ export interface DefaultMiraInterface {
|
|
|
156
180
|
/**
|
|
157
181
|
*
|
|
158
182
|
* list SubItemFavorite
|
|
183
|
+
* @endpoint get /favorite/sub
|
|
159
184
|
* @param itemId itemId of the SubItem, if provided then other parameters are ignored
|
|
160
185
|
* @param offset
|
|
161
186
|
* @param limit
|
|
@@ -167,12 +192,14 @@ export interface DefaultMiraInterface {
|
|
|
167
192
|
/**
|
|
168
193
|
*
|
|
169
194
|
* get a list of on air MainItems with cover image
|
|
195
|
+
* @endpoint get /public/item/on-air
|
|
170
196
|
* @param type type of MainItem, must be either anime or real
|
|
171
197
|
*/
|
|
172
198
|
onAirItem(type: string, extraHttpRequestParams?: any): Observable<GetOnAirItemListResponse>;
|
|
173
199
|
/**
|
|
174
200
|
*
|
|
175
201
|
* change status of a favorite
|
|
202
|
+
* @endpoint patch /favorite/{id}
|
|
176
203
|
* @param id
|
|
177
204
|
* @param PatchFavoriteBody
|
|
178
205
|
*/
|
|
@@ -180,18 +207,21 @@ export interface DefaultMiraInterface {
|
|
|
180
207
|
/**
|
|
181
208
|
*
|
|
182
209
|
* predict Main Item names base on provided prefix
|
|
210
|
+
* @endpoint get /public/item/predict
|
|
183
211
|
* @param prefix start part of the name
|
|
184
212
|
*/
|
|
185
213
|
predictMainItemName(prefix: string, extraHttpRequestParams?: any): Observable<Array<string>>;
|
|
186
214
|
/**
|
|
187
215
|
*
|
|
188
216
|
* Sync favorites from external source, merge with existing favorites
|
|
217
|
+
* @endpoint post /favorite/sync
|
|
189
218
|
* @param SyncFavoritesRequestBody
|
|
190
219
|
*/
|
|
191
220
|
syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, extraHttpRequestParams?: any): Observable<SyncFavoritesResponse>;
|
|
192
221
|
/**
|
|
193
222
|
*
|
|
194
223
|
* update progress of a favorite, will create/delete SubItemFavorite
|
|
224
|
+
* @endpoint post /favorite/progress
|
|
195
225
|
* @param mainItemId
|
|
196
226
|
* @param progress
|
|
197
227
|
* @param epType
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mira API
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
import { HttpHeaders, HttpParameterCodec } from '@angular/common/http';
|
|
11
|
+
import { MiraConfiguration } from './configuration';
|
|
12
|
+
import { OpenApiHttpParams, QueryParamStyle } from './query.params';
|
|
13
|
+
export declare class BaseService {
|
|
14
|
+
protected basePath: string;
|
|
15
|
+
defaultHeaders: HttpHeaders;
|
|
16
|
+
configuration: MiraConfiguration;
|
|
17
|
+
encoder: HttpParameterCodec;
|
|
18
|
+
constructor(basePath?: string | string[], configuration?: MiraConfiguration);
|
|
19
|
+
protected canConsumeForm(consumes: string[]): boolean;
|
|
20
|
+
protected addToHttpParams(httpParams: OpenApiHttpParams, key: string, value: any | null | undefined, paramStyle: QueryParamStyle, explode: boolean): OpenApiHttpParams;
|
|
21
|
+
}
|
package/configuration.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { HttpParameterCodec } from '@angular/common/http';
|
|
1
|
+
import { HttpHeaders, HttpParameterCodec } from '@angular/common/http';
|
|
2
2
|
import { Param } from './param';
|
|
3
|
+
import { OpenApiHttpParams } from './query.params';
|
|
3
4
|
export interface MiraConfigurationParameters {
|
|
4
5
|
/**
|
|
5
6
|
* @deprecated Since 5.0. Use credentials instead
|
|
@@ -71,7 +72,7 @@ export declare class MiraConfiguration {
|
|
|
71
72
|
credentials: {
|
|
72
73
|
[key: string]: string | (() => string | undefined);
|
|
73
74
|
};
|
|
74
|
-
constructor(
|
|
75
|
+
constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }?: MiraConfigurationParameters);
|
|
75
76
|
/**
|
|
76
77
|
* Select the correct content-type to use for a request.
|
|
77
78
|
* Uses {@link MiraConfiguration#isJsonMime} to determine the correct content-type.
|
|
@@ -100,5 +101,7 @@ export declare class MiraConfiguration {
|
|
|
100
101
|
*/
|
|
101
102
|
isJsonMime(mime: string): boolean;
|
|
102
103
|
lookupCredential(key: string): string | undefined;
|
|
104
|
+
addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders;
|
|
105
|
+
addCredentialToQuery(credentialKey: string, paramName: string, query: OpenApiHttpParams): OpenApiHttpParams;
|
|
103
106
|
private defaultEncodeParam;
|
|
104
107
|
}
|
package/encoder.d.ts
CHANGED
|
@@ -9,3 +9,9 @@ export declare class CustomHttpParameterCodec implements HttpParameterCodec {
|
|
|
9
9
|
decodeKey(k: string): string;
|
|
10
10
|
decodeValue(v: string): string;
|
|
11
11
|
}
|
|
12
|
+
export declare class IdentityHttpParameterCodec implements HttpParameterCodec {
|
|
13
|
+
encodeKey(k: string): string;
|
|
14
|
+
encodeValue(v: string): string;
|
|
15
|
+
decodeKey(k: string): string;
|
|
16
|
+
decodeValue(v: string): string;
|
|
17
|
+
}
|