Skip to content

Commit

Permalink
feat: Improve type of NextcloudFile
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Jul 18, 2024
1 parent 26f1206 commit ee2326c
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -482,6 +482,7 @@ import { QueryDefinition } from './queries/dsl'
* @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
* @property {{self: string}} links - Links to the file into nextcloud server
*/

/**
Expand Down
6 changes: 6 additions & 0 deletions packages/cozy-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,12 @@ export type NextcloudFile = {
cozyMetadata: {
sourceAccount: string;
};
/**
* - Links to the file into nextcloud server
*/
links: {
self: string;
};
};
/**
* - An io.cozy.oauth.clients document
Expand Down

0 comments on commit ee2326c

Please sign in to comment.