@luizleon/sf.prefeiturasp.vuecomponents 4.1.1 → 4.1.3

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,8 @@
1
+ import { default as Keycloak, KeycloakInitOptions } from '../keycloak';
2
+ interface IAuthService {
3
+ Instance: Keycloak;
4
+ InitAsync: (initOptions?: KeycloakInitOptions) => Promise<boolean>;
5
+ isAuthenticated: boolean;
6
+ userinfo: Record<string, any> | null;
7
+ }
8
+ export { IAuthService };
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance, AxiosResponse } from 'axios';
2
- import { AppResult } from '../types';
2
+ import { AppResult } from '../common/appResult';
3
3
  declare class ApiClient {
4
4
  constructor();
5
5
  private axios;
@@ -1,5 +1,5 @@
1
- import { IAuthService } from '../types';
2
1
  import { KeycloakConfig, KeycloakInitOptions } from '../keycloak';
2
+ import { IAuthService } from '../common/auth';
3
3
  declare const UseAuthService: () => {
4
4
  Instance: {
5
5
  authenticated?: boolean | undefined;
@@ -113,20 +113,9 @@ declare const UseAuthService: () => {
113
113
  loadUserProfile: () => Promise<import('../keycloak').KeycloakProfile>;
114
114
  loadUserInfo: () => Promise<{}>;
115
115
  };
116
- InitAsync: (initOptions?: KeycloakInitOptions | undefined) => Promise<import('../types').User | null>;
116
+ InitAsync: (initOptions?: KeycloakInitOptions | undefined) => Promise<boolean>;
117
117
  isAuthenticated: boolean;
118
- User?: {
119
- name: string;
120
- email: string;
121
- username: string;
122
- roles: string[];
123
- groups: string[];
124
- emailVerified: boolean;
125
- firstName: string;
126
- lastName: string;
127
- sub: string;
128
- IsInRole: (role: string) => boolean;
129
- } | undefined;
118
+ userinfo: Record<string, any> | null;
130
119
  };
131
120
  declare const StartAuthService: (config: KeycloakConfig) => IAuthService;
132
121
  export { StartAuthService, UseAuthService };