Skip to content

Commit

Permalink
feat: Add restore_path to NextcloudFile type
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Jul 19, 2024
1 parent 90b2fff commit 3d2f7f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/cozy-client/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ import { QueryDefinition } from './queries/dsl'
* @property {string} name - Name of the file
* @property {string} path - Path to the file
* @property {string} parentPath - Path to the folder containing the file
* @property {string} [restore_path] - Old path when the file is in the trash
* @property {'file'|'directory'} type - Type of the file
* @property {object} cozyMetadata - Mime of the file
* @property {string} cozyMetadata.sourceAccount - Id of the io.cozy.account associated to the Nextcloud
Expand Down
4 changes: 4 additions & 0 deletions packages/cozy-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,10 @@ export type NextcloudFile = {
* - Path to the folder containing the file
*/
parentPath: string;
/**
* - Old path when the file is in the trash
*/
restore_path?: string;
/**
* - Type of the file
*/
Expand Down

0 comments on commit 3d2f7f9

Please sign in to comment.