taxtank-core 0.30.16 → 0.30.17

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.
@@ -0,0 +1,43 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ToastService } from '../../toast';
3
+ import { JwtService } from '../../auth';
4
+ import { Router } from "@angular/router";
5
+ import { BehaviorSubject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Google instance
9
+ * https://developers.google.com/identity/oauth2/web/guides/overview
10
+ * https://developers.google.com/identity/gsi/web/guides/overview
11
+ */
12
+ export declare class GoogleService {
13
+ private http;
14
+ private toastService;
15
+ private jwtService;
16
+ private router;
17
+ private environment;
18
+ isLoggedInSubject: BehaviorSubject<boolean>;
19
+ isGoogleEnabled: boolean;
20
+ googleScope: string;
21
+ constructor(http: HttpClient, toastService: ToastService, jwtService: JwtService, router: Router, environment: any);
22
+ /**
23
+ * prompt for user consent and obtain an access token to work with user data
24
+ * requestAccessToken() method to trigger the token UX flow and obtain an access token.
25
+ * https://developers.google.com/identity/oauth2/web/guides/use-token-model
26
+ */
27
+ login(): void;
28
+ /**
29
+ * requestAccessToken() method to trigger the token UX flow and obtain an access token:
30
+ * Choose their account;
31
+ * sign-in to the Google Account if not already signed-in;
32
+ * grant consent for your web app to access each requested scope.
33
+ */
34
+ private setAuth;
35
+ /**
36
+ * When the user signs out of your website, you need to call the method
37
+ * google.accounts.id.disableAutoSelect to record the status in cookies.
38
+ * https://developers.google.com/identity/oauth2/web/guides/use-token-model
39
+ */
40
+ private logout;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<GoogleService, never>;
42
+ static ɵprov: i0.ɵɵInjectableDeclaration<GoogleService>;
43
+ }
@@ -0,0 +1 @@
1
+ export * from './google.service';
@@ -5,6 +5,7 @@ export * from './chat';
5
5
  export * from './depreciation';
6
6
  export * from './document';
7
7
  export * from './facebook';
8
+ export * from './google';
8
9
  export * from './file';
9
10
  export * from './firm';
10
11
  export * from './income-source';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.30.16",
3
+ "version": "0.30.17",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",
@@ -13,6 +13,9 @@
13
13
  "@auth0/angular-jwt": "^5.0.2",
14
14
  "@stripe/stripe-js": "^1.11.0",
15
15
  "@types/facebook-js-sdk": "^3.3.5",
16
+ "@types/gapi": "^0.0.41",
17
+ "@types/gapi.client": "^1.0.5",
18
+ "@types/gapi.auth2": "^0.0.56",
16
19
  "class-transformer": "^0.5.1",
17
20
  "event-source-polyfill": "^1.0.22",
18
21
  "moment": "^2.29.4",