forlogic-core 2.3.4 → 2.3.5

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.
@@ -1,3 +1,34 @@
1
+ /**
2
+ * Mapa de URLs de logos disponíveis na lib.
3
+ * Use junto com `resolveBrandLogo()` para troca dinâmica.
4
+ */
5
+ export declare const brandLogos: {
6
+ readonly qualiex: "https://ccjfvpnndclajkleyqkc.supabase.co/storage/v1/object/public/library-assets/logo-qualiex-white.svg";
7
+ readonly qualitfy: "https://ccjfvpnndclajkleyqkc.supabase.co/storage/v1/object/public/library-assets/logo-qualitfy-white.svg";
8
+ readonly metroex: "https://ccjfvpnndclajkleyqkc.supabase.co/storage/v1/object/public/library-assets/logo-metroex-white.svg";
9
+ readonly saber: "https://ccjfvpnndclajkleyqkc.supabase.co/storage/v1/object/public/library-assets/saber-gestao-white.png";
10
+ readonly qualiexSmall: "https://ccjfvpnndclajkleyqkc.supabase.co/storage/v1/object/public/library-assets/logo-forlogic-white.svg";
11
+ readonly saberSmall: "https://ccjfvpnndclajkleyqkc.supabase.co/storage/v1/object/public/library-assets/small.svg";
12
+ };
13
+ /**
14
+ * Flags por unidade vindas de `/users/{userId}/associations`.
15
+ * Defaults false quando associação não existe ou ainda não carregou.
16
+ */
17
+ export interface BrandFlags {
18
+ isQualitfy?: boolean | null;
19
+ isMetroex?: boolean | null;
20
+ }
21
+ /**
22
+ * Resolve URL da logo full em runtime.
23
+ *
24
+ * Prioridade quando build é Qualiex (`VITE_IS_QUALIEX=true`):
25
+ * 1. isMetroex → metroex
26
+ * 2. isQualitfy → qualitfy
27
+ * 3. fallback → qualiex
28
+ *
29
+ * Build não-Qualiex → Saber Gestão (flags ignoradas).
30
+ */
31
+ export declare function resolveBrandLogo(flags?: BrandFlags): string;
1
32
  export declare const assets: {
2
33
  logo: string;
3
34
  smallLogo: string;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Faz upload da foto do usuário via endpoint legado common-api.
3
+ * POST /api/common/users/UploadImageAsync?identifier={userIdentifier}
4
+ */
5
+ export declare function uploadUserPhoto(file: File): Promise<void>;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Serviço de perfil do usuário no Identidade.
3
+ *
4
+ * TODO: Endpoints reais (GET/PUT) serão informados posteriormente.
5
+ * Por enquanto, `updateUserProfile` rejeita com mensagem clara
6
+ * indicando que o endpoint ainda não está configurado.
7
+ */
8
+ export interface UserProfile {
9
+ name: string;
10
+ email: string;
11
+ language: string;
12
+ }
13
+ export interface UpdateUserProfileInput {
14
+ name?: string;
15
+ email?: string;
16
+ language?: string;
17
+ }
18
+ export declare function updateUserProfile(_input: UpdateUserProfileInput): Promise<void>;
@@ -11,5 +11,7 @@ export * from '../auth/pages/CallbackPage';
11
11
  export * from '../auth/services/AuthService';
12
12
  export { TokenManager } from '../auth/services/TokenManager';
13
13
  export * from '../auth/services/TokenService';
14
+ export * from '../auth/services/userPhotoApi';
15
+ export * from '../auth/services/userProfileApi';
14
16
  export * from '../auth/utils/ErrorInterceptor';
15
17
  export * from '../integrations/clarity';