diff --git a/src/@types/cozy-client.d.ts b/src/@types/cozy-client.d.ts index 7bb4fc2af..b8d3c8473 100644 --- a/src/@types/cozy-client.d.ts +++ b/src/@types/cozy-client.d.ts @@ -133,6 +133,20 @@ declare module 'cozy-client' { } & CozyClientDocument interface Collection { + waitFor(id: string): Promise + create( + workerType: string, + jobArgs: { + konnector: string + account: string | undefined + folder_to_save: string + }, + options: { + timeout?: number | undefined + max_exec_count?: number | undefined + }, + manual: boolean + ): Promise<{ data: object }> findReferencedBy: ( params: object ) => Promise<{ included: { attributes: unknown }[] }>