ngx-techlify-core 14.2.1 → 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.
@@ -1,9 +1,8 @@
1
- import { HttpService } from '../core/http.service';
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 filters Restrictors to filter the set of models
21
- * @returns
19
+ * @param params Query parameters
20
+ * @return Observable<any>
22
21
  */
23
- index(filters: any): Promise<Object>;
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
- * @returns
27
+ * @param params Query parameters
28
+ * @return Observable<any>
29
29
  */
30
- store(model: any): Promise<Object>;
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
- * @returns
35
+ * @param params Query parameters
36
+ * @return Observable<any>
36
37
  */
37
- show(modelId: any): Promise<Object>;
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
- * @returns
43
+ * @param params Query parameters
44
+ * @return Observable<any>
43
45
  */
44
- update(model: any): Promise<Object>;
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
- * @returns
51
+ * @return Observable<any>
50
52
  */
51
- delete(model: any): Promise<Object>;
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,sBAAsB,CAAC;AAEnD;;;;;;;;;;GAUG;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,OAAO,EAAE,GAAG;IAIlB;;;;;OAKG;IACH,KAAK,CAAC,KAAK,EAAE,GAAG;IAIhB;;;;;OAKG;IACH,IAAI,CAAC,OAAO,EAAE,GAAG;IAIjB;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,GAAG;IAIjB;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,GAAG;CAKlB"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "14.2.1",
3
+ "version": "14.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=11",
6
6
  "@angular/core": ">=11",