Files
klz-cables.com/.pnpm-store/v10/files/dc/9b56cda0677b614c17d8e6abed2178289ab807ec58aa136d0d303d272894a5cec8dda035d43c1e94d1a9c0e1ec86db6dad771c7e87a5b0e31255e82a687415
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

1 line
1.1 KiB
Plaintext

{"version":3,"file":"settings.js","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<Schema, Item>,\n\tItem extends object = DirectusSettings<Schema>,\n> = ApplyQueryFields<Schema, Item, TQuery['fields']>;\n\n/**\n * Update Settings\n * @param item\n * @param query\n * @returns Returns the settings object.\n */\nexport const updateSettings =\n\t<Schema, const TQuery extends Query<Schema, DirectusSettings<Schema>>>(\n\t\titem: NestedPartial<DirectusSettings<Schema>>,\n\t\tquery?: TQuery,\n\t): RestCommand<UpdateSettingOutput<Schema, TQuery>[], 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"}