Files
klz-cables.com/.pnpm-store/v10/files/87/ed669168eefc86cfe20bf234fd9b386b86cd19300ba8c2b06bd407bc04de08bdd04a3ad3b51e48242a12ca4ee2969767a8550031ac0c71bdf5ec531e0ef1da
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.3 KiB
Plaintext

{"version":3,"file":"collections.js","names":[],"sources":["../../../../src/rest/commands/create/collections.ts"],"sourcesContent":["import type { DirectusCollection } from '../../../schema/collection.js';\nimport type { ApplyQueryFields, FieldQuery, NestedPartial, Query } from '../../../types/index.js';\nimport type { RestCommand } from '../../types.js';\n\nexport type CreateCollectionOutput<\n\tSchema,\n\tTQuery extends Query<Schema, Item>,\n\tItem extends object = DirectusCollection<Schema>,\n> = ApplyQueryFields<Schema, Item, TQuery['fields']>;\n\n/**\n * Create a new Collection. This will create a new table in the database as well.\n *\n * @param item This endpoint doesn't currently support any query parameters.\n * @param query Optional return data query\n *\n * @returns The collection object for the collection created in this request.\n */\nexport const createCollection =\n\t<Schema, const TQuery extends FieldQuery<Schema, DirectusCollection<Schema>>>(\n\t\titem: NestedPartial<DirectusCollection<Schema>>,\n\t\tquery?: TQuery,\n\t): RestCommand<CreateCollectionOutput<Schema, TQuery>, Schema> =>\n\t() => ({\n\t\tpath: `/collections`,\n\t\tparams: query ?? {},\n\t\tbody: JSON.stringify(item),\n\t\tmethod: 'POST',\n\t});\n"],"mappings":"AAkBA,MAAa,GAEX,EACA,SAEM,CACN,KAAM,eACN,OAAQ,GAAS,EAAE,CACnB,KAAM,KAAK,UAAU,EAAK,CAC1B,OAAQ,OACR"}