taxtank-core 0.8.5 → 0.9.1
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 +147 -96
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/collection.js +2 -5
- package/esm2015/lib/db/Models/transaction-base.js +2 -1
- package/esm2015/lib/models/toast/toast-type.enum.js +8 -0
- package/esm2015/lib/models/toast/toast.js +9 -0
- package/esm2015/lib/services/http/address/address.service.js +39 -0
- package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +118 -0
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +52 -0
- package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +89 -0
- package/esm2015/lib/services/http/bank/bank.service.js +24 -0
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +94 -0
- package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +38 -0
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +89 -0
- package/esm2015/lib/services/http/chat/chat.service.js +77 -0
- package/esm2015/lib/services/http/chat/message/message.service.js +65 -0
- package/esm2015/lib/services/http/chat/message-document/message-document.service.js +118 -0
- package/esm2015/lib/services/{depreciation/capital-project.service.js → http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js} +7 -7
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +146 -0
- package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +84 -0
- package/esm2015/lib/services/{client → http/firm/client-invite}/client-invite.service.js +7 -7
- package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +98 -0
- package/esm2015/lib/services/http/firm/employee/employee.service.js +39 -0
- package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +53 -0
- package/esm2015/lib/services/http/firm/firm.service.js +79 -0
- package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +37 -0
- package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +90 -0
- package/esm2015/lib/services/http/income-source/income-source.service.js +109 -0
- package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +90 -0
- package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +87 -0
- package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +73 -0
- package/esm2015/lib/services/http/loan/loan.service.js +145 -0
- package/esm2015/lib/services/http/property/property-category/property-category.service.js +23 -0
- package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +47 -0
- package/esm2015/lib/services/http/property/property-document/property-document.service.js +70 -0
- package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +20 -0
- package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +21 -0
- package/esm2015/lib/services/http/property/property-share/property-share.service.js +115 -0
- package/esm2015/lib/services/http/property/property.service.js +126 -0
- package/esm2015/lib/services/http/rest/rest.service.js +190 -0
- package/esm2015/lib/services/http/service-notification/service-notification.service.js +65 -0
- package/esm2015/lib/services/http/subscription/subscription.service.js +157 -0
- package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +41 -0
- package/esm2015/lib/services/http/tax-review/tax-review.service.js +103 -0
- package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +71 -0
- package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +85 -0
- package/esm2015/lib/services/http/transaction/transaction.service.js +326 -0
- package/esm2015/lib/services/http/user/occupation/occupation.service.js +45 -0
- package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +59 -0
- package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +29 -0
- package/esm2015/lib/services/http/user/user.service.js +124 -0
- package/esm2015/lib/services/http/vehicle/vehicle.service.js +237 -0
- package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +45 -0
- package/esm2015/lib/services/toast/toast.service.js +26 -0
- package/esm2015/public-api.js +51 -48
- package/fesm2015/taxtank-core.js +99 -53
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/collection.d.ts +1 -4
- package/lib/models/toast/toast-type.enum.d.ts +6 -0
- package/lib/models/toast/toast.d.ts +10 -0
- package/lib/services/{address → http/address}/address.service.d.ts +1 -1
- package/lib/services/{bank → http/bank/bank-account}/bank-account.service.d.ts +5 -5
- package/lib/services/{bank → http/bank/bank-connection}/bank-connection.service.d.ts +5 -5
- package/lib/services/{bank → http/bank/bank-transaction}/bank-transaction.service.d.ts +5 -5
- package/lib/services/{bank → http/bank}/bank.service.d.ts +4 -4
- package/lib/services/{bank → http/bank/basiq}/basiq.service.d.ts +7 -7
- package/lib/services/{chart-accounts → http/chart-accounts/chart-accounts-depreciations}/chart-accounts-depreciations.service.d.ts +4 -4
- package/lib/services/{chart-accounts → http/chart-accounts}/chart-accounts.service.d.ts +3 -3
- package/lib/services/{chat → http/chat}/chat.service.d.ts +7 -7
- package/lib/services/{chat → http/chat/message}/message.service.d.ts +7 -7
- package/lib/services/{chat → http/chat/message-document}/message-document.service.d.ts +3 -3
- package/lib/services/{depreciation/capital-project.service.d.ts → http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts} +4 -4
- package/lib/services/{depreciation → http/depreciation}/depreciation.service.d.ts +5 -5
- package/lib/services/{document → http/document/document-folder}/document-folder.service.d.ts +6 -6
- package/lib/services/{client → http/firm/client-invite}/client-invite.service.d.ts +4 -4
- package/lib/services/{client → http/firm/client-movement}/client-movement.service.d.ts +7 -7
- package/lib/services/{employee → http/firm/employee}/employee.service.d.ts +4 -4
- package/lib/services/{employee → http/firm/employee-invite}/employee-invite.service.d.ts +4 -4
- package/lib/services/{firm → http/firm}/firm.service.d.ts +2 -2
- package/lib/services/{client → http/firm/portfolio-report}/client-portfolio-report.service.d.ts +1 -1
- package/lib/services/{income-source → http/income-source/income-source-forecast}/income-source-forecast.service.d.ts +5 -5
- package/lib/services/{income-source → http/income-source}/income-source.service.d.ts +8 -8
- package/lib/services/{income-source → http/income-source/salary-forecast}/salary-forecast.service.d.ts +6 -6
- package/lib/services/{income-source → http/income-source/sole-forecast}/sole-forecast.service.d.ts +5 -5
- package/lib/services/{borrowing-expense → http/loan/borrowing-expense}/borrowing-expense.service.d.ts +2 -2
- package/lib/services/{loan → http/loan}/loan.service.d.ts +6 -6
- package/lib/services/{property → http/property}/property-category/property-category.service.d.ts +4 -4
- package/lib/services/{property → http/property/property-category-movement}/property-category-movement.service.d.ts +4 -4
- package/lib/services/{property → http/property}/property-document/property-document.service.d.ts +5 -5
- package/lib/services/http/property/property-sale/property-sale.service.d.ts +10 -0
- package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts +11 -0
- package/lib/services/{property → http/property}/property-share/property-share.service.d.ts +5 -5
- package/lib/services/{property → http/property}/property.service.d.ts +5 -5
- package/lib/services/{base-rest.service.d.ts → http/rest/rest.service.d.ts} +4 -4
- package/lib/services/http/service-notification/service-notification.service.d.ts +31 -0
- package/lib/services/{subscription → http/subscription}/subscription.service.d.ts +6 -6
- package/lib/services/{tax-review → http/tax-review/tax-review-history}/tax-review-history.service.d.ts +5 -5
- package/lib/services/{tax-review → http/tax-review}/tax-review.service.d.ts +6 -6
- package/lib/services/{tax-summary → http/tax-summary}/tax-summary.service.d.ts +2 -2
- package/lib/services/{transaction → http/transaction/transaction-allocation}/transaction-allocation.service.d.ts +6 -6
- package/lib/services/{transaction → http/transaction}/transaction.service.d.ts +11 -7
- package/lib/services/{user → http/user/occupation}/occupation.service.d.ts +1 -1
- package/lib/services/{user-event → http/user/user-event-setting}/user-event-setting.service.d.ts +5 -5
- package/lib/services/{user-event → http/user/user-event-type}/user-event-type.service.d.ts +5 -5
- package/lib/services/{user → http/user}/user.service.d.ts +3 -3
- package/lib/services/{work/work-tank.service.d.ts → http/vehicle/vehicle.service.d.ts} +9 -8
- package/lib/services/property/{equity-position-chart.service.d.ts → equity-position-chart/equity-position-chart.service.d.ts} +1 -1
- package/lib/services/toast/toast.service.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +50 -47
- package/esm2015/lib/services/address/address.service.js +0 -39
- package/esm2015/lib/services/bank/bank-account.service.js +0 -118
- package/esm2015/lib/services/bank/bank-connection.service.js +0 -52
- package/esm2015/lib/services/bank/bank-transaction.service.js +0 -89
- package/esm2015/lib/services/bank/bank.service.js +0 -24
- package/esm2015/lib/services/bank/basiq.service.js +0 -94
- package/esm2015/lib/services/base-rest.service.js +0 -190
- package/esm2015/lib/services/borrowing-expense/borrowing-expense.service.js +0 -73
- package/esm2015/lib/services/chart-accounts/chart-accounts-depreciations.service.js +0 -38
- package/esm2015/lib/services/chart-accounts/chart-accounts.service.js +0 -89
- package/esm2015/lib/services/chat/chat.service.js +0 -77
- package/esm2015/lib/services/chat/message-document.service.js +0 -118
- package/esm2015/lib/services/chat/message.service.js +0 -65
- package/esm2015/lib/services/client/client-movement.service.js +0 -98
- package/esm2015/lib/services/client/client-portfolio-report.service.js +0 -37
- package/esm2015/lib/services/depreciation/depreciation.service.js +0 -146
- package/esm2015/lib/services/document/document-folder.service.js +0 -84
- package/esm2015/lib/services/employee/employee-invite.service.js +0 -53
- package/esm2015/lib/services/employee/employee.service.js +0 -39
- package/esm2015/lib/services/firm/firm.service.js +0 -79
- package/esm2015/lib/services/income-source/income-source-forecast.service.js +0 -90
- package/esm2015/lib/services/income-source/income-source.service.js +0 -109
- package/esm2015/lib/services/income-source/salary-forecast.service.js +0 -90
- package/esm2015/lib/services/income-source/sole-forecast.service.js +0 -87
- package/esm2015/lib/services/loan/loan.service.js +0 -145
- package/esm2015/lib/services/notification/notification.service.js +0 -65
- package/esm2015/lib/services/property/equity-position-chart.service.js +0 -45
- package/esm2015/lib/services/property/property-category/property-category.service.js +0 -23
- package/esm2015/lib/services/property/property-category-movement.service.js +0 -47
- package/esm2015/lib/services/property/property-document/property-document.service.js +0 -70
- package/esm2015/lib/services/property/property-sale/property-sale.service.js +0 -20
- package/esm2015/lib/services/property/property-sale/tax-exemption/tax-exemption.service.js +0 -21
- package/esm2015/lib/services/property/property-share/property-share.service.js +0 -115
- package/esm2015/lib/services/property/property.service.js +0 -126
- package/esm2015/lib/services/subscription/subscription.service.js +0 -157
- package/esm2015/lib/services/tax-review/tax-review-history.service.js +0 -41
- package/esm2015/lib/services/tax-review/tax-review.service.js +0 -103
- package/esm2015/lib/services/tax-summary/tax-summary.service.js +0 -71
- package/esm2015/lib/services/transaction/transaction-allocation.service.js +0 -85
- package/esm2015/lib/services/transaction/transaction.service.js +0 -319
- package/esm2015/lib/services/user/occupation.service.js +0 -45
- package/esm2015/lib/services/user/user.service.js +0 -124
- package/esm2015/lib/services/user-event/user-event-setting.service.js +0 -59
- package/esm2015/lib/services/user-event/user-event-type.service.js +0 -29
- package/esm2015/lib/services/work/work-tank.service.js +0 -236
- package/lib/services/notification/notification.service.d.ts +0 -31
- package/lib/services/property/property-sale/property-sale.service.d.ts +0 -10
- package/lib/services/property/property-sale/tax-exemption/tax-exemption.service.d.ts +0 -11
|
@@ -1261,10 +1261,7 @@
|
|
|
1261
1261
|
Collection.prototype.getIds = function () {
|
|
1262
1262
|
return this.items.map(function (item) { return item['id']; });
|
|
1263
1263
|
};
|
|
1264
|
-
|
|
1265
|
-
* @TODO vik rename
|
|
1266
|
-
*/
|
|
1267
|
-
Collection.prototype.getOneBy = function (path, value) {
|
|
1264
|
+
Collection.prototype.findBy = function (path, value) {
|
|
1268
1265
|
return this.items.find(function (item) { return get__default["default"](item, path) === value; });
|
|
1269
1266
|
};
|
|
1270
1267
|
Collection.prototype.getBy = function (path, value) {
|
|
@@ -2995,6 +2992,7 @@
|
|
|
2995
2992
|
* Check if current tank is Work
|
|
2996
2993
|
*/
|
|
2997
2994
|
TransactionBase.prototype.isWorkTank = function () {
|
|
2995
|
+
// @TODO remove this hack
|
|
2998
2996
|
if (this.tankType) {
|
|
2999
2997
|
return this.tankType === exports.TankTypeEnum.WORK;
|
|
3000
2998
|
}
|
|
@@ -7965,6 +7963,24 @@
|
|
|
7965
7963
|
TaxSummaryTypeEnum["FORECASTS"] = "forecasts";
|
|
7966
7964
|
})(exports.TaxSummaryTypeEnum || (exports.TaxSummaryTypeEnum = {}));
|
|
7967
7965
|
|
|
7966
|
+
/**
|
|
7967
|
+
* Common toast message class
|
|
7968
|
+
*/
|
|
7969
|
+
var Toast = /** @class */ (function () {
|
|
7970
|
+
function Toast() {
|
|
7971
|
+
this.duration = 3000;
|
|
7972
|
+
}
|
|
7973
|
+
return Toast;
|
|
7974
|
+
}());
|
|
7975
|
+
|
|
7976
|
+
exports.ToastTypeEnum = void 0;
|
|
7977
|
+
(function (ToastTypeEnum) {
|
|
7978
|
+
ToastTypeEnum[ToastTypeEnum["INFO"] = 0] = "INFO";
|
|
7979
|
+
ToastTypeEnum[ToastTypeEnum["SUCCESS"] = 1] = "SUCCESS";
|
|
7980
|
+
ToastTypeEnum[ToastTypeEnum["WARNING"] = 2] = "WARNING";
|
|
7981
|
+
ToastTypeEnum[ToastTypeEnum["ERROR"] = 3] = "ERROR";
|
|
7982
|
+
})(exports.ToastTypeEnum || (exports.ToastTypeEnum = {}));
|
|
7983
|
+
|
|
7968
7984
|
var MyAccountHistory = /** @class */ (function () {
|
|
7969
7985
|
function MyAccountHistory() {
|
|
7970
7986
|
}
|
|
@@ -8262,8 +8278,8 @@
|
|
|
8262
8278
|
* Model - entity service is working with
|
|
8263
8279
|
* BaseModel - base entity model that extends by Model
|
|
8264
8280
|
*/
|
|
8265
|
-
var
|
|
8266
|
-
function
|
|
8281
|
+
var RestService = /** @class */ (function () {
|
|
8282
|
+
function RestService(http, eventDispatcherService, environment) {
|
|
8267
8283
|
this.http = http;
|
|
8268
8284
|
this.eventDispatcherService = eventDispatcherService;
|
|
8269
8285
|
this.environment = environment;
|
|
@@ -8273,7 +8289,7 @@
|
|
|
8273
8289
|
/**
|
|
8274
8290
|
* get cached list of all instances
|
|
8275
8291
|
*/
|
|
8276
|
-
|
|
8292
|
+
RestService.prototype.get = function () {
|
|
8277
8293
|
if (!this.cache) {
|
|
8278
8294
|
this.fetch().subscribe();
|
|
8279
8295
|
}
|
|
@@ -8283,7 +8299,7 @@
|
|
|
8283
8299
|
* get instance by id from cache
|
|
8284
8300
|
* @param id ID of required item
|
|
8285
8301
|
*/
|
|
8286
|
-
|
|
8302
|
+
RestService.prototype.getById = function (id) {
|
|
8287
8303
|
return this.get()
|
|
8288
8304
|
.pipe(operators.map(function (items) {
|
|
8289
8305
|
return items.find(function (item) { return item['id'] === id; });
|
|
@@ -8293,7 +8309,7 @@
|
|
|
8293
8309
|
* get list of items filtered by id.
|
|
8294
8310
|
* @param models Array of objects contains required items ids
|
|
8295
8311
|
*/
|
|
8296
|
-
|
|
8312
|
+
RestService.prototype.getByIds = function (models) {
|
|
8297
8313
|
var idsArray = models.map(function (model) { return model['id']; });
|
|
8298
8314
|
return this.get()
|
|
8299
8315
|
.pipe(operators.map(function (items) {
|
|
@@ -8304,7 +8320,7 @@
|
|
|
8304
8320
|
* add new instance and update cache
|
|
8305
8321
|
* @TODO rename to post
|
|
8306
8322
|
*/
|
|
8307
|
-
|
|
8323
|
+
RestService.prototype.add = function (model, shouldUpdateCache) {
|
|
8308
8324
|
var _this = this;
|
|
8309
8325
|
if (shouldUpdateCache === void 0) { shouldUpdateCache = true; }
|
|
8310
8326
|
return this.http.post(this.environment.apiV2 + "/" + this.url, classTransformer.classToPlain(model))
|
|
@@ -8326,7 +8342,7 @@
|
|
|
8326
8342
|
* @param queryParams query parameters for request
|
|
8327
8343
|
* @TODO rename to postBatch
|
|
8328
8344
|
*/
|
|
8329
|
-
|
|
8345
|
+
RestService.prototype.addBatch = function (models, queryParams) {
|
|
8330
8346
|
var _this = this;
|
|
8331
8347
|
if (queryParams === void 0) { queryParams = {}; }
|
|
8332
8348
|
return this.http.post(this.environment.apiV2 + "/" + this.url, classTransformer.classToPlain(models), queryParams)
|
|
@@ -8346,7 +8362,7 @@
|
|
|
8346
8362
|
* @param queryParams query parameters for request
|
|
8347
8363
|
* @TODO rename to put
|
|
8348
8364
|
*/
|
|
8349
|
-
|
|
8365
|
+
RestService.prototype.update = function (model, queryParams) {
|
|
8350
8366
|
var _this = this;
|
|
8351
8367
|
if (queryParams === void 0) { queryParams = {}; }
|
|
8352
8368
|
return this.http.put(this.environment.apiV2 + "/" + this.url + "/" + model['id'], classTransformer.classToPlain(model), queryParams)
|
|
@@ -8363,7 +8379,7 @@
|
|
|
8363
8379
|
* @param queryParams query parameters for request
|
|
8364
8380
|
* TODO rename to putBatch
|
|
8365
8381
|
*/
|
|
8366
|
-
|
|
8382
|
+
RestService.prototype.updateBatch = function (models, queryParams) {
|
|
8367
8383
|
var _this = this;
|
|
8368
8384
|
if (queryParams === void 0) { queryParams = {}; }
|
|
8369
8385
|
return this.http.put(this.environment.apiV2 + "/" + this.url, classTransformer.classToPlain(models), queryParams)
|
|
@@ -8380,7 +8396,7 @@
|
|
|
8380
8396
|
* delete instance of class
|
|
8381
8397
|
* @param model Class instance for deleting
|
|
8382
8398
|
*/
|
|
8383
|
-
|
|
8399
|
+
RestService.prototype.delete = function (model) {
|
|
8384
8400
|
var _this = this;
|
|
8385
8401
|
return this.http.delete(this.environment.apiV2 + "/" + this.url + "/" + model['id'])
|
|
8386
8402
|
.pipe(operators.map(function () {
|
|
@@ -8392,7 +8408,7 @@
|
|
|
8392
8408
|
* delete multiple instances of class
|
|
8393
8409
|
* @param models Class instances array for deleting
|
|
8394
8410
|
*/
|
|
8395
|
-
|
|
8411
|
+
RestService.prototype.deleteBatch = function (models) {
|
|
8396
8412
|
var _this = this;
|
|
8397
8413
|
return this.http.post(this.environment.apiV2 + "/" + this.url + "/delete", models)
|
|
8398
8414
|
.pipe(operators.map(function () {
|
|
@@ -8404,13 +8420,13 @@
|
|
|
8404
8420
|
/**
|
|
8405
8421
|
* clear service cache
|
|
8406
8422
|
*/
|
|
8407
|
-
|
|
8423
|
+
RestService.prototype.resetCache = function () {
|
|
8408
8424
|
this.fetch().subscribe();
|
|
8409
8425
|
};
|
|
8410
8426
|
/**
|
|
8411
8427
|
* get list of base class instances directly from backend
|
|
8412
8428
|
*/
|
|
8413
|
-
|
|
8429
|
+
RestService.prototype.fetch = function () {
|
|
8414
8430
|
var _this = this;
|
|
8415
8431
|
return this.http.get(this.environment.apiV2 + "/" + this.url)
|
|
8416
8432
|
.pipe(operators.map(function (response) {
|
|
@@ -8426,7 +8442,7 @@
|
|
|
8426
8442
|
/**
|
|
8427
8443
|
* Update cache subject with current cache array value
|
|
8428
8444
|
*/
|
|
8429
|
-
|
|
8445
|
+
RestService.prototype.updateCache = function () {
|
|
8430
8446
|
this.cacheSubject.next(this.cache.slice());
|
|
8431
8447
|
};
|
|
8432
8448
|
/**
|
|
@@ -8434,14 +8450,14 @@
|
|
|
8434
8450
|
* @param model The class for which you want to create an instance
|
|
8435
8451
|
* @param baseModel base model instance that we will use as constructor options
|
|
8436
8452
|
*/
|
|
8437
|
-
|
|
8453
|
+
RestService.prototype.createModelInstance = function (model, baseModel) {
|
|
8438
8454
|
return classTransformer.plainToClass(model, baseModel, { excludePrefixes: ['@'] });
|
|
8439
8455
|
};
|
|
8440
|
-
return
|
|
8456
|
+
return RestService;
|
|
8441
8457
|
}());
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type:
|
|
8458
|
+
RestService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
8459
|
+
RestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, providedIn: 'root' });
|
|
8460
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, decorators: [{
|
|
8445
8461
|
type: i0.Injectable,
|
|
8446
8462
|
args: [{
|
|
8447
8463
|
providedIn: 'root'
|
|
@@ -8466,7 +8482,7 @@
|
|
|
8466
8482
|
return _this;
|
|
8467
8483
|
}
|
|
8468
8484
|
return BankService;
|
|
8469
|
-
}(
|
|
8485
|
+
}(RestService));
|
|
8470
8486
|
BankService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
8471
8487
|
BankService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, providedIn: 'root' });
|
|
8472
8488
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, decorators: [{
|
|
@@ -8578,7 +8594,7 @@
|
|
|
8578
8594
|
});
|
|
8579
8595
|
};
|
|
8580
8596
|
return BankAccountService;
|
|
8581
|
-
}(
|
|
8597
|
+
}(RestService));
|
|
8582
8598
|
BankAccountService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
8583
8599
|
BankAccountService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, providedIn: 'root' });
|
|
8584
8600
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, decorators: [{
|
|
@@ -8722,7 +8738,7 @@
|
|
|
8722
8738
|
});
|
|
8723
8739
|
};
|
|
8724
8740
|
return BankConnectionService;
|
|
8725
|
-
}(
|
|
8741
|
+
}(RestService));
|
|
8726
8742
|
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 });
|
|
8727
8743
|
BankConnectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, providedIn: 'root' });
|
|
8728
8744
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, decorators: [{
|
|
@@ -8808,7 +8824,7 @@
|
|
|
8808
8824
|
});
|
|
8809
8825
|
};
|
|
8810
8826
|
return BankTransactionService;
|
|
8811
|
-
}(
|
|
8827
|
+
}(RestService));
|
|
8812
8828
|
BankTransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
8813
8829
|
BankTransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, providedIn: 'root' });
|
|
8814
8830
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, decorators: [{
|
|
@@ -8899,7 +8915,7 @@
|
|
|
8899
8915
|
});
|
|
8900
8916
|
};
|
|
8901
8917
|
return BasiqService;
|
|
8902
|
-
}(
|
|
8918
|
+
}(RestService));
|
|
8903
8919
|
BasiqService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
8904
8920
|
BasiqService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, providedIn: 'root' });
|
|
8905
8921
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, decorators: [{
|
|
@@ -9093,7 +9109,7 @@
|
|
|
9093
9109
|
}));
|
|
9094
9110
|
};
|
|
9095
9111
|
return ChartAccountsDepreciationService;
|
|
9096
|
-
}(
|
|
9112
|
+
}(RestService));
|
|
9097
9113
|
ChartAccountsDepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9098
9114
|
ChartAccountsDepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, providedIn: 'root' });
|
|
9099
9115
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, decorators: [{
|
|
@@ -9205,7 +9221,7 @@
|
|
|
9205
9221
|
});
|
|
9206
9222
|
};
|
|
9207
9223
|
return ChatService;
|
|
9208
|
-
}(
|
|
9224
|
+
}(RestService));
|
|
9209
9225
|
ChatService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9210
9226
|
ChatService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, providedIn: 'root' });
|
|
9211
9227
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, decorators: [{
|
|
@@ -9264,7 +9280,7 @@
|
|
|
9264
9280
|
});
|
|
9265
9281
|
};
|
|
9266
9282
|
return MessageService;
|
|
9267
|
-
}(
|
|
9283
|
+
}(RestService));
|
|
9268
9284
|
MessageService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9269
9285
|
MessageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, providedIn: 'root' });
|
|
9270
9286
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, decorators: [{
|
|
@@ -9484,7 +9500,7 @@
|
|
|
9484
9500
|
}));
|
|
9485
9501
|
};
|
|
9486
9502
|
return ClientInviteService;
|
|
9487
|
-
}(
|
|
9503
|
+
}(RestService));
|
|
9488
9504
|
ClientInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9489
9505
|
ClientInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, providedIn: 'root' });
|
|
9490
9506
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, decorators: [{
|
|
@@ -9574,7 +9590,7 @@
|
|
|
9574
9590
|
});
|
|
9575
9591
|
};
|
|
9576
9592
|
return ClientMovementService;
|
|
9577
|
-
}(
|
|
9593
|
+
}(RestService));
|
|
9578
9594
|
ClientMovementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9579
9595
|
ClientMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, providedIn: 'root' });
|
|
9580
9596
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, decorators: [{
|
|
@@ -9625,13 +9641,13 @@
|
|
|
9625
9641
|
/**
|
|
9626
9642
|
* Service for work with DepreciationCapitalProjects
|
|
9627
9643
|
*/
|
|
9628
|
-
var
|
|
9629
|
-
function
|
|
9644
|
+
var DepreciationCapitalProjectService = /** @class */ (function () {
|
|
9645
|
+
function DepreciationCapitalProjectService(http, environment) {
|
|
9630
9646
|
this.http = http;
|
|
9631
9647
|
this.environment = environment;
|
|
9632
9648
|
this.cacheSubject = new rxjs.ReplaySubject(1);
|
|
9633
9649
|
}
|
|
9634
|
-
|
|
9650
|
+
DepreciationCapitalProjectService.prototype.get = function (propertyId) {
|
|
9635
9651
|
var _this = this;
|
|
9636
9652
|
this.cacheSubject.next([]);
|
|
9637
9653
|
this.http.get(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects")
|
|
@@ -9643,7 +9659,7 @@
|
|
|
9643
9659
|
});
|
|
9644
9660
|
return this.cacheSubject.asObservable();
|
|
9645
9661
|
};
|
|
9646
|
-
|
|
9662
|
+
DepreciationCapitalProjectService.prototype.add = function (capitalProject, propertyId) {
|
|
9647
9663
|
var _this = this;
|
|
9648
9664
|
return this.http.post(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects", capitalProject)
|
|
9649
9665
|
.pipe(operators.map(function (capitalProjectBase) {
|
|
@@ -9651,7 +9667,7 @@
|
|
|
9651
9667
|
_this.cacheSubject.next(_this.cache);
|
|
9652
9668
|
}));
|
|
9653
9669
|
};
|
|
9654
|
-
|
|
9670
|
+
DepreciationCapitalProjectService.prototype.update = function (capitalProject, propertyId) {
|
|
9655
9671
|
var _this = this;
|
|
9656
9672
|
return this.http.put(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects/" + capitalProject.id, capitalProject)
|
|
9657
9673
|
.pipe(operators.map(function (capitalProjectBase) {
|
|
@@ -9659,7 +9675,7 @@
|
|
|
9659
9675
|
_this.cacheSubject.next(_this.cache);
|
|
9660
9676
|
}));
|
|
9661
9677
|
};
|
|
9662
|
-
|
|
9678
|
+
DepreciationCapitalProjectService.prototype.delete = function (capitalProject, propertyId) {
|
|
9663
9679
|
var _this = this;
|
|
9664
9680
|
return this.http.delete(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects/" + capitalProject.id)
|
|
9665
9681
|
.pipe(operators.map(function () {
|
|
@@ -9667,11 +9683,11 @@
|
|
|
9667
9683
|
_this.cacheSubject.next(_this.cache);
|
|
9668
9684
|
}));
|
|
9669
9685
|
};
|
|
9670
|
-
return
|
|
9686
|
+
return DepreciationCapitalProjectService;
|
|
9671
9687
|
}());
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type:
|
|
9688
|
+
DepreciationCapitalProjectService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9689
|
+
DepreciationCapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, providedIn: 'root' });
|
|
9690
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, decorators: [{
|
|
9675
9691
|
type: i0.Injectable,
|
|
9676
9692
|
args: [{
|
|
9677
9693
|
providedIn: 'root'
|
|
@@ -9814,7 +9830,7 @@
|
|
|
9814
9830
|
});
|
|
9815
9831
|
};
|
|
9816
9832
|
return DepreciationService;
|
|
9817
|
-
}(
|
|
9833
|
+
}(RestService));
|
|
9818
9834
|
DepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9819
9835
|
DepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, providedIn: 'root' });
|
|
9820
9836
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, decorators: [{
|
|
@@ -9896,7 +9912,7 @@
|
|
|
9896
9912
|
}));
|
|
9897
9913
|
};
|
|
9898
9914
|
return DocumentFolderService;
|
|
9899
|
-
}(
|
|
9915
|
+
}(RestService));
|
|
9900
9916
|
DocumentFolderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9901
9917
|
DocumentFolderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, providedIn: 'root' });
|
|
9902
9918
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, decorators: [{
|
|
@@ -9936,7 +9952,7 @@
|
|
|
9936
9952
|
}));
|
|
9937
9953
|
};
|
|
9938
9954
|
return EmployeeService;
|
|
9939
|
-
}(
|
|
9955
|
+
}(RestService));
|
|
9940
9956
|
EmployeeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9941
9957
|
EmployeeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, providedIn: 'root' });
|
|
9942
9958
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, decorators: [{
|
|
@@ -9985,7 +10001,7 @@
|
|
|
9985
10001
|
}));
|
|
9986
10002
|
};
|
|
9987
10003
|
return EmployeeInviteService;
|
|
9988
|
-
}(
|
|
10004
|
+
}(RestService));
|
|
9989
10005
|
EmployeeInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9990
10006
|
EmployeeInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, providedIn: 'root' });
|
|
9991
10007
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, decorators: [{
|
|
@@ -10188,7 +10204,7 @@
|
|
|
10188
10204
|
return this.incomeSourceTypeSubject.asObservable();
|
|
10189
10205
|
};
|
|
10190
10206
|
return IncomeSourceService;
|
|
10191
|
-
}(
|
|
10207
|
+
}(RestService));
|
|
10192
10208
|
IncomeSourceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
10193
10209
|
IncomeSourceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, providedIn: 'root' });
|
|
10194
10210
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, decorators: [{
|
|
@@ -10274,7 +10290,7 @@
|
|
|
10274
10290
|
}).flat();
|
|
10275
10291
|
};
|
|
10276
10292
|
return IncomeSourceForecastService;
|
|
10277
|
-
}(
|
|
10293
|
+
}(RestService));
|
|
10278
10294
|
IncomeSourceForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
10279
10295
|
IncomeSourceForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, providedIn: 'root' });
|
|
10280
10296
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, decorators: [{
|
|
@@ -10360,7 +10376,7 @@
|
|
|
10360
10376
|
}).flat();
|
|
10361
10377
|
};
|
|
10362
10378
|
return SalaryForecastService;
|
|
10363
|
-
}(
|
|
10379
|
+
}(RestService));
|
|
10364
10380
|
SalaryForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
10365
10381
|
SalaryForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, providedIn: 'root' });
|
|
10366
10382
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, decorators: [{
|
|
@@ -10443,7 +10459,7 @@
|
|
|
10443
10459
|
}).flat();
|
|
10444
10460
|
};
|
|
10445
10461
|
return SoleForecastService;
|
|
10446
|
-
}(
|
|
10462
|
+
}(RestService));
|
|
10447
10463
|
SoleForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
10448
10464
|
SoleForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, providedIn: 'root' });
|
|
10449
10465
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, decorators: [{
|
|
@@ -10629,7 +10645,7 @@
|
|
|
10629
10645
|
}));
|
|
10630
10646
|
};
|
|
10631
10647
|
return LoanService;
|
|
10632
|
-
}(
|
|
10648
|
+
}(RestService));
|
|
10633
10649
|
LoanService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
10634
10650
|
LoanService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, providedIn: 'root' });
|
|
10635
10651
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, decorators: [{
|
|
@@ -10647,9 +10663,9 @@
|
|
|
10647
10663
|
/**
|
|
10648
10664
|
* Service to handle service notifications logic
|
|
10649
10665
|
*/
|
|
10650
|
-
var
|
|
10651
|
-
__extends(
|
|
10652
|
-
function
|
|
10666
|
+
var ServiceNotificationService = /** @class */ (function (_super) {
|
|
10667
|
+
__extends(ServiceNotificationService, _super);
|
|
10668
|
+
function ServiceNotificationService(http, eventDispatcherService, environment, sseService) {
|
|
10653
10669
|
var _this = _super.call(this, http, eventDispatcherService, environment) || this;
|
|
10654
10670
|
_this.http = http;
|
|
10655
10671
|
_this.eventDispatcherService = eventDispatcherService;
|
|
@@ -10664,13 +10680,13 @@
|
|
|
10664
10680
|
/**
|
|
10665
10681
|
* SSE and Event Dispatcher Services listeners
|
|
10666
10682
|
*/
|
|
10667
|
-
|
|
10683
|
+
ServiceNotificationService.prototype.listenEvents = function () {
|
|
10668
10684
|
this.listenNotifications();
|
|
10669
10685
|
};
|
|
10670
10686
|
/**
|
|
10671
10687
|
* subscribe to new chat messages
|
|
10672
10688
|
*/
|
|
10673
|
-
|
|
10689
|
+
ServiceNotificationService.prototype.listenNotifications = function () {
|
|
10674
10690
|
var _this = this;
|
|
10675
10691
|
this.sseService.on("serviceNotification").subscribe(function (notificationBase) {
|
|
10676
10692
|
var notification = classTransformer.plainToClass(Notification, notificationBase);
|
|
@@ -10687,11 +10703,11 @@
|
|
|
10687
10703
|
_this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.NOTIFICATION_ADDED, notification));
|
|
10688
10704
|
});
|
|
10689
10705
|
};
|
|
10690
|
-
return
|
|
10691
|
-
}(
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type:
|
|
10706
|
+
return ServiceNotificationService;
|
|
10707
|
+
}(RestService));
|
|
10708
|
+
ServiceNotificationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
10709
|
+
ServiceNotificationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, providedIn: 'root' });
|
|
10710
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, decorators: [{
|
|
10695
10711
|
type: i0.Injectable,
|
|
10696
10712
|
args: [{
|
|
10697
10713
|
providedIn: 'root'
|
|
@@ -10958,7 +10974,7 @@
|
|
|
10958
10974
|
return this.get().pipe(operators.map(function (properties) { return properties.filter(function (property) { return property.isActive; }); }));
|
|
10959
10975
|
};
|
|
10960
10976
|
return PropertyService;
|
|
10961
|
-
}(
|
|
10977
|
+
}(RestService));
|
|
10962
10978
|
PropertyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
10963
10979
|
PropertyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, providedIn: 'root' });
|
|
10964
10980
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, decorators: [{
|
|
@@ -11115,7 +11131,7 @@
|
|
|
11115
11131
|
return _this;
|
|
11116
11132
|
}
|
|
11117
11133
|
return PropertyCategoryService;
|
|
11118
|
-
}(
|
|
11134
|
+
}(RestService));
|
|
11119
11135
|
PropertyCategoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11120
11136
|
PropertyCategoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, providedIn: 'root' });
|
|
11121
11137
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, decorators: [{
|
|
@@ -11178,7 +11194,7 @@
|
|
|
11178
11194
|
});
|
|
11179
11195
|
};
|
|
11180
11196
|
return PropertyDocumentService;
|
|
11181
|
-
}(
|
|
11197
|
+
}(RestService));
|
|
11182
11198
|
PropertyDocumentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11183
11199
|
PropertyDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, providedIn: 'root' });
|
|
11184
11200
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, decorators: [{
|
|
@@ -11290,7 +11306,7 @@
|
|
|
11290
11306
|
});
|
|
11291
11307
|
};
|
|
11292
11308
|
return PropertyShareService;
|
|
11293
|
-
}(
|
|
11309
|
+
}(RestService));
|
|
11294
11310
|
PropertyShareService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11295
11311
|
PropertyShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, providedIn: 'root' });
|
|
11296
11312
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, decorators: [{
|
|
@@ -11314,7 +11330,7 @@
|
|
|
11314
11330
|
return _this;
|
|
11315
11331
|
}
|
|
11316
11332
|
return PropertySaleService;
|
|
11317
|
-
}(
|
|
11333
|
+
}(RestService));
|
|
11318
11334
|
PropertySaleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11319
11335
|
PropertySaleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, providedIn: 'root' });
|
|
11320
11336
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, decorators: [{
|
|
@@ -11401,7 +11417,7 @@
|
|
|
11401
11417
|
}));
|
|
11402
11418
|
};
|
|
11403
11419
|
return PropertyCategoryMovementService;
|
|
11404
|
-
}(
|
|
11420
|
+
}(RestService));
|
|
11405
11421
|
PropertyCategoryMovementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11406
11422
|
PropertyCategoryMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, providedIn: 'root' });
|
|
11407
11423
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, decorators: [{
|
|
@@ -11650,7 +11666,7 @@
|
|
|
11650
11666
|
});
|
|
11651
11667
|
};
|
|
11652
11668
|
return TaxReviewService;
|
|
11653
|
-
}(
|
|
11669
|
+
}(RestService));
|
|
11654
11670
|
TaxReviewService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11655
11671
|
TaxReviewService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, providedIn: 'root' });
|
|
11656
11672
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, decorators: [{
|
|
@@ -11688,7 +11704,7 @@
|
|
|
11688
11704
|
return _this;
|
|
11689
11705
|
}
|
|
11690
11706
|
return TaxReviewHistoryService;
|
|
11691
|
-
}(
|
|
11707
|
+
}(RestService));
|
|
11692
11708
|
TaxReviewHistoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11693
11709
|
TaxReviewHistoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, providedIn: 'root' });
|
|
11694
11710
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, decorators: [{
|
|
@@ -11771,6 +11787,30 @@
|
|
|
11771
11787
|
}] }];
|
|
11772
11788
|
} });
|
|
11773
11789
|
|
|
11790
|
+
/**
|
|
11791
|
+
* popup notifications service (toast, snackbar).
|
|
11792
|
+
*/
|
|
11793
|
+
var ToastService = /** @class */ (function () {
|
|
11794
|
+
function ToastService() {
|
|
11795
|
+
this.toast$ = new rxjs.ReplaySubject(1);
|
|
11796
|
+
}
|
|
11797
|
+
ToastService.prototype.get = function () {
|
|
11798
|
+
return this.toast$.asObservable();
|
|
11799
|
+
};
|
|
11800
|
+
ToastService.prototype.add = function (toast) {
|
|
11801
|
+
this.toast$.next(toast);
|
|
11802
|
+
};
|
|
11803
|
+
return ToastService;
|
|
11804
|
+
}());
|
|
11805
|
+
ToastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11806
|
+
ToastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, providedIn: 'root' });
|
|
11807
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, decorators: [{
|
|
11808
|
+
type: i0.Injectable,
|
|
11809
|
+
args: [{
|
|
11810
|
+
providedIn: 'root'
|
|
11811
|
+
}]
|
|
11812
|
+
}] });
|
|
11813
|
+
|
|
11774
11814
|
function enumToList(data) {
|
|
11775
11815
|
var list = [];
|
|
11776
11816
|
for (var key in data) {
|
|
@@ -11806,6 +11846,7 @@
|
|
|
11806
11846
|
*/
|
|
11807
11847
|
TransactionService.prototype.listenEvents = function () {
|
|
11808
11848
|
this.listenDepreciationChange();
|
|
11849
|
+
this.listenPropertyShareUpdate();
|
|
11809
11850
|
};
|
|
11810
11851
|
/**
|
|
11811
11852
|
* get list of all user's TaxTank transactions
|
|
@@ -12082,8 +12123,15 @@
|
|
|
12082
12123
|
});
|
|
12083
12124
|
});
|
|
12084
12125
|
};
|
|
12126
|
+
/**
|
|
12127
|
+
* Listen to EventDispatcherService event related to Property Share changing
|
|
12128
|
+
*/
|
|
12129
|
+
TransactionService.prototype.listenPropertyShareUpdate = function () {
|
|
12130
|
+
var _this = this;
|
|
12131
|
+
this.eventDispatcherService.on(exports.AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(function () { return _this.resetCache(); });
|
|
12132
|
+
};
|
|
12085
12133
|
return TransactionService;
|
|
12086
|
-
}(
|
|
12134
|
+
}(RestService));
|
|
12087
12135
|
TransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
12088
12136
|
TransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, providedIn: 'root' });
|
|
12089
12137
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, decorators: [{
|
|
@@ -12168,7 +12216,7 @@
|
|
|
12168
12216
|
});
|
|
12169
12217
|
};
|
|
12170
12218
|
return TransactionAllocationService;
|
|
12171
|
-
}(
|
|
12219
|
+
}(RestService));
|
|
12172
12220
|
TransactionAllocationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
12173
12221
|
TransactionAllocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, providedIn: 'root' });
|
|
12174
12222
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, decorators: [{
|
|
@@ -12434,7 +12482,7 @@
|
|
|
12434
12482
|
}));
|
|
12435
12483
|
};
|
|
12436
12484
|
return UserEventSettingService;
|
|
12437
|
-
}(
|
|
12485
|
+
}(RestService));
|
|
12438
12486
|
UserEventSettingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
12439
12487
|
UserEventSettingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, providedIn: 'root' });
|
|
12440
12488
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, decorators: [{
|
|
@@ -12462,7 +12510,7 @@
|
|
|
12462
12510
|
return _this;
|
|
12463
12511
|
}
|
|
12464
12512
|
return UserEventTypeService;
|
|
12465
|
-
}(
|
|
12513
|
+
}(RestService));
|
|
12466
12514
|
UserEventTypeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
12467
12515
|
UserEventTypeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, providedIn: 'root' });
|
|
12468
12516
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, decorators: [{
|
|
@@ -12479,9 +12527,10 @@
|
|
|
12479
12527
|
|
|
12480
12528
|
/**
|
|
12481
12529
|
* Service that allows to work with WorkTank operations
|
|
12530
|
+
* @TODO separate into multiple services, extend restService
|
|
12482
12531
|
*/
|
|
12483
|
-
var
|
|
12484
|
-
function
|
|
12532
|
+
var VehicleService = /** @class */ (function () {
|
|
12533
|
+
function VehicleService(http, transactionService, depreciationService, chartAccountsService, eventDispatcherService, environment) {
|
|
12485
12534
|
this.http = http;
|
|
12486
12535
|
this.transactionService = transactionService;
|
|
12487
12536
|
this.depreciationService = depreciationService;
|
|
@@ -12494,7 +12543,7 @@
|
|
|
12494
12543
|
this.vehicleTaxReturnSubject = new rxjs.ReplaySubject(1);
|
|
12495
12544
|
this.incomePositionsSubject = new rxjs.ReplaySubject(1);
|
|
12496
12545
|
}
|
|
12497
|
-
|
|
12546
|
+
VehicleService.prototype.getVehicles = function () {
|
|
12498
12547
|
var _this = this;
|
|
12499
12548
|
// @TODO create backend for get logbook
|
|
12500
12549
|
if (!this._vehicles) {
|
|
@@ -12512,7 +12561,7 @@
|
|
|
12512
12561
|
/**
|
|
12513
12562
|
* Get vehicles claim amount
|
|
12514
12563
|
*/
|
|
12515
|
-
|
|
12564
|
+
VehicleService.prototype.getVehiclesClaim = function () {
|
|
12516
12565
|
var _this = this;
|
|
12517
12566
|
if (!this._vehicleClaim) {
|
|
12518
12567
|
this.http.get(this.environment.apiV2 + "/vehicle-claims")
|
|
@@ -12531,7 +12580,7 @@
|
|
|
12531
12580
|
* Add new vehicle claim
|
|
12532
12581
|
* @param claim object which should be added
|
|
12533
12582
|
*/
|
|
12534
|
-
|
|
12583
|
+
VehicleService.prototype.addVehicleClaim = function (claim) {
|
|
12535
12584
|
var _this = this;
|
|
12536
12585
|
return this.http.post(this.environment.apiV2 + "/vehicle-claims", claim).pipe(operators.map(function (response) {
|
|
12537
12586
|
_this._vehicleClaim = classTransformer.plainToClass(VehicleClaim, response);
|
|
@@ -12542,7 +12591,7 @@
|
|
|
12542
12591
|
/**
|
|
12543
12592
|
* Get vehicles claim rate for current financial year
|
|
12544
12593
|
*/
|
|
12545
|
-
|
|
12594
|
+
VehicleService.prototype.getVehiclesClaimRate = function () {
|
|
12546
12595
|
var _this = this;
|
|
12547
12596
|
if (!this._vehicleClaimRate) {
|
|
12548
12597
|
this.chartAccountsService.getChartAccountsById(exports.ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK)
|
|
@@ -12559,7 +12608,7 @@
|
|
|
12559
12608
|
/**
|
|
12560
12609
|
* Get vehicles tax return for vehicle transactions & depreciations
|
|
12561
12610
|
*/
|
|
12562
|
-
|
|
12611
|
+
VehicleService.prototype.getVehiclesTaxReturn = function () {
|
|
12563
12612
|
var _this = this;
|
|
12564
12613
|
if (!this._vehicleTaxReturn) {
|
|
12565
12614
|
rxjs.combineLatest([
|
|
@@ -12596,7 +12645,7 @@
|
|
|
12596
12645
|
*
|
|
12597
12646
|
* @TODO alex refresh depreciation/transaction cache
|
|
12598
12647
|
*/
|
|
12599
|
-
|
|
12648
|
+
VehicleService.prototype.updateVehicleClaim = function (claim) {
|
|
12600
12649
|
var _this = this;
|
|
12601
12650
|
return this.http.put(this.environment.apiV2 + "/vehicle-claims/" + claim.id, claim).pipe(operators.map(function (response) {
|
|
12602
12651
|
var updatedVehicleClaim = classTransformer.plainToClass(VehicleClaim, response);
|
|
@@ -12611,7 +12660,7 @@
|
|
|
12611
12660
|
* @param logbook which should be added
|
|
12612
12661
|
* @param vehicle for which logbook object should be added
|
|
12613
12662
|
*/
|
|
12614
|
-
|
|
12663
|
+
VehicleService.prototype.addLogbook = function (logbook, vehicle) {
|
|
12615
12664
|
var _this = this;
|
|
12616
12665
|
return this.http.post(this.environment.apiV2 + "/vehicles/" + vehicle.id + "/logbooks", logbook)
|
|
12617
12666
|
.pipe(operators.map(function (response) {
|
|
@@ -12626,7 +12675,7 @@
|
|
|
12626
12675
|
* @param logbook which should be updated
|
|
12627
12676
|
* @param vehicle for which logbook object should be updated
|
|
12628
12677
|
*/
|
|
12629
|
-
|
|
12678
|
+
VehicleService.prototype.updateLogbook = function (logbook, vehicle) {
|
|
12630
12679
|
var _this = this;
|
|
12631
12680
|
return this.http.put(this.environment.apiV2 + "/vehicles/" + vehicle.id + "/logbooks/" + logbook.id, logbook).pipe(operators.map(function (response) {
|
|
12632
12681
|
var editedVehicle = _this._vehicles.find(function (v) { return v.id === vehicle.id; });
|
|
@@ -12642,7 +12691,7 @@
|
|
|
12642
12691
|
* @param logbook for which trip should be deleted
|
|
12643
12692
|
* @param vehicle for which trip should be deleted
|
|
12644
12693
|
*/
|
|
12645
|
-
|
|
12694
|
+
VehicleService.prototype.deleteTrip = function (logbook, vehicle) {
|
|
12646
12695
|
var _this = this;
|
|
12647
12696
|
return this.http.delete(this.environment.apiV2 + "/vehicles/" + vehicle.id + "/logbooks/" + logbook.id)
|
|
12648
12697
|
.pipe(operators.map(function () {
|
|
@@ -12658,7 +12707,7 @@
|
|
|
12658
12707
|
* Add new vehicle
|
|
12659
12708
|
* @param vehicle which should be added
|
|
12660
12709
|
*/
|
|
12661
|
-
|
|
12710
|
+
VehicleService.prototype.addVehicle = function (vehicle) {
|
|
12662
12711
|
var _this = this;
|
|
12663
12712
|
return this.http.post(this.environment.apiV2 + "/vehicles", { name: vehicle.name })
|
|
12664
12713
|
.pipe(operators.map(function (response) {
|
|
@@ -12670,7 +12719,7 @@
|
|
|
12670
12719
|
* Update vehicle
|
|
12671
12720
|
* @param vehicle which should be updated
|
|
12672
12721
|
*/
|
|
12673
|
-
|
|
12722
|
+
VehicleService.prototype.updateVehicle = function (vehicle) {
|
|
12674
12723
|
var _this = this;
|
|
12675
12724
|
return this.http.put(this.environment.apiV2 + "/vehicles/" + vehicle.id, { name: vehicle.name })
|
|
12676
12725
|
.pipe(operators.map(function (response) {
|
|
@@ -12683,7 +12732,7 @@
|
|
|
12683
12732
|
* Delete vehicle
|
|
12684
12733
|
* @param vehicle which should be deleted
|
|
12685
12734
|
*/
|
|
12686
|
-
|
|
12735
|
+
VehicleService.prototype.deleteVehicle = function (vehicle) {
|
|
12687
12736
|
var _this = this;
|
|
12688
12737
|
return this.http.delete(this.environment.apiV2 + "/vehicles/" + vehicle.id)
|
|
12689
12738
|
.pipe(operators.map(function () {
|
|
@@ -12694,11 +12743,11 @@
|
|
|
12694
12743
|
_this.vehiclesSubject.next(_this._vehicles.map(function (item) { return classTransformer.plainToClass(Vehicle, item); }));
|
|
12695
12744
|
}));
|
|
12696
12745
|
};
|
|
12697
|
-
return
|
|
12746
|
+
return VehicleService;
|
|
12698
12747
|
}());
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type:
|
|
12748
|
+
VehicleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, deps: [{ token: i1__namespace.HttpClient }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
12749
|
+
VehicleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, providedIn: 'root' });
|
|
12750
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, decorators: [{
|
|
12702
12751
|
type: i0.Injectable,
|
|
12703
12752
|
args: [{
|
|
12704
12753
|
providedIn: 'root'
|
|
@@ -12773,7 +12822,7 @@
|
|
|
12773
12822
|
return _this;
|
|
12774
12823
|
}
|
|
12775
12824
|
return TaxExemptionService;
|
|
12776
|
-
}(
|
|
12825
|
+
}(RestService));
|
|
12777
12826
|
TaxExemptionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
12778
12827
|
TaxExemptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, providedIn: 'root' });
|
|
12779
12828
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, decorators: [{
|
|
@@ -12992,7 +13041,6 @@
|
|
|
12992
13041
|
exports.CAPITAL_COSTS_ITEMS = CAPITAL_COSTS_ITEMS;
|
|
12993
13042
|
exports.CHART_ACCOUNTS_CATEGORIES = CHART_ACCOUNTS_CATEGORIES;
|
|
12994
13043
|
exports.CalculationFormItem = CalculationFormItem;
|
|
12995
|
-
exports.CapitalProjectService = CapitalProjectService;
|
|
12996
13044
|
exports.ChartAccounts = ChartAccounts;
|
|
12997
13045
|
exports.ChartAccountsDepreciation = ChartAccountsDepreciation;
|
|
12998
13046
|
exports.ChartAccountsDepreciationService = ChartAccountsDepreciationService;
|
|
@@ -13026,6 +13074,7 @@
|
|
|
13026
13074
|
exports.DataTableColumn = DataTableColumn;
|
|
13027
13075
|
exports.Depreciation = Depreciation;
|
|
13028
13076
|
exports.DepreciationCapitalProject = DepreciationCapitalProject;
|
|
13077
|
+
exports.DepreciationCapitalProjectService = DepreciationCapitalProjectService;
|
|
13029
13078
|
exports.DepreciationCollection = DepreciationCollection;
|
|
13030
13079
|
exports.DepreciationForecast = DepreciationForecast;
|
|
13031
13080
|
exports.DepreciationForecastCollection = DepreciationForecastCollection;
|
|
@@ -13078,7 +13127,6 @@
|
|
|
13078
13127
|
exports.MessageService = MessageService;
|
|
13079
13128
|
exports.MyAccountHistory = MyAccountHistory;
|
|
13080
13129
|
exports.Notification = Notification;
|
|
13081
|
-
exports.NotificationService = NotificationService;
|
|
13082
13130
|
exports.Occupation = Occupation;
|
|
13083
13131
|
exports.OccupationService = OccupationService;
|
|
13084
13132
|
exports.PasswordForm = PasswordForm;
|
|
@@ -13116,6 +13164,7 @@
|
|
|
13116
13164
|
exports.SUBSCRIPTION_TITLE = SUBSCRIPTION_TITLE;
|
|
13117
13165
|
exports.SalaryForecast = SalaryForecast;
|
|
13118
13166
|
exports.SalaryForecastService = SalaryForecastService;
|
|
13167
|
+
exports.ServiceNotificationService = ServiceNotificationService;
|
|
13119
13168
|
exports.ServicePayment = ServicePayment;
|
|
13120
13169
|
exports.ServicePrice = ServicePrice;
|
|
13121
13170
|
exports.ServicePriceCollection = ServicePriceCollection;
|
|
@@ -13138,6 +13187,8 @@
|
|
|
13138
13187
|
exports.TaxSummary = TaxSummary;
|
|
13139
13188
|
exports.TaxSummarySection = TaxSummarySection;
|
|
13140
13189
|
exports.TaxSummaryService = TaxSummaryService;
|
|
13190
|
+
exports.Toast = Toast;
|
|
13191
|
+
exports.ToastService = ToastService;
|
|
13141
13192
|
exports.Transaction = Transaction;
|
|
13142
13193
|
exports.TransactionAllocation = TransactionAllocation;
|
|
13143
13194
|
exports.TransactionAllocationCollection = TransactionAllocationCollection;
|
|
@@ -13164,8 +13215,8 @@
|
|
|
13164
13215
|
exports.Vehicle = Vehicle;
|
|
13165
13216
|
exports.VehicleClaim = VehicleClaim;
|
|
13166
13217
|
exports.VehicleLogbook = VehicleLogbook;
|
|
13218
|
+
exports.VehicleService = VehicleService;
|
|
13167
13219
|
exports.WORK_TANK_LOGBOOK_PURPOSE_OPTIONS = WORK_TANK_LOGBOOK_PURPOSE_OPTIONS;
|
|
13168
|
-
exports.WorkTankService = WorkTankService;
|
|
13169
13220
|
exports.XlsxService = XlsxService;
|
|
13170
13221
|
exports.cloneDeep = cloneDeep;
|
|
13171
13222
|
exports.compare = compare;
|