@irohalab/mira-sdk-angular 1.14.0 → 2.0.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/fesm2022/irohalab-mira-sdk-angular.mjs +579 -734
  3. package/fesm2022/irohalab-mira-sdk-angular.mjs.map +1 -1
  4. package/index.d.ts +1823 -6
  5. package/package.json +3 -5
  6. package/api/api.d.ts +0 -4
  7. package/api/default.service.d.ts +0 -545
  8. package/api/default.serviceInterface.d.ts +0 -200
  9. package/api.module.d.ts +0 -11
  10. package/configuration.d.ts +0 -104
  11. package/encoder.d.ts +0 -11
  12. package/esm2022/api/api.mjs +0 -5
  13. package/esm2022/api/default.service.mjs +0 -1489
  14. package/esm2022/api/default.serviceInterface.mjs +0 -2
  15. package/esm2022/api.module.mjs +0 -40
  16. package/esm2022/configuration.mjs +0 -129
  17. package/esm2022/encoder.mjs +0 -19
  18. package/esm2022/index.mjs +0 -7
  19. package/esm2022/irohalab-mira-sdk-angular.mjs +0 -5
  20. package/esm2022/model/batchGetMainItemByIdListResult.mjs +0 -2
  21. package/esm2022/model/batchGetSubItemByIdListResult.mjs +0 -2
  22. package/esm2022/model/characterRelationsWithMainItems.mjs +0 -2
  23. package/esm2022/model/clientMapping.mjs +0 -2
  24. package/esm2022/model/createSubItemFavoriteRequestBody.mjs +0 -12
  25. package/esm2022/model/deleteClientMappingByMainItemResponse.mjs +0 -12
  26. package/esm2022/model/errorResponse.mjs +0 -12
  27. package/esm2022/model/favorite.mjs +0 -2
  28. package/esm2022/model/favoriteProgress.mjs +0 -12
  29. package/esm2022/model/favoriteStatus.mjs +0 -18
  30. package/esm2022/model/getOnAirItemListResponse.mjs +0 -2
  31. package/esm2022/model/idListRequestBody.mjs +0 -12
  32. package/esm2022/model/imageInfo.mjs +0 -12
  33. package/esm2022/model/itemCastCharacterRelation.mjs +0 -12
  34. package/esm2022/model/itemEntity.mjs +0 -2
  35. package/esm2022/model/itemPersonRelation.mjs +0 -12
  36. package/esm2022/model/itemRelation.mjs +0 -12
  37. package/esm2022/model/itemRelationsWithMainItems.mjs +0 -2
  38. package/esm2022/model/itemSubType.mjs +0 -56
  39. package/esm2022/model/itemType.mjs +0 -25
  40. package/esm2022/model/listFavoritesResponse.mjs +0 -2
  41. package/esm2022/model/listMainItemResponse.mjs +0 -2
  42. package/esm2022/model/listSubItemFavoriteResponse.mjs +0 -2
  43. package/esm2022/model/mainItem.mjs +0 -2
  44. package/esm2022/model/mainItemBasic.mjs +0 -2
  45. package/esm2022/model/mainType.mjs +0 -16
  46. package/esm2022/model/models.mjs +0 -39
  47. package/esm2022/model/onAirItem.mjs +0 -2
  48. package/esm2022/model/patchFavoriteBody.mjs +0 -2
  49. package/esm2022/model/personRelationsWithMainItems.mjs +0 -2
  50. package/esm2022/model/propertyType.mjs +0 -18
  51. package/esm2022/model/propertyValue.mjs +0 -2
  52. package/esm2022/model/propertyValueValue.mjs +0 -12
  53. package/esm2022/model/subItem.mjs +0 -12
  54. package/esm2022/model/subItemFavorite.mjs +0 -2
  55. package/esm2022/model/succeedEmptyResponse.mjs +0 -12
  56. package/esm2022/model/syncFavoritesRequestBody.mjs +0 -2
  57. package/esm2022/model/syncFavoritesRequestBodyFavoritesInner.mjs +0 -12
  58. package/esm2022/model/syncFavoritesResponse.mjs +0 -2
  59. package/esm2022/param.mjs +0 -2
  60. package/esm2022/variables.mjs +0 -9
  61. package/model/batchGetMainItemByIdListResult.d.ts +0 -14
  62. package/model/batchGetSubItemByIdListResult.d.ts +0 -14
  63. package/model/characterRelationsWithMainItems.d.ts +0 -16
  64. package/model/clientMapping.d.ts +0 -16
  65. package/model/createSubItemFavoriteRequestBody.d.ts +0 -13
  66. package/model/deleteClientMappingByMainItemResponse.d.ts +0 -16
  67. package/model/errorResponse.d.ts +0 -14
  68. package/model/favorite.d.ts +0 -22
  69. package/model/favoriteProgress.d.ts +0 -13
  70. package/model/favoriteStatus.d.ts +0 -18
  71. package/model/getOnAirItemListResponse.d.ts +0 -17
  72. package/model/idListRequestBody.d.ts +0 -13
  73. package/model/imageInfo.d.ts +0 -20
  74. package/model/itemCastCharacterRelation.d.ts +0 -25
  75. package/model/itemEntity.d.ts +0 -24
  76. package/model/itemPersonRelation.d.ts +0 -22
  77. package/model/itemRelation.d.ts +0 -22
  78. package/model/itemRelationsWithMainItems.d.ts +0 -20
  79. package/model/itemSubType.d.ts +0 -56
  80. package/model/itemType.d.ts +0 -25
  81. package/model/listFavoritesResponse.d.ts +0 -21
  82. package/model/listMainItemResponse.d.ts +0 -21
  83. package/model/listSubItemFavoriteResponse.d.ts +0 -18
  84. package/model/mainItem.d.ts +0 -42
  85. package/model/mainItemBasic.d.ts +0 -32
  86. package/model/mainType.d.ts +0 -16
  87. package/model/models.d.ts +0 -38
  88. package/model/onAirItem.d.ts +0 -28
  89. package/model/patchFavoriteBody.d.ts +0 -18
  90. package/model/personRelationsWithMainItems.d.ts +0 -18
  91. package/model/propertyType.d.ts +0 -18
  92. package/model/propertyValue.d.ts +0 -21
  93. package/model/propertyValueValue.d.ts +0 -17
  94. package/model/subItem.d.ts +0 -45
  95. package/model/subItemFavorite.d.ts +0 -17
  96. package/model/succeedEmptyResponse.d.ts +0 -13
  97. package/model/syncFavoritesRequestBody.d.ts +0 -15
  98. package/model/syncFavoritesRequestBodyFavoritesInner.d.ts +0 -15
  99. package/model/syncFavoritesResponse.d.ts +0 -18
  100. package/param.d.ts +0 -37
  101. package/variables.d.ts +0 -8
