forlogic-core 2.4.14 → 2.5.1

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.
@@ -7,6 +7,12 @@ declare class QualiexApiService {
7
7
  * Sem este header, a API retorna erro 401 "ID not found"
8
8
  */
9
9
  private makeApiCall;
10
+ /**
11
+ * Retorna se a unidade possui a flag `has_common_v5` (V5 habilitado).
12
+ * `GET /api/common/v1/companies/hasCommonV5/{companyId}` → `{ data: [{ id, hasCommonV5 }] }`.
13
+ * O servidor resolve pelo contexto do token; o companyId no path acompanha o padrão do V4.
14
+ */
15
+ fetchHasCommonV5(alias: string, companyId: string): Promise<boolean>;
10
16
  private mapToQualiexUser;
11
17
  /**
12
18
  * Extrai e valida o array de usuários da resposta da API.
@@ -46,6 +46,7 @@
46
46
  | Spec do módulo Queries | `spec/queries.md` |
47
47
  | Inventário de Supabase Storage | `docs/STORAGE_BUCKETS.md` |
48
48
  | **Guardrails de Segurança (normativo)** | **`docs/SECURITY.md`** |
49
+ | **Tokens Qualiex (access + id, claims, headers)** | **`lib/auth/TOKENS.md`** |
49
50
 
50
51
  ---
51
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forlogic-core",
3
- "version": "2.4.14",
3
+ "version": "2.5.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -132,7 +132,6 @@
132
132
  "date-fns": "^3.6.0",
133
133
  "date-fns-tz": "^3.2.0",
134
134
  "dompurify": "^3.4.2",
135
- "exceljs": "^4.4.0",
136
135
  "i18next-browser-languagedetector": "^8.2.0",
137
136
  "jszip": "^3.10.1",
138
137
  "lucide-react": "^0.553.0",
@@ -142,7 +141,6 @@
142
141
  "react-dom": "^18.3.1",
143
142
  "react-hook-form": "^7.61.1",
144
143
  "react-resizable-panels": "^3.0.6",
145
- "react-router-dom": "^6.30.1",
146
144
  "recharts": "^3.6.0",
147
145
  "sonner": "^1.7.4",
148
146
  "tailwind-merge": "^3.3.1",
@@ -152,7 +150,12 @@
152
150
  },
153
151
  "peerDependencies": {
154
152
  "i18next": "^25.0.0",
155
- "react-i18next": "^16.0.0"
153
+ "react-i18next": "^16.0.0",
154
+ "react-router-dom": "^7.18.1"
155
+ },
156
+ "overrides": {
157
+ "esbuild": "^0.28.1",
158
+ "uuid": "^11.1.1"
156
159
  },
157
160
  "devDependencies": {
158
161
  "@babel/parser": "^7.28.5",
@@ -177,9 +180,11 @@
177
180
  "eslint": "^9.32.0",
178
181
  "eslint-plugin-react-hooks": "^5.2.0",
179
182
  "eslint-plugin-react-refresh": "^0.4.20",
183
+ "exceljs": "^4.4.0",
180
184
  "globals": "^15.15.0",
181
185
  "lovable-tagger": "^1.1.9",
182
- "postcss": "^8.5.6",
186
+ "postcss": "^8.5.18",
187
+ "react-router-dom": "^7.18.1",
183
188
  "rollup": "^4.50.1",
184
189
  "rollup-plugin-copy": "^3.5.0",
185
190
  "rollup-plugin-esbuild": "^6.2.1",
@@ -189,5 +194,9 @@
189
194
  "typescript": "^5.8.3",
190
195
  "typescript-eslint": "^8.38.0",
191
196
  "vite": "^7.3.0"
197
+ },
198
+ "allowScripts": {
199
+ "@swc/core@1.15.18": true,
200
+ "esbuild@0.28.1": true
192
201
  }
193
202
  }