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.
- package/bundles/taxtank-core.umd.js +38 -20
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/user/user-roles.const.js +9 -6
- package/esm2015/lib/models/user/user.js +15 -4
- package/esm2015/lib/services/http/subscription/subscription.service.js +8 -2
- package/fesm2015/taxtank-core.js +34 -16
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/user/user-roles.const.d.ts +3 -0
- package/lib/models/user/user.d.ts +5 -2
- package/package.json +1 -1
|
@@ -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
|
|
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
|
-
|
|
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;
|