taxtank-core 0.28.96 → 0.28.97

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.
@@ -1,4 +1,7 @@
1
1
  import { UserRolesEnum } from '../../db/Enums/user-roles.enum';
2
+ /**
3
+ * role hierarchy
4
+ */
2
5
  export declare const USER_ROLES: {
3
6
  [key: string]: UserRolesEnum[];
4
7
  };
@@ -1,6 +1,6 @@
1
1
  import { User as BaseUser } from '../../db/Models/user/user';
2
2
  import { UserRolesEnum } from '../../db/Enums/user-roles.enum';
3
- import { Address } from '../address/address';
3
+ import { Address } from '../address';
4
4
  import { ClientDetails } from '../client/client-details';
5
5
  import { EmployeeDetails } from '../employee/employee-details';
6
6
  import { Phone } from '../phone/phone';
@@ -25,7 +25,10 @@ export declare class User extends BaseUser implements Photoable {
25
25
  *
26
26
  */
27
27
  get position(): string;
28
- hasRole(role: UserRolesEnum): boolean;
28
+ /**
29
+ * search roles including hierarchy
30
+ */
31
+ hasRoles(roles: UserRolesEnum | UserRolesEnum[]): boolean;
29
32
  isOnboarding(): boolean;
30
33
  hasSubscription(): boolean;
31
34
  isLoggedIn(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.96",
3
+ "version": "0.28.97",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",