{"version":3,"file":"settings.cjs","names":[],"sources":["../../../../src/rest/commands/update/settings.ts"],"sourcesContent":["import type { DirectusSettings } from '../../../schema/settings.js';\nimport type { ApplyQueryFields, NestedPartial, Query } from '../../../types/index.js';\nimport type { RestCommand } from '../../types.js';\n\nexport type UpdateSettingOutput<\n\tSchema,\n\tTQuery extends Query,\n\tItem extends object = DirectusSettings,\n> = ApplyQueryFields;\n\n/**\n * Update Settings\n * @param item\n * @param query\n * @returns Returns the settings object.\n */\nexport const updateSettings =\n\t>>(\n\t\titem: NestedPartial>,\n\t\tquery?: TQuery,\n\t): RestCommand[], Schema> =>\n\t() => ({\n\t\tpath: `/settings`,\n\t\tparams: query ?? {},\n\t\tbody: JSON.stringify(item),\n\t\tmethod: 'PATCH',\n\t});\n"],"mappings":"AAgBA,MAAa,GAEX,EACA,SAEM,CACN,KAAM,YACN,OAAQ,GAAS,EAAE,CACnB,KAAM,KAAK,UAAU,EAAK,CAC1B,OAAQ,QACR"}