taxtank-core 0.23.6 → 0.23.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/bundles/taxtank-core.umd.js +11 -21
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/services/http/transaction/transaction.service.js +1 -5
- package/fesm2015/taxtank-core.js +11 -21
- package/fesm2015/taxtank-core.js.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/services/http/transaction/messages.enum.js +0 -7
- package/lib/services/http/transaction/messages.enum.d.ts +0 -5
|
@@ -11378,7 +11378,7 @@
|
|
|
11378
11378
|
}]
|
|
11379
11379
|
}] });
|
|
11380
11380
|
|
|
11381
|
-
var MessagesEnum
|
|
11381
|
+
var MessagesEnum;
|
|
11382
11382
|
(function (MessagesEnum) {
|
|
11383
11383
|
MessagesEnum["VEHICLE_CREATED"] = "Vehicle created successfully";
|
|
11384
11384
|
MessagesEnum["VEHICLE_UPDATED"] = "Vehicle updated successfully";
|
|
@@ -11389,7 +11389,7 @@
|
|
|
11389
11389
|
MessagesEnum["VEHICLE_LOGBOOK_CREATED"] = "Vehicle logbook created successfully";
|
|
11390
11390
|
MessagesEnum["VEHICLE_LOGBOOK_UPDATED"] = "Vehicle logbook updated successfully";
|
|
11391
11391
|
MessagesEnum["VEHICLE_LOGBOOK_DELETED"] = "Vehicle logbook deleted successfully";
|
|
11392
|
-
})(MessagesEnum
|
|
11392
|
+
})(MessagesEnum || (MessagesEnum = {}));
|
|
11393
11393
|
|
|
11394
11394
|
var VehicleClaimService = /** @class */ (function (_super) {
|
|
11395
11395
|
__extends(VehicleClaimService, _super);
|
|
@@ -11397,9 +11397,9 @@
|
|
|
11397
11397
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
11398
11398
|
_this.modelClass = VehicleClaim;
|
|
11399
11399
|
_this.url = 'vehicle-claims';
|
|
11400
|
-
_this.messageCreated = MessagesEnum
|
|
11401
|
-
_this.messageUpdated = MessagesEnum
|
|
11402
|
-
_this.messageDeleted = MessagesEnum
|
|
11400
|
+
_this.messageCreated = MessagesEnum.VEHICLE_CLAIM_CREATED;
|
|
11401
|
+
_this.messageUpdated = MessagesEnum.VEHICLE_CLAIM_UPDATED;
|
|
11402
|
+
_this.messageDeleted = MessagesEnum.VEHICLE_CLAIM_DELETED;
|
|
11403
11403
|
return _this;
|
|
11404
11404
|
}
|
|
11405
11405
|
return VehicleClaimService;
|
|
@@ -11426,13 +11426,6 @@
|
|
|
11426
11426
|
return list;
|
|
11427
11427
|
}
|
|
11428
11428
|
|
|
11429
|
-
var MessagesEnum;
|
|
11430
|
-
(function (MessagesEnum) {
|
|
11431
|
-
MessagesEnum["DELETED_MESSAGE"] = "Transaction deleted";
|
|
11432
|
-
MessagesEnum["UPDATED_MESSAGE"] = "Transaction updated";
|
|
11433
|
-
MessagesEnum["CREATED_MESSAGE"] = "Transaction(s) created";
|
|
11434
|
-
})(MessagesEnum || (MessagesEnum = {}));
|
|
11435
|
-
|
|
11436
11429
|
/**
|
|
11437
11430
|
* Service for transactions business logic
|
|
11438
11431
|
*/
|
|
@@ -11570,7 +11563,6 @@
|
|
|
11570
11563
|
_this.updateCache();
|
|
11571
11564
|
}
|
|
11572
11565
|
_this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTIONS_CREATED, addedTransactions));
|
|
11573
|
-
_this.toastService.success(MessagesEnum.CREATED_MESSAGE);
|
|
11574
11566
|
return addedTransactions;
|
|
11575
11567
|
}));
|
|
11576
11568
|
};
|
|
@@ -11608,7 +11600,6 @@
|
|
|
11608
11600
|
_this.addBatch(childTransactionsToAdd).subscribe();
|
|
11609
11601
|
}
|
|
11610
11602
|
}
|
|
11611
|
-
_this.toastService.success(MessagesEnum.UPDATED_MESSAGE);
|
|
11612
11603
|
replace(_this.cache, updatedTransaction);
|
|
11613
11604
|
_this.updateCache();
|
|
11614
11605
|
return updatedTransaction;
|
|
@@ -11657,7 +11648,6 @@
|
|
|
11657
11648
|
return transaction.id !== model.id && ((_a = transaction.parentTransaction) === null || _a === void 0 ? void 0 : _a.id) !== model.id;
|
|
11658
11649
|
});
|
|
11659
11650
|
_this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTION_DELETED, model));
|
|
11660
|
-
_this.toastService.success(MessagesEnum.DELETED_MESSAGE);
|
|
11661
11651
|
_this.updateCache();
|
|
11662
11652
|
_this.transactionDeleted.emit(model);
|
|
11663
11653
|
}));
|
|
@@ -15280,9 +15270,9 @@
|
|
|
15280
15270
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
15281
15271
|
_this.url = 'vehicles';
|
|
15282
15272
|
_this.modelClass = Vehicle;
|
|
15283
|
-
_this.messageCreated = MessagesEnum
|
|
15284
|
-
_this.messageUpdated = MessagesEnum
|
|
15285
|
-
_this.messageDeleted = MessagesEnum
|
|
15273
|
+
_this.messageCreated = MessagesEnum.VEHICLE_CREATED;
|
|
15274
|
+
_this.messageUpdated = MessagesEnum.VEHICLE_UPDATED;
|
|
15275
|
+
_this.messageDeleted = MessagesEnum.VEHICLE_DELETED;
|
|
15286
15276
|
return _this;
|
|
15287
15277
|
}
|
|
15288
15278
|
VehicleService.prototype.listenEvents = function () {
|
|
@@ -15358,7 +15348,7 @@
|
|
|
15358
15348
|
.pipe(operators.map(function (vehicleLogbookBase) {
|
|
15359
15349
|
var newVehicleLogbook = classTransformer.plainToClass(VehicleLogbook, vehicleLogbookBase);
|
|
15360
15350
|
_this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.VEHICLE_LOGBOOK_CREATED, { logbook: newVehicleLogbook, vehicleId: vehicleId }));
|
|
15361
|
-
_this.toastService.success(MessagesEnum
|
|
15351
|
+
_this.toastService.success(MessagesEnum.VEHICLE_LOGBOOK_CREATED);
|
|
15362
15352
|
return newVehicleLogbook;
|
|
15363
15353
|
}));
|
|
15364
15354
|
};
|
|
@@ -15367,7 +15357,7 @@
|
|
|
15367
15357
|
return this.http.put(this.environment.apiV2 + "/vehicles/" + vehicleId + "/logbooks/" + logbook.id, logbook).pipe(operators.map(function (vehicleLogbookBase) {
|
|
15368
15358
|
var updatedVehicleLogbook = classTransformer.plainToClass(VehicleLogbook, vehicleLogbookBase);
|
|
15369
15359
|
_this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.VEHICLE_LOGBOOK_UPDATED, { logbook: updatedVehicleLogbook, vehicleId: vehicleId }));
|
|
15370
|
-
_this.toastService.success(MessagesEnum
|
|
15360
|
+
_this.toastService.success(MessagesEnum.VEHICLE_LOGBOOK_UPDATED);
|
|
15371
15361
|
return classTransformer.plainToClass(VehicleLogbook, updatedVehicleLogbook);
|
|
15372
15362
|
}));
|
|
15373
15363
|
};
|
|
@@ -15376,7 +15366,7 @@
|
|
|
15376
15366
|
return this.http.delete(this.environment.apiV2 + "/vehicles/" + vehicleId + "/logbooks/" + logbook.id)
|
|
15377
15367
|
.pipe(operators.map(function () {
|
|
15378
15368
|
_this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.VEHICLE_LOGBOOK_DELETED, { logbook: logbook, vehicleId: vehicleId }));
|
|
15379
|
-
_this.toastService.success(MessagesEnum
|
|
15369
|
+
_this.toastService.success(MessagesEnum.VEHICLE_LOGBOOK_DELETED);
|
|
15380
15370
|
}));
|
|
15381
15371
|
};
|
|
15382
15372
|
return VehicleLogbookService;
|