taxtank-core 1.0.5 → 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.
- package/fesm2022/taxtank-core.mjs +30 -2
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/db/Enums/property/property-corelogic-stats-confidence.type.enum.d.ts +5 -0
- package/src/lib/models/property/property-corelogic-stats.interface.d.ts +2 -0
- package/src/lib/services/http/property/property-document/property-document.service.d.ts +3 -1
- package/src/lib/services/http/rest/rest.service.d.ts +12 -0
@@ -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,
|
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
|
}
|
@@ -14439,6 +14460,13 @@ var PropertyMessagesEnum;
|
|
14439
14460
|
PropertyMessagesEnum["SHARESIGHT_DISCONNECTED"] = "Property disconnected from sharesight";
|
14440
14461
|
})(PropertyMessagesEnum || (PropertyMessagesEnum = {}));
|
14441
14462
|
|
14463
|
+
var PropertyCorelogicStatsConfidenceTypeEnum;
|
14464
|
+
(function (PropertyCorelogicStatsConfidenceTypeEnum) {
|
14465
|
+
PropertyCorelogicStatsConfidenceTypeEnum["LOW"] = "LOW";
|
14466
|
+
PropertyCorelogicStatsConfidenceTypeEnum["MEDIUM"] = "MEDIUM";
|
14467
|
+
PropertyCorelogicStatsConfidenceTypeEnum["HIGH"] = "HIGH";
|
14468
|
+
})(PropertyCorelogicStatsConfidenceTypeEnum || (PropertyCorelogicStatsConfidenceTypeEnum = {}));
|
14469
|
+
|
14442
14470
|
/**
|
14443
14471
|
* @Todo Alex remove functionality related to PropertyShare
|
14444
14472
|
* @TODO Alex (TT-1777): replace all event listeners with the new this.listen()
|
@@ -14548,7 +14576,7 @@ class PropertyService extends RestService$1 {
|
|
14548
14576
|
return stats;
|
14549
14577
|
}), catchError((error) => {
|
14550
14578
|
this.handleError(error);
|
14551
|
-
return of({ growthPercent: 0, lowMarketValue: 0, marketValue: 0, highMarketValue: 0 });
|
14579
|
+
return of({ growthPercent: 0, lowMarketValue: 0, marketValue: 0, highMarketValue: 0, confidence: PropertyCorelogicStatsConfidenceTypeEnum.LOW });
|
14552
14580
|
}));
|
14553
14581
|
}
|
14554
14582
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: PropertyService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|