ngx-techlify-core 14.2.0 → 14.3.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/esm2020/lib/base-model/techlify-service.class.mjs +20 -19
- package/esm2020/lib/request-helper/request-helper.service.mjs +2 -3
- package/fesm2015/ngx-techlify-core.mjs +33 -34
- package/fesm2015/ngx-techlify-core.mjs.map +1 -1
- package/fesm2020/ngx-techlify-core.mjs +33 -34
- package/fesm2020/ngx-techlify-core.mjs.map +1 -1
- package/lib/base-model/techlify-service.class.d.ts +16 -14
- package/lib/base-model/techlify-service.class.d.ts.map +1 -1
- package/lib/request-helper/request-helper.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpService } from '../core
|
|
1
|
+
import { HttpService } from '../core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
/**
|
|
3
4
|
* Interface used to ensure we have a consistent structure across our listing pages
|
|
4
5
|
*
|
|
5
|
-
* @todo This should be moved to ngx-techlify-core
|
|
6
|
-
*
|
|
7
6
|
* Advantages of this abstract class
|
|
8
7
|
* - Less code, less maintenance, less bugs
|
|
9
8
|
* - more consistent code
|
|
@@ -17,37 +16,40 @@ export declare class TechlifyServiceBaseClass {
|
|
|
17
16
|
/**
|
|
18
17
|
* Loads a set of the model this service is for
|
|
19
18
|
*
|
|
20
|
-
* @param
|
|
21
|
-
* @
|
|
19
|
+
* @param params Query parameters
|
|
20
|
+
* @return Observable<any>
|
|
22
21
|
*/
|
|
23
|
-
index(
|
|
22
|
+
index(params?: any): Observable<any>;
|
|
24
23
|
/**
|
|
25
24
|
* Add a new record to the database
|
|
26
25
|
*
|
|
27
26
|
* @param model The data of the model to add
|
|
28
|
-
* @
|
|
27
|
+
* @param params Query parameters
|
|
28
|
+
* @return Observable<any>
|
|
29
29
|
*/
|
|
30
|
-
store(model: any):
|
|
30
|
+
store(model: any, params?: any): Observable<any>;
|
|
31
31
|
/**
|
|
32
32
|
* Load a single model record, often with all relations and related data
|
|
33
33
|
*
|
|
34
34
|
* @param modelId ID of the model to load
|
|
35
|
-
* @
|
|
35
|
+
* @param params Query parameters
|
|
36
|
+
* @return Observable<any>
|
|
36
37
|
*/
|
|
37
|
-
show(modelId: any):
|
|
38
|
+
show(modelId: any, params?: any): Observable<any>;
|
|
38
39
|
/**
|
|
39
40
|
* Update fields of a single existing model
|
|
40
41
|
*
|
|
41
42
|
* @param model Model to update
|
|
42
|
-
* @
|
|
43
|
+
* @param params Query parameters
|
|
44
|
+
* @return Observable<any>
|
|
43
45
|
*/
|
|
44
|
-
update(model: any):
|
|
46
|
+
update(model: any, params?: any): Observable<any>;
|
|
45
47
|
/**
|
|
46
48
|
* Delete a single model
|
|
47
49
|
*
|
|
48
50
|
* @param model Model to delete
|
|
49
|
-
* @
|
|
51
|
+
* @return Observable<any>
|
|
50
52
|
*/
|
|
51
|
-
delete(model: any):
|
|
53
|
+
delete(model: any): Observable<any>;
|
|
52
54
|
}
|
|
53
55
|
//# sourceMappingURL=techlify-service.class.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"techlify-service.class.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-techlify-core/src/lib/base-model/techlify-service.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"techlify-service.class.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-techlify-core/src/lib/base-model/techlify-service.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC;;;;;;;;GAQG;AACH,qBAAa,wBAAwB;IAIvB,SAAS,CAAC,IAAI,EAAE,WAAW;IAFvC,SAAS,CAAC,OAAO,SAAkC;gBAE7B,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM;IAIxD;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAIpC;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAIhD;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAIjD;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAIjD;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;CAKpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-helper.service.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-techlify-core/src/lib/request-helper/request-helper.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;;
|
|
1
|
+
{"version":3,"file":"request-helper.service.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-techlify-core/src/lib/request-helper/request-helper.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;;AAGhD,qBAGa,oBAAoB;IAG7B,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,cAAc;gBADd,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc;IAGxC;;;;OAIG;IACH,yBAAyB,CAAC,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,GAAG,GAAG,IAAI;IAU7E;;;;OAIG;IACH,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG;IAmBjC;;;;OAIG;IACH,iBAAiB,CAAC,WAAW,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAWrD;;;;;OAKG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO;IAavF;;;OAGG;IACH,SAAS,CAAC,GAAG,EAAC,MAAM,GAAE,OAAO;yCArFlB,oBAAoB;6CAApB,oBAAoB;CAgG9B"}
|