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 41398ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/@types/cozy-client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ 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 41398ce

Please sign in to comment.