@cm-sigoo-temp/ui 0.2.46 → 1.0.0

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,7 +2,7 @@ import { TPermisosResponse } from '../tipos';
2
2
  export type EnvPermisos = 'dev' | 'test' | 'prod';
3
3
  /**
4
4
  * Obtiene permisos del usuario para la plataforma.
5
- * El consumidor solo envía el ambiente (dev/test/prod). La config se lee del .env de la librería al hacer build.
5
+ * Usa el token de la sesión activa de Keycloak (usuario autenticado).
6
6
  * Si no se recibe ambiente, se usa 'dev' por defecto.
7
7
  */
8
8
  export declare const obtenerPermisos: (usuario: string, plataforma: string, env?: EnvPermisos) => Promise<TPermisosResponse>;
@@ -1,2 +1,3 @@
1
1
  import { TResponseTerminales } from '../tipos';
2
- export declare const obtenerTerminales: () => Promise<TResponseTerminales>;
2
+ export type EnvTerminales = 'dev' | 'test' | 'prod';
3
+ export declare const obtenerTerminales: (env?: EnvTerminales) => Promise<TResponseTerminales>;
@@ -1,4 +1,5 @@
1
1
  export * from './auth';
2
2
  export * from './keycloak';
3
+ export * from './keycloakInstance';
3
4
  export * from './KeycloakContext';
4
5
  export * as openID from './openID';
@@ -0,0 +1,4 @@
1
+ import { default as Keycloak } from 'keycloak-js';
2
+ export declare function setKeycloakInstance(kc: Keycloak): void;
3
+ export declare function getKeycloakInstance(): Keycloak | null;
4
+ export declare function getKeycloakToken(): string | undefined;