taxtank-core 0.33.7 → 0.33.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/esm2022/src/lib/collections/depreciation.collection.mjs +10 -4
  2. package/esm2022/src/lib/collections/exportable.collection.mjs +2 -6
  3. package/esm2022/src/lib/collections/transaction/index.mjs +2 -1
  4. package/esm2022/src/lib/collections/transaction/transaction-base.collection.mjs +4 -0
  5. package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -3
  6. package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +7 -2
  7. package/esm2022/src/lib/models/report/report.interface.mjs +1 -1
  8. package/esm2022/src/lib/models/report/reports.const.mjs +107 -72
  9. package/esm2022/src/lib/models/user/user.mjs +18 -28
  10. package/esm2022/src/lib/services/http/holding/holding-sale.service.mjs +3 -1
  11. package/esm2022/src/lib/services/http/property/property-sale/property-sale.service.mjs +3 -1
  12. package/esm2022/src/lib/services/http/property/property.service.mjs +3 -2
  13. package/fesm2022/taxtank-core.mjs +145 -108
  14. package/fesm2022/taxtank-core.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/src/lib/collections/depreciation.collection.d.ts +5 -2
  17. package/src/lib/collections/exportable.collection.d.ts +2 -2
  18. package/src/lib/collections/transaction/index.d.ts +1 -0
  19. package/src/lib/collections/transaction/transaction-base.collection.d.ts +4 -0
  20. package/src/lib/collections/transaction/transaction.collection.d.ts +2 -2
  21. package/src/lib/forms/transaction/transaction-base-filter.form.d.ts +3 -2
  22. package/src/lib/models/report/report.interface.d.ts +4 -3
  23. package/src/lib/models/report/reports.const.d.ts +2 -2
  24. package/src/lib/models/user/user.d.ts +2 -14
  25. package/src/lib/services/http/holding/holding-sale.service.d.ts +2 -0
  26. package/src/lib/services/http/property/property-sale/property-sale.service.d.ts +2 -0
  27. package/src/lib/services/http/property/property.service.d.ts +2 -0
@@ -17,6 +17,7 @@ import { FinancialYear } from '../financial-year';
17
17
  import { AppFile } from '../file';
18
18
  import range from 'lodash/range';
19
19
  import { AccountSetupItem } from '../account-setup/account-setup-item';
