import type { Schema, FieldsParam, Entity, GlobalSettings, AppearanceSettings, License, LocaleSettings, NotificationSettings, RestCorsSettings, SystemSettings, DeepPartial } from "../../types"; import { ResourceApi } from "../common"; type GlobalSettingsSchema = Schema; type AppearanceSettingsSchema = Schema; type LicenseSchema = Schema; type LocaleSettingsSchema = Schema; type NotificationSettingsSchema = Schema; type RestCorsSettingsSchema = Schema; type SystemSettingsSchema = Schema; type GlobalSettingsEntity = Entity; type AppearanceSettingsEntity = Entity; type LicenseEntity = Entity; type LocaleSettingsEntity = Entity; type NotificationSettingsEntity = Entity; type RestCorsSettingsEntity = Entity; type SystemSettingsEntity = Entity; export declare class GlobalSettingsApi extends ResourceApi { /** * Get the global settings. * @param params - Optional parameters for response filtering. * @param params.fields - A list of GlobalSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the global settings. */ getGlobalSettings(params?: FieldsParam): Promise>; /** * Update the global settings. * @param body - The updated settings. * @param params - Optional parameters for response filtering. * @param params.fields - A list of GlobalSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated global settings. */ updateGlobalSettings(body: DeepPartial, params?: FieldsParam): Promise>; /** * Read the visual settings of the YouTrack service. * @param params - Optional parameters for response filtering. * @param params.fields - A list of AppearanceSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the visual settings of the service. */ getAppearanceSettings(params?: FieldsParam): Promise>; /** * Change the visual settings of the YouTrack service. * @param body - The updated appearance settings. * @param params - Optional parameters for response filtering. * @param params.fields - A list of AppearanceSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated visual settings. */ updateAppearanceSettings(body: DeepPartial, params?: FieldsParam): Promise>; /** * Read the license of the YouTrack service. * @param params - Optional parameters for response filtering. * @param params.fields - A list of License attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the current license settings. */ getLicense(params?: FieldsParam): Promise>; /** * Change the license of the YouTrack service. * @param body - The updated license settings. * @param params - Optional parameters for response filtering. * @param params.fields - A list of License attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated license settings. */ updateLicense(body: DeepPartial, params?: FieldsParam): Promise>; /** * Read the current system language of the YouTrack service. * @param params - Optional parameters for response filtering. * @param params.fields - A list of LocaleSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the current locale settings. */ getLocaleSettings(params?: FieldsParam): Promise>; /** * Change the system language of the YouTrack service. * @param body - The updated locale settings (including the target locale). * @param params - Optional parameters for response filtering. * @param params.fields - A list of LocaleSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated locale settings. */ updateLocaleSettings(body: DeepPartial, params?: FieldsParam): Promise>; /** * Read the notification settings of the YouTrack service. * @param params - Optional parameters for response filtering. * @param params.fields - A list of NotificationSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the current notification settings. */ getNotificationSettings(params?: FieldsParam): Promise>; /** * Change the notification settings of the YouTrack service. * @param body - The updated notification settings. * @param params - Optional parameters for response filtering. * @param params.fields - A list of NotificationSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated notification settings. */ updateNotificationSettings(body: DeepPartial, params?: FieldsParam): Promise>; /** * Read the Resource Sharing (CORS) settings of the YouTrack service. * @param params - Optional parameters for response filtering. * @param params.fields - A list of RestCorsSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the current RestCors settings. */ getRestSettings(params?: FieldsParam): Promise>; /** * Change the Resource Sharing (CORS) settings of the YouTrack service. * @param body - The updated CORS settings. * @param params - Optional parameters for response filtering. * @param params.fields - A list of RestCorsSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated RestCors settings. */ updateRestSettings(body: DeepPartial, params?: FieldsParam): Promise>; /** * Read the System settings of the YouTrack service. * @param params - Optional parameters for response filtering. * @param params.fields - A list of SystemSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the current System settings. */ getSystemSettings(params?: FieldsParam): Promise>; /** * Change the System settings of the YouTrack service. * @param body - The updated system settings. * @param params - Optional parameters for response filtering. * @param params.fields - A list of SystemSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated System settings. */ updateSystemSettings(body: DeepPartial, params?: FieldsParam): Promise>; } export {};