From 4e4b2fb1e7737ea9a8bb2b8fe98006c27a403325 Mon Sep 17 00:00:00 2001 From: Ldoppea Date: Mon, 26 Aug 2024 17:53:52 +0200 Subject: [PATCH] feat(cozy-intent): Add `downloadFile` native method `downloadFile` intent will be used by `cozy-client/models/file` in order to download files through Flagship app --- packages/cozy-intent/src/api/models/methods.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cozy-intent/src/api/models/methods.ts b/packages/cozy-intent/src/api/models/methods.ts index 4182153530..61447cc71b 100644 --- a/packages/cozy-intent/src/api/models/methods.ts +++ b/packages/cozy-intent/src/api/models/methods.ts @@ -27,6 +27,7 @@ interface _NativeMethodsRegister { openAppOSSettings: () => Promise isAvailable: (featureName: string) => Promise flagshipLinkRequest: (operation: unknown) => Promise + downloadFile: (file: unknown) => Promise } export type NativeMethodsRegister = _NativeMethodsRegister & PostMeDefault