20
+ import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
20
21
  export class User extends BaseUser {
21
22
  constructor() {
22
23
  super(...arguments);
@@ -61,6 +62,22 @@ export class User extends BaseUser {
61
62
  roles = flatten(roles.map((role) => USER_ROLES[role]));
62
63
  return !!intersection(this.roles, roles).length;
63
64
  }
65
+ getTankTypes() {
66
+ const tankTypes = [];
67
+ if (this.roles.includes(UserRolesEnum.WORK_TANK)) {
68
+ tankTypes.push(TankTypeEnum.WORK);
69
+ }
70
+ if (this.roles.includes(UserRolesEnum.PROPERTY_TANK)) {
71
+ tankTypes.push(TankTypeEnum.PROPERTY);
72
+ }
73
+ if (this.roles.includes(UserRolesEnum.SOLE_TANK)) {
74
+ tankTypes.push(TankTypeEnum.SOLE);
75
+ }
76
+ if (this.roles.includes(UserRolesEnum.HOLDING_TANK)) {
77
+ tankTypes.push(TankTypeEnum.HOLDING);
78
+ }
79
+ return tankTypes;
80
+ }
64
81
  isOnboarding() {
65
82
  return this.status === UserStatusEnum.ON_BOARDING;
66
83
  }
@@ -100,33 +117,6 @@ export class User extends BaseUser {
100
117
  isManager() {
101
118
  return this.roles.includes(UserRolesEnum.FIRM_MANAGER) || this.roles.includes(UserRolesEnum.FIRM_TOP_MANAGER) || this.roles.includes(UserRolesEnum.FIRM_OWNER);
102
119
  }
103
- /**
104
- * check if user has property tank access
105
- */
106
- hasPropertyTank() {
107
- return this.roles ?
108
- this.roles.includes(UserRolesEnum.PROPERTY_TANK) :
109
- !!this.getSubscriptionRole(UserRolesEnum.PROPERTY_TANK);
110
- }
111
- /**
112
- * check if user has property tank access
113
- */
114
- hasWorkTank() {
115
- return this.roles ?
116
- this.roles.includes(UserRolesEnum.WORK_TANK) :
117
- !!this.getSubscriptionRole(UserRolesEnum.WORK_TANK);
118
- }
119
- /**
120
- * Get user subscription role by provided role type
121
- * @param roleType by which role should be returned
122
- */
123
- getSubscriptionRole(roleType) {
124
- /**
125
- * Add @TODO for Alex to check if we should use getLastSubscription here
126
- */
127
- return this.activeSubscription?.items
128
- .find((subscriptionItem) => subscriptionItem.price.product.role.includes(roleType));
129
- }
130
120
  isCurrentFinancialYear() {
131
121
  return new FinancialYear(new Date()).year === this.financialYear;
132
122
  }
@@ -171,4 +161,4 @@ __decorate([
171
161
  __decorate([
172
162
  Type(() => AccountSetupItem)
173
163
  ], User.prototype, "blacklistSetupItems", void 0);
174
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvdXNlci91c2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsSUFBSSxJQUFJLFFBQVEsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzdELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNqRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUNyQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQzFDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDekMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRTlELE9BQU8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VIpIHx8IHRoaXMucm9sZXMuaW5jbHVkZXMoVXNlclJvbGVzRW51bS5GSVJNX1RPUF9NQU5BR0VSKSB8fCB0aGlzLnJvbGVzLmluY2x1ZGVzKFVzZXJSb2xlc0VudW0uRklSTV9PV05FUik7XG4gIH1cblxuICBpc0N1cnJlbnRGaW5hbmNpYWxZZWFyKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBuZXcgRmluYW5jaWFsWWVhcihuZXcgRGF0ZSgpKS55ZWFyID09PSB0aGlzLmZpbmFuY2lhbFllYXI7XG4gIH1cblxuICAvKipcbiAgICogZmluYW5jaWFsIHllYXJzIGF2YWlsYWJsZSBpbiB0aGUgYXBwIGZvciB1c2VyXG4gICAqIHN0YXJ0cyBmcm9tIDIwMjIgZm9yIG5ldyB1c2VycyBhbmQgcmVnaXN0ZXJlZFllYXIgLSAxIGZvciBvbGQgdXNlcnNcbiAgICovXG4gIGdldCBmaW5hbmNpYWxZZWFycygpOiBudW1iZXIge1xuICAgIHJldHVybiByYW5nZShcbiAgICAgIE1hdGgubWluKEZpbmFuY2lhbFllYXIudG9GaW5ZZWFyKHRoaXMuY3JlYXRlZEF0KSAtIDEsIDIwMjIpLFxuICAgICAgRmluYW5jaWFsWWVhci50b0ZpblllYXIobmV3IERhdGUoKSkgKyAxXG4gICAgKTtcbiAgfVxuXG4gIGdldCBmaXJtQnJhbmNoTmFtZXMoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5lbXBsb3llZURldGFpbHMuZmlybUJyYW5jaE5hbWVzO1xuICB9XG59XG5cbiJdfQ==
@@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
2
2
  import { HoldingSale } from '../../../models';
3
3
  import { RestService } from '../rest';
4
4
  import { HoldingSaleCollection } from '../../../collections';
5
+ import { UserRolesEnum } from 'taxtank-core/common';
5
6
  import * as i0 from "@angular/core";
6
7
  export class HoldingSaleService extends RestService {
7
8
  constructor() {
@@ -10,6 +11,7 @@ export class HoldingSaleService extends RestService {
10
11
  this.collectionClass = HoldingSaleCollection;
11
12
  this.endpointUri = 'holding-sales';
12
13
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
14
+ this.roles = [UserRolesEnum.HOLDING_TANK];
13
15
  }
14
16
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
15
17
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingSaleService, providedIn: 'root' }); }
@@ -20,4 +22,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
20
22
  providedIn: 'root'
21
23
  }]
22
24
  }] });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy1zYWxlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9ob2xkaW5nL2hvbGRpbmctc2FsZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzlDLE9BQU8sRUFBYyxXQUFXLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFDbEQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7O0FBSzdELE1BQU0sT0FBTyxrQkFBbUIsU0FBUSxXQUFnRTtJQUh4Rzs7UUFJRSxlQUFVLEdBQUcsV0FBVyxDQUFDO1FBQ3pCLG9CQUFlLEdBQUcscUJBQXF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NO2lCQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEhvbGRpbmdTYWxlIGFzIEhvbGRpbmdTYWxlQmFzZSB9IGZyb20gJy4uLy4uLy4uL2RiL01vZGVscyc7XG5pbXBvcnQgeyBIb2xkaW5nU2FsZSB9IGZyb20gJy4uLy4uLy4uL21vZGVscyc7XG5pbXBvcnQgeyBSZXN0TWV0aG9kLCBSZXN0U2VydmljZSB9IGZyb20gJy4uL3Jlc3QnO1xuaW1wb3J0IHsgSG9sZGluZ1NhbGVDb2xsZWN0aW9uIH0gZnJvbSAnLi4vLi4vLi4vY29sbGVjdGlvbnMnO1xuaW1wb3J0IHsgVXNlclJvbGVzRW51bSB9IGZyb20gJ3RheHRhbmstY29yZS9jb21tb24nO1xuXG5ASW5qZWN0YWJsZSh7XG4gIHByb3ZpZGVkSW46ICdyb290J1xufSlcbmV4cG9ydCBjbGFzcyBIb2xkaW5nU2FsZVNlcnZpY2UgZXh0ZW5kcyBSZXN0U2VydmljZTxIb2xkaW5nU2FsZUJhc2UsIEhvbGRpbmdTYWxlLCBIb2xkaW5nU2FsZUNvbGxlY3Rpb24+IHtcbiAgbW9kZWxDbGFzcyA9IEhvbGRpbmdTYWxlO1xuICBjb2xsZWN0aW9uQ2xhc3MgPSBIb2xkaW5nU2FsZUNvbGxlY3Rpb247XG4gIGVuZHBvaW50VXJpID0gJ2hvbGRpbmctc2FsZXMnO1xuICBkaXNhYmxlZE1ldGhvZHM6IFJlc3RNZXRob2RbXSA9IFsncG9zdEJhdGNoJywgJ3B1dEJhdGNoJywgJ2RlbGV0ZUJhdGNoJ107XG4gIHJvbGVzID0gW1VzZXJSb2xlc0VudW0uSE9MRElOR19UQU5LXTtcbn1cbiJdfQ==
