@airporting/integrations-app 0.4.144 → 0.4.146
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.
- package/dist/mf/2070.css +73 -73
- package/dist/mf/5741.js +1 -1
- package/dist/mf/@mf-types/compiled-types/api/fec-imports/currencies.d.ts +18 -0
- package/dist/mf/@mf-types/compiled-types/api/fec-imports/fecImportMutations.d.ts +5 -1
- package/dist/mf/@mf-types/compiled-types/api/fec-imports/types.d.ts +5 -0
- package/dist/mf/@mf-types.zip +0 -0
- package/dist/mf/__federation_expose_synchronisation.js +1 -1
- package/dist/mf/index.js +3 -3
- package/dist/mf/integrations_app.js +3 -3
- package/dist/mf/mf-manifest.json +2 -2
- package/dist/mf/mf-stats.json +8 -8
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CurrencyOption } from './types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Devise fonctionnelle par défaut d'un import de fichier.
|
|
4
|
+
* Doit rester alignée avec le défaut appliqué côté API (app-api-v2).
|
|
5
|
+
*/
|
|
6
|
+
export declare const DEFAULT_IMPORT_CURRENCY: string;
|
|
7
|
+
/**
|
|
8
|
+
* Codes ISO 4217 utiles aux dossiers Airporting.
|
|
9
|
+
* EUR en tête (cas majoritaire), puis ordre alphabétique.
|
|
10
|
+
* Liste volontairement courte : les dossiers hors zone euro (Afrique
|
|
11
|
+
* centrale/de l'Ouest, Madagascar, Maghreb, etc.) sont couverts ici.
|
|
12
|
+
*/
|
|
13
|
+
export declare const IMPORT_CURRENCY_OPTIONS: CurrencyOption[];
|
|
14
|
+
/**
|
|
15
|
+
* Ajoute la devise déjà enregistrée sur un import si elle sort de la liste
|
|
16
|
+
* courte, pour ne jamais afficher un Select vide sur un dossier exotique.
|
|
17
|
+
*/
|
|
18
|
+
export declare function currencyOptionsWith(currency: string | null): CurrencyOption[];
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { FecImportDetail, FecImportSummary, FileImportMapping } from './types.ts';
|
|
2
|
-
export declare function useFecImportUploadMutation(): import("@tanstack/react-query").UseMutationResult<FecImportDetail, Error,
|
|
2
|
+
export declare function useFecImportUploadMutation(): import("@tanstack/react-query").UseMutationResult<FecImportDetail, Error, {
|
|
3
|
+
file: File;
|
|
4
|
+
currency: string;
|
|
5
|
+
}, unknown>;
|
|
3
6
|
export declare function useFecImportMappingMutation(importId: string | null): import("@tanstack/react-query").UseMutationResult<FecImportDetail, Error, {
|
|
4
7
|
mapping: FileImportMapping;
|
|
5
8
|
hasHeader: boolean;
|
|
9
|
+
currency?: string;
|
|
6
10
|
}, unknown>;
|
|
7
11
|
export declare function useFecImportCommitMutation(): import("@tanstack/react-query").UseMutationResult<FecImportSummary, Error, string, unknown>;
|
|
8
12
|
export declare function useFecImportDeleteMutation(): import("@tanstack/react-query").UseMutationResult<FecImportSummary, Error, string, unknown>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export type FecImportStatus = 'mapping_required' | 'validated' | 'failed' | 'committed' | 'deleted';
|
|
2
2
|
export type FileImportSourceFormat = 'fec' | 'excel' | 'csv';
|
|
3
3
|
export type FileImportMapping = Partial<Record<'entry_date' | 'journal_code' | 'entry_number' | 'account_number' | 'account_label' | 'label' | 'debit' | 'credit' | 'amount' | 'document_ref' | 'third_party_number' | 'third_party_label' | 'tag_group' | 'tag_label' | 'analytical_code' | 'lettering', string | null>>;
|
|
4
|
+
export type CurrencyOption = {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
4
8
|
export type FecIssue = {
|
|
5
9
|
severity: 'error' | 'warning';
|
|
6
10
|
code: string;
|
|
@@ -24,6 +28,7 @@ export type FecImportSummary = {
|
|
|
24
28
|
file_size_bytes: number;
|
|
25
29
|
has_raw_file: boolean;
|
|
26
30
|
encoding: string | null;
|
|
31
|
+
currency: string | null;
|
|
27
32
|
period_start: string | null;
|
|
28
33
|
period_end: string | null;
|
|
29
34
|
line_count: number;
|
package/dist/mf/@mf-types.zip
CHANGED
|
Binary file
|