@airporting/integrations-app 0.4.159 → 0.4.160
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/4831.js +1 -1
- package/dist/mf/5741.js +1 -1
- package/dist/mf/@mf-types/compiled-types/api/connectors/useConnectorSaveWithStepUp.d.ts +13 -77
- package/dist/mf/@mf-types.zip +0 -0
- 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
|
@@ -1,85 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sauvegarde d'un connecteur avec ré-authentification par mot de passe.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* ⚠️ Les consommateurs n'appellent pas tous la même méthode, et c'est le piège qui
|
|
5
|
+
* a fait passer la première version à côté : le DynamicForm publié par
|
|
6
|
+
* @airporting/app-front appelle `save.mutateAsync`, alors que GsheetFilesManager
|
|
7
|
+
* appelle `save.mutate`. Ne remplacer que `mutate` laissait la sauvegarde partir
|
|
8
|
+
* directement, sans jeton ni modale. Les deux doivent donc être interceptées.
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Fenêtre de grâce : le jeton vit dans le RevealTokenContext partagé, en mémoire
|
|
11
|
+
* seulement, et expire au bout de 5 minutes. On ne redemande donc le mot de passe
|
|
12
|
+
* qu'une fois par fenêtre.
|
|
13
|
+
*
|
|
14
|
+
* Le type UseMutationResult renvoyé reste intact, sinon le DynamicForm publié
|
|
15
|
+
* refuse la prop. C'est aussi pourquoi le jeton est lu par callback plutôt que
|
|
16
|
+
* passé en variable de mutation.
|
|
13
17
|
*/
|
|
14
18
|
export declare function useConnectorSaveWithStepUp(): {
|
|
15
|
-
save:
|
|
16
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<import("../../gen/IntegrationsApi").ConnectorSaveDataResponse, Error, unknown, unknown>;
|
|
17
|
-
data: undefined;
|
|
18
|
-
variables: undefined;
|
|
19
|
-
error: null;
|
|
20
|
-
isError: false;
|
|
21
|
-
isIdle: true;
|
|
22
|
-
isPending: false;
|
|
23
|
-
isSuccess: false;
|
|
24
|
-
status: "idle";
|
|
25
|
-
reset: () => void;
|
|
26
|
-
context: unknown;
|
|
27
|
-
failureCount: number;
|
|
28
|
-
failureReason: Error | null;
|
|
29
|
-
isPaused: boolean;
|
|
30
|
-
submittedAt: number;
|
|
31
|
-
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("../../gen/IntegrationsApi").ConnectorSaveDataResponse, Error, unknown, unknown>;
|
|
32
|
-
} | {
|
|
33
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<import("../../gen/IntegrationsApi").ConnectorSaveDataResponse, Error, unknown, unknown>;
|
|
34
|
-
data: undefined;
|
|
35
|
-
variables: unknown;
|
|
36
|
-
error: null;
|
|
37
|
-
isError: false;
|
|
38
|
-
isIdle: false;
|
|
39
|
-
isPending: true;
|
|
40
|
-
isSuccess: false;
|
|
41
|
-
status: "pending";
|
|
42
|
-
reset: () => void;
|
|
43
|
-
context: unknown;
|
|
44
|
-
failureCount: number;
|
|
45
|
-
failureReason: Error | null;
|
|
46
|
-
isPaused: boolean;
|
|
47
|
-
submittedAt: number;
|
|
48
|
-
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("../../gen/IntegrationsApi").ConnectorSaveDataResponse, Error, unknown, unknown>;
|
|
49
|
-
} | {
|
|
50
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<import("../../gen/IntegrationsApi").ConnectorSaveDataResponse, Error, unknown, unknown>;
|
|
51
|
-
data: undefined;
|
|
52
|
-
error: Error;
|
|
53
|
-
variables: unknown;
|
|
54
|
-
isError: true;
|
|
55
|
-
isIdle: false;
|
|
56
|
-
isPending: false;
|
|
57
|
-
isSuccess: false;
|
|
58
|
-
status: "error";
|
|
59
|
-
reset: () => void;
|
|
60
|
-
context: unknown;
|
|
61
|
-
failureCount: number;
|
|
62
|
-
failureReason: Error | null;
|
|
63
|
-
isPaused: boolean;
|
|
64
|
-
submittedAt: number;
|
|
65
|
-
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("../../gen/IntegrationsApi").ConnectorSaveDataResponse, Error, unknown, unknown>;
|
|
66
|
-
} | {
|
|
67
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<import("../../gen/IntegrationsApi").ConnectorSaveDataResponse, Error, unknown, unknown>;
|
|
68
|
-
data: import("../../gen/IntegrationsApi").ConnectorSaveDataResponse;
|
|
69
|
-
error: null;
|
|
70
|
-
variables: unknown;
|
|
71
|
-
isError: false;
|
|
72
|
-
isIdle: false;
|
|
73
|
-
isPending: false;
|
|
74
|
-
isSuccess: true;
|
|
75
|
-
status: "success";
|
|
76
|
-
reset: () => void;
|
|
77
|
-
context: unknown;
|
|
78
|
-
failureCount: number;
|
|
79
|
-
failureReason: Error | null;
|
|
80
|
-
isPaused: boolean;
|
|
81
|
-
submittedAt: number;
|
|
82
|
-
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("../../gen/IntegrationsApi").ConnectorSaveDataResponse, Error, unknown, unknown>;
|
|
83
|
-
};
|
|
19
|
+
save: import("@tanstack/react-query").UseMutationResult<import("../../gen/IntegrationsApi").ConnectorSaveDataResponse, Error, unknown, unknown>;
|
|
84
20
|
reauthModal: import("react/jsx-runtime").JSX.Element;
|
|
85
21
|
};
|
package/dist/mf/@mf-types.zip
CHANGED
|
Binary file
|