taxtank-core 0.33.53 → 0.33.54
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,22 @@
|
|
1
|
-
import { Injectable } from '@angular/core';
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
2
2
|
import { RestService } from '../rest';
|
3
3
|
import { Collection } from '../../../collections';
|
4
|
-
import { HomeOfficeLog } from '../../../models';
|
4
|
+
import { HomeOfficeClaim, HomeOfficeLog } from '../../../models';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export class HomeOfficeLogService extends RestService {
|
7
|
-
constructor() {
|
8
|
-
super(
|
7
|
+
constructor(environment) {
|
8
|
+
super(environment);
|
9
|
+
this.environment = environment;
|
9
10
|
this.endpointUri = 'home-office-logs';
|
10
11
|
this.modelClass = HomeOfficeLog;
|
11
12
|
this.collectionClass = (Collection);
|
12
13
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
14
|
+
this.listenEvents();
|
13
15
|
}
|
14
|
-
|
16
|
+
listenEvents() {
|
17
|
+
this.listenCSE(HomeOfficeClaim, this.refreshCache, ['post']);
|
18
|
+
}
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
15
20
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, providedIn: 'root' }); }
|
16
21
|
}
|
17
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, decorators: [{
|
@@ -19,5 +24,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
19
24
|
args: [{
|
20
25
|
providedIn: 'root'
|
21
26
|
}]
|
22
|
-
}]
|
23
|
-
|
27
|
+
}], ctorParameters: () => [{ type: undefined, decor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lT2ZmaWNlTG9nID0gSG9tZU9mZmljZUxvZztcbiAgY29sbGVjdGlvbkNsYXNzOiB0eXBlb2YgQ29sbGVjdGlvbjxIb21lT2ZmaWNlTG9nPiA9IENvbGxlY3Rpb248SG9tZU9mZmljZUxvZz47XG4gIGRpc2FibGVkTWV0aG9kczogUmVzdE1ldGhvZFtdID0gWydwb3N0QmF0Y2gnLCAncHV0QmF0Y2gnLCAnZGVsZXRlQmF0Y2gnXTtcblxuICBjb25zdHJ1Y3RvcihASW5qZWN0KCdlbnZpcm9ubWVudCcpIHByb3RlY3RlZCBlbnZpcm9ubWVudDogYW55KSB7XG4gICAgc3VwZXIoZW52aXJvbm1lbnQpO1xuICAgIHRoaXMubGlzdGVuRXZlbnRzKCk7XG4gIH1cblxuICBsaXN0ZW5FdmVudHMoKTogdm9pZCB7XG4gICAgdGhpcy5saXN0ZW5DU0UoSG9tZU9mZmljZUNsYWltLCB0aGlzLnJlZnJlc2hDYWNoZSwgWydwb3N0J10pO1xuICB9XG59XG4iXX0=
|
@@ -16454,14 +16454,19 @@ var HomeOfficeClaimMessagesEnum;
|
|
16454
16454
|
})(HomeOfficeClaimMessagesEnum || (HomeOfficeClaimMessagesEnum = {}));
|
16455
16455
|
|
16456
16456
|
class HomeOfficeLogService extends RestService$1 {
|
16457
|
-
constructor() {
|
16458
|
-
super(
|
16457
|
+
constructor(environment) {
|
16458
|
+
super(environment);
|
16459
|
+
this.environment = environment;
|
16459
16460
|
this.endpointUri = 'home-office-logs';
|
16460
16461
|
this.modelClass = HomeOfficeLog;
|
16461
16462
|
this.collectionClass = (Collection);
|
16462
16463
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
16464
|
+
this.listenEvents();
|
16463
16465
|
}
|
16464
|
-
|
16466
|
+
listenEvents() {
|
16467
|
+
this.listenCSE(HomeOfficeClaim, this.refreshCache, ['post']);
|
16468
|
+
}
|
16469
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
16465
16470
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, providedIn: 'root' }); }
|
16466
16471
|
}
|
16467
16472
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, decorators: [{
|
@@ -16469,7 +16474,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
16469
16474
|
args: [{
|
16470
16475
|
providedIn: 'root'
|
16471
16476
|
}]
|
16472
|
-
}]
|
16477
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
16478
|
+
type: Inject,
|
16479
|
+
args: ['environment']
|
16480
|
+
}] }] });
|
16473
16481
|
|
16474
16482
|
var HomeOfficeLogMessagesEnum;
|
16475
16483
|
(function (HomeOfficeLogMessagesEnum) {
|