Alexandre Bodin 92055a7fb1 chore: use rollup
chore: fetch template only if name matches name convention

chore: linting

chore: fix tests

chore: fix npm scripts

test: try to fix test
2025-01-23 16:28:23 +01:00

48 lines
963 B
TypeScript

/**
* Used to store user configurations related to media files.
* E.g the size optimization flag, the responsive dimensions flag and the auto orientation.
*/
import { errors } from '@strapi/utils';
import type { Utils } from '@strapi/types';
export interface Settings {
data: {
sizeOptimization?: boolean;
responsiveDimensions?: boolean;
autoOrientation?: boolean;
videoPreview?: boolean;
};
}
/**
* GET /upload/settings
*
* Return the stored settings for the media files.
*/
export declare namespace GetSettings {
export interface Request {
query?: {};
}
export interface Response {
data: Settings;
}
}
/**
* PUT /upload/settings
*
* Update the stored settings
*/
export declare namespace UpdateSettings {
export interface Request {
body: Settings['data'];
}
export type Response = Utils.OneOf<
{ data: Settings['data'] },
{ error?: errors.ApplicationError | errors.ValidationError }
>;
}