(s)
| 56221 | j(L) |
| 56222 | ) |
| 56223 | } |
| 56224 | function execute_buildRequest(s) { |
| 56225 | const { |
| 56226 | spec: o, |
| 56227 | operationId: i, |
| 56228 | responseContentType: a, |
| 56229 | scheme: u, |
| 56230 | requestInterceptor: _, |
| 56231 | responseInterceptor: w, |
| 56232 | contextUrl: x, |
| 56233 | userFetch: C, |
| 56234 | server: j, |
| 56235 | serverVariables: L, |
| 56236 | http: B, |
| 56237 | signal: $, |
| 56238 | serverVariableEncoder: U, |
| 56239 | } = s |
| 56240 | let { parameters: V, parameterBuilders: z, baseURL: Y } = s |
| 56241 | const Z = isOpenAPI3(o) |
| 56242 | z || (z = Z ? be : Fx) |
| 56243 | let ee = { |
| 56244 | url: '', |
| 56245 | credentials: B && B.withCredentials ? 'include' : 'same-origin', |
| 56246 | headers: {}, |
| 56247 | cookies: {}, |
| 56248 | } |
| 56249 | ;($ && (ee.signal = $), |
| 56250 | _ && (ee.requestInterceptor = _), |
| 56251 | w && (ee.responseInterceptor = w), |
| 56252 | C && (ee.userFetch = C)) |
| 56253 | const ie = (function getOperationRaw(s, o) { |
| 56254 | return s && s.paths |
| 56255 | ? (function findOperation(s, o) { |
| 56256 | return ( |
| 56257 | (function eachOperation(s, o, i) { |
| 56258 | if (!s || 'object' != typeof s || !s.paths || 'object' != typeof s.paths) |
| 56259 | return null |
| 56260 | const { paths: a } = s |
| 56261 | for (const u in a) |
| 56262 | for (const _ in a[u]) { |
| 56263 | if ('PARAMETERS' === _.toUpperCase()) continue |
| 56264 | const w = a[u][_] |
| 56265 | if (!w || 'object' != typeof w) continue |
| 56266 | const x = { spec: s, pathName: u, method: _.toUpperCase(), operation: w }, |
| 56267 | C = o(x) |
| 56268 | if (i && C) return x |
| 56269 | } |
| 56270 | })(s, o, !0) || null |
| 56271 | ) |
| 56272 | })(s, ({ pathName: s, method: i, operation: a }) => { |
| 56273 | if (!a || 'object' != typeof a) return !1 |
| 56274 | const u = a.operationId |
| 56275 | return [opId(a, s, i), idFromPathMethodLegacy(s, i), u].some((s) => s && s === o) |
| 56276 | }) |
| 56277 | : null |
| 56278 | })(o, i) |
| 56279 | if (!ie) throw new OperationNotFoundError(`Operation ${i} not found`) |
| 56280 | const { operation: ae = {}, method: ce, pathName: le } = ie |
nothing calls this directly
no test coverage detected