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.
- package/esm2020/lib/collections/collection.mjs +2 -3
- package/esm2020/lib/services/auth/auth.service.mjs +1 -2
- package/esm2020/lib/services/auth/jwt.service.mjs +8 -2
- package/esm2020/lib/services/http/facebook/facebook.service.mjs +3 -4
- package/esm2020/lib/services/http/google/google.service.mjs +1 -2
- package/esm2020/lib/services/http/rest/rest.service.mjs +15 -1
- package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +2 -3
- package/esm2020/lib/services/http/user/user.service.mjs +8 -3
- package/esm2020/lib/services/mixpanel/mixpanel.service.mjs +7 -1
- package/fesm2015/taxtank-core.mjs +81 -55
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +79 -53
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/services/auth/jwt.service.d.ts +1 -0
- package/lib/services/http/facebook/facebook.service.d.ts +2 -2
- package/lib/services/http/rest/rest.service.d.ts +4 -0
- package/lib/services/http/tax-review/tax-review.service.d.ts +1 -1
- package/lib/services/mixpanel/mixpanel.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
4
|
-
import { JwtService } from '../../auth
|
|
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
|
|
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
|
}
|