@idsoftsource/initial-process 4.0.4 → 4.0.5

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.
@@ -2941,15 +2941,18 @@ class UserDocumentService {
2941
2941
  return params;
2942
2942
  }
2943
2943
  getDocumentTypes(maintype, providerId, searchText = '', professionId = null) {
2944
- let filter = `isActive=true,mainType=${maintype}`;
2944
+ let params = new HttpParams()
2945
+ .set('MainType', maintype)
2946
+ .set('IsActive', true);
2947
+ if (providerId) {
2948
+ params = params.set('TargetProviderId', providerId);
2949
+ }
2945
2950
  if (searchText.trim()) {
2946
- filter += `,type=*${searchText}/i`;
2951
+ params = params.set('Type', searchText.trim());
2947
2952
  }
2948
2953
  if (professionId) {
2949
- filter += `,professionId=${professionId}`;
2954
+ params = params.append('ProfessionIds', professionId);
2950
2955
  }
2951
- const params = new HttpParams().set('filter', filter);
2952
- params.set('tagetProviderId', '00000000-0000-0000-0000-000000000000');
2953
2956
  return this.httpClient.get(`${this.baseUrlUpdated}/GetDocumentType`, { params });
2954
2957
  }
2955
2958
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UserDocumentService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });