@messaia/cdk 17.0.0-rc13 → 17.0.0-rc15
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/esm2022/lib/base/components/base.component.mjs +2 -2
- package/esm2022/lib/http/services/generic.service.mjs +1 -1
- package/esm2022/lib/menu/services/menu.resolve.mjs +4 -4
- package/fesm2022/messaia-cdk.mjs +4 -4
- package/fesm2022/messaia-cdk.mjs.map +1 -1
- package/lib/common/pipes/order.pipe.d.ts +1 -1
- package/lib/http/services/generic.service.d.ts +11 -11
- package/lib/menu/services/menu.resolve.d.ts +2 -1
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ export declare class OrderPipe implements PipeTransform {
|
|
|
20
20
|
* @param a
|
|
21
21
|
* @param b
|
|
22
22
|
*/
|
|
23
|
-
static defaultCompare(a: any, b: any):
|
|
23
|
+
static defaultCompare(a: any, b: any): 1 | -1 | 0;
|
|
24
24
|
/**
|
|
25
25
|
* Parse expression, split into items
|
|
26
26
|
* @param expression
|
|
@@ -23,7 +23,7 @@ export declare class GenericService<T extends any> {
|
|
|
23
23
|
* @param params Adds query params to the request
|
|
24
24
|
* @param headers Adds headers to the request
|
|
25
25
|
*/
|
|
26
|
-
get<T>(id: string | number, params?: Object, headers?: Object, handleError?: boolean): Observable<any>;
|
|
26
|
+
get<T>(id: string | number, params?: Object | null, headers?: Object, handleError?: boolean): Observable<any>;
|
|
27
27
|
/**
|
|
28
28
|
* Counts entities
|
|
29
29
|
*
|
|
@@ -32,7 +32,7 @@ export declare class GenericService<T extends any> {
|
|
|
32
32
|
* @param headers Adds headers to the request
|
|
33
33
|
* @param handleError Handle errors
|
|
34
34
|
*/
|
|
35
|
-
count(params?: Object, path?: string, headers?: Object, handleError?: boolean): Observable<number>;
|
|
35
|
+
count(params?: Object, path?: string | null, headers?: Object, handleError?: boolean): Observable<number>;
|
|
36
36
|
/**
|
|
37
37
|
* Gets a list of entities
|
|
38
38
|
*
|
|
@@ -40,14 +40,14 @@ export declare class GenericService<T extends any> {
|
|
|
40
40
|
* @param headers Adds headers to the request
|
|
41
41
|
* @param path A relative path to the action
|
|
42
42
|
*/
|
|
43
|
-
getList(params?: Object, path?: string, headers?: Object): Observable<any>;
|
|
43
|
+
getList(params?: Object, path?: string | null, headers?: Object | null): Observable<any>;
|
|
44
44
|
/**
|
|
45
45
|
* Loads data
|
|
46
46
|
* @param params Adds query params to the request
|
|
47
47
|
* @param path A relative path to the action
|
|
48
48
|
* @param headers Adds headers to the request
|
|
49
49
|
*/
|
|
50
|
-
loadList(params?: Object, path?: string, headers?: Object): void;
|
|
50
|
+
loadList(params?: Object, path?: string | null, headers?: Object): void;
|
|
51
51
|
/**
|
|
52
52
|
* Gets result list as Observable
|
|
53
53
|
*/
|
|
@@ -60,7 +60,7 @@ export declare class GenericService<T extends any> {
|
|
|
60
60
|
* @param httpOptions Additional http options, like headers and so on
|
|
61
61
|
* @param handleError Handle errors
|
|
62
62
|
*/
|
|
63
|
-
create<T>(entity: any, path?: string, httpOptions?: Object, handleError?: boolean): Observable<T>;
|
|
63
|
+
create<T>(entity: any, path?: string | null, httpOptions?: Object, handleError?: boolean): Observable<T>;
|
|
64
64
|
/**
|
|
65
65
|
* Updates an entity
|
|
66
66
|
*
|
|
@@ -69,7 +69,7 @@ export declare class GenericService<T extends any> {
|
|
|
69
69
|
* @param httpOptions Additional http options, like headers and so on
|
|
70
70
|
* @param handleError Handle errors
|
|
71
71
|
*/
|
|
72
|
-
update(id: string | number, entity: any, path?: string, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
72
|
+
update(id: string | number, entity: any, path?: string | null, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
73
73
|
/**
|
|
74
74
|
* Patches an entity
|
|
75
75
|
*
|
|
@@ -79,7 +79,7 @@ export declare class GenericService<T extends any> {
|
|
|
79
79
|
* @param httpOptions Additional http options, like headers and so on
|
|
80
80
|
* @param handleError Handle errors
|
|
81
81
|
*/
|
|
82
|
-
patch(id: string | number, body: any, path?: string, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
82
|
+
patch(id: string | number, body: any, path?: string | null, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
83
83
|
/**
|
|
84
84
|
* Patches multiple entities
|
|
85
85
|
*
|
|
@@ -89,7 +89,7 @@ export declare class GenericService<T extends any> {
|
|
|
89
89
|
* @param httpOptions Additional http options, like headers and so on
|
|
90
90
|
* @param handleError Handle errors
|
|
91
91
|
*/
|
|
92
|
-
patchList(ids: string[] | number[], body: any, path?: string, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
92
|
+
patchList(ids: string[] | number[], body: any, path?: string | null, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
93
93
|
/**
|
|
94
94
|
* Deletes an entity.
|
|
95
95
|
*
|
|
@@ -98,7 +98,7 @@ export declare class GenericService<T extends any> {
|
|
|
98
98
|
* @param httpOptions Additional http options, like headers and so on
|
|
99
99
|
* @param handleError Handle errors
|
|
100
100
|
*/
|
|
101
|
-
delete(id: string | number, path?: string, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
101
|
+
delete(id: string | number, path?: string | null, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
102
102
|
/**
|
|
103
103
|
* Deletes multiple entities.
|
|
104
104
|
*
|
|
@@ -107,7 +107,7 @@ export declare class GenericService<T extends any> {
|
|
|
107
107
|
* @param httpOptions Additional http options, like headers and so on
|
|
108
108
|
* @param handleError Handle errors
|
|
109
109
|
*/
|
|
110
|
-
deleteList(ids: string[] | number[], path?: string, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
110
|
+
deleteList(ids: string[] | number[], path?: string | null, httpOptions?: Object, handleError?: boolean): Observable<any>;
|
|
111
111
|
/**
|
|
112
112
|
* Downloads a file
|
|
113
113
|
*
|
|
@@ -138,7 +138,7 @@ export declare class GenericService<T extends any> {
|
|
|
138
138
|
*
|
|
139
139
|
* @param body
|
|
140
140
|
*/
|
|
141
|
-
protected toHttpHeaders(body?: Object): HttpHeaders;
|
|
141
|
+
protected toHttpHeaders(body?: Object | null): HttpHeaders;
|
|
142
142
|
/**
|
|
143
143
|
* Gets file name from Httpheaders: Content-Disposition
|
|
144
144
|
* @param disposition
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActivatedRoute, ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { MenuItem } from '../menu.module';
|
|
3
4
|
import { Menu } from '../models/menu';
|
|
4
5
|
import { MenuService } from './menu.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
@@ -33,7 +34,7 @@ export declare class SubMenuResolve {
|
|
|
33
34
|
* @param route
|
|
34
35
|
* @param state
|
|
35
36
|
*/
|
|
36
|
-
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot):
|
|
37
|
+
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): MenuItem | undefined;
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubMenuResolve, never>;
|
|
38
39
|
static ɵprov: i0.ɵɵInjectableDeclaration<SubMenuResolve>;
|
|
39
40
|
}
|