Files
klz-cables.com/.pnpm-store/v10/files/1e/8a15cdb125c6a79ebf814f50627caa0f47eefa7795de8c977e0673db763f349273d9249817271273059f668b7f68f320a7695131a2d9ab1f188c85cc0cc56f
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.2 KiB
Plaintext

{"version":3,"file":"diff.cjs","names":[],"sources":["../../../../src/rest/commands/schema/diff.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\nimport type { SchemaSnapshotOutput } from './snapshot.js';\n\n// TODO improve typing\nexport type SchemaDiffOutput = {\n\thash: string;\n\tdiff: Record<string, any>;\n};\n\n/**\n * Compare the current instance's schema against the schema snapshot in JSON request body and retrieve the difference. This endpoint is only available to admin users.\n * @param snapshot JSON object containing collections, fields, and relations to apply.\n * @param force Bypass version and database vendor restrictions.\n * @returns Returns the differences between the current instance's schema and the schema passed in the request body.\n */\nexport const schemaDiff =\n\t<Schema>(snapshot: SchemaSnapshotOutput, force = false): RestCommand<SchemaDiffOutput, Schema> =>\n\t() => ({\n\t\tmethod: 'POST',\n\t\tpath: '/schema/diff',\n\t\tparams: force ? { force } : {},\n\t\tbody: JSON.stringify(snapshot),\n\t});\n"],"mappings":"AAeA,MAAa,GACH,EAAgC,EAAQ,UAC1C,CACN,OAAQ,OACR,KAAM,eACN,OAAQ,EAAQ,CAAE,QAAO,CAAG,EAAE,CAC9B,KAAM,KAAK,UAAU,EAAS,CAC9B"}