taxtank-core 1.0.6 → 1.0.7

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 { formatDate, CommonModule, CurrencyPipe, DatePipe } from '@angular/commo
5
5
  import * as i1 from '@angular/common/http';
6
6
  import { HttpParams, HttpClient, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
7
7
  import { map, catchError, mergeMap, filter, first as first$1, finalize, startWith, debounceTime, distinctUntilChanged } from 'rxjs/operators';
8
- import { ReplaySubject, throwError, Subject, Observable, of, combineLatest, BehaviorSubject, forkJoin, from, merge as merge$1 } from 'rxjs';
8
+ import { ReplaySubject, throwError, Subject, Observable, of, forkJoin, combineLatest, BehaviorSubject, from, merge as merge$1 } from 'rxjs';
9
9
  import { plainToClass, Type, Transform, Exclude, Expose, classToPlain } from 'class-transformer';
10
10
  import 'reflect-metadata';
11
11
  import { __decorate } from 'tslib';
@@ -11599,6 +11599,12 @@ let RestService$1 = class RestService extends DataService {
11599
11599
  return result;
11600
11600
  }), catchError((error) => this.handleError(error)));
11601
11601
  }
11602
+ /**
11603
+ * Create multiple new Model instances in database for resources which support only single entity post
11604
+ */
11605
+ postParallel(models) {
11606
+ return forkJoin(models.map(model => this.post(model)));
11607
+ }
11602
11608
  /**
11603
11609
  * Change an existing Model instance in database
11604
11610
  */
@@ -11627,6 +11633,12 @@ let RestService$1 = class RestService extends DataService {
11627
11633
  return result;
11628
11634
  }));
11629
11635
  }
11636
+ /**
11637
+ * Change multiple existing Model instances in database for resources which support only single entity put
11638
+ */
11639
+ putParallel(models) {
11640
+ return forkJoin(models.map(model => this.post(model)));
11641
+ }
11630
11642
  /**
11631
11643
  * Remove a Model instance from database
11632
11644
  */
@@ -11663,6 +11675,12 @@ let RestService$1 = class RestService extends DataService {
11663
11675
  }
11664
11676
  }), catchError((error) => this.handleError(error)));
11665
11677
  }
11678
+ /**
11679
+ * Remove multiple Model instances from database for resources which support only single entity delete
11680
+ */
11681
+ deleteParallel(models) {
11682
+ return forkJoin(models.map(model => this.delete(model))).pipe(map(() => undefined));
11683
+ }
11666
11684
  /**
11667
11685
  * method with messages that can be redefined in other classes to customize httpErrorMessages
11668
11686
  */
@@ -14232,6 +14250,9 @@ class PropertyDocumentService extends RestService$1 {
14232
14250
  this.endpointUri = 'property-documents';
14233
14251
  this.disabledMethods = ['postBatch', 'putBatch'];
14234
14252
  }
14253
+ postFiles(property, files) {
14254
+ return this.postParallel(files.map(file => plainToClass(PropertyDocument, { file, property })));
14255
+ }
14235
14256
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
14236
14257
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' }); }
14237
14258
  }