import { x as ApiCallOptions } from "./chunks/auth-types-DjJJgiRF.js"; //#region src/public/rest/notes.d.ts /** * The possible states for the status of notes configuration GET or POST operation */ type ConfigReasonCode = "deployment" | "toggle" | "license"; type Error = { /** Error code specific to notes broker service. */readonly code?: string; /** Error cause. */ readonly detail?: string; /** Error title. */ readonly title?: string; }; /** * @example * { * errors: [ * { * code: "HTTP-123", * title: "short error message" * } * ], * traceId: "7326ce0d-1946-41d0-b890-609865cc42ea" * } */ type Errors = { errors?: Error[]; /** An optional traceId */ traceId?: string; }; type NoteSettingsPutPayload = { /** pass 'true' to enable the note toggle for the tenant, 'false' to disable the toggle (other values are ignore). */toggledOn?: boolean; }; type NoteSettingsPutResponse = { /** 'true' if the note feature is enabled for this tenant and user otherwise 'false'. */toggleOn?: boolean; }; type NotesUserSettings = { /** 'true' if the note feature is enabled for this tenant and user otherwise 'false'. */available: boolean; /** The timestamp for the last time this users notes settings were fetched from downstream services. */ lastFetch?: string; /** The possible states for the status of notes configuration GET or POST operation */ reason?: ConfigReasonCode; }; /** * @deprecated * * Get the enablement status of the notes feature set for this tenant and user. * * @throws GetNotesSettingsHttpError */ declare function getNotesSettings(options?: ApiCallOptions): Promise; type GetNotesSettingsHttpResponse = { data: NotesUserSettings; headers: Headers; status: 200; }; type GetNotesSettingsHttpError = { data: Errors; headers: Headers; status: number; }; /** * @deprecated * * update the settings * * @param body an object with the body content * @throws SetNotesSettingsHttpError */ declare function setNotesSettings(body: NoteSettingsPutPayload, options?: ApiCallOptions): Promise; type SetNotesSettingsHttpResponse = { data: NoteSettingsPutResponse; headers: Headers; status: 200; }; type SetNotesSettingsHttpError = { data: Errors; headers: Headers; status: number; }; /** * Clears the cache for notes api requests. */ declare function clearCache(): void; type NotesAPI = { /** * @deprecated * * Get the enablement status of the notes feature set for this tenant and user. * * @throws GetNotesSettingsHttpError */ getNotesSettings: typeof getNotesSettings; /** * @deprecated * * update the settings * * @param body an object with the body content * @throws SetNotesSettingsHttpError */ setNotesSettings: typeof setNotesSettings; /** * Clears the cache for notes api requests. */ clearCache: typeof clearCache; }; /** * Functions for the notes api */ declare const notesExport: NotesAPI; //#endregion export { ConfigReasonCode, Error, Errors, GetNotesSettingsHttpError, GetNotesSettingsHttpResponse, NoteSettingsPutPayload, NoteSettingsPutResponse, NotesAPI, NotesUserSettings, SetNotesSettingsHttpError, SetNotesSettingsHttpResponse, clearCache, notesExport as default, getNotesSettings, setNotesSettings };