Files
klz-cables.com/.pnpm-store/v10/files/7a/982bcadb80d333c0dc0b8901f911f2425268f376388b2b0e30db4dcec300a59273f3802a94ccbe3db39f0c3be0903ba051e962f52c6a7936fd84533bd8930f
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
1003 B
Plaintext

{"version":3,"file":"relations.cjs","names":[],"sources":["../../../../src/rest/commands/create/relations.ts"],"sourcesContent":["import type { DirectusRelation } from '../../../schema/relation.js';\nimport type { ApplyQueryFields, NestedPartial } from '../../../types/index.js';\nimport type { RestCommand } from '../../types.js';\n\nexport type CreateRelationOutput<Schema, Item extends object = DirectusRelation<Schema>> = ApplyQueryFields<\n\tSchema,\n\tItem,\n\t'*'\n>;\n\n/**\n * Create a new relation.\n *\n * @param item The relation to create\n * @param query Optional return data query\n *\n * @returns Returns the relation object for the created relation.\n */\nexport const createRelation =\n\t<Schema>(item: NestedPartial<DirectusRelation<Schema>>): RestCommand<CreateRelationOutput<Schema>, Schema> =>\n\t() => ({\n\t\tpath: `/relations`,\n\t\tbody: JSON.stringify(item),\n\t\tmethod: 'POST',\n\t});\n"],"mappings":"AAkBA,MAAa,EACH,QACF,CACN,KAAM,aACN,KAAM,KAAK,UAAU,EAAK,CAC1B,OAAQ,OACR"}