@@ -1,200 +0,0 @@
1
- /**
2
- * mira API
3
- * API for Project-Mira
4
- *
5
- *
6
- *
7
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
- * https://openapi-generator.tech
9
- * Do not edit the class manually.
10
- */
11
- import { HttpHeaders } from '@angular/common/http';
12
- import { Observable } from 'rxjs';
13
- import { BatchGetMainItemByIdListResult } from '../model/models';
14
- import { BatchGetSubItemByIdListResult } from '../model/models';
15
- import { CharacterRelationsWithMainItems } from '../model/models';
16
- import { ClientMapping } from '../model/models';
17
- import { CreateSubItemFavoriteRequestBody } from '../model/models';
18
- import { DeleteClientMappingByMainItemResponse } from '../model/models';
19
- import { Favorite } from '../model/models';
20
- import { FavoriteProgress } from '../model/models';
21
- import { GetOnAirItemListResponse } from '../model/models';
22
- import { IdListRequestBody } from '../model/models';
23
- import { ItemRelationsWithMainItems } from '../model/models';
24
- import { ListFavoritesResponse } from '../model/models';
25
- import { ListMainItemResponse } from '../model/models';
26
- import { ListSubItemFavoriteResponse } from '../model/models';
27
- import { MainItem } from '../model/models';
28
- import { PatchFavoriteBody } from '../model/models';
29
- import { PersonRelationsWithMainItems } from '../model/models';
30
- import { SubItem } from '../model/models';
31
- import { SubItemFavorite } from '../model/models';
32
- import { SucceedEmptyResponse } from '../model/models';
33
- import { SyncFavoritesRequestBody } from '../model/models';
34
- import { SyncFavoritesResponse } from '../model/models';
35
- import { MiraConfiguration } from '../configuration';
36
- export interface DefaultMiraInterface {
37
- defaultHeaders: HttpHeaders;
38
- configuration: MiraConfiguration;
39
- /**
40
- *
41
- * Add ClientMapping
42
- * @param request_body
43
- */
44
- addClientMapping(request_body: Array<string>, extraHttpRequestParams?: any): Observable<ClientMapping>;
45
- /**
46
- *
47
- * get mainItems by id list
48
- * @param IdListRequestBody
49
- */
50
- batchGetMainItemByIdList(IdListRequestBody: IdListRequestBody, extraHttpRequestParams?: any): Observable<BatchGetMainItemByIdListResult>;
51
- /**
52
- *
53
- * get SubItems by id list
54
- * @param IdListRequestBody
55
- */
56
- batchGetSubItemsByIdList(IdListRequestBody: IdListRequestBody, extraHttpRequestParams?: any): Observable<BatchGetSubItemByIdListResult>;
57
- /**
58
- *
59
- * create a favorite for user and item
60
- * @param Favorite
61
- */
62
- createFavorite(Favorite: Favorite, extraHttpRequestParams?: any): Observable<Favorite>;
63
- /**
64
- *
65
- * create a SubItemFavorite
66
- * @param CreateSubItemFavoriteRequestBody
67
- */
68
- createSubItemFavorite(CreateSubItemFavoriteRequestBody: CreateSubItemFavoriteRequestBody, extraHttpRequestParams?: any): Observable<SubItemFavorite>;
69
- /**
70
- *
71
- * Delete ClientMapping by MainItem id
72
- * @param id
73
- */
74
- deleteClientMappingByMainItemId(id: string, extraHttpRequestParams?: any): Observable<DeleteClientMappingByMainItemResponse>;
75
- /**
76
- *
77
- * Delete a favorite
78
- * @param id
79
- */
80
- deleteFavorite(id: string, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
81
- /**
82
- *
83
- * Delete a SubItemFavorite
84
- * @param id
85
- */
86
- deleteSubItemFavorite(id: string, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
87
- /**
88
- *
89
- * get favorite by MainItem id
90
- * @param id
91
- */
92
- getFavoriteByMainItemId(id: string, extraHttpRequestParams?: any): Observable<Favorite>;
93
- /**
94
- *
95
- * get favorite progress (number of SubItemFavorite from the beginning) of a episode type for mainItem
96
- * @param mainItemId
97
- * @param epType
98
- */
99
- getFavoriteProgressByMainItemId(mainItemId: string, epType: number, extraHttpRequestParams?: any): Observable<FavoriteProgress>;
100
- /**
101
- *
102
- * get a MainItem by id
103
- * @param id MainItem id
104
- * @param coverImage populate coverImage if true
105
- * @param subItems populate subItems if true
106
- */
107
- getMainItemById(id: string, coverImage?: string, subItems?: string, extraHttpRequestParams?: any): Observable<MainItem>;
108
- /**
109
- *
110
- * get all related (Item , Cast) MainItem of an Character Type MainItem.
111
- * @param id MainItem id
112
- */
113
- getRelationsOfCharacter(id: string, extraHttpRequestParams?: any): Observable<CharacterRelationsWithMainItems>;
114
- /**
115
- *
116
- * get all related (Item, Staff, Cast, Character) MainItem of an Item Type MainItem.
117
- * @param id MainItem id
118
- */
119
- getRelationsOfItem(id: string, extraHttpRequestParams?: any): Observable<ItemRelationsWithMainItems>;
120
- /**
121
- *
122
- * get all related (Item , Character) MainItem of an Person Type MainItem.
123
- * @param id MainItem id
124
- */
125
- getRelationsOfPerson(id: string, extraHttpRequestParams?: any): Observable<PersonRelationsWithMainItems>;
126
- /**
127
- *
128
- * get a SubItem by id
129
- * @param id SubItem Id
130
- */
131
- getSubItemById(id: string, extraHttpRequestParams?: any): Observable<SubItem>;
132
- /**
133
- *
134
- * list favorites for user
135
- * @param status
136
- * @param offset
137
- * @param limit
138
- * @param orderBy
139
- * @param sort
140
- */
141
- listFavorites(status: string, offset?: number, limit?: number, orderBy?: string, sort?: string, extraHttpRequestParams?: any): Observable<ListFavoritesResponse>;
142
- /**
143
- *
144
- * list MainItems
145
- * @param serviceClientId
146
- * @param mainType
147
- * @param type
148
- * @param subType
149
- * @param offset
150
- * @param limit
151
- * @param orderBy
152
- * @param sort
153
- * @param keyword
154
- */
155
- listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, extraHttpRequestParams?: any): Observable<ListMainItemResponse>;
156
- /**
157
- *
158
- * list SubItemFavorite
159
- * @param itemId itemId of the SubItem, if provided then other parameters are ignored
160
- * @param offset
161
- * @param limit
162
- * @param orderBy
163
- * @param sort
164
- * @param subItem
165
- */
166
- listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, extraHttpRequestParams?: any): Observable<ListSubItemFavoriteResponse>;
167
- /**
168
- *
169
- * get a list of on air MainItems with cover image
170
- * @param type type of MainItem, must be either anime or real
171
- */
172
- onAirItem(type: string, extraHttpRequestParams?: any): Observable<GetOnAirItemListResponse>;
173
- /**
174
- *
175
- * change status of a favorite
176
- * @param id
177
- * @param PatchFavoriteBody
178
- */
179
- patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
180
- /**
181
- *
182
- * predict Main Item names base on provided prefix
183
- * @param prefix start part of the name
184
- */
185
- predictMainItemName(prefix: string, extraHttpRequestParams?: any): Observable<Array<string>>;
186
- /**
187
- *
188
- * Sync favorites from external source, merge with existing favorites
189
- * @param SyncFavoritesRequestBody
190
- */
191
- syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, extraHttpRequestParams?: any): Observable<SyncFavoritesResponse>;
192
- /**
193
- *
194
- * update progress of a favorite, will create/delete SubItemFavorite
195
- * @param mainItemId
196
- * @param progress
197
- * @param epType
198
- */
199
- updateFavoriteProgress(mainItemId: string, progress: number, epType: number, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
200
- }
package/api.module.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { MiraConfiguration } from './configuration';
3
- import { HttpClient } from '@angular/common/http';
4
- import * as i0 from "@angular/core";
5
- export declare class MiraApiModule {
6
- static forRoot(configurationFactory: () => MiraConfiguration): ModuleWithProviders<MiraApiModule>;
7
- constructor(parentModule: MiraApiModule, http: HttpClient);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<MiraApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<MiraApiModule, never, never, never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<MiraApiModule>;
11
- }
@@ -1,104 +0,0 @@
1
- import { HttpParameterCodec } from '@angular/common/http';
2
- import { Param } from './param';
3
- export interface MiraConfigurationParameters {
4
- /**
5
- * @deprecated Since 5.0. Use credentials instead
6
- */
7
- apiKeys?: {
8
- [key: string]: string;
9
- };
10
- username?: string;
11
- password?: string;
12
- /**
13
- * @deprecated Since 5.0. Use credentials instead
14
- */
15
- accessToken?: string | (() => string);
16
- basePath?: string;
17
- withCredentials?: boolean;
18
- /**
19
- * Takes care of encoding query- and form-parameters.
20
- */
21
- encoder?: HttpParameterCodec;
22
- /**
23
- * Override the default method for encoding path parameters in various
24
- * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
25
- * <p>
26
- * See {@link README.md} for more details
27
- * </p>
28
- */
29
- encodeParam?: (param: Param) => string;
30
- /**
31
- * The keys are the names in the securitySchemes section of the OpenAPI
32
- * document. They should map to the value used for authentication
33
- * minus any standard prefixes such as 'Basic' or 'Bearer'.
34
- */
35
- credentials?: {
36
- [key: string]: string | (() => string | undefined);
37
- };
38
- }
39
- export declare class MiraConfiguration {
40
- /**
41
- * @deprecated Since 5.0. Use credentials instead
42
- */
43
- apiKeys?: {
44
- [key: string]: string;
45
- };
46
- username?: string;
47
- password?: string;
48
- /**
49
- * @deprecated Since 5.0. Use credentials instead
50
- */
51
- accessToken?: string | (() => string);
52
- basePath?: string;
53
- withCredentials?: boolean;
54
- /**
55
- * Takes care of encoding query- and form-parameters.
56
- */
57
- encoder?: HttpParameterCodec;
58
- /**
59
- * Encoding of various path parameter
60
- * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
61
- * <p>
62
- * See {@link README.md} for more details
63
- * </p>
64
- */
65
- encodeParam: (param: Param) => string;
66
- /**
67
- * The keys are the names in the securitySchemes section of the OpenAPI
68
- * document. They should map to the value used for authentication
69
- * minus any standard prefixes such as 'Basic' or 'Bearer'.
70
- */
71
- credentials: {
72
- [key: string]: string | (() => string | undefined);
73
- };
74
- constructor(configurationParameters?: MiraConfigurationParameters);
75
- /**
76
- * Select the correct content-type to use for a request.
77
- * Uses {@link MiraConfiguration#isJsonMime} to determine the correct content-type.
78
- * If no content type is found return the first found type if the contentTypes is not empty
79
- * @param contentTypes - the array of content types that are available for selection
80
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
81
- */
82
- selectHeaderContentType(contentTypes: string[]): string | undefined;
83
- /**
84
- * Select the correct accept content-type to use for a request.
85
- * Uses {@link MiraConfiguration#isJsonMime} to determine the correct accept content-type.
86
- * If no content type is found return the first found type if the contentTypes is not empty
87
- * @param accepts - the array of content types that are available for selection.
88
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
89
- */
90
- selectHeaderAccept(accepts: string[]): string | undefined;
91
- /**
92
- * Check if the given MIME is a JSON MIME.
93
- * JSON MIME examples:
94
- * application/json
95
- * application/json; charset=UTF8
96
- * APPLICATION/JSON
97
- * application/vnd.company+json
98
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
99
- * @return True if the given MIME is JSON, false otherwise.
100
- */
101
- isJsonMime(mime: string): boolean;
102
- lookupCredential(key: string): string | undefined;
103
- private defaultEncodeParam;
104
- }
package/encoder.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { HttpParameterCodec } from '@angular/common/http';
2
- /**
3
- * Custom HttpParameterCodec
4
- * Workaround for https://github.com/angular/angular/issues/18261
5
- */
6
- export declare class CustomHttpParameterCodec implements HttpParameterCodec {
7
- encodeKey(k: string): string;
8
- encodeValue(v: string): string;
9
- decodeKey(k: string): string;
10
- decodeValue(v: string): string;
11
- }
@@ -1,5 +0,0 @@
1
- export * from './default.service';
2
- import { DefaultMira } from './default.service';
3
- export * from './default.serviceInterface';
4
- export const APIS = [DefaultMira];
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbWlyYS1zZGstYW5ndWxhci9zcmMvYXBpL2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNoRCxjQUFjLDRCQUE0QixDQUFDO0FBQzNDLE1BQU0sQ0FBQyxNQUFNLElBQUksR0FBRyxDQUFDLFdBQVcsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9kZWZhdWx0LnNlcnZpY2UnO1xuaW1wb3J0IHsgRGVmYXVsdE1pcmEgfSBmcm9tICcuL2RlZmF1bHQuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2RlZmF1bHQuc2VydmljZUludGVyZmFjZSc7XG5leHBvcnQgY29uc3QgQVBJUyA9IFtEZWZhdWx0TWlyYV07XG4iXX0=