Files
klz-cables.com/.pnpm-store/v10/files/82/a5179b5bc3d41c072fc11b845975027e2d057935b0ff328a246237aebcde92977fff8cba85d71dbdb13536c2025880ce4899fa3c1131c57cb8543a69ee18e5
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
958 B
Plaintext

{"version":3,"file":"flows.cjs","names":[],"sources":["../../../../src/rest/commands/utils/flows.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\n// TODO better options for ouput typing\n\n/**\n * Trigger a flow\n * @param method\n * @param id\n * @param data\n * @returns Result of the flow, if any.\n */\nexport const triggerFlow =\n\t<Schema>(method: 'GET' | 'POST', id: string, data?: Record<string, string>): RestCommand<unknown, Schema> =>\n\t() => {\n\t\tif (method === 'GET') {\n\t\t\treturn {\n\t\t\t\tpath: `/flows/trigger/${id}`,\n\t\t\t\tparams: data ?? {},\n\t\t\t\tmethod: 'GET',\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tpath: `/flows/trigger/${id}`,\n\t\t\tbody: JSON.stringify(data ?? {}),\n\t\t\tmethod: 'POST',\n\t\t};\n\t};\n"],"mappings":"AAWA,MAAa,GACH,EAAwB,EAAY,QAExC,IAAW,MACP,CACN,KAAM,kBAAkB,IACxB,OAAQ,GAAQ,EAAE,CAClB,OAAQ,MACR,CAGK,CACN,KAAM,kBAAkB,IACxB,KAAM,KAAK,UAAU,GAAQ,EAAE,CAAC,CAChC,OAAQ,OACR"}