@irohalab/mira-sdk-angular 0.7.5 → 1.1.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/api/default.service.d.ts +37 -38
- package/api/default.serviceInterface.d.ts +12 -13
- package/esm2022/api/default.service.mjs +10 -4
- package/esm2022/api/default.serviceInterface.mjs +1 -1
- package/esm2022/model/errorResponse.mjs +12 -0
- package/esm2022/model/getOnAirItemListResponse.mjs +1 -1
- package/esm2022/model/itemEntity.mjs +1 -1
- package/esm2022/model/listFavoritesResponse.mjs +1 -1
- package/esm2022/model/listMainItemResponse.mjs +1 -1
- package/esm2022/model/listSubItemFavoriteResponse.mjs +1 -1
- package/esm2022/model/mainItem.mjs +1 -1
- package/esm2022/model/models.mjs +5 -7
- package/esm2022/model/propertyValue.mjs +11 -0
- package/esm2022/model/propertyValueValue.mjs +12 -0
- package/esm2022/model/subItem.mjs +1 -1
- package/esm2022/model/succeedEmptyResponse.mjs +12 -0
- package/fesm2022/irohalab-mira-sdk-angular.mjs +50 -11
- package/fesm2022/irohalab-mira-sdk-angular.mjs.map +1 -1
- package/model/{getSubItemResponse.d.ts → errorResponse.d.ts} +3 -7
- package/model/getOnAirItemListResponse.d.ts +0 -8
- package/model/itemEntity.d.ts +2 -2
- package/model/listFavoritesResponse.d.ts +0 -4
- package/model/listMainItemResponse.d.ts +0 -4
- package/model/listSubItemFavoriteResponse.d.ts +0 -4
- package/model/mainItem.d.ts +2 -2
- package/model/models.d.ts +4 -6
- package/model/propertyValue.d.ts +26 -0
- package/model/{itemEntityPropertiesValue.d.ts → propertyValueValue.d.ts} +2 -2
- package/model/subItem.d.ts +2 -2
- package/model/{createFavoriteResponse.d.ts → succeedEmptyResponse.d.ts} +2 -7
- package/package.json +1 -1
- package/esm2022/model/createFavoriteResponse.mjs +0 -2
- package/esm2022/model/createSubItemFavoriteResponse.mjs +0 -2
- package/esm2022/model/getFavoriteByMainItemIdResponse.mjs +0 -2
- package/esm2022/model/getMainItemByIdResponse.mjs +0 -2
- package/esm2022/model/getSubItemResponse.mjs +0 -2
- package/esm2022/model/itemEntityPropertiesValue.mjs +0 -12
- package/model/createSubItemFavoriteResponse.d.ts +0 -18
- package/model/getFavoriteByMainItemIdResponse.d.ts +0 -18
- package/model/getMainItemByIdResponse.d.ts +0 -18
package/api/default.service.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { CreateFavoriteResponse } from '../model/createFavoriteResponse';
|
|
4
3
|
import { CreateSubItemFavoriteRequestBody } from '../model/createSubItemFavoriteRequestBody';
|
|
5
|
-
import { CreateSubItemFavoriteResponse } from '../model/createSubItemFavoriteResponse';
|
|
6
4
|
import { Favorite } from '../model/favorite';
|
|
7
|
-
import { GetFavoriteByMainItemIdResponse } from '../model/getFavoriteByMainItemIdResponse';
|
|
8
|
-
import { GetMainItemByIdResponse } from '../model/getMainItemByIdResponse';
|
|
9
5
|
import { GetOnAirItemListResponse } from '../model/getOnAirItemListResponse';
|
|
10
|
-
import { GetSubItemResponse } from '../model/getSubItemResponse';
|
|
11
6
|
import { ListFavoritesResponse } from '../model/listFavoritesResponse';
|
|
12
7
|
import { ListMainItemResponse } from '../model/listMainItemResponse';
|
|
13
8
|
import { ListSubItemFavoriteResponse } from '../model/listSubItemFavoriteResponse';
|
|
9
|
+
import { MainItem } from '../model/mainItem';
|
|
14
10
|
import { PatchFavoriteBody } from '../model/patchFavoriteBody';
|
|
11
|
+
import { SubItem } from '../model/subItem';
|
|
12
|
+
import { SubItemFavorite } from '../model/subItemFavorite';
|
|
13
|
+
import { SucceedEmptyResponse } from '../model/succeedEmptyResponse';
|
|
15
14
|
import { MiraConfiguration } from '../configuration';
|
|
16
15
|
import { DefaultMiraInterface } from './default.serviceInterface';
|
|
17
16
|
import * as i0 from "@angular/core";
|
|
@@ -34,17 +33,17 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
34
33
|
httpHeaderAccept?: 'application/json';
|
|
35
34
|
context?: HttpContext;
|
|
36
35
|
transferCache?: boolean;
|
|
37
|
-
}): Observable<
|
|
36
|
+
}): Observable<Favorite>;
|
|
38
37
|
createFavorite(Favorite: Favorite, observe?: 'response', reportProgress?: boolean, options?: {
|
|
39
38
|
httpHeaderAccept?: 'application/json';
|
|
40
39
|
context?: HttpContext;
|
|
41
40
|
transferCache?: boolean;
|
|
42
|
-
}): Observable<HttpResponse<
|
|
41
|
+
}): Observable<HttpResponse<Favorite>>;
|
|
43
42
|
createFavorite(Favorite: Favorite, observe?: 'events', reportProgress?: boolean, options?: {
|
|
44
43
|
httpHeaderAccept?: 'application/json';
|
|
45
44
|
context?: HttpContext;
|
|
46
45
|
transferCache?: boolean;
|
|
47
|
-
}): Observable<HttpEvent<
|
|
46
|
+
}): Observable<HttpEvent<Favorite>>;
|
|
48
47
|
/**
|
|
49
48
|
* create a SubItemFavorite
|
|
50
49
|
* @param CreateSubItemFavoriteRequestBody
|
|
@@ -55,17 +54,17 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
55
54
|
httpHeaderAccept?: 'application/json';
|
|
56
55
|
context?: HttpContext;
|
|
57
56
|
transferCache?: boolean;
|
|
58
|
-
}): Observable<
|
|
57
|
+
}): Observable<SubItemFavorite>;
|
|
59
58
|
createSubItemFavorite(CreateSubItemFavoriteRequestBody: CreateSubItemFavoriteRequestBody, observe?: 'response', reportProgress?: boolean, options?: {
|
|
60
59
|
httpHeaderAccept?: 'application/json';
|
|
61
60
|
context?: HttpContext;
|
|
62
61
|
transferCache?: boolean;
|
|
63
|
-
}): Observable<HttpResponse<
|
|
62
|
+
}): Observable<HttpResponse<SubItemFavorite>>;
|
|
64
63
|
createSubItemFavorite(CreateSubItemFavoriteRequestBody: CreateSubItemFavoriteRequestBody, observe?: 'events', reportProgress?: boolean, options?: {
|
|
65
64
|
httpHeaderAccept?: 'application/json';
|
|
66
65
|
context?: HttpContext;
|
|
67
66
|
transferCache?: boolean;
|
|
68
|
-
}): Observable<HttpEvent<
|
|
67
|
+
}): Observable<HttpEvent<SubItemFavorite>>;
|
|
69
68
|
/**
|
|
70
69
|
* Delete a favorite
|
|
71
70
|
* @param id
|
|
@@ -73,20 +72,20 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
73
72
|
* @param reportProgress flag to report request and response progress.
|
|
74
73
|
*/
|
|
75
74
|
deleteFavorite(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
76
|
-
httpHeaderAccept?:
|
|
75
|
+
httpHeaderAccept?: 'application/json';
|
|
77
76
|
context?: HttpContext;
|
|
78
77
|
transferCache?: boolean;
|
|
79
|
-
}): Observable<
|
|
78
|
+
}): Observable<SucceedEmptyResponse>;
|
|
80
79
|
deleteFavorite(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
81
|
-
httpHeaderAccept?:
|
|
80
|
+
httpHeaderAccept?: 'application/json';
|
|
82
81
|
context?: HttpContext;
|
|
83
82
|
transferCache?: boolean;
|
|
84
|
-
}): Observable<HttpResponse<
|
|
83
|
+
}): Observable<HttpResponse<SucceedEmptyResponse>>;
|
|
85
84
|
deleteFavorite(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
86
|
-
httpHeaderAccept?:
|
|
85
|
+
httpHeaderAccept?: 'application/json';
|
|
87
86
|
context?: HttpContext;
|
|
88
87
|
transferCache?: boolean;
|
|
89
|
-
}): Observable<HttpEvent<
|
|
88
|
+
}): Observable<HttpEvent<SucceedEmptyResponse>>;
|
|
90
89
|
/**
|
|
91
90
|
* Delete a SubItemFavorite
|
|
92
91
|
* @param id
|
|
@@ -94,20 +93,20 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
94
93
|
* @param reportProgress flag to report request and response progress.
|
|
95
94
|
*/
|
|
96
95
|
deleteSubItemFavorite(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
97
|
-
httpHeaderAccept?:
|
|
96
|
+
httpHeaderAccept?: 'application/json';
|
|
98
97
|
context?: HttpContext;
|
|
99
98
|
transferCache?: boolean;
|
|
100
|
-
}): Observable<
|
|
99
|
+
}): Observable<SucceedEmptyResponse>;
|
|
101
100
|
deleteSubItemFavorite(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
102
|
-
httpHeaderAccept?:
|
|
101
|
+
httpHeaderAccept?: 'application/json';
|
|
103
102
|
context?: HttpContext;
|
|
104
103
|
transferCache?: boolean;
|
|
105
|
-
}): Observable<HttpResponse<
|
|
104
|
+
}): Observable<HttpResponse<SucceedEmptyResponse>>;
|
|
106
105
|
deleteSubItemFavorite(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
107
|
-
httpHeaderAccept?:
|
|
106
|
+
httpHeaderAccept?: 'application/json';
|
|
108
107
|
context?: HttpContext;
|
|
109
108
|
transferCache?: boolean;
|
|
110
|
-
}): Observable<HttpEvent<
|
|
109
|
+
}): Observable<HttpEvent<SucceedEmptyResponse>>;
|
|
111
110
|
/**
|
|
112
111
|
* get favorite by MainItem id
|
|
113
112
|
* @param id
|
|
@@ -118,17 +117,17 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
118
117
|
httpHeaderAccept?: 'application/json';
|
|
119
118
|
context?: HttpContext;
|
|
120
119
|
transferCache?: boolean;
|
|
121
|
-
}): Observable<
|
|
120
|
+
}): Observable<Favorite>;
|
|
122
121
|
getFavoriteByMainItemId(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
123
122
|
httpHeaderAccept?: 'application/json';
|
|
124
123
|
context?: HttpContext;
|
|
125
124
|
transferCache?: boolean;
|
|
126
|
-
}): Observable<HttpResponse<
|
|
125
|
+
}): Observable<HttpResponse<Favorite>>;
|
|
127
126
|
getFavoriteByMainItemId(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
128
127
|
httpHeaderAccept?: 'application/json';
|
|
129
128
|
context?: HttpContext;
|
|
130
129
|
transferCache?: boolean;
|
|
131
|
-
}): Observable<HttpEvent<
|
|
130
|
+
}): Observable<HttpEvent<Favorite>>;
|
|
132
131
|
/**
|
|
133
132
|
* get a MainItem by id
|
|
134
133
|
* @param id MainItem id
|
|
@@ -141,17 +140,17 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
141
140
|
httpHeaderAccept?: 'application/json';
|
|
142
141
|
context?: HttpContext;
|
|
143
142
|
transferCache?: boolean;
|
|
144
|
-
}): Observable<
|
|
143
|
+
}): Observable<MainItem>;
|
|
145
144
|
getMainItemById(id: string, coverImage?: string, subItems?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
146
145
|
httpHeaderAccept?: 'application/json';
|
|
147
146
|
context?: HttpContext;
|
|
148
147
|
transferCache?: boolean;
|
|
149
|
-
}): Observable<HttpResponse<
|
|
148
|
+
}): Observable<HttpResponse<MainItem>>;
|
|
150
149
|
getMainItemById(id: string, coverImage?: string, subItems?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
151
150
|
httpHeaderAccept?: 'application/json';
|
|
152
151
|
context?: HttpContext;
|
|
153
152
|
transferCache?: boolean;
|
|
154
|
-
}): Observable<HttpEvent<
|
|
153
|
+
}): Observable<HttpEvent<MainItem>>;
|
|
155
154
|
/**
|
|
156
155
|
* get a SubItem by id
|
|
157
156
|
* @param id SubItem Id
|
|
@@ -162,17 +161,17 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
162
161
|
httpHeaderAccept?: 'application/json';
|
|
163
162
|
context?: HttpContext;
|
|
164
163
|
transferCache?: boolean;
|
|
165
|
-
}): Observable<
|
|
164
|
+
}): Observable<SubItem>;
|
|
166
165
|
getSubItemById(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
167
166
|
httpHeaderAccept?: 'application/json';
|
|
168
167
|
context?: HttpContext;
|
|
169
168
|
transferCache?: boolean;
|
|
170
|
-
}): Observable<HttpResponse<
|
|
169
|
+
}): Observable<HttpResponse<SubItem>>;
|
|
171
170
|
getSubItemById(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
172
171
|
httpHeaderAccept?: 'application/json';
|
|
173
172
|
context?: HttpContext;
|
|
174
173
|
transferCache?: boolean;
|
|
175
|
-
}): Observable<HttpEvent<
|
|
174
|
+
}): Observable<HttpEvent<SubItem>>;
|
|
176
175
|
/**
|
|
177
176
|
* list favorites for user
|
|
178
177
|
* @param status
|
|
@@ -280,20 +279,20 @@ export declare class DefaultMira implements DefaultMiraInterface {
|
|
|
280
279
|
* @param reportProgress flag to report request and response progress.
|
|
281
280
|
*/
|
|
282
281
|
patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, observe?: 'body', reportProgress?: boolean, options?: {
|
|
283
|
-
httpHeaderAccept?:
|
|
282
|
+
httpHeaderAccept?: 'application/json';
|
|
284
283
|
context?: HttpContext;
|
|
285
284
|
transferCache?: boolean;
|
|
286
|
-
}): Observable<
|
|
285
|
+
}): Observable<SucceedEmptyResponse>;
|
|
287
286
|
patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, observe?: 'response', reportProgress?: boolean, options?: {
|
|
288
|
-
httpHeaderAccept?:
|
|
287
|
+
httpHeaderAccept?: 'application/json';
|
|
289
288
|
context?: HttpContext;
|
|
290
289
|
transferCache?: boolean;
|
|
291
|
-
}): Observable<HttpResponse<
|
|
290
|
+
}): Observable<HttpResponse<SucceedEmptyResponse>>;
|
|
292
291
|
patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, observe?: 'events', reportProgress?: boolean, options?: {
|
|
293
|
-
httpHeaderAccept?:
|
|
292
|
+
httpHeaderAccept?: 'application/json';
|
|
294
293
|
context?: HttpContext;
|
|
295
294
|
transferCache?: boolean;
|
|
296
|
-
}): Observable<HttpEvent<
|
|
295
|
+
}): Observable<HttpEvent<SucceedEmptyResponse>>;
|
|
297
296
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultMira, [null, { optional: true; }, { optional: true; }]>;
|
|
298
297
|
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultMira>;
|
|
299
298
|
}
|
|
@@ -10,18 +10,17 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { HttpHeaders } from '@angular/common/http';
|
|
12
12
|
import { Observable } from 'rxjs';
|
|
13
|
-
import { CreateFavoriteResponse } from '../model/models';
|
|
14
13
|
import { CreateSubItemFavoriteRequestBody } from '../model/models';
|
|
15
|
-
import { CreateSubItemFavoriteResponse } from '../model/models';
|
|
16
14
|
import { Favorite } from '../model/models';
|
|
17
|
-
import { GetFavoriteByMainItemIdResponse } from '../model/models';
|
|
18
|
-
import { GetMainItemByIdResponse } from '../model/models';
|
|
19
15
|
import { GetOnAirItemListResponse } from '../model/models';
|
|
20
|
-
import { GetSubItemResponse } from '../model/models';
|
|
21
16
|
import { ListFavoritesResponse } from '../model/models';
|
|
22
17
|
import { ListMainItemResponse } from '../model/models';
|
|
23
18
|
import { ListSubItemFavoriteResponse } from '../model/models';
|
|
19
|
+
import { MainItem } from '../model/models';
|
|
24
20
|
import { PatchFavoriteBody } from '../model/models';
|
|
21
|
+
import { SubItem } from '../model/models';
|
|
22
|
+
import { SubItemFavorite } from '../model/models';
|
|
23
|
+
import { SucceedEmptyResponse } from '../model/models';
|
|
25
24
|
import { MiraConfiguration } from '../configuration';
|
|
26
25
|
export interface DefaultMiraInterface {
|
|
27
26
|
defaultHeaders: HttpHeaders;
|
|
@@ -31,31 +30,31 @@ export interface DefaultMiraInterface {
|
|
|
31
30
|
* create a favorite for user and item
|
|
32
31
|
* @param Favorite
|
|
33
32
|
*/
|
|
34
|
-
createFavorite(Favorite: Favorite, extraHttpRequestParams?: any): Observable<
|
|
33
|
+
createFavorite(Favorite: Favorite, extraHttpRequestParams?: any): Observable<Favorite>;
|
|
35
34
|
/**
|
|
36
35
|
*
|
|
37
36
|
* create a SubItemFavorite
|
|
38
37
|
* @param CreateSubItemFavoriteRequestBody
|
|
39
38
|
*/
|
|
40
|
-
createSubItemFavorite(CreateSubItemFavoriteRequestBody: CreateSubItemFavoriteRequestBody, extraHttpRequestParams?: any): Observable<
|
|
39
|
+
createSubItemFavorite(CreateSubItemFavoriteRequestBody: CreateSubItemFavoriteRequestBody, extraHttpRequestParams?: any): Observable<SubItemFavorite>;
|
|
41
40
|
/**
|
|
42
41
|
*
|
|
43
42
|
* Delete a favorite
|
|
44
43
|
* @param id
|
|
45
44
|
*/
|
|
46
|
-
deleteFavorite(id: string, extraHttpRequestParams?: any): Observable<
|
|
45
|
+
deleteFavorite(id: string, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
|
|
47
46
|
/**
|
|
48
47
|
*
|
|
49
48
|
* Delete a SubItemFavorite
|
|
50
49
|
* @param id
|
|
51
50
|
*/
|
|
52
|
-
deleteSubItemFavorite(id: string, extraHttpRequestParams?: any): Observable<
|
|
51
|
+
deleteSubItemFavorite(id: string, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
|
|
53
52
|
/**
|
|
54
53
|
*
|
|
55
54
|
* get favorite by MainItem id
|
|
56
55
|
* @param id
|
|
57
56
|
*/
|
|
58
|
-
getFavoriteByMainItemId(id: string, extraHttpRequestParams?: any): Observable<
|
|
57
|
+
getFavoriteByMainItemId(id: string, extraHttpRequestParams?: any): Observable<Favorite>;
|
|
59
58
|
/**
|
|
60
59
|
*
|
|
61
60
|
* get a MainItem by id
|
|
@@ -63,13 +62,13 @@ export interface DefaultMiraInterface {
|
|
|
63
62
|
* @param coverImage populate coverImage if true
|
|
64
63
|
* @param subItems populate subItems if true
|
|
65
64
|
*/
|
|
66
|
-
getMainItemById(id: string, coverImage?: string, subItems?: string, extraHttpRequestParams?: any): Observable<
|
|
65
|
+
getMainItemById(id: string, coverImage?: string, subItems?: string, extraHttpRequestParams?: any): Observable<MainItem>;
|
|
67
66
|
/**
|
|
68
67
|
*
|
|
69
68
|
* get a SubItem by id
|
|
70
69
|
* @param id SubItem Id
|
|
71
70
|
*/
|
|
72
|
-
getSubItemById(id: string, extraHttpRequestParams?: any): Observable<
|
|
71
|
+
getSubItemById(id: string, extraHttpRequestParams?: any): Observable<SubItem>;
|
|
73
72
|
/**
|
|
74
73
|
*
|
|
75
74
|
* list favorites for user
|
|
@@ -115,5 +114,5 @@ export interface DefaultMiraInterface {
|
|
|
115
114
|
* @param id
|
|
116
115
|
* @param PatchFavoriteBody
|
|
117
116
|
*/
|
|
118
|
-
patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, extraHttpRequestParams?: any): Observable<
|
|
117
|
+
patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, extraHttpRequestParams?: any): Observable<SucceedEmptyResponse>;
|
|
119
118
|
}
|