Skip to content

Commit

Permalink
fix: CozyClient collection type
Browse files Browse the repository at this point in the history
To handle JobCollection create and waitFor methods
  • Loading branch information
doubleface committed Nov 15, 2024
1 parent f57c273 commit 22fd42b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/@types/cozy-client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@ declare module 'cozy-client' {
} & CozyClientDocument

interface Collection {
waitFor(id: string): Promise<object>
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 }[] }>
Expand Down

0 comments on commit 22fd42b

Please sign in to comment.