mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00

chore: fetch template only if name matches name convention chore: linting chore: fix tests chore: fix npm scripts test: try to fix test
44 lines
867 B
TypeScript
44 lines
867 B
TypeScript
/**
|
|
* Used to store user configurations related to releases.
|
|
* E.g the default timezone for the release schedule.
|
|
*/
|
|
|
|
import { errors } from '@strapi/utils';
|
|
import type { Utils } from '@strapi/types';
|
|
|
|
export interface Settings {
|
|
defaultTimezone: string | null | undefined;
|
|
}
|
|
|
|
/**
|
|
* GET /content-releases/settings
|
|
*
|
|
* Return the stored settings. If not set,
|
|
* it will return an object with null values
|
|
*/
|
|
export declare namespace GetSettings {
|
|
export interface Request {
|
|
query?: {};
|
|
}
|
|
|
|
export interface Response {
|
|
data: Settings;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* PUT /content-releases/settings
|
|
*
|
|
* Update the stored settings
|
|
*/
|
|
export declare namespace UpdateSettings {
|
|
export interface Request {
|
|
body: Settings;
|
|
}
|
|
|
|
export type Response = Utils.OneOf<
|
|
{ data: Settings },
|
|
{ error?: errors.ApplicationError | errors.ValidationError }
|
|
>;
|
|
}
|