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 86377c2 commit fb1bbf0
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 @@ -452,6 +452,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 @@ -790,6 +790,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 fb1bbf0

Please sign in to comment.