@yuuvis/client-core 2.4.1 → 2.4.2

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.
@@ -5,7 +5,7 @@ import { HttpErrorResponse, HttpClient, HttpHeaders, HttpRequest, HttpParams, Ht
5
5
  import * as i0 from '@angular/core';
6
6
  import { inject, Injectable, InjectionToken, NgZone, Inject, signal, Directive, Pipe, makeEnvironmentProviders, importProvidersFrom, provideAppInitializer } from '@angular/core';
7
7
  import { tap, finalize, shareReplay, catchError, map, switchMap, first, filter, scan, delay } from 'rxjs/operators';
8
- import { EMPTY, of, forkJoin, Observable, ReplaySubject, Subject, BehaviorSubject, tap as tap$1, map as map$1, merge, fromEvent, filter as filter$1, debounceTime, throwError, isObservable, switchMap as switchMap$1 } from 'rxjs';
8
+ import { EMPTY, of, forkJoin, Observable, ReplaySubject, Subject, BehaviorSubject, tap as tap$1, map as map$1, merge, fromEvent, filter as filter$1, debounceTime, throwError, catchError as catchError$1, isObservable, switchMap as switchMap$1 } from 'rxjs';
9
9
  import { StorageMap } from '@ngx-pwa/local-storage';
10
10
  import { __decorate, __param, __metadata } from 'tslib';
11
11
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
@@ -1840,12 +1840,10 @@ class SystemService {
1840
1840
  if (type === 'string' && _classifications.has(Classification.STRING_REFERENCE)) {
1841
1841
  return InternalFieldType.STRING_REFERENCE;
1842
1842
  }
1843
- else if (type === 'string' && _classifications.has(Classification.STRING_ORGANIZATION)) {
1843
+ else if ((type === 'string' && _classifications.has(Classification.STRING_ORGANIZATION)) ||
1844
+ (type === 'string' && _classifications.has(Classification.STRING_ORGANIZATION_SET))) {
1844
1845
  return InternalFieldType.STRING_ORGANIZATION;
1845
1846
  }
1846
- else if (type === 'string' && _classifications.has(Classification.STRING_ORGANIZATION_SET)) {
1847
- return InternalFieldType.STRING_ORGANIZATION_SET;
1848
- }
1849
1847
  else if (type === 'string' && _classifications.has(Classification.STRING_CATALOG_I18N)) {
1850
1848
  return InternalFieldType.STRING_CATALOG_I18N;
1851
1849
  }
@@ -3081,7 +3079,6 @@ class BpmService {
3081
3079
  //TODO: replace with propper service call
3082
3080
  getProcessPoll() {
3083
3081
  const random = Math.random();
3084
- console.log('getProcessPoll: ', { random });
3085
3082
  return of([{ title: `task title ${random}`, duedate: new Date() }]);
3086
3083
  }
3087
3084
  getProcessInstance(processDefinitionKey, options) {
@@ -4126,7 +4123,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
4126
4123
  class IdmService {
4127
4124
  #backend = inject(BackendService);
4128
4125
  queryOrganizationEntity(term, targetTypes, size) {
4129
- return this.#backend.get(`/idm/search?search=${term}${size ? `&size=${size}` : ''}`).pipe(map$1((res) => [
4126
+ const searchParams = new URLSearchParams();
4127
+ searchParams.set('search', term);
4128
+ size && searchParams.set('size', size.toString());
4129
+ return this.#backend.get(`/idm/search?${searchParams.toString()}`).pipe(map$1((res) => [
4130
4130
  ...(targetTypes.includes('user')
4131
4131
  ? res.users.map((u) => ({
4132
4132
  id: u.id,
@@ -4143,6 +4143,14 @@ class IdmService {
4143
4143
  : [])
4144
4144
  ]));
4145
4145
  }
4146
+ getRoles(role) {
4147
+ const searchParams = new URLSearchParams();
4148
+ role && searchParams.set('search', role);
4149
+ return this.#backend.get(`/idm/roles?${searchParams.toString()}`).pipe(catchError$1(() => of([])));
4150
+ }
4151
+ getUserById(id) {
4152
+ return this.#backend.get(`/idm/users/${id}`).pipe(catchError$1(() => of(null)));
4153
+ }
4146
4154
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: IdmService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4147
4155
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: IdmService, providedIn: 'root' }); }
4148
4156
  }