@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.
Files changed (101) hide show
  1. package/README.md +82 -129
  2. package/api/default.service.d.ts +74 -9
  3. package/api/default.serviceInterface.d.ts +31 -1
  4. package/api.base.service.d.ts +21 -0
  5. package/configuration.d.ts +5 -2
  6. package/encoder.d.ts +6 -0
  7. package/fesm2022/irohalab-mira-sdk-angular.mjs +579 -742
  8. package/fesm2022/irohalab-mira-sdk-angular.mjs.map +1 -1
  9. package/index.d.ts +1 -0
  10. package/model/batchGetMainItemByIdListResult.d.ts +0 -1
  11. package/model/batchGetSubItemByIdListResult.d.ts +0 -1
  12. package/model/characterRelationsWithMainItems.d.ts +0 -1
  13. package/model/clientMapping.d.ts +0 -1
  14. package/model/createSubItemFavoriteRequestBody.d.ts +0 -1
  15. package/model/deleteClientMappingByMainItemResponse.d.ts +0 -1
  16. package/model/errorResponse.d.ts +0 -1
  17. package/model/favorite.d.ts +0 -1
  18. package/model/favoriteProgress.d.ts +0 -1
  19. package/model/favoriteStatus.d.ts +6 -7
  20. package/model/getFavoriteResponse.d.ts +13 -0
  21. package/model/getOnAirItemListResponse.d.ts +0 -1
  22. package/model/idListRequestBody.d.ts +0 -1
  23. package/model/imageInfo.d.ts +0 -1
  24. package/model/itemCastCharacterRelation.d.ts +0 -1
  25. package/model/itemEntity.d.ts +0 -1
  26. package/model/itemPersonRelation.d.ts +0 -1
  27. package/model/itemRelation.d.ts +0 -1
  28. package/model/itemRelationsWithMainItems.d.ts +0 -1
  29. package/model/itemSubType.d.ts +44 -45
  30. package/model/itemType.d.ts +13 -14
  31. package/model/listFavoritesResponse.d.ts +0 -1
  32. package/model/listMainItemResponse.d.ts +0 -1
  33. package/model/listSubItemFavoriteResponse.d.ts +0 -1
  34. package/model/mainItem.d.ts +0 -1
  35. package/model/mainItemBasic.d.ts +0 -1
  36. package/model/mainType.d.ts +4 -5
  37. package/model/models.d.ts +1 -0
  38. package/model/onAirItem.d.ts +0 -1
  39. package/model/patchFavoriteBody.d.ts +0 -1
  40. package/model/personRelationsWithMainItems.d.ts +0 -1
  41. package/model/propertyType.d.ts +6 -7
  42. package/model/propertyValue.d.ts +0 -1
  43. package/model/propertyValueValue.d.ts +0 -1
  44. package/model/subItem.d.ts +6 -7
  45. package/model/subItemFavorite.d.ts +0 -1
  46. package/model/succeedEmptyResponse.d.ts +0 -1
  47. package/model/syncFavoritesRequestBody.d.ts +1 -9
  48. package/model/syncFavoritesRequestBodyFavoritesInner.d.ts +0 -1
  49. package/model/syncFavoritesResponse.d.ts +0 -1
  50. package/package.json +3 -5
  51. package/provide-api.d.ts +3 -0
  52. package/query.params.d.ts +61 -0
  53. package/esm2022/api/api.mjs +0 -5
  54. package/esm2022/api/default.service.mjs +0 -1489
  55. package/esm2022/api/default.serviceInterface.mjs +0 -2
  56. package/esm2022/api.module.mjs +0 -40
  57. package/esm2022/configuration.mjs +0 -129
  58. package/esm2022/encoder.mjs +0 -19
  59. package/esm2022/index.mjs +0 -7
  60. package/esm2022/irohalab-mira-sdk-angular.mjs +0 -5
  61. package/esm2022/model/batchGetMainItemByIdListResult.mjs +0 -2
  62. package/esm2022/model/batchGetSubItemByIdListResult.mjs +0 -2
  63. package/esm2022/model/characterRelationsWithMainItems.mjs +0 -2
  64. package/esm2022/model/clientMapping.mjs +0 -2
  65. package/esm2022/model/createSubItemFavoriteRequestBody.mjs +0 -12
  66. package/esm2022/model/deleteClientMappingByMainItemResponse.mjs +0 -12
  67. package/esm2022/model/errorResponse.mjs +0 -12
  68. package/esm2022/model/favorite.mjs +0 -2
  69. package/esm2022/model/favoriteProgress.mjs +0 -12
  70. package/esm2022/model/favoriteStatus.mjs +0 -18
  71. package/esm2022/model/getOnAirItemListResponse.mjs +0 -2
  72. package/esm2022/model/idListRequestBody.mjs +0 -12
  73. package/esm2022/model/imageInfo.mjs +0 -12
  74. package/esm2022/model/itemCastCharacterRelation.mjs +0 -12
  75. package/esm2022/model/itemEntity.mjs +0 -2
  76. package/esm2022/model/itemPersonRelation.mjs +0 -12
  77. package/esm2022/model/itemRelation.mjs +0 -12
  78. package/esm2022/model/itemRelationsWithMainItems.mjs +0 -2
  79. package/esm2022/model/itemSubType.mjs +0 -56
  80. package/esm2022/model/itemType.mjs +0 -25
  81. package/esm2022/model/listFavoritesResponse.mjs +0 -2
  82. package/esm2022/model/listMainItemResponse.mjs +0 -2
  83. package/esm2022/model/listSubItemFavoriteResponse.mjs +0 -2
  84. package/esm2022/model/mainItem.mjs +0 -2
  85. package/esm2022/model/mainItemBasic.mjs +0 -2
  86. package/esm2022/model/mainType.mjs +0 -16
  87. package/esm2022/model/models.mjs +0 -39
  88. package/esm2022/model/onAirItem.mjs +0 -2
  89. package/esm2022/model/patchFavoriteBody.mjs +0 -2
  90. package/esm2022/model/personRelationsWithMainItems.mjs +0 -2
  91. package/esm2022/model/propertyType.mjs +0 -18
  92. package/esm2022/model/propertyValue.mjs +0 -2
  93. package/esm2022/model/propertyValueValue.mjs +0 -12
  94. package/esm2022/model/subItem.mjs +0 -12
  95. package/esm2022/model/subItemFavorite.mjs +0 -2
  96. package/esm2022/model/succeedEmptyResponse.mjs +0 -12
  97. package/esm2022/model/syncFavoritesRequestBody.mjs +0 -8
  98. package/esm2022/model/syncFavoritesRequestBodyFavoritesInner.mjs +0 -12
  99. package/esm2022/model/syncFavoritesResponse.mjs +0 -2
  100. package/esm2022/param.mjs +0 -2
  101. 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
+ }
@@ -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(configurationParameters?: MiraConfigurationParameters);
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
+ }