Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Revert some updates to file metadata types #1538

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cozy-client/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ import { QueryDefinition } from './queries/dsl'
* @property {object} [content] - The Note's content. See https://prosemirror.net/docs/ref/#model for more informations
* @property {object} [schema] - the schema used by prosemirror (with notes and marks serialized as arrays to preserve the order).
* @property {string} [title] - the initial title of the note (that will also be used for the file name)
* @property {string} [description] - A brief description of the file
* @property {number} [version] - Number of a note
* @property {Qualification} [qualification] - Qualification of the file
* @property {string} [country] - Country of the paper
Expand All @@ -461,7 +462,6 @@ import { QueryDefinition } from './queries/dsl'
* @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
5 changes: 4 additions & 1 deletion packages/cozy-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,10 @@ export type FileMetadata = {
* - the initial title of the note (that will also be used for the file name)
*/
title?: string;
/**
* - A brief description of the file
*/
description?: string;
/**
* - Number of a note
*/
Expand Down Expand Up @@ -812,7 +816,6 @@ export type FileMetadata = {
*/
target?: {
title: string;
description: string;
category: string;
};
/**
Expand Down
Loading