Files
klz-cables.com/.pnpm-store/v10/files/fd/442e1ec57089ffd05cf200d020e60dfabd06754397cdca4bccef3c83af4a4b1b6eb5d35a05d9a6e9022d0104baebf44c8a087e28dcc4e40dae13d8f7c9131f
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
957 B
Plaintext

{"version":3,"file":"flows.js","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"}