@@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
2
2
  import { PropertySale } from '../../../../models';
3
3
  import { RestService } from '../../rest';
4
4
  import { PropertySaleCollection } from '../../../../collections';
5
+ import { UserRolesEnum } from 'taxtank-core/common';
5
6
  import * as i0 from "@angular/core";
6
7
  export class PropertySaleService extends RestService {
7
8
  constructor() {
@@ -10,6 +11,7 @@ export class PropertySaleService extends RestService {
10
11
  this.collectionClass = PropertySaleCollection;
11
12
  this.endpointUri = 'properties/sales';
12
13
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
14
+ this.roles = [UserRolesEnum.PROPERTY_TANK];
13
15
  }
14
16
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
15
17
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertySaleService, providedIn: 'root' }); }
@@ -20,4 +22,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
20
22
  providedIn: 'root'
21
23
  }]
22
24
  }] });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktc2FsZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvcHJvcGVydHkvcHJvcGVydHktc2FsZS9wcm9wZXJ0eS1zYWxlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDbEQsT0FBTyxFQUFjLFdBQVcsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUNyRCxPQUFPLEVBQ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WxlO1xuICBjb2xsZWN0aW9uQ2xhc3M6IHR5cGVvZiBQcm9wZXJ0eVNhbGVDb2xsZWN0aW9uID0gUHJvcGVydHlTYWxlQ29sbGVjdGlvbjtcbiAgZW5kcG9pbnRVcmkgPSAncHJvcGVydGllcy9zYWxlcyc7XG4gIGRpc2FibGVkTWV0aG9kczogUmVzdE1ldGhvZFtdID0gWydwb3N0QmF0Y2gnLCAncHV0QmF0Y2gnLCAnZGVsZXRlQmF0Y2gnXTtcbiAgcm9sZXMgPSBbVXNlclJvbGVzRW51bS5QUk9QRVJUWV9UQU5LXTtcbn1cbiJdfQ==
@@ -4,6 +4,7 @@ import { plainToClass } from 'class-transformer';
4
4
  import { AppEvent, AppEventTypeEnum, Property, PropertyCategoryMovement, PropertySale, PropertyShare, PropertySubscription, PropertyValuation } from '../../../models';
5
5
  import { RestService } from '../rest';
6
6
  import { PropertyCollection } from '../../../collections';
7
+ import { UserRolesEnum } from 'taxtank-core/common';
7
8
  import * as i0 from "@angular/core";
8
9
  /**
9
10
  * @Todo Alex remove functionality related to PropertyShare
@@ -11,7 +12,6 @@ import * as i0 from "@angular/core";
11
12
  * Service for work with Property
12
13
  */
13
14
  export class PropertyService extends RestService {
14
- // roles = [UserRolesEnum.PROPERTY_TANK];
15
15
  constructor(environment) {
16
16
  super(environment);
17
17
  this.environment = environment;
@@ -19,6 +19,7 @@ export class PropertyService extends RestService {
19
19
  this.collectionClass = PropertyCollection;
20
20
  this.endpointUri = 'properties';
21
21
  this.disabledMethods = ['deleteBatch'];
22
+ this.roles = [UserRolesEnum.PROPERTY_TANK];
22
23
  this.listenEvents();
23
24
  }
24
25
  /**
@@ -85,4 +86,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
85
86
  type: Inject,
86
87
  args: ['environment']
87
88
  }] }] });
88
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuc2VydmljZS5qcyI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