taxtank-core 0.31.50 → 0.31.52

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.
@@ -2,6 +2,7 @@ import { JwtHelperService } from '@auth0/angular-jwt';
2
2
  import { User } from '../../models';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class JwtService extends JwtHelperService {
5
+ private mpService;
5
6
  getToken(): string;
6
7
  getRefreshToken(): string;
7
8
  saveTokens(tokens: {
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { BehaviorSubject } from 'rxjs';
3
- import { ToastService } from '../../toast/toast.service';
4
- import { JwtService } from '../../auth/jwt.service';
3
+ import { ToastService } from '../../toast';
4
+ import { JwtService } from '../../auth';
5
5
  import { FacebookAuthOptions } from './facebook-auth-options.interface';
6
6
  import { Router } from '@angular/router';
7
7
  import { MixpanelService } from '../../mixpanel/mixpanel.service';
@@ -106,6 +106,10 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
106
106
  * @param callback The function to be called when event triggered
107
107
  */
108
108
  protected listenCSE(modelClass: typeof ObservableModel, methods: HttpMethod[], callback: Function): void;
109
+ /**
110
+ * check if user has subscription role to access api
111
+ */
112
+ hasRoles(): boolean;
109
113
  /**
110
114
  * // @TODO Alex remove
111
115
  * Method that call all listeners. Empty by default. Should be redefined by child services if required
@@ -2,7 +2,7 @@ import { TaxReview as TaxReviewBase } from '../../../db/Models/firm/accountant/t
2
2
  import { Observable } from 'rxjs';
3
3
  import { RestService } from '../rest/rest-old.service';
4
4
  import { TaxReview } from '../../../models/tax-review/tax-review';
5
- import { IEventListener } from '../../../interfaces/event-listener.interface';
5
+ import { IEventListener } from '../../../interfaces';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Service to work with tax review
@@ -11,6 +11,7 @@ export declare class MixpanelService {
11
11
  track(event: string, properties?: {
12
12
  [key: string]: any;
13
13
  }): void;
14
+ trackPageView(): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<MixpanelService, never>;
15
16
  static ɵprov: i0.ɵɵInjectableDeclaration<MixpanelService>;
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.31.50",
3
+ "version": "0.31.52",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",