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 authored and doubleface committed Nov 15, 2024
1 parent 40e40e1 commit f05bd13
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: { id: string } }>
findReferencedBy: (
params: object
) => Promise<{ included: { attributes: unknown }[] }>
Expand Down

0 comments on commit f05bd13

Please sign in to comment.