Skip to content

Commit

Permalink
feat: Update file metadata types
Browse files Browse the repository at this point in the history
This commit takes into account the decision on the metadata format for shortcuts taken as part of this PR : cozy/cozy-doctypes#268
  • Loading branch information
acezard authored and cballevre committed Sep 23, 2024
1 parent f010d35 commit e84cfbb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/cozy-client/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,12 @@ import { QueryDefinition } from './queries/dsl'
* @property {string} [noticePeriod] - Notice period of the paper, in days
* @property {string} [datetime] - Image EXIF date, if relevant
* @property {string} [instanceName] - Name of the instance
* @property {object} [target] - Information of the target of the shortcut
* @property {string} [target.title] - The title of the application to which the shortcut redirects
* @property {string} [target.description] - A brief description of the application
* @property {string} [target.category] - The category of the application
* @property {object} [externalDataSource] - Additional information to maintain link with external data source
* @property {string} [externalDataSource.source] - The space to which the application belongs
*/

/**
Expand Down
14 changes: 14 additions & 0 deletions packages/cozy-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,20 @@ export type FileMetadata = {
* - Name of the instance
*/
instanceName?: string;
/**
* - Information of the target of the shortcut
*/
target?: {
title: string;
description: string;
category: string;
};
/**
* - Additional information to maintain link with external data source
*/
externalDataSource?: {
source: string;
};
};
/**
* - An io.cozy.files document
Expand Down

0 comments on commit e84cfbb

Please sign in to comment.