@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
package/README.md
CHANGED
|
@@ -1,160 +1,112 @@
|
|
|
1
1
|
# MiraSdkAngular
|
|
2
2
|
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 19.2.26.
|
|
4
4
|
|
|
5
5
|
#### General usage
|
|
6
6
|
|
|
7
7
|
In your Angular project:
|
|
8
8
|
|
|
9
|
+
```typescript
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
14
|
-
|
|
15
|
-
@NgModule({
|
|
16
|
-
imports: [
|
|
17
|
-
MiraApiModule,
|
|
18
|
-
// make sure to import the HttpClientModule in the AppModule only,
|
|
19
|
-
// see https://github.com/angular/angular/issues/20575
|
|
20
|
-
HttpClientModule
|
|
21
|
-
],
|
|
22
|
-
declarations: [ AppComponent ],
|
|
23
|
-
providers: [],
|
|
24
|
-
bootstrap: [ AppComponent ]
|
|
25
|
-
})
|
|
26
|
-
export class AppModule {}
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
// configuring providers
|
|
31
|
-
import { MiraApiModule, MiraConfiguration, MiraConfigurationParameters } from '';
|
|
32
|
-
|
|
33
|
-
export function apiConfigFactory (): MiraConfiguration {
|
|
34
|
-
const params: MiraConfigurationParameters = {
|
|
35
|
-
// set configuration parameters here.
|
|
36
|
-
}
|
|
37
|
-
return new MiraConfiguration(params);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@NgModule({
|
|
41
|
-
imports: [ MiraApiModule.forRoot(apiConfigFactory) ],
|
|
42
|
-
declarations: [ AppComponent ],
|
|
43
|
-
providers: [],
|
|
44
|
-
bootstrap: [ AppComponent ]
|
|
45
|
-
})
|
|
46
|
-
export class AppModule {}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
// configuring providers with an authentication service that manages your access tokens
|
|
51
|
-
import { MiraApiModule, MiraConfiguration } from '';
|
|
11
|
+
import { ApplicationConfig } from '@angular/core';
|
|
12
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
13
|
+
import { provideApi } from '';
|
|
52
14
|
|
|
53
|
-
|
|
54
|
-
imports: [ MiraApiModule ],
|
|
55
|
-
declarations: [ AppComponent ],
|
|
15
|
+
export const appConfig: ApplicationConfig = {
|
|
56
16
|
providers: [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
basePath: environment.apiUrl,
|
|
62
|
-
accessToken: authService.getAccessToken.bind(authService)
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
deps: [AuthService],
|
|
66
|
-
multi: false
|
|
67
|
-
}
|
|
17
|
+
// ...
|
|
18
|
+
provideHttpClient(),
|
|
19
|
+
provideApi()
|
|
68
20
|
],
|
|
69
|
-
|
|
70
|
-
})
|
|
71
|
-
export class AppModule {}
|
|
72
|
-
```
|
|
73
|
-
|
|
21
|
+
};
|
|
74
22
|
```
|
|
75
|
-
import { DefaultApi } from '';
|
|
76
23
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
24
|
+
**NOTE**
|
|
25
|
+
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
|
|
26
|
+
```typescript
|
|
27
|
+
import { MiraApiModule } from '';
|
|
80
28
|
```
|
|
81
29
|
|
|
82
|
-
|
|
83
|
-
This is to ensure that all services are treated as singletons.
|
|
84
|
-
|
|
85
|
-
#### Using multiple OpenAPI files / APIs / MiraApiModules
|
|
86
|
-
In order to use multiple `MiraApiModules` generated from different OpenAPI files,
|
|
87
|
-
you can create an alias name when importing the modules
|
|
88
|
-
in order to avoid naming conflicts:
|
|
89
|
-
```
|
|
90
|
-
import { MiraApiModule } from 'my-api-path';
|
|
91
|
-
import { MiraApiModule as OtherApiModule } from 'my-other-api-path';
|
|
92
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
30
|
+
If different from the generated base path, during app bootstrap, you can provide the base path to your service.
|
|
93
31
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
// make sure to import the HttpClientModule in the AppModule only,
|
|
99
|
-
// see https://github.com/angular/angular/issues/20575
|
|
100
|
-
HttpClientModule
|
|
101
|
-
]
|
|
102
|
-
})
|
|
103
|
-
export class AppModule {
|
|
32
|
+
```typescript
|
|
33
|
+
import { ApplicationConfig } from '@angular/core';
|
|
34
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
35
|
+
import { provideApi } from '';
|
|
104
36
|
|
|
105
|
-
|
|
37
|
+
export const appConfig: ApplicationConfig = {
|
|
38
|
+
providers: [
|
|
39
|
+
// ...
|
|
40
|
+
provideHttpClient(),
|
|
41
|
+
provideApi('http://localhost:9999')
|
|
42
|
+
],
|
|
43
|
+
};
|
|
106
44
|
```
|
|
107
45
|
|
|
46
|
+
```typescript
|
|
47
|
+
// with a custom configuration
|
|
48
|
+
import { ApplicationConfig } from '@angular/core';
|
|
49
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
50
|
+
import { provideApi } from '';
|
|
108
51
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
52
|
+
export const appConfig: ApplicationConfig = {
|
|
53
|
+
providers: [
|
|
54
|
+
// ...
|
|
55
|
+
provideHttpClient(),
|
|
56
|
+
provideApi({
|
|
57
|
+
withCredentials: true,
|
|
58
|
+
username: 'user',
|
|
59
|
+
password: 'password'
|
|
60
|
+
})
|
|
61
|
+
],
|
|
62
|
+
};
|
|
118
63
|
```
|
|
119
|
-
or
|
|
120
64
|
|
|
121
|
-
```
|
|
122
|
-
|
|
65
|
+
```typescript
|
|
66
|
+
// with factory building a custom configuration
|
|
67
|
+
import { ApplicationConfig } from '@angular/core';
|
|
68
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
69
|
+
import { provideApi, MiraConfiguration } from '';
|
|
123
70
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
71
|
+
export const appConfig: ApplicationConfig = {
|
|
72
|
+
providers: [
|
|
73
|
+
// ...
|
|
74
|
+
provideHttpClient(),
|
|
75
|
+
{
|
|
76
|
+
provide: MiraConfiguration,
|
|
77
|
+
useFactory: (authService: AuthService) => new MiraConfiguration({
|
|
78
|
+
basePath: 'http://localhost:9999',
|
|
79
|
+
withCredentials: true,
|
|
80
|
+
username: authService.getUsername(),
|
|
81
|
+
password: authService.getPassword(),
|
|
82
|
+
}),
|
|
83
|
+
deps: [AuthService],
|
|
84
|
+
multi: false
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
};
|
|
131
88
|
```
|
|
132
89
|
|
|
90
|
+
### Using multiple OpenAPI files / APIs
|
|
133
91
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
```
|
|
138
|
-
export const environment = {
|
|
139
|
-
production: false,
|
|
140
|
-
API_BASE_PATH: 'http://127.0.0.1:8080'
|
|
141
|
-
};
|
|
142
|
-
```
|
|
92
|
+
In order to use multiple APIs generated from different OpenAPI files,
|
|
93
|
+
you can create an alias name when importing the modules
|
|
94
|
+
in order to avoid naming conflicts:
|
|
143
95
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
import {
|
|
96
|
+
```typescript
|
|
97
|
+
import { provideApi as provideUserApi } from 'my-user-api-path';
|
|
98
|
+
import { provideApi as provideAdminApi } from 'my-admin-api-path';
|
|
99
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
147
100
|
import { environment } from '../environments/environment';
|
|
148
101
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
export class AppModule { }
|
|
102
|
+
export const appConfig: ApplicationConfig = {
|
|
103
|
+
providers: [
|
|
104
|
+
// ...
|
|
105
|
+
provideHttpClient(),
|
|
106
|
+
provideUserApi(environment.basePath),
|
|
107
|
+
provideAdminApi(environment.basePath),
|
|
108
|
+
],
|
|
109
|
+
};
|
|
158
110
|
```
|
|
159
111
|
|
|
160
112
|
### Customizing path parameter encoding
|
|
@@ -170,9 +122,10 @@ pass an arrow-function or method-reference to the `encodeParam` property of the
|
|
|
170
122
|
(see [General Usage](#general-usage) above).
|
|
171
123
|
|
|
172
124
|
Example value for use in your Configuration-Provider:
|
|
125
|
+
|
|
173
126
|
```typescript
|
|
174
127
|
new Configuration({
|
|
175
|
-
|
|
128
|
+
encodeParam: (param: Param) => myFancyParamEncoder(param),
|
|
176
129
|
})
|
|
177
130
|
```
|
|
178
131
|
|
package/api/default.service.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { BatchGetMainItemByIdListResult } from '../model/batchGetMainItemByIdListResult';
|
|
4
4
|
import { BatchGetSubItemByIdListResult } from '../model/batchGetSubItemByIdListResult';
|
|
@@ -8,6 +8,7 @@ import { CreateSubItemFavoriteRequestBody } from '../model/createSubItemFavorite
|
|
|
8
8
|
import { DeleteClientMappingByMainItemResponse } from '../model/deleteClientMappingByMainItemResponse';
|
|
9
9
|
import { Favorite } from '../model/favorite';
|
|
10
10
|
import { FavoriteProgress } from '../model/favoriteProgress';
|
|
11
|
+
import { GetFavoriteResponse } from '../model/getFavoriteResponse';
|
|
11
12
|
import { GetOnAirItemListResponse } from '../model/getOnAirItemListResponse';
|
|
12
13
|
import { IdListRequestBody } from '../model/idListRequestBody';
|
|
13
14
|
import { ItemRelationsWithMainItems } from '../model/itemRelationsWithMainItems';
|
|
@@ -23,22 +24,19 @@ import { SucceedEmptyResponse } from '../model/succeedEmptyResponse';
|
|
|
23
24
|
import { SyncFavoritesRequestBody } from '../model/syncFavoritesRequestBody';
|
|
24
25
|
import { SyncFavoritesResponse } from '../model/syncFavoritesResponse';
|
|
25
26
|
import { MiraConfiguration } from '../configuration';
|
|
27
|
+
import { BaseService } from '../api.base.service';
|
|
26
28
|
import { DefaultMiraInterface } from './default.serviceInterface';
|
|
27
29
|
import * as i0 from "@angular/core";
|
|
28
|
-
export declare class DefaultMira implements DefaultMiraInterface {
|
|
30
|
+
export declare class DefaultMira extends BaseService implements DefaultMiraInterface {
|
|
29
31
|
protected httpClient: HttpClient;
|
|
30
|
-
|
|
31
|
-
defaultHeaders: HttpHeaders;
|
|
32
|
-
configuration: MiraConfiguration;
|
|
33
|
-
encoder: HttpParameterCodec;
|
|
34
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: MiraConfiguration);
|
|
35
|
-
private addToHttpParams;
|
|
36
|
-
private addToHttpParamsRecursive;
|
|
32
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: MiraConfiguration);
|
|
37
33
|
/**
|
|
38
34
|
* Add ClientMapping
|
|
35
|
+
* @endpoint post /client-mapping
|
|
39
36
|
* @param request_body
|
|
40
37
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
41
38
|
* @param reportProgress flag to report request and response progress.
|
|
39
|
+
* @param options additional options
|
|
42
40
|
*/
|
|
43
41
|
addClientMapping(request_body: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {
|
|
44
42
|
httpHeaderAccept?: 'application/json';
|
|
@@ -57,9 +55,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
57
55
|
}): Observable<HttpEvent<ClientMapping>>;
|
|
58
56
|
/**
|
|
59
57
|
* get mainItems by id list
|
|
58
|
+
* @endpoint post /client-mapping/batch/main
|
|
60
59
|
* @param IdListRequestBody
|
|
61
60
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
62
61
|
* @param reportProgress flag to report request and response progress.
|
|
62
|
+
* @param options additional options
|
|
63
63
|
*/
|
|
64
64
|
batchGetMainItemByIdList(IdListRequestBody: IdListRequestBody, observe?: 'body', reportProgress?: boolean, options?: {
|
|
65
65
|
httpHeaderAccept?: 'application/json';
|
|
@@ -78,9 +78,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
78
78
|
}): Observable<HttpEvent<BatchGetMainItemByIdListResult>>;
|
|
79
79
|
/**
|
|
80
80
|
* get SubItems by id list
|
|
81
|
+
* @endpoint post /client-mapping/batch/subItem
|
|
81
82
|
* @param IdListRequestBody
|
|
82
83
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
83
84
|
* @param reportProgress flag to report request and response progress.
|
|
85
|
+
* @param options additional options
|
|
84
86
|
*/
|
|
85
87
|
batchGetSubItemsByIdList(IdListRequestBody: IdListRequestBody, observe?: 'body', reportProgress?: boolean, options?: {
|
|
86
88
|
httpHeaderAccept?: 'application/json';
|
|
@@ -99,9 +101,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
99
101
|
}): Observable<HttpEvent<BatchGetSubItemByIdListResult>>;
|
|
100
102
|
/**
|
|
101
103
|
* create a favorite for user and item
|
|
104
|
+
* @endpoint post /favorite
|
|
102
105
|
* @param Favorite
|
|
103
106
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
104
107
|
* @param reportProgress flag to report request and response progress.
|
|
108
|
+
* @param options additional options
|
|
105
109
|
*/
|
|
106
110
|
createFavorite(Favorite: Favorite, observe?: 'body', reportProgress?: boolean, options?: {
|
|
107
111
|
httpHeaderAccept?: 'application/json';
|
|
@@ -120,9 +124,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
120
124
|
}): Observable<HttpEvent<Favorite>>;
|
|
121
125
|
/**
|
|
122
126
|
* create a SubItemFavorite
|
|
127
|
+
* @endpoint post /favorite/sub
|
|
123
128
|
* @param CreateSubItemFavoriteRequestBody
|
|
124
129
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
125
130
|
* @param reportProgress flag to report request and response progress.
|
|
131
|
+
* @param options additional options
|
|
126
132
|
*/
|
|
127
133
|
createSubItemFavorite(CreateSubItemFavoriteRequestBody: CreateSubItemFavoriteRequestBody, observe?: 'body', reportProgress?: boolean, options?: {
|
|
128
134
|
httpHeaderAccept?: 'application/json';
|
|
@@ -141,9 +147,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
141
147
|
}): Observable<HttpEvent<SubItemFavorite>>;
|
|
142
148
|
/**
|
|
143
149
|
* Delete ClientMapping by MainItem id
|
|
150
|
+
* @endpoint delete /client-mapping/main/{id}
|
|
144
151
|
* @param id
|
|
145
152
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
146
153
|
* @param reportProgress flag to report request and response progress.
|
|
154
|
+
* @param options additional options
|
|
147
155
|
*/
|
|
148
156
|
deleteClientMappingByMainItemId(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
149
157
|
httpHeaderAccept?: 'application/json';
|
|
@@ -162,9 +170,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
162
170
|
}): Observable<HttpEvent<DeleteClientMappingByMainItemResponse>>;
|
|
163
171
|
/**
|
|
164
172
|
* Delete a favorite
|
|
173
|
+
* @endpoint delete /favorite/{id}
|
|
165
174
|
* @param id
|
|
166
175
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
167
176
|
* @param reportProgress flag to report request and response progress.
|
|
177
|
+
* @param options additional options
|
|
168
178
|
*/
|
|
169
179
|
deleteFavorite(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
170
180
|
httpHeaderAccept?: 'application/json';
|
|
@@ -183,9 +193,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
183
193
|
}): Observable<HttpEvent<SucceedEmptyResponse>>;
|
|
184
194
|
/**
|
|
185
195
|
* Delete a SubItemFavorite
|
|
196
|
+
* @endpoint delete /favorite/sub/{id}
|
|
186
197
|
* @param id
|
|
187
198
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
188
199
|
* @param reportProgress flag to report request and response progress.
|
|
200
|
+
* @param options additional options
|
|
189
201
|
*/
|
|
190
202
|
deleteSubItemFavorite(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
191
203
|
httpHeaderAccept?: 'application/json';
|
|
@@ -202,11 +214,36 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
202
214
|
context?: HttpContext;
|
|
203
215
|
transferCache?: boolean;
|
|
204
216
|
}): Observable<HttpEvent<SucceedEmptyResponse>>;
|
|
217
|
+
/**
|
|
218
|
+
* Get a favorite by id
|
|
219
|
+
* @endpoint get /favorite/{id}
|
|
220
|
+
* @param id
|
|
221
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
222
|
+
* @param reportProgress flag to report request and response progress.
|
|
223
|
+
* @param options additional options
|
|
224
|
+
*/
|
|
225
|
+
getFavoriteById(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
226
|
+
httpHeaderAccept?: 'application/json';
|
|
227
|
+
context?: HttpContext;
|
|
228
|
+
transferCache?: boolean;
|
|
229
|
+
}): Observable<GetFavoriteResponse>;
|
|
230
|
+
getFavoriteById(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
231
|
+
httpHeaderAccept?: 'application/json';
|
|
232
|
+
context?: HttpContext;
|
|
233
|
+
transferCache?: boolean;
|
|
234
|
+
}): Observable<HttpResponse<GetFavoriteResponse>>;
|
|
235
|
+
getFavoriteById(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
236
|
+
httpHeaderAccept?: 'application/json';
|
|
237
|
+
context?: HttpContext;
|
|
238
|
+
transferCache?: boolean;
|
|
239
|
+
}): Observable<HttpEvent<GetFavoriteResponse>>;
|
|
205
240
|
/**
|
|
206
241
|
* get favorite by MainItem id
|
|
242
|
+
* @endpoint get /favorite/main/{id}
|
|
207
243
|
* @param id
|
|
208
244
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
209
245
|
* @param reportProgress flag to report request and response progress.
|
|
246
|
+
* @param options additional options
|
|
210
247
|
*/
|
|
211
248
|
getFavoriteByMainItemId(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
212
249
|
httpHeaderAccept?: 'application/json';
|
|
@@ -225,10 +262,12 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
225
262
|
}): Observable<HttpEvent<Favorite>>;
|
|
226
263
|
/**
|
|
227
264
|
* get favorite progress (number of SubItemFavorite from the beginning) of a episode type for mainItem
|
|
265
|
+
* @endpoint get /favorite/progress
|
|
228
266
|
* @param mainItemId
|
|
229
267
|
* @param epType
|
|
230
268
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
231
269
|
* @param reportProgress flag to report request and response progress.
|
|
270
|
+
* @param options additional options
|
|
232
271
|
*/
|
|
233
272
|
getFavoriteProgressByMainItemId(mainItemId: string, epType: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
234
273
|
httpHeaderAccept?: 'application/json';
|
|
@@ -247,11 +286,13 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
247
286
|
}): Observable<HttpEvent<FavoriteProgress>>;
|
|
248
287
|
/**
|
|
249
288
|
* get a MainItem by id
|
|
289
|
+
* @endpoint get /public/item/main/{id}
|
|
250
290
|
* @param id MainItem id
|
|
251
291
|
* @param coverImage populate coverImage if true
|
|
252
292
|
* @param subItems populate subItems if true
|
|
253
293
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
254
294
|
* @param reportProgress flag to report request and response progress.
|
|
295
|
+
* @param options additional options
|
|
255
296
|
*/
|
|
256
297
|
getMainItemById(id: string, coverImage?: string, subItems?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
257
298
|
httpHeaderAccept?: 'application/json';
|
|
@@ -270,9 +311,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
270
311
|
}): Observable<HttpEvent<MainItem>>;
|
|
271
312
|
/**
|
|
272
313
|
* get all related (Item , Cast) MainItem of an Character Type MainItem.
|
|
314
|
+
* @endpoint get /public/relation/character/{id}
|
|
273
315
|
* @param id MainItem id
|
|
274
316
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
275
317
|
* @param reportProgress flag to report request and response progress.
|
|
318
|
+
* @param options additional options
|
|
276
319
|
*/
|
|
277
320
|
getRelationsOfCharacter(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
278
321
|
httpHeaderAccept?: 'application/json';
|
|
@@ -291,9 +334,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
291
334
|
}): Observable<HttpEvent<CharacterRelationsWithMainItems>>;
|
|
292
335
|
/**
|
|
293
336
|
* get all related (Item, Staff, Cast, Character) MainItem of an Item Type MainItem.
|
|
337
|
+
* @endpoint get /public/relation/item/{id}
|
|
294
338
|
* @param id MainItem id
|
|
295
339
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
296
340
|
* @param reportProgress flag to report request and response progress.
|
|
341
|
+
* @param options additional options
|
|
297
342
|
*/
|
|
298
343
|
getRelationsOfItem(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
299
344
|
httpHeaderAccept?: 'application/json';
|
|
@@ -312,9 +357,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
312
357
|
}): Observable<HttpEvent<ItemRelationsWithMainItems>>;
|
|
313
358
|
/**
|
|
314
359
|
* get all related (Item , Character) MainItem of an Person Type MainItem.
|
|
360
|
+
* @endpoint get /public/relation/person/{id}
|
|
315
361
|
* @param id MainItem id
|
|
316
362
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
317
363
|
* @param reportProgress flag to report request and response progress.
|
|
364
|
+
* @param options additional options
|
|
318
365
|
*/
|
|
319
366
|
getRelationsOfPerson(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
320
367
|
httpHeaderAccept?: 'application/json';
|
|
@@ -333,9 +380,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
333
380
|
}): Observable<HttpEvent<PersonRelationsWithMainItems>>;
|
|
334
381
|
/**
|
|
335
382
|
* get a SubItem by id
|
|
383
|
+
* @endpoint get /public/item/main/subItem/{id}
|
|
336
384
|
* @param id SubItem Id
|
|
337
385
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
338
386
|
* @param reportProgress flag to report request and response progress.
|
|
387
|
+
* @param options additional options
|
|
339
388
|
*/
|
|
340
389
|
getSubItemById(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
341
390
|
httpHeaderAccept?: 'application/json';
|
|
@@ -354,6 +403,7 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
354
403
|
}): Observable<HttpEvent<SubItem>>;
|
|
355
404
|
/**
|
|
356
405
|
* list favorites for user
|
|
406
|
+
* @endpoint get /favorite
|
|
357
407
|
* @param status
|
|
358
408
|
* @param offset
|
|
359
409
|
* @param limit
|
|
@@ -361,6 +411,7 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
361
411
|
* @param sort
|
|
362
412
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
363
413
|
* @param reportProgress flag to report request and response progress.
|
|
414
|
+
* @param options additional options
|
|
364
415
|
*/
|
|
365
416
|
listFavorites(status: string, offset?: number, limit?: number, orderBy?: string, sort?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
366
417
|
httpHeaderAccept?: 'application/json';
|
|
@@ -379,6 +430,7 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
379
430
|
}): Observable<HttpEvent<ListFavoritesResponse>>;
|
|
380
431
|
/**
|
|
381
432
|
* list MainItems
|
|
433
|
+
* @endpoint get /public/item/main
|
|
382
434
|
* @param serviceClientId
|
|
383
435
|
* @param mainType
|
|
384
436
|
* @param type
|
|
@@ -390,6 +442,7 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
390
442
|
* @param keyword
|
|
391
443
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
392
444
|
* @param reportProgress flag to report request and response progress.
|
|
445
|
+
* @param options additional options
|
|
393
446
|
*/
|
|
394
447
|
listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
395
448
|
httpHeaderAccept?: 'application/json';
|
|
@@ -408,6 +461,7 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
408
461
|
}): Observable<HttpEvent<ListMainItemResponse>>;
|
|
409
462
|
/**
|
|
410
463
|
* list SubItemFavorite
|
|
464
|
+
* @endpoint get /favorite/sub
|
|
411
465
|
* @param itemId itemId of the SubItem, if provided then other parameters are ignored
|
|
412
466
|
* @param offset
|
|
413
467
|
* @param limit
|
|
@@ -416,6 +470,7 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
416
470
|
* @param subItem
|
|
417
471
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
418
472
|
* @param reportProgress flag to report request and response progress.
|
|
473
|
+
* @param options additional options
|
|
419
474
|
*/
|
|
420
475
|
listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, observe?: 'body', reportProgress?: boolean, options?: {
|
|
421
476
|
httpHeaderAccept?: 'application/json';
|
|
@@ -434,9 +489,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
434
489
|
}): Observable<HttpEvent<ListSubItemFavoriteResponse>>;
|
|
435
490
|
/**
|
|
436
491
|
* get a list of on air MainItems with cover image
|
|
492
|
+
* @endpoint get /public/item/on-air
|
|
437
493
|
* @param type type of MainItem, must be either anime or real
|
|
438
494
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
439
495
|
* @param reportProgress flag to report request and response progress.
|
|
496
|
+
* @param options additional options
|
|
440
497
|
*/
|
|
441
498
|
onAirItem(type: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
442
499
|
httpHeaderAccept?: 'application/json';
|
|
@@ -455,10 +512,12 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
455
512
|
}): Observable<HttpEvent<GetOnAirItemListResponse>>;
|
|
456
513
|
/**
|
|
457
514
|
* change status of a favorite
|
|
515
|
+
* @endpoint patch /favorite/{id}
|
|
458
516
|
* @param id
|
|
459
517
|
* @param PatchFavoriteBody
|
|
460
518
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
461
519
|
* @param reportProgress flag to report request and response progress.
|
|
520
|
+
* @param options additional options
|
|
462
521
|
*/
|
|
463
522
|
patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, observe?: 'body', reportProgress?: boolean, options?: {
|
|
464
523
|
httpHeaderAccept?: 'application/json';
|
|
@@ -477,9 +536,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
477
536
|
}): Observable<HttpEvent<SucceedEmptyResponse>>;
|
|
478
537
|
/**
|
|
479
538
|
* predict Main Item names base on provided prefix
|
|
539
|
+
* @endpoint get /public/item/predict
|
|
480
540
|
* @param prefix start part of the name
|
|
481
541
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
482
542
|
* @param reportProgress flag to report request and response progress.
|
|
543
|
+
* @param options additional options
|
|
483
544
|
*/
|
|
484
545
|
predictMainItemName(prefix: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
485
546
|
httpHeaderAccept?: 'application/json';
|
|
@@ -498,9 +559,11 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
498
559
|
}): Observable<HttpEvent<Array<string>>>;
|
|
499
560
|
/**
|
|
500
561
|
* Sync favorites from external source, merge with existing favorites
|
|
562
|
+
* @endpoint post /favorite/sync
|
|
501
563
|
* @param SyncFavoritesRequestBody
|
|
502
564
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
503
565
|
* @param reportProgress flag to report request and response progress.
|
|
566
|
+
* @param options additional options
|
|
504
567
|
*/
|
|
505
568
|
syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, observe?: 'body', reportProgress?: boolean, options?: {
|
|
506
569
|
httpHeaderAccept?: 'application/json';
|
|
@@ -519,11 +582,13 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
519
582
|
}): Observable<HttpEvent<SyncFavoritesResponse>>;
|
|
520
583
|
/**
|
|
521
584
|
* update progress of a favorite, will create/delete SubItemFavorite
|
|
585
|
+
* @endpoint post /favorite/progress
|
|
522
586
|
* @param mainItemId
|
|
523
587
|
* @param progress
|
|
524
588
|
* @param epType
|
|
525
589
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
526
590
|
* @param reportProgress flag to report request and response progress.
|
|
591
|
+
* @param options additional options
|
|
527
592
|
*/
|
|
528
593
|
updateFavoriteProgress(mainItemId: string, progress: number, epType: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
529
594
|
httpHeaderAccept?: 'application/json';
|