@veloceapps/api 8.0.0-41 → 8.0.0-42

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.
@@ -2904,9 +2904,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2904
2904
  class PortalsApiService {
2905
2905
  constructor(baseHttpService) {
2906
2906
  this.baseHttpService = baseHttpService;
2907
- this.serviceUrl = '/admin/portals';
2907
+ this.serviceUrl = '/portals';
2908
+ this.getPortals$ = (skip = 1, name = '') => {
2909
+ let params = new HttpParams();
2910
+ params = params.append('count', (PortalsApiService.MAX_RESULTS * skip).toString());
2911
+ params = params.append('skip', '0');
2912
+ params = params.append('name', name);
2913
+ return of([]);
2914
+ return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
2915
+ };
2916
+ this.searchPortals$ = (skip = 0, expression) => {
2917
+ let params = new HttpParams();
2918
+ params = params.set('skip', '' + skip);
2919
+ params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
2920
+ return this.baseHttpService.api({
2921
+ method: 'post',
2922
+ url: `${this.serviceUrl}/search`,
2923
+ params,
2924
+ body: expression || {},
2925
+ });
2926
+ };
2908
2927
  }
2909
2928
  }
2929
+ PortalsApiService.MAX_RESULTS = 60;
2910
2930
  PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2911
2931
  PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
2912
2932
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{