taxtank-core 0.2.1 → 0.2.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.
- package/bundles/taxtank-core.umd.js +12 -0
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/endpoint/endpoints.const.js +3 -1
- package/esm2015/lib/services/bank/bank-connection.service.js +10 -1
- package/fesm2015/taxtank-core.js +11 -0
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/services/bank/bank-connection.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -6045,6 +6045,8 @@
|
|
|
6045
6045
|
USER_UPDATE_PHOTO_POST: new Endpoint('POST', '\\/users\\/photo\.\*'),
|
|
6046
6046
|
USER_STATUS_PUT: new Endpoint('PUT', '\\/users\\/status'),
|
|
6047
6047
|
VEHICLES_GET: new Endpoint('GET', '\\/vehicles'),
|
|
6048
|
+
VEHICLES_POST: new Endpoint('POST', '\\/vehicles'),
|
|
6049
|
+
VEHICLES_PUT: new Endpoint('PUT', '\\/vehicles\\/\\d+'),
|
|
6048
6050
|
VEHICLE_CLAIMS_GET: new Endpoint('GET', '\\/vehicle-claims'),
|
|
6049
6051
|
VEHICLE_CLAIMS_POST: new Endpoint('POST', '\\/vehicle-claims'),
|
|
6050
6052
|
VEHICLE_LOGBOOK_POST: new Endpoint('POST', '\\/vehicles\\/\\d+\\/logbooks'),
|
|
@@ -7914,8 +7916,12 @@
|
|
|
7914
7916
|
_this.environment = environment;
|
|
7915
7917
|
_this.modelClass = BankConnection;
|
|
7916
7918
|
_this.url = 'bank-connections';
|
|
7919
|
+
_this.listenEvents();
|
|
7917
7920
|
return _this;
|
|
7918
7921
|
}
|
|
7922
|
+
BankConnectionService.prototype.listenEvents = function () {
|
|
7923
|
+
this.listenToAddedBankAccounts();
|
|
7924
|
+
};
|
|
7919
7925
|
BankConnectionService.prototype.post = function (bankConnection) {
|
|
7920
7926
|
var _this = this;
|
|
7921
7927
|
return this.http.post(this.environment.apiV2 + "/" + this.url, bankConnection)
|
|
@@ -7924,6 +7930,12 @@
|
|
|
7924
7930
|
return classTransformer.plainToClass(BankConnection, bankConnectionBase);
|
|
7925
7931
|
}));
|
|
7926
7932
|
};
|
|
7933
|
+
BankConnectionService.prototype.listenToAddedBankAccounts = function () {
|
|
7934
|
+
var _this = this;
|
|
7935
|
+
this.eventDispatcherService.on(exports.AppEventTypeEnum.BANK_ACCOUNT_CREATED).subscribe(function () {
|
|
7936
|
+
_this.resetCache();
|
|
7937
|
+
});
|
|
7938
|
+
};
|
|
7927
7939
|
return BankConnectionService;
|
|
7928
7940
|
}(BaseRestService));
|
|
7929
7941
|
BankConnectionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|