@hey-api/openapi-ts 0.85.2 → 0.86.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chunk-C-EqMg7d.js +1 -0
- package/dist/clients/nuxt/utils.ts +12 -4
- package/dist/getSpec-BlRTbnm6.js +24 -0
- package/dist/getSpec-BlRTbnm6.js.map +1 -0
- package/dist/getSpec-D8vjI0RE.cjs +24 -0
- package/dist/getSpec-D8vjI0RE.cjs.map +1 -0
- package/dist/index.cjs +180 -215
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +822 -1478
- package/dist/index.d.ts +822 -1478
- package/dist/index.js +171 -172
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +1 -25
- package/dist/internal.d.cts +36 -41
- package/dist/internal.d.ts +36 -41
- package/dist/internal.js +1 -2
- package/dist/{types.d-CGoxqmT9.d.cts → types-C7EJ2jAV.d.cts} +7948 -6907
- package/dist/{types.d-CGoxqmT9.d.ts → types-k8CRHWYM.d.ts} +7949 -6907
- package/package.json +7 -12
- package/dist/chunk-F2CVRHGI.js +0 -47
- package/dist/chunk-F2CVRHGI.js.map +0 -1
- package/dist/internal.cjs.map +0 -1
- package/dist/internal.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js","../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js","../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js","../../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js","../../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js","../../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","../../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js","../src/config/engine.ts","../src/utils/getHttpRequestName.ts","../src/generate/class.ts","../src/generate/core.ts","../src/generate/legacy/indexFile.ts","../src/generate/legacy/output.ts","../src/generate/output.ts","../src/openApi/shared/utils/patch.ts","../src/processOutput.ts","../src/utils/postprocess.ts","../src/createClient.ts","../src/utils/cli.ts","../src/legacy/handlebars/compiled/client.js","../src/legacy/handlebars/compiled/core/angular/getHeaders.js","../src/legacy/handlebars/compiled/core/angular/getRequestBody.js","../src/legacy/handlebars/compiled/core/angular/getResponseBody.js","../src/legacy/handlebars/compiled/core/angular/getResponseHeader.js","../src/legacy/handlebars/compiled/core/angular/request.js","../src/legacy/handlebars/compiled/core/angular/sendRequest.js","../src/legacy/handlebars/compiled/core/ApiError.js","../src/legacy/handlebars/compiled/core/ApiRequestOptions.js","../src/legacy/handlebars/compiled/core/ApiResult.js","../src/legacy/handlebars/compiled/core/axios/getHeaders.js","../src/legacy/handlebars/compiled/core/axios/getRequestBody.js","../src/legacy/handlebars/compiled/core/axios/getResponseBody.js","../src/legacy/handlebars/compiled/core/axios/getResponseHeader.js","../src/legacy/handlebars/compiled/core/axios/request.js","../src/legacy/handlebars/compiled/core/axios/sendRequest.js","../src/legacy/handlebars/compiled/core/BaseHttpRequest.js","../src/legacy/handlebars/compiled/core/CancelablePromise.js","../src/legacy/handlebars/compiled/core/fetch/getHeaders.js","../src/legacy/handlebars/compiled/core/fetch/getRequestBody.js","../src/legacy/handlebars/compiled/core/fetch/getResponseBody.js","../src/legacy/handlebars/compiled/core/fetch/getResponseHeader.js","../src/legacy/handlebars/compiled/core/fetch/request.js","../src/legacy/handlebars/compiled/core/fetch/sendRequest.js","../src/legacy/handlebars/compiled/core/functions/base64.js","../src/legacy/handlebars/compiled/core/functions/catchErrorCodes.js","../src/legacy/handlebars/compiled/core/functions/getFormData.js","../src/legacy/handlebars/compiled/core/functions/getQueryString.js","../src/legacy/handlebars/compiled/core/functions/getUrl.js","../src/legacy/handlebars/compiled/core/functions/isBlob.js","../src/legacy/handlebars/compiled/core/functions/isFormData.js","../src/legacy/handlebars/compiled/core/functions/isString.js","../src/legacy/handlebars/compiled/core/functions/isStringWithValue.js","../src/legacy/handlebars/compiled/core/functions/isSuccess.js","../src/legacy/handlebars/compiled/core/functions/resolve.js","../src/legacy/handlebars/compiled/core/HttpRequest.js","../src/legacy/handlebars/compiled/core/OpenAPI.js","../src/legacy/handlebars/compiled/core/request.js","../src/legacy/handlebars/compiled/core/xhr/getHeaders.js","../src/legacy/handlebars/compiled/core/xhr/getRequestBody.js","../src/legacy/handlebars/compiled/core/xhr/getResponseBody.js","../src/legacy/handlebars/compiled/core/xhr/getResponseHeader.js","../src/legacy/handlebars/compiled/core/xhr/request.js","../src/legacy/handlebars/compiled/core/xhr/sendRequest.js","../src/utils/handlebars.ts","../src/utils/logger.ts","../src/utils/exports.ts","../src/index.ts"],"names":["require_windows","__commonJSMin","exports","module","isexe","sync","fs","S","checkPathExt","path","options","pathext","i","p","checkStat","stat","cb","er","require_mode","checkMode","mod","uid","gid","myUid","myGid","u","g","o","ug","ret","require_isexe","core","resolve","reject","is","require_which","isWindows","COLON","getNotFoundError","cmd","getPathInfo","opt","colon","pathEnv","pathExtExe","pathExt","which","found","step","ppRaw","pathPart","pCmd","subStep","ii","ext","res","whichSync","j","cur","require_path_key","pathKey","environment","key","require_resolveCommand","getPathKey","resolveCommandAttempt","parsed","withoutPathExt","env","cwd","hasCustomCwd","shouldSwitchCwd","resolved","resolveCommand","require_escape","metaCharsRegExp","escapeCommand","arg","escapeArgument","doubleEscapeMetaChars","require_shebang_regex","require_shebang_command","shebangRegex","string","match","argument","binary","require_readShebang","shebangCommand","readShebang","command","buffer","fd","require_parse","escape","isWin","isExecutableRegExp","isCmdShimRegExp","detectShebang","shebang","parseNonShell","commandFile","needsShell","needsDoubleEscapeMetaChars","shellCommand","parse","args","require_enoent","notFoundError","original","syscall","hookChildProcess","cp","originalEmit","name","arg1","err","verifyENOENT","status","verifyENOENTSync","require_cross_spawn","enoent","spawn","spawned","spawnSync","result","checkNodeVersion","major","ConfigError","getHttpRequestName","clientName","generateLegacyClientClass","_openApi","outputPath","client","templates","config","getConfig","clientPlugin","getClientPlugin","templateResult","sortByName","legacyNameFromConfig","ensureDirSync","generateLegacyCore","context","requestFile","generateIndexFile","files","GeneratedFile","tsc","file","generateLegacyOutput","openApi","spec","regexp","service","model","removeDirSync","isLegacyClient","meta","generateClientBundle","plugin","outputParts","outputDir","generateOutput","filePath","dir","patchOpenApiSpec","patchOptions","_spec","schema","patchFn","method","pathItem","operation","import_cross_spawn","Rt","formatters","linters","processOutput","postProcessClient","postProcessModel","postProcessOperations","postProcessService","value","index","arr","unique","item","sort","operations","services","parserOperation","tag","getServiceName","getNewService","clone","postProcessServiceOperations","names","parameter","successResponses","response","stringCase","sanitizeNamespaceIdentifier","compileInputPath","input","basePath","baseQuery","queryPath","part","pathUrl","baseUrl","organization","project","queryParams","kApiKey","kBranch","kCommitSha","kTags","kVersion","query","platformUrl","isLocalhost","platformUrlWithProtocol","compiledPath","logInputPaths","inputPaths","jobIndex","lines","jobPrefix","colors","count","baseString","inputPath","itemPrefixStr","itemPrefix","detailIndent","baseInput","line","createClient","dependencies","logger","_watches","watches","getSpecData","eventSpec","arrayBuffer","error","resolvedInput","getSpec","specData","data","refParser","$RefParser","eventInputPatch","eventParser","parseOpenApiSpec","parseLegacy","eventGenerator","eventPostprocess","watchedInput","textAscii","asciiToLines","ascii","padding","maxLineLength","char","printCliIntro","packageJson","loadPackageJson","text","client_default","container","depth0","helpers","partials","stack1","alias1","alias2","lookupProperty","parent","propertyName","alias3","getHeaders_default","getRequestBody_default","getResponseBody_default","getResponseHeader_default","request_default","sendRequest_default","ApiError_default","ApiRequestOptions_default","ApiResult_default","BaseHttpRequest_default","CancelablePromise_default","base64_default","catchErrorCodes_default","getFormData_default","getQueryString_default","getUrl_default","isBlob_default","isFormData_default","isString_default","isStringWithValue_default","isSuccess_default","resolve_default","HttpRequest_default","OpenAPI_default","registerHandlebarHelpers","Handlebars","a","b","transformClassName","registerHandlebarTemplates","loggerCounter","nameToId","idEnd","id","idLength","idStart","getSeverity","duration","percentage","Logger","event","events","print","firstEvent","lastEvent","measure","indent","color","lastIndex","severity","durationLabel","branch","prefix","maxLength","percentageBranch","percentageLabel","lastEventIndex","length","start","utils","colorSupport","userConfig","resolvedConfig","userConfigs","rawLogs","getLogs","configs","eventCreateClient","eventConfig","initConfigs","allConfigErrors","ConfigValidationError","eventHandlebars","JobError","printLogs","results","logs","dryRun","logPath","logCrashReport","printCrashReport","isInteractive","shouldReportCrash","openGitHubIssueWithCrashReport","defineConfig"],"mappings":";AAAA,IAAAA,GAAAC,CAAAA,CAAA,CAAAC,EAAAA,CAAAC,EAAAA,GAAA,CAAAA,EAAAA,CAAO,OAAA,CAAUC,EAAAA,CACjBA,EAAAA,CAAM,KAAOC,EAAAA,CAEb,IAAIC,EAAAA,CAAKC,CAAA,CAAQ,IAAI,CAAA,CAErB,SAASC,EAAAA,CAAcC,CAAAA,CAAMC,EAAS,CACpC,IAAIC,CAAAA,CAAUD,CAAAA,CAAQ,UAAY,MAAA,CAChCA,CAAAA,CAAQ,OAAA,CAAU,OAAA,CAAQ,IAAI,OAAA,CAOhC,GALI,CAACC,CAAAA,GAILA,EAAUA,CAAAA,CAAQ,KAAA,CAAM,GAAG,CAAA,CACvBA,EAAQ,OAAA,CAAQ,EAAE,CAAA,GAAM,EAAA,CAAA,CAC1B,OAAO,KAAA,CAET,IAAA,IAASC,CAAAA,CAAI,CAAA,CAAGA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ACJF,CAAAA,EAAM,IAAA,EAAQ,CAACC,IACXE,CAAAA,CAAenH,CAAAA,CAAOgH,CAAAA,CAAK,IAAA,EAAQ,EAAE,CAAA,CACrC,MAAA,CAENI,CAAAA,CAAiB,CAAE,MAAApH,CAAAA,CAAO,OAAA,CAAAkH,CAAQ,CAAC,CAAA,CACnC,IAAMG,CAAAA,CACJN,CAAAA,CAAQ,IAAA,CAAM1O,CAAAA,EAAWA,EAAO,MAAA,CAAO,WAAW,CAAA,EAClD8N,CAAAA,CAAY,KAAMnN,CAAAA,EAAWA,CAAAA,CAAO,WAAW,CAAA,EAC/C,MACE,MAAMsO,CAAAA,CAAkB,CAAE,KAAA,CAAAtH,EAAO,aAAA,CAAAqH,CAAc,CAAC,CAAA,EAClD,MAAME,CAAAA,CAA+BvH,CAAK,EAE9C,CAEA,MAAMA,CACR,CACF,CAAA,CAKawH,EAAAA,CAAe,MAC1BxO,CAAAA,EACgB,OAAOA,GAAW,UAAA,CAAa,MAAMA,GAAO,CAAIA","file":"index.js","sourcesContent":["module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n // It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input\n // Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(?=(\\\\+?)?)\\1\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(?=(\\\\+?)?)\\1$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed);\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","import { ConfigError } from '../error';\n\nexport const checkNodeVersion = () => {\n if (typeof Bun !== 'undefined') {\n const [major] = Bun.version.split('.').map(Number);\n if (major! < 1) {\n throw new ConfigError(\n `Unsupported Bun version ${Bun.version}. Please use Bun 1.0.0 or newer.`,\n );\n }\n } else if (typeof process !== 'undefined' && process.versions?.node) {\n const [major] = process.versions.node.split('.').map(Number);\n if (major! < 18) {\n throw new ConfigError(\n `Unsupported Node version ${process.versions.node}. Please use Node 18 or newer.`,\n );\n }\n }\n};\n","import type { PluginClientNames } from '../plugins/types';\n\n/**\n * Generate the HttpRequest filename based on the selected client\n * @param client HTTP client to generate\n */\nexport const getHttpRequestName = (clientName: PluginClientNames): string => {\n switch (clientName) {\n case 'legacy/angular':\n return 'AngularHttpRequest';\n case 'legacy/axios':\n return 'AxiosHttpRequest';\n case 'legacy/fetch':\n return 'FetchHttpRequest';\n case 'legacy/node':\n return 'NodeHttpRequest';\n case 'legacy/xhr':\n return 'XHRHttpRequest';\n default:\n return '';\n }\n};\n","import fs from 'node:fs';\nimport path from 'node:path';\n\nimport type { OpenApi } from '../openApi';\nimport { getClientPlugin } from '../plugins/@hey-api/client-core/utils';\nimport type { Client } from '../types/client';\nimport { getConfig, legacyNameFromConfig } from '../utils/config';\nimport { getHttpRequestName } from '../utils/getHttpRequestName';\nimport type { Templates } from '../utils/handlebars';\nimport { sortByName } from '../utils/sort';\nimport { ensureDirSync } from './utils';\n\n/**\n * Generate the OpenAPI client index file using the Handlebar template and write it to disk.\n * The index file just contains all the exports you need to use the client as a standalone\n * library. But you can also import individual models and services directly.\n * @param openApi {@link OpenApi} Dereferenced OpenAPI specification\n * @param outputPath Directory to write the generated files to\n * @param client Client containing models, schemas, and services\n * @param templates The loaded handlebar templates\n */\nexport const generateLegacyClientClass = async (\n _openApi: OpenApi,\n outputPath: string,\n client: Client,\n templates: Templates,\n) => {\n const config = getConfig();\n\n const clientPlugin = getClientPlugin(config);\n const templateResult = templates.client({\n $config: config,\n ...client,\n httpRequest: getHttpRequestName(clientPlugin.name),\n models: sortByName(client.models),\n services: sortByName(client.services),\n });\n\n if (legacyNameFromConfig(config)) {\n ensureDirSync(outputPath);\n fs.writeFileSync(\n path.resolve(outputPath, `${legacyNameFromConfig(config)}.ts`),\n templateResult,\n );\n }\n};\n","import fs from 'node:fs';\nimport path from 'node:path';\n\nimport { getClientPlugin } from '../plugins/@hey-api/client-core/utils';\nimport type { Client } from '../types/client';\nimport { getConfig, legacyNameFromConfig } from '../utils/config';\nimport { getHttpRequestName } from '../utils/getHttpRequestName';\nimport type { Templates } from '../utils/handlebars';\n\n/**\n * Generate OpenAPI core files, this includes the basic boilerplate code to handle requests.\n * @param outputPath Directory to write the generated files to\n * @param client Client containing models, schemas, and services\n * @param templates The loaded handlebar templates\n */\nexport const generateLegacyCore = async (\n outputPath: string,\n client: Client,\n templates: Templates,\n): Promise<void> => {\n const config = getConfig();\n\n if (config.exportCore) {\n const clientPlugin = getClientPlugin(config);\n const context = {\n httpRequest: getHttpRequestName(clientPlugin.name),\n server: config.base !== undefined ? config.base : client.server,\n version: client.version,\n };\n\n fs.rmSync(path.resolve(outputPath), {\n force: true,\n recursive: true,\n });\n fs.mkdirSync(path.resolve(outputPath), {\n recursive: true,\n });\n\n await fs.writeFileSync(\n path.resolve(outputPath, 'OpenAPI.ts'),\n templates.core.settings({\n $config: config,\n ...context,\n }),\n );\n await fs.writeFileSync(\n path.resolve(outputPath, 'ApiError.ts'),\n templates.core.apiError({\n $config: config,\n ...context,\n }),\n );\n await fs.writeFileSync(\n path.resolve(outputPath, 'ApiRequestOptions.ts'),\n templates.core.apiRequestOptions({\n $config: config,\n ...context,\n }),\n );\n await fs.writeFileSync(\n path.resolve(outputPath, 'ApiResult.ts'),\n templates.core.apiResult({\n $config: config,\n ...context,\n }),\n );\n if (clientPlugin.name !== 'legacy/angular') {\n await fs.writeFileSync(\n path.resolve(outputPath, 'CancelablePromise.ts'),\n templates.core.cancelablePromise({\n $config: config,\n ...context,\n }),\n );\n }\n await fs.writeFileSync(\n path.resolve(outputPath, 'request.ts'),\n templates.core.request({\n $config: config,\n ...context,\n }),\n );\n\n if (legacyNameFromConfig(config)) {\n await fs.writeFileSync(\n path.resolve(outputPath, 'BaseHttpRequest.ts'),\n templates.core.baseHttpRequest({\n $config: config,\n ...context,\n }),\n );\n await fs.writeFileSync(\n path.resolve(outputPath, `${context.httpRequest}.ts`),\n templates.core.httpRequest({\n $config: config,\n ...context,\n }),\n );\n }\n\n if (config.request) {\n const requestFile = path.resolve(process.cwd(), config.request);\n const requestFileExists = await fs.existsSync(requestFile);\n if (!requestFileExists) {\n throw new Error(`Custom request file \"${requestFile}\" does not exists`);\n }\n await fs.copyFileSync(\n requestFile,\n path.resolve(outputPath, 'request.ts'),\n );\n }\n }\n};\n","import { getClientPlugin } from '../../plugins/@hey-api/client-core/utils';\nimport { tsc } from '../../tsc';\nimport type { Files } from '../../types/utils';\nimport { getConfig, legacyNameFromConfig } from '../../utils/config';\nimport { GeneratedFile } from '../file';\n\nexport const generateIndexFile = ({ files }: { files: Files }): void => {\n const config = getConfig();\n\n files.index = new GeneratedFile({\n dir: config.output.path,\n id: 'index',\n name: 'index.ts',\n });\n\n if (legacyNameFromConfig(config)) {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: legacyNameFromConfig(config)!,\n module: `./${legacyNameFromConfig(config)}`,\n }),\n );\n }\n\n if (config.exportCore) {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: 'ApiError',\n module: './core/ApiError',\n }),\n );\n if (config.plugins['@hey-api/sdk']?.config.response === 'response') {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: { asType: true, name: 'ApiResult' },\n module: './core/ApiResult',\n }),\n );\n }\n if (legacyNameFromConfig(config)) {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: 'BaseHttpRequest',\n module: './core/BaseHttpRequest',\n }),\n );\n }\n const clientPlugin = getClientPlugin(config);\n if (clientPlugin.name !== 'legacy/angular') {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: ['CancelablePromise', 'CancelError'],\n module: './core/CancelablePromise',\n }),\n );\n }\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: ['OpenAPI', { asType: true, name: 'OpenAPIConfig' }],\n module: './core/OpenAPI',\n }),\n );\n }\n\n Object.keys(files)\n .sort()\n .forEach((name) => {\n const file = files[name]!;\n\n if (name === 'index' || file.isEmpty()) {\n return;\n }\n\n if (file.exportFromIndex) {\n files.index!.add(\n tsc.exportAllDeclaration({\n module: `./${file.nameWithoutExtension()}`,\n }),\n );\n }\n });\n};\n","import path from 'node:path';\n\nimport type { ProjectRenderMeta } from '@hey-api/codegen-core';\n\nimport type { OpenApi } from '../../openApi';\nimport { getClientPlugin } from '../../plugins/@hey-api/client-core/utils';\nimport type { Client } from '../../types/client';\nimport type { Files } from '../../types/utils';\nimport { getConfig, isLegacyClient } from '../../utils/config';\nimport type { Templates } from '../../utils/handlebars';\nimport { generateLegacyClientClass } from '../class';\nimport { generateClientBundle } from '../client';\nimport { generateLegacyCore } from '../core';\nimport { GeneratedFile } from '../file';\nimport { removeDirSync } from '../utils';\nimport { generateIndexFile } from './indexFile';\n\n/**\n * Write our OpenAPI client, using the given templates at the given output\n * @param openApi {@link OpenApi} Dereferenced OpenAPI specification\n * @param client Client containing models, schemas, and services\n * @param templates Templates wrapper with all loaded Handlebars templates\n */\nexport const generateLegacyOutput = async ({\n client,\n openApi,\n templates,\n}: {\n client: Client;\n openApi: unknown;\n templates: Templates;\n}): Promise<void> => {\n const config = getConfig();\n\n const spec = openApi as OpenApi;\n\n // TODO: parser - move to config.input\n if (client) {\n if (\n config.plugins['@hey-api/sdk']?.config.include &&\n config.plugins['@hey-api/sdk'].config.asClass\n ) {\n const regexp = new RegExp(config.plugins['@hey-api/sdk'].config.include);\n client.services = client.services.filter((service) =>\n regexp.test(service.name),\n );\n }\n\n if (config.plugins['@hey-api/typescript']?.config.include) {\n const regexp = new RegExp(\n config.plugins['@hey-api/typescript'].config.include,\n );\n client.models = client.models.filter((model) => regexp.test(model.name));\n }\n }\n\n const outputPath = path.resolve(config.output.path);\n\n if (config.output.clean) {\n removeDirSync(outputPath);\n }\n\n const clientPlugin = getClientPlugin(config);\n if (\n !isLegacyClient(config) &&\n 'bundle' in clientPlugin.config &&\n clientPlugin.config.bundle\n ) {\n const meta: ProjectRenderMeta = {\n importFileExtension: config.output.importFileExtension,\n };\n\n generateClientBundle({\n meta,\n outputPath,\n // @ts-expect-error\n plugin: clientPlugin,\n });\n }\n\n // deprecated files\n await generateLegacyClientClass(spec, outputPath, client, templates);\n await generateLegacyCore(\n path.resolve(config.output.path, 'core'),\n client,\n templates,\n );\n\n const files: Files = {};\n\n for (const name of config.pluginOrder) {\n const plugin = config.plugins[name]!;\n const outputParts = ((plugin.output as string) ?? '').split('/');\n const outputDir = path.resolve(\n config.output.path,\n ...outputParts.slice(0, outputParts.length - 1),\n );\n files[plugin.name] = new GeneratedFile({\n dir: outputDir,\n id: `legacy-unused-${plugin.name}`,\n name: `${outputParts[outputParts.length - 1]}.ts`,\n });\n plugin.handlerLegacy?.({\n client,\n files,\n openApi: spec,\n plugin: plugin as never,\n });\n }\n\n // TODO: exports do not support .js extensions\n generateIndexFile({ files });\n\n Object.entries(files).forEach(([name, file]) => {\n if (config.dryRun) {\n return;\n }\n\n if (name === 'index') {\n file.write('\\n', config.output.tsConfig);\n } else {\n file.write('\\n\\n', config.output.tsConfig);\n }\n });\n};\n","import fs from 'node:fs';\nimport path from 'node:path';\n\nimport type { ProjectRenderMeta } from '@hey-api/codegen-core';\n\nimport type { IR } from '../ir/types';\nimport { getClientPlugin } from '../plugins/@hey-api/client-core/utils';\nimport { generateClientBundle } from './client';\nimport { removeDirSync } from './utils';\n\nexport const generateOutput = async ({ context }: { context: IR.Context }) => {\n const outputPath = path.resolve(context.config.output.path);\n\n if (context.config.output.clean) {\n removeDirSync(outputPath);\n }\n\n const meta: ProjectRenderMeta = {\n importFileExtension: context.config.output.importFileExtension,\n };\n\n const client = getClientPlugin(context.config);\n if ('bundle' in client.config && client.config.bundle) {\n // not proud of this one\n // @ts-expect-error\n context.config._FRAGILE_CLIENT_BUNDLE_RENAMED = generateClientBundle({\n meta,\n outputPath,\n // @ts-expect-error\n plugin: client,\n project: context.gen,\n });\n }\n\n for (const plugin of context.registerPlugins()) {\n await plugin.run();\n }\n\n for (const file of context.gen.render(meta)) {\n const filePath = path.resolve(outputPath, file.path);\n const dir = path.dirname(filePath);\n if (!context.config.dryRun) {\n fs.mkdirSync(dir, { recursive: true });\n fs.writeFileSync(filePath, file.content, { encoding: 'utf8' });\n }\n }\n};\n","import type { Patch } from '../../../types/parser';\nimport type { OpenApi } from '../../types';\n\nexport const patchOpenApiSpec = ({\n patchOptions,\n spec: _spec,\n}: {\n patchOptions: Patch | undefined;\n spec: unknown;\n}) => {\n if (!patchOptions) {\n return;\n }\n\n const spec = _spec as OpenApi.V2_0_X | OpenApi.V3_0_X | OpenApi.V3_1_X;\n\n if ('swagger' in spec) {\n if (patchOptions.version && spec.swagger) {\n spec.swagger = (\n typeof patchOptions.version === 'string'\n ? patchOptions.version\n : patchOptions.version(spec.swagger)\n ) as typeof spec.swagger;\n }\n\n if (patchOptions.meta && spec.info) {\n patchOptions.meta(spec.info);\n }\n\n if (patchOptions.schemas && spec.definitions) {\n for (const key in patchOptions.schemas) {\n const schema = spec.definitions[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.schemas[key]!;\n patchFn(schema);\n }\n }\n\n if (patchOptions.operations && spec.paths) {\n for (const key in patchOptions.operations) {\n const [method, path] = key.split(' ');\n if (!method || !path) continue;\n\n const pathItem = spec.paths[path as keyof typeof spec.paths];\n if (!pathItem) continue;\n\n const operation =\n pathItem[method.toLocaleLowerCase() as keyof typeof pathItem] ||\n pathItem[method.toLocaleUpperCase() as keyof typeof pathItem];\n if (!operation || typeof operation !== 'object') continue;\n\n const patchFn = patchOptions.operations[key]!;\n patchFn(operation as any);\n }\n }\n return;\n }\n\n if (patchOptions.version && spec.openapi) {\n spec.openapi = (\n typeof patchOptions.version === 'string'\n ? patchOptions.version\n : patchOptions.version(spec.openapi)\n ) as typeof spec.openapi;\n }\n\n if (patchOptions.meta && spec.info) {\n patchOptions.meta(spec.info);\n }\n\n if (spec.components) {\n if (patchOptions.schemas && spec.components.schemas) {\n for (const key in patchOptions.schemas) {\n const schema = spec.components.schemas[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.schemas[key]!;\n patchFn(schema);\n }\n }\n\n if (patchOptions.parameters && spec.components.parameters) {\n for (const key in patchOptions.parameters) {\n const schema = spec.components.parameters[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.parameters[key]!;\n patchFn(schema);\n }\n }\n\n if (patchOptions.requestBodies && spec.components.requestBodies) {\n for (const key in patchOptions.requestBodies) {\n const schema = spec.components.requestBodies[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.requestBodies[key]!;\n patchFn(schema);\n }\n }\n\n if (patchOptions.responses && spec.components.responses) {\n for (const key in patchOptions.responses) {\n const schema = spec.components.responses[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.responses[key]!;\n patchFn(schema);\n }\n }\n }\n\n if (patchOptions.operations && spec.paths) {\n for (const key in patchOptions.operations) {\n const [method, path] = key.split(' ');\n if (!method || !path) continue;\n\n const pathItem = spec.paths[path as keyof typeof spec.paths];\n if (!pathItem) continue;\n\n const operation =\n pathItem[method.toLocaleLowerCase() as keyof typeof pathItem] ||\n pathItem[method.toLocaleUpperCase() as keyof typeof pathItem];\n if (!operation || typeof operation !== 'object') continue;\n\n const patchFn = patchOptions.operations[key]!;\n patchFn(operation as any);\n }\n }\n};\n","import { sync } from 'cross-spawn';\n\nimport type { Config } from './types/config';\nimport type { Formatters, Linters } from './types/output';\n\ntype OutputProcessor = {\n args: (path: string) => ReadonlyArray<string>;\n command: string;\n name: string;\n};\n\n/**\n * Map of supported formatters\n */\nconst formatters: Record<Formatters, OutputProcessor> = {\n biome: {\n args: (path) => ['format', '--write', path],\n command: 'biome',\n name: 'Biome (Format)',\n },\n prettier: {\n args: (path) => [\n '--ignore-unknown',\n path,\n '--write',\n '--ignore-path',\n './.prettierignore',\n ],\n command: 'prettier',\n name: 'Prettier',\n },\n};\n\n/**\n * Map of supported linters\n */\nconst linters: Record<Linters, OutputProcessor> = {\n biome: {\n args: (path) => ['lint', '--apply', path],\n command: 'biome',\n name: 'Biome (Lint)',\n },\n eslint: {\n args: (path) => [path, '--fix'],\n command: 'eslint',\n name: 'ESLint',\n },\n oxlint: {\n args: (path) => ['--fix', path],\n command: 'oxlint',\n name: 'oxlint',\n },\n};\n\nexport const processOutput = ({ config }: { config: Config }) => {\n if (config.output.format) {\n const module = formatters[config.output.format];\n console.log(`✨ Running ${module.name}`);\n sync(module.command, module.args(config.output.path));\n }\n\n if (config.output.lint) {\n const module = linters[config.output.lint];\n console.log(`✨ Running ${module.name}`);\n sync(module.command, module.args(config.output.path));\n }\n};\n","import type { Client as ParserClient, Model } from '../openApi';\nimport { sanitizeNamespaceIdentifier } from '../openApi';\nimport type { Client, Operation, Service } from '../types/client';\nimport type { Config } from '../types/config';\nimport { getConfig, legacyNameFromConfig } from './config';\nimport { sort } from './sort';\nimport { stringCase } from './stringCase';\nimport { unique } from './unique';\n\n/**\n * Post process client\n * @param client Client object with all the models, services, etc.\n */\nexport function postProcessClient(\n client: Omit<ParserClient, 'config'>,\n config: Config,\n): Client {\n return {\n ...client,\n config,\n models: client.models.map((model) => postProcessModel(model)),\n services: postProcessOperations(client.operations).map(postProcessService),\n types: {},\n };\n}\n\nconst postProcessModel = (model: Model): Model => ({\n ...model,\n $refs: model.$refs.filter((value, index, arr) => unique(value, index, arr)),\n enum: model.enum.filter(\n (value, index, arr) =>\n arr.findIndex((item) => item.value === value.value) === index,\n ),\n enums: model.enums.filter(\n (value, index, arr) =>\n arr.findIndex((item) => item.name === value.name) === index,\n ),\n imports: model.imports\n .filter(\n (value, index, arr) => unique(value, index, arr) && value !== model.name,\n )\n .sort(sort),\n});\n\nconst postProcessOperations = (\n operations: ParserClient['operations'],\n): Client['services'] => {\n const config = getConfig();\n\n const services = new Map<string, Service>();\n\n operations.forEach((parserOperation) => {\n const tags =\n parserOperation.tags?.length &&\n (config.plugins['@hey-api/sdk']?.config.asClass ||\n legacyNameFromConfig(config))\n ? parserOperation.tags.filter(unique)\n : ['Default'];\n tags.forEach((tag) => {\n const operation: Operation = {\n ...parserOperation,\n service: getServiceName(tag),\n };\n const service =\n services.get(operation.service) || getNewService(operation);\n service.$refs = [...service.$refs, ...operation.$refs];\n service.imports = [...service.imports, ...operation.imports];\n service.operations = [...service.operations, operation];\n services.set(operation.service, service);\n });\n });\n\n return Array.from(services.values());\n};\n\nconst postProcessService = (service: Service): Service => {\n const clone = { ...service };\n clone.operations = postProcessServiceOperations(clone);\n clone.operations.forEach((operation) => {\n clone.imports.push(...operation.imports);\n });\n clone.imports = clone.imports.filter(unique).sort(sort);\n return clone;\n};\n\nconst postProcessServiceOperations = (service: Service): Operation[] => {\n const names = new Map<string, number>();\n\n return service.operations.map((operation) => {\n const clone = { ...operation };\n\n // Parse the service parameters and successes, very similar to how we parse\n // properties of models. These methods will extend the type if needed.\n clone.imports.push(\n ...clone.parameters.flatMap((parameter) => parameter.imports),\n );\n const successResponses = clone.responses.filter((response) =>\n response.responseTypes.includes('success'),\n );\n clone.imports.push(...successResponses.flatMap((result) => result.imports));\n\n // Check if the operation name is unique, if not then prefix this with a number\n const name = clone.name;\n const index = names.get(name) || 0;\n if (index > 0) {\n clone.name = `${name}${index}`;\n }\n names.set(name, index + 1);\n\n return clone;\n });\n};\n\nexport const getNewService = (operation: Operation): Service => ({\n $refs: [],\n imports: [],\n name: operation.service,\n operations: [],\n});\n\n/**\n * Convert the input value to a correct service name. This converts\n * the input string to PascalCase.\n */\nexport const getServiceName = (value: string): string =>\n stringCase({\n case: 'PascalCase',\n value: sanitizeNamespaceIdentifier(value),\n });\n","import path from 'node:path';\n\nimport { $RefParser } from '@hey-api/json-schema-ref-parser';\nimport colors from 'ansi-colors';\n\nimport { generateLegacyOutput } from './generate/legacy/output';\nimport { generateOutput } from './generate/output';\nimport { getSpec } from './getSpec';\nimport type { IR } from './ir/types';\nimport { parseLegacy, parseOpenApiSpec } from './openApi';\nimport { patchOpenApiSpec } from './openApi/shared/utils/patch';\nimport { processOutput } from './processOutput';\nimport type { Client } from './types/client';\nimport type { Config } from './types/config';\nimport type { Input } from './types/input';\nimport type { WatchValues } from './types/types';\nimport { isLegacyClient, legacyNameFromConfig } from './utils/config';\nimport type { Templates } from './utils/handlebars';\nimport type { Logger } from './utils/logger';\nimport { postProcessClient } from './utils/postprocess';\n\nexport const compileInputPath = (input: Omit<Input, 'watch'>) => {\n const result: Pick<\n Partial<Input>,\n | 'api_key'\n | 'branch'\n | 'commit_sha'\n | 'organization'\n | 'project'\n | 'registry'\n | 'tags'\n | 'version'\n > &\n Pick<Input, 'path'> = {\n ...input,\n path: '',\n };\n\n if (\n input.path &&\n (typeof input.path !== 'string' || input.registry !== 'hey-api')\n ) {\n result.path = input.path;\n return result;\n }\n\n const [basePath, baseQuery] = input.path.split('?');\n const queryParts = (baseQuery || '').split('&');\n const queryPath = queryParts.map((part) => part.split('='));\n\n let path = basePath || '';\n if (path.endsWith('/')) {\n path = path.slice(0, path.length - 1);\n }\n\n const [, pathUrl] = path.split('://');\n const [baseUrl, organization, project] = (pathUrl || '').split('/');\n result.organization = organization || input.organization;\n result.project = project || input.project;\n\n const queryParams: Array<string> = [];\n\n const kApiKey = 'api_key';\n result.api_key =\n queryPath.find(([key]) => key === kApiKey)?.[1] ||\n input.api_key ||\n process.env.HEY_API_TOKEN;\n if (result.api_key) {\n queryParams.push(`${kApiKey}=${result.api_key}`);\n }\n\n const kBranch = 'branch';\n result.branch =\n queryPath.find(([key]) => key === kBranch)?.[1] || input.branch;\n if (result.branch) {\n queryParams.push(`${kBranch}=${result.branch}`);\n }\n\n const kCommitSha = 'commit_sha';\n result.commit_sha =\n queryPath.find(([key]) => key === kCommitSha)?.[1] || input.commit_sha;\n if (result.commit_sha) {\n queryParams.push(`${kCommitSha}=${result.commit_sha}`);\n }\n\n const kTags = 'tags';\n result.tags =\n queryPath.find(([key]) => key === kTags)?.[1]?.split(',') || input.tags;\n if (result.tags?.length) {\n queryParams.push(`${kTags}=${result.tags.join(',')}`);\n }\n\n const kVersion = 'version';\n result.version =\n queryPath.find(([key]) => key === kVersion)?.[1] || input.version;\n if (result.version) {\n queryParams.push(`${kVersion}=${result.version}`);\n }\n\n if (!result.organization) {\n throw new Error(\n 'missing organization - from which Hey API Platform organization do you want to generate your output?',\n );\n }\n\n if (!result.project) {\n throw new Error(\n 'missing project - from which Hey API Platform project do you want to generate your output?',\n );\n }\n\n const query = queryParams.join('&');\n const platformUrl = baseUrl || 'get.heyapi.dev';\n const isLocalhost = platformUrl.startsWith('localhost');\n const platformUrlWithProtocol = [\n isLocalhost ? 'http' : 'https',\n platformUrl,\n ].join('://');\n const compiledPath = isLocalhost\n ? [\n platformUrlWithProtocol,\n 'v1',\n 'get',\n result.organization,\n result.project,\n ].join('/')\n : [platformUrlWithProtocol, result.organization, result.project].join('/');\n result.path = query ? `${compiledPath}?${query}` : compiledPath;\n\n return result;\n};\n\nconst logInputPaths = (\n inputPaths: ReadonlyArray<ReturnType<typeof compileInputPath>>,\n jobIndex: number,\n) => {\n const lines: Array<string> = [];\n\n const jobPrefix = colors.gray(`[Job ${jobIndex + 1}] `);\n const count = inputPaths.length;\n const baseString = colors.cyan(\n `Generating from ${count} ${count === 1 ? 'input' : 'inputs'}:`,\n );\n lines.push(`${jobPrefix}⏳ ${baseString}`);\n\n inputPaths.forEach((inputPath, index) => {\n const itemPrefixStr = ` [${index + 1}] `;\n const itemPrefix = colors.cyan(itemPrefixStr);\n const detailIndent = ' '.repeat(itemPrefixStr.length);\n\n if (typeof inputPath.path !== 'string') {\n lines.push(`${jobPrefix}${itemPrefix}raw OpenAPI specification`);\n return;\n }\n\n switch (inputPath.registry) {\n case 'hey-api': {\n const baseInput = [inputPath.organization, inputPath.project]\n .filter(Boolean)\n .join('/');\n lines.push(`${jobPrefix}${itemPrefix}${baseInput}`);\n if (inputPath.branch) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('branch:')} ${colors.green(\n inputPath.branch,\n )}`,\n );\n }\n if (inputPath.commit_sha) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('commit:')} ${colors.green(\n inputPath.commit_sha,\n )}`,\n );\n }\n if (inputPath.tags?.length) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('tags:')} ${colors.green(\n inputPath.tags.join(', '),\n )}`,\n );\n }\n if (inputPath.version) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('version:')} ${colors.green(\n inputPath.version,\n )}`,\n );\n }\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('registry:')} ${colors.green('Hey API')}`,\n );\n break;\n }\n case 'readme': {\n const baseInput = [inputPath.organization, inputPath.project]\n .filter(Boolean)\n .join('/');\n if (!baseInput) {\n lines.push(`${jobPrefix}${itemPrefix}${inputPath.path}`);\n } else {\n lines.push(`${jobPrefix}${itemPrefix}${baseInput}`);\n }\n // @ts-expect-error\n if (inputPath.uuid) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('uuid:')} ${colors.green(\n // @ts-expect-error\n inputPath.uuid,\n )}`,\n );\n }\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('registry:')} ${colors.green('ReadMe')}`,\n );\n break;\n }\n case 'scalar': {\n const baseInput = [inputPath.organization, inputPath.project]\n .filter(Boolean)\n .join('/');\n lines.push(`${jobPrefix}${itemPrefix}${baseInput}`);\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('registry:')} ${colors.green('Scalar')}`,\n );\n break;\n }\n default:\n lines.push(`${jobPrefix}${itemPrefix}${inputPath.path}`);\n break;\n }\n });\n\n for (const line of lines) {\n console.log(line);\n }\n};\n\nexport const createClient = async ({\n config,\n dependencies,\n jobIndex,\n logger,\n templates,\n watches: _watches,\n}: {\n config: Config;\n dependencies: Record<string, string>;\n jobIndex: number;\n logger: Logger;\n templates: Templates;\n /**\n * Always undefined on the first run, defined on subsequent runs.\n */\n watches?: ReadonlyArray<WatchValues>;\n}): Promise<Client | undefined | IR.Context> => {\n const watches: ReadonlyArray<WatchValues> =\n _watches ||\n Array.from({ length: config.input.length }, () => ({\n headers: new Headers(),\n }));\n\n const inputPaths = config.input.map((input) => compileInputPath(input));\n\n // on first run, print the message as soon as possible\n if (config.logs.level !== 'silent' && !_watches) {\n logInputPaths(inputPaths, jobIndex);\n }\n\n const getSpecData = async (input: Input, index: number) => {\n const eventSpec = logger.timeEvent('spec');\n const { arrayBuffer, error, resolvedInput, response } = await getSpec({\n fetchOptions: input.fetch,\n inputPath: inputPaths[index]!.path,\n timeout: input.watch.timeout,\n watch: watches[index]!,\n });\n eventSpec.timeEnd();\n\n // throw on first run if there's an error to preserve user experience\n // if in watch mode, subsequent errors won't throw to gracefully handle\n // cases where server might be reloading\n if (error && !_watches) {\n throw new Error(\n `Request failed with status ${response.status}: ${response.statusText}`,\n );\n }\n\n return { arrayBuffer, resolvedInput };\n };\n const specData = (\n await Promise.all(\n config.input.map((input, index) => getSpecData(input, index)),\n )\n ).filter((data) => data.arrayBuffer || data.resolvedInput);\n\n let client: Client | undefined;\n let context: IR.Context | undefined;\n\n if (specData.length) {\n const refParser = new $RefParser();\n const data =\n specData.length > 1\n ? await refParser.bundleMany({\n arrayBuffer: specData.map((data) => data.arrayBuffer!),\n pathOrUrlOrSchemas: [],\n resolvedInputs: specData.map((data) => data.resolvedInput!),\n })\n : await refParser.bundle({\n arrayBuffer: specData[0]!.arrayBuffer,\n pathOrUrlOrSchema: undefined,\n resolvedInput: specData[0]!.resolvedInput,\n });\n\n // on subsequent runs in watch mode, print the message only if we know we're\n // generating the output\n if (config.logs.level !== 'silent' && _watches) {\n console.clear();\n logInputPaths(inputPaths, jobIndex);\n }\n\n const eventInputPatch = logger.timeEvent('input.patch');\n patchOpenApiSpec({ patchOptions: config.parser.patch, spec: data });\n eventInputPatch.timeEnd();\n\n const eventParser = logger.timeEvent('parser');\n if (\n config.experimentalParser &&\n !isLegacyClient(config) &&\n !legacyNameFromConfig(config)\n ) {\n context = parseOpenApiSpec({ config, dependencies, logger, spec: data });\n }\n\n // fallback to legacy parser\n if (!context) {\n const parsed = parseLegacy({ openApi: data });\n client = postProcessClient(parsed, config);\n }\n eventParser.timeEnd();\n\n const eventGenerator = logger.timeEvent('generator');\n if (context) {\n await generateOutput({ context });\n } else if (client) {\n await generateLegacyOutput({ client, openApi: data, templates });\n }\n eventGenerator.timeEnd();\n\n const eventPostprocess = logger.timeEvent('postprocess');\n if (!config.dryRun) {\n processOutput({ config });\n\n if (config.logs.level !== 'silent') {\n const outputPath = process.env.INIT_CWD\n ? `./${path.relative(process.env.INIT_CWD, config.output.path)}`\n : config.output.path;\n const jobPrefix = colors.gray(`[Job ${jobIndex + 1}] `);\n console.log(\n `${jobPrefix}${colors.green('✅ Done!')} Your output is in ${colors.cyanBright(outputPath)}`,\n );\n }\n }\n eventPostprocess.timeEnd();\n }\n\n const watchedInput = config.input.find(\n (input, index) =>\n input.watch.enabled && typeof inputPaths[index]!.path === 'string',\n );\n\n if (watchedInput) {\n setTimeout(() => {\n createClient({\n config,\n dependencies,\n jobIndex,\n logger,\n templates,\n watches,\n });\n }, watchedInput.watch.interval);\n }\n\n return context || client;\n};\n","import colors from 'ansi-colors';\n\nimport { loadPackageJson } from '../generate/tsConfig';\n\nconst textAscii = `\n888 | e 888~-_ 888\n888___| e88~~8e Y88b / d8b 888 \\\\ 888\n888 | d888 88b Y888/ /Y88b 888 | 888\n888 | 8888__888 Y8/ / Y88b 888 / 888\n888 | Y888 , Y /____Y88b 888_-~ 888\n888 | \"88___/ / / Y88b 888 888\n _/\n`;\n\nconst asciiToLines = (\n ascii: string,\n options?: {\n padding?: number;\n },\n) => {\n const lines: Array<string> = [];\n const padding = Array.from<string>({ length: options?.padding ?? 0 }).fill(\n '',\n );\n lines.push(...padding);\n let maxLineLength = 0;\n let line = '';\n for (const char of ascii) {\n if (char === '\\n') {\n if (line) {\n lines.push(line);\n maxLineLength = Math.max(maxLineLength, line.length);\n line = '';\n }\n } else {\n line += char;\n }\n }\n lines.push(...padding);\n return { lines, maxLineLength };\n};\n\nexport function printCliIntro() {\n const packageJson = loadPackageJson();\n const text = asciiToLines(textAscii, { padding: 1 });\n for (const line of text.lines) {\n console.log(colors.cyan(line));\n }\n console.log(colors.gray(`${packageJson.name} v${packageJson.version}`));\n console.log('');\n}\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import { NgModule} from '@angular/core';\\nimport { HttpClientModule } from '@angular/common/http';\\n\\nimport { AngularHttpRequest } from './core/AngularHttpRequest';\\nimport { BaseHttpRequest } from './core/BaseHttpRequest';\\nimport type { OpenAPIConfig } from './core/OpenAPI';\\nimport { OpenAPI } from './core/OpenAPI';\\nimport { Interceptors } from './core/OpenAPI';\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = container.strict,\n alias2 = container.lambda;\n\n return (\n \"import type { BaseHttpRequest } from './core/BaseHttpRequest';\\nimport type { OpenAPIConfig } from './core/OpenAPI';\\nimport { Interceptors } from './core/OpenAPI';\\nimport { \" +\n ((stack1 = alias2(\n alias1(depth0, 'httpRequest', {\n start: { line: 14, column: 12 },\n end: { line: 14, column: 23 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \" } from './core/\" +\n ((stack1 = alias2(\n alias1(depth0, 'httpRequest', {\n start: { line: 14, column: 45 },\n end: { line: 14, column: 56 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"';\\n\"\n );\n },\n 5: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = lookupProperty(helpers, 'each').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(depth0, 'services'),\n {\n name: 'each',\n hash: {},\n fn: container.program(6, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 18, column: 0 }, end: { line: 20, column: 9 } },\n },\n )) != null\n ? stack1\n : '';\n },\n 6: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n 'import { ' +\n ((stack1 = lookupProperty(helpers, 'transformServiceName').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(depth0, 'name'),\n {\n name: 'transformServiceName',\n hash: {},\n data: data,\n loc: {\n start: { line: 19, column: 9 },\n end: { line: 19, column: 40 },\n },\n },\n )) != null\n ? stack1\n : '') +\n \" } from './sdk.gen';\\n\"\n );\n },\n 8: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = container.strict,\n alias2 = container.lambda,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n \"@NgModule({\\n\timports: [HttpClientModule],\\n\tproviders: [\\n\t\t{\\n\t\t\tprovide: OpenAPI,\\n\t\t\tuseValue: {\\n\t\t\t\tBASE: OpenAPI?.BASE ?? '\" +\n ((stack1 = alias2(\n alias1(depth0, 'server', {\n start: { line: 30, column: 31 },\n end: { line: 30, column: 37 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\t\t\t\tVERSION: OpenAPI?.VERSION ?? '\" +\n ((stack1 = alias2(\n alias1(depth0, 'version', {\n start: { line: 31, column: 37 },\n end: { line: 31, column: 44 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\t\t\t\tWITH_CREDENTIALS: OpenAPI?.WITH_CREDENTIALS ?? false,\\n\t\t\t\tCREDENTIALS: OpenAPI?.CREDENTIALS ?? 'include',\\n\t\t\t\tTOKEN: OpenAPI?.TOKEN,\\n\t\t\t\tUSERNAME: OpenAPI?.USERNAME,\\n\t\t\t\tPASSWORD: OpenAPI?.PASSWORD,\\n\t\t\t\tHEADERS: OpenAPI?.HEADERS,\\n\t\t\t\tENCODE_PATH: OpenAPI?.ENCODE_PATH,\\n\t\t\t\tinterceptors: {\\n\t\t\t\t\tresponse: OpenAPI?.interceptors?.response ?? new Interceptors(),\\n\t\t\t\t},\\n\t\t\t} as OpenAPIConfig,\\n\t\t},\\n\t\t{\\n\t\t\tprovide: BaseHttpRequest,\\n\t\t\tuseClass: AngularHttpRequest,\\n\t\t},\\n\" +\n ((stack1 = lookupProperty(helpers, 'each').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(depth0, 'services'),\n {\n name: 'each',\n hash: {},\n fn: container.program(9, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 48, column: 2 },\n end: { line: 50, column: 11 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\t]\\n})\\nexport class ' +\n ((stack1 = alias2(\n alias1(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'name',\n { start: { line: 53, column: 16 }, end: { line: 53, column: 34 } },\n ),\n depth0,\n )) != null\n ? stack1\n : '') +\n ' {}\\n'\n );\n },\n 9: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n '\t\t' +\n ((stack1 = lookupProperty(helpers, 'transformServiceName').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(depth0, 'name'),\n {\n name: 'transformServiceName',\n hash: {},\n data: data,\n loc: {\n start: { line: 49, column: 2 },\n end: { line: 49, column: 33 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ',\\n'\n );\n },\n 11: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = container.strict,\n alias2 = container.lambda,\n alias3 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n 'type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;\\n\\nexport class ' +\n ((stack1 = alias2(\n alias1(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'name',\n { start: { line: 57, column: 16 }, end: { line: 57, column: 34 } },\n ),\n depth0,\n )) != null\n ? stack1\n : '') +\n ' {\\n\\n' +\n ((stack1 = lookupProperty(helpers, 'each').call(\n alias3,\n lookupProperty(depth0, 'services'),\n {\n name: 'each',\n hash: {},\n fn: container.program(12, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 59, column: 1 },\n end: { line: 61, column: 10 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\\n\tpublic readonly request: BaseHttpRequest;\\n\\n\tconstructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = ' +\n ((stack1 = alias2(\n alias1(depth0, 'httpRequest', {\n start: { line: 65, column: 87 },\n end: { line: 65, column: 98 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \") {\\n\t\tthis.request = new HttpRequest({\\n\t\t\tBASE: config?.BASE ?? '\" +\n ((stack1 = alias2(\n alias1(depth0, 'server', {\n start: { line: 67, column: 29 },\n end: { line: 67, column: 35 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\t\t\tVERSION: config?.VERSION ?? '\" +\n ((stack1 = alias2(\n alias1(depth0, 'version', {\n start: { line: 68, column: 35 },\n end: { line: 68, column: 42 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\t\t\tWITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,\\n\t\t\tCREDENTIALS: config?.CREDENTIALS ?? 'include',\\n\t\t\tTOKEN: config?.TOKEN,\\n\t\t\tUSERNAME: config?.USERNAME,\\n\t\t\tPASSWORD: config?.PASSWORD,\\n\t\t\tHEADERS: config?.HEADERS,\\n\t\t\tENCODE_PATH: config?.ENCODE_PATH,\\n\t\t\tinterceptors: {\\n\t\t\t\trequest: config?.interceptors?.request ?? new Interceptors(),\\n\t\t\t\tresponse: config?.interceptors?.response ?? new Interceptors(),\\n },\\n\t\t});\\n\\n\" +\n ((stack1 = lookupProperty(helpers, 'each').call(\n alias3,\n lookupProperty(depth0, 'services'),\n {\n name: 'each',\n hash: {},\n fn: container.program(14, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 82, column: 2 },\n end: { line: 84, column: 11 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\t}\\n}\\n'\n );\n },\n 12: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n '\tpublic readonly ' +\n ((stack1 = lookupProperty(helpers, 'camelCase').call(\n alias1,\n lookupProperty(depth0, 'name'),\n {\n name: 'camelCase',\n hash: {},\n data: data,\n loc: {\n start: { line: 60, column: 17 },\n end: { line: 60, column: 37 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ': ' +\n ((stack1 = lookupProperty(helpers, 'transformServiceName').call(\n alias1,\n lookupProperty(depth0, 'name'),\n {\n name: 'transformServiceName',\n hash: {},\n data: data,\n loc: {\n start: { line: 60, column: 39 },\n end: { line: 60, column: 70 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ';\\n'\n );\n },\n 14: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n '\t\tthis.' +\n ((stack1 = lookupProperty(helpers, 'camelCase').call(\n alias1,\n lookupProperty(depth0, 'name'),\n {\n name: 'camelCase',\n hash: {},\n data: data,\n loc: {\n start: { line: 83, column: 7 },\n end: { line: 83, column: 27 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ' = new ' +\n ((stack1 = lookupProperty(helpers, 'transformServiceName').call(\n alias1,\n lookupProperty(depth0, 'name'),\n {\n name: 'transformServiceName',\n hash: {},\n data: data,\n loc: {\n start: { line: 83, column: 34 },\n end: { line: 83, column: 65 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '(this.request);\\n'\n );\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 15, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'if').call(\n alias1,\n lookupProperty(depth0, 'services'),\n {\n name: 'if',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 17, column: 0 }, end: { line: 21, column: 7 } },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(8, data, 0),\n inverse: container.program(11, data, 0),\n data: data,\n loc: {\n start: { line: 23, column: 0 },\n end: { line: 87, column: 11 },\n },\n },\n )) != null\n ? stack1\n : '')\n );\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getHeaders = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): Observable<HttpHeaders> => {\\n\treturn forkJoin({\\n\t\t// @ts-ignore\\n\t\ttoken: resolve(options, config.TOKEN),\\n\t\t// @ts-ignore\\n\t\tusername: resolve(options, config.USERNAME),\\n\t\t// @ts-ignore\\n\t\tpassword: resolve(options, config.PASSWORD),\\n\t\t// @ts-ignore\\n\t\tadditionalHeaders: resolve(options, config.HEADERS),\\n\t}).pipe(\\n\t\tmap(({ token, username, password, additionalHeaders }) => {\\n\t\t\tconst headers = Object.entries({\\n\t\t\t\tAccept: 'application/json',\\n\t\t\t\t...additionalHeaders,\\n\t\t\t\t...options.headers,\\n\t\t\t})\\n\t\t\t\t.filter(([, value]) => value !== undefined && value !== null)\\n\t\t\t\t.reduce((headers, [key, value]) => ({\\n\t\t\t\t\t...headers,\\n\t\t\t\t\t[key]: String(value),\\n\t\t\t\t}), {} as Record<string, string>);\\n\\n\t\t\tif (isStringWithValue(token)) {\\n\t\t\t\theaders['Authorization'] = `Bearer ${token}`;\\n\t\t\t}\\n\\n\t\t\tif (isStringWithValue(username) && isStringWithValue(password)) {\\n\t\t\t\tconst credentials = base64(`${username}:${password}`);\\n\t\t\t\theaders['Authorization'] = `Basic ${credentials}`;\\n\t\t\t}\\n\\n\t\t\tif (options.body !== undefined) {\\n\t\t\t\tif (options.mediaType) {\\n\t\t\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t\t\t} else if (isBlob(options.body)) {\\n\t\t\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\\n\t\t\t\t} else if (isString(options.body)) {\\n\t\t\t\t\theaders['Content-Type'] = 'text/plain';\\n\t\t\t\t} else if (!isFormData(options.body)) {\\n\t\t\t\t\theaders['Content-Type'] = 'application/json';\\n\t\t\t\t}\\n\t\t\t}\\n\\n\t\t\treturn new HttpHeaders(headers);\\n\t\t}),\\n\t);\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getRequestBody = (options: ApiRequestOptions): unknown => {\\n\tif (options.body) {\\n\t\tif (options.mediaType?.includes('application/json') || options.mediaType?.includes('+json')) {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\\n\t\t\treturn options.body;\\n\t\t} else {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseBody = <T>(response: HttpResponse<T>): T | undefined => {\\n\tif (response.status !== 204 && response.body !== null) {\\n\t\treturn response.body;\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseHeader = <T>(response: HttpResponse<T>, responseHeader?: string): string | undefined => {\\n\tif (responseHeader) {\\n\t\tconst value = response.headers.get(responseHeader);\\n\t\tif (isString(value)) {\\n\t\t\treturn value;\\n\t\t}\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n \"import { HttpClient, HttpHeaders } from '@angular/common/http';\\nimport type { HttpResponse, HttpErrorResponse } from '@angular/common/http';\\nimport { forkJoin, of, throwError } from 'rxjs';\\nimport { catchError, map, switchMap } from 'rxjs/operators';\\nimport type { Observable } from 'rxjs';\\n\\nimport { ApiError } from './ApiError';\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\\n\" +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isString'),\n depth0,\n {\n name: 'functions/isString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isStringWithValue'),\n depth0,\n {\n name: 'functions/isStringWithValue',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isBlob'),\n depth0,\n {\n name: 'functions/isBlob',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isFormData'),\n depth0,\n {\n name: 'functions/isFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/base64'),\n depth0,\n {\n name: 'functions/base64',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getQueryString'),\n depth0,\n {\n name: 'functions/getQueryString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getUrl'),\n depth0,\n {\n name: 'functions/getUrl',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getFormData'),\n depth0,\n {\n name: 'functions/getFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/resolve'),\n depth0,\n {\n name: 'functions/resolve',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/getHeaders'),\n depth0,\n {\n name: 'angular/getHeaders',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/getRequestBody'),\n depth0,\n {\n name: 'angular/getRequestBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/sendRequest'),\n depth0,\n {\n name: 'angular/sendRequest',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/getResponseHeader'),\n depth0,\n {\n name: 'angular/getResponseHeader',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/getResponseBody'),\n depth0,\n {\n name: 'angular/getResponseBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/catchErrorCodes'),\n depth0,\n {\n name: 'functions/catchErrorCodes',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n/**\\n * Request method\\n * @param config The OpenAPI configuration object\\n * @param http The Angular HTTP client\\n * @param options The request options from the service\\n * @returns Observable<T>\\n * @throws ApiError\\n */\\nexport const request = <T>(config: OpenAPIConfig, http: HttpClient, options: ApiRequestOptions<T>): Observable<T> => {\\n\tconst url = getUrl(config, options);\\n\tconst formData = getFormData(options);\\n\tconst body = getRequestBody(options);\\n\\n\treturn getHeaders(config, options).pipe(\\n\t\tswitchMap(headers => {\\n\t\t\treturn sendRequest<T>(config, options, http, url, body, formData, headers);\\n\t\t}),\\n\t\tswitchMap(async response => {\\n\t\t\tfor (const fn of config.interceptors.response._fns) {\\n\t\t\t\tresponse = await fn(response);\\n\t\t\t}\\n\t\t\tconst responseBody = getResponseBody(response);\\n\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\\n\\n\t\t\tlet transformedBody = responseBody;\\n\t\t\tif (options.responseTransformer && response.ok) {\\n\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\\n\t\t\t}\\n\\n\t\t\treturn {\\n\t\t\t\turl,\\n\t\t\t\tok: response.ok,\\n\t\t\t\tstatus: response.status,\\n\t\t\t\tstatusText: response.statusText,\\n\t\t\t\tbody: responseHeader ?? transformedBody,\\n\t\t\t} as ApiResult;\\n\t\t}),\\n\t\tcatchError((error: HttpErrorResponse) => {\\n\t\t\tif (!error.status) {\\n\t\t\t\treturn throwError(() => error);\\n\t\t\t}\\n\t\t\treturn of({\\n\t\t\t\turl,\\n\t\t\t\tok: error.ok,\\n\t\t\t\tstatus: error.status,\\n\t\t\t\tstatusText: error.statusText,\\n\t\t\t\tbody: error.error ?? error.statusText,\\n\t\t\t} as ApiResult);\\n\t\t}),\\n\t\tmap(result => {\\n\t\t\tcatchErrorCodes(options, result);\\n\t\t\treturn result.body as T;\\n\t\t}),\\n\t\tcatchError((error: ApiError) => {\\n\t\t\treturn throwError(() => error);\\n\t\t}),\\n\t);\\n};'\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const sendRequest = <T>(\\n\tconfig: OpenAPIConfig,\\n\toptions: ApiRequestOptions<T>,\\n\thttp: HttpClient,\\n\turl: string,\\n\tbody: unknown,\\n\tformData: FormData | undefined,\\n\theaders: HttpHeaders\\n): Observable<HttpResponse<T>> => {\\n\treturn http.request<T>(options.method, url, {\\n\t\theaders,\\n\t\tbody: body ?? formData,\\n\t\twithCredentials: config.WITH_CREDENTIALS,\\n\t\tobserve: 'response',\\n\t});\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"import type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\n\\nexport class ApiError extends Error {\\n\tpublic readonly url: string;\\n\tpublic readonly status: number;\\n\tpublic readonly statusText: string;\\n\tpublic readonly body: unknown;\\n\tpublic readonly request: ApiRequestOptions;\\n\\n\tconstructor(request: ApiRequestOptions, response: ApiResult, message: string) {\\n\t\tsuper(message);\\n\\n\t\tthis.name = 'ApiError';\\n\t\tthis.url = response.url;\\n\t\tthis.status = response.status;\\n\t\tthis.statusText = response.statusText;\\n\t\tthis.body = response.body;\\n\t\tthis.request = request;\\n\t}\\n}\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export type ApiRequestOptions<T = unknown> = {\\n\treadonly body?: any;\\n\treadonly cookies?: Record<string, unknown>;\\n\treadonly errors?: Record<number | string, string>;\\n\treadonly formData?: Record<string, unknown> | any[] | Blob | File;\\n\treadonly headers?: Record<string, unknown>;\\n\treadonly mediaType?: string;\\n\treadonly method:\\n\t\t| 'DELETE'\\n\t\t| 'GET'\\n\t\t| 'HEAD'\\n\t\t| 'OPTIONS'\\n\t\t| 'PATCH'\\n\t\t| 'POST'\\n\t\t| 'PUT';\\n\treadonly path?: Record<string, unknown>;\\n\treadonly query?: Record<string, unknown>;\\n\treadonly responseHeader?: string;\\n\treadonly responseTransformer?: (data: unknown) => Promise<T>;\\n\treadonly url: string;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export type ApiResult<TData = any> = {\\n\treadonly body: TData;\\n\treadonly ok: boolean;\\n\treadonly status: number;\\n\treadonly statusText: string;\\n\treadonly url: string;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getHeaders = async <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): Promise<Record<string, string>> => {\\n\tconst [token, username, password, additionalHeaders] = await Promise.all([\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.TOKEN),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.USERNAME),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.PASSWORD),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.HEADERS),\\n\t]);\\n\\n\tconst headers = Object.entries({\\n\t\tAccept: 'application/json',\\n\t\t...additionalHeaders,\\n\t\t...options.headers,\\n\t})\\n\t.filter(([, value]) => value !== undefined && value !== null)\\n\t.reduce((headers, [key, value]) => ({\\n\t\t...headers,\\n\t\t[key]: String(value),\\n\t}), {} as Record<string, string>);\\n\\n\tif (isStringWithValue(token)) {\\n\t\theaders['Authorization'] = `Bearer ${token}`;\\n\t}\\n\\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\\n\t\tconst credentials = base64(`${username}:${password}`);\\n\t\theaders['Authorization'] = `Basic ${credentials}`;\\n\t}\\n\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType) {\\n\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t} else if (isBlob(options.body)) {\\n\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\\n\t\t} else if (isString(options.body)) {\\n\t\t\theaders['Content-Type'] = 'text/plain';\\n\t\t} else if (!isFormData(options.body)) {\\n\t\t\theaders['Content-Type'] = 'application/json';\\n\t\t}\\n\t} else if (options.formData !== undefined) {\\n\t\tif (options.mediaType) {\\n\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t}\\n\t}\\n\\n\treturn headers;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getRequestBody = (options: ApiRequestOptions): unknown => {\\n\tif (options.body) {\\n\t\treturn options.body;\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseBody = (response: AxiosResponse<unknown>): unknown => {\\n\tif (response.status !== 204) {\\n\t\treturn response.data;\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseHeader = (response: AxiosResponse<unknown>, responseHeader?: string): string | undefined => {\\n\tif (responseHeader) {\\n\t\tconst content = response.headers[responseHeader];\\n\t\tif (isString(content)) {\\n\t\t\treturn content;\\n\t\t}\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return 'ApiResult<T>';\n },\n 3: function (container, depth0, helpers, partials, data) {\n return 'T';\n },\n 5: function (container, depth0, helpers, partials, data) {\n return 'result.body';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return 'result';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n \"import axios from 'axios';\\nimport type { AxiosError, AxiosRequestConfig, AxiosResponse, AxiosInstance } from 'axios';\\n\\nimport { ApiError } from './ApiError';\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\nimport { CancelablePromise } from './CancelablePromise';\\nimport type { OnCancel } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\\n\" +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isString'),\n depth0,\n {\n name: 'functions/isString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isStringWithValue'),\n depth0,\n {\n name: 'functions/isStringWithValue',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isBlob'),\n depth0,\n {\n name: 'functions/isBlob',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isFormData'),\n depth0,\n {\n name: 'functions/isFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isSuccess'),\n depth0,\n {\n name: 'functions/isSuccess',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/base64'),\n depth0,\n {\n name: 'functions/base64',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getQueryString'),\n depth0,\n {\n name: 'functions/getQueryString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getUrl'),\n depth0,\n {\n name: 'functions/getUrl',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getFormData'),\n depth0,\n {\n name: 'functions/getFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/resolve'),\n depth0,\n {\n name: 'functions/resolve',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/getHeaders'),\n depth0,\n {\n name: 'axios/getHeaders',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/getRequestBody'),\n depth0,\n {\n name: 'axios/getRequestBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/sendRequest'),\n depth0,\n {\n name: 'axios/sendRequest',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/getResponseHeader'),\n depth0,\n {\n name: 'axios/getResponseHeader',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/getResponseBody'),\n depth0,\n {\n name: 'axios/getResponseBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/catchErrorCodes'),\n depth0,\n {\n name: 'functions/catchErrorCodes',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n/**\\n * Request method\\n * @param config The OpenAPI configuration object\\n * @param options The request options from the service\\n * @param axiosClient The axios client instance to use\\n * @returns CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: {\n start: { line: 64, column: 30 },\n end: { line: 64, column: 108 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '>\\n * @throws ApiError\\n */\\nexport const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>, axiosClient: AxiosInstance = axios): CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: {\n start: { line: 67, column: 136 },\n end: { line: 67, column: 214 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '> => {\\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\\n\t\ttry {\\n\t\t\tconst url = getUrl(config, options);\\n\t\t\tconst formData = getFormData(options);\\n\t\t\tconst body = getRequestBody(options);\\n\t\t\tconst headers = await getHeaders(config, options);\\n\\n\t\t\tif (!onCancel.isCancelled) {\\n\t\t\t\tlet response = await sendRequest<T>(config, options, url, body, formData, headers, onCancel, axiosClient);\\n\\n\t\t\t\tfor (const fn of config.interceptors.response._fns) {\\n\t\t\t\t\tresponse = await fn(response);\\n\t\t\t\t}\\n\\n\t\t\t\tconst responseBody = getResponseBody(response);\\n\t\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\\n\\n\t\t\t\tlet transformedBody = responseBody;\\n\t\t\t\tif (options.responseTransformer && isSuccess(response.status)) {\\n\t\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\\n\t\t\t\t}\\n\\n\t\t\t\tconst result: ApiResult = {\\n\t\t\t\t\turl,\\n\t\t\t\t\tok: isSuccess(response.status),\\n\t\t\t\t\tstatus: response.status,\\n\t\t\t\t\tstatusText: response.statusText,\\n\t\t\t\t\tbody: responseHeader ?? transformedBody,\\n\t\t\t\t};\\n\\n\t\t\t\tcatchErrorCodes(options, result);\\n\\n\t\t\t\tresolve(' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'body',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.program(7, data, 0),\n data: data,\n loc: {\n start: { line: 100, column: 12 },\n end: { line: 100, column: 90 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ');\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\treject(error);\\n\t\t}\\n\t});\\n};'\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const sendRequest = async <T>(\\n\tconfig: OpenAPIConfig,\\n\toptions: ApiRequestOptions<T>,\\n\turl: string,\\n\tbody: unknown,\\n\tformData: FormData | undefined,\\n\theaders: Record<string, string>,\\n\tonCancel: OnCancel,\\n\taxiosClient: AxiosInstance\\n): Promise<AxiosResponse<T>> => {\\n\tconst controller = new AbortController();\\n\\n\tlet requestConfig: AxiosRequestConfig = {\\n\t\tdata: body ?? formData,\\n\t\theaders,\\n\t\tmethod: options.method,\\n\t\tsignal: controller.signal,\\n\t\turl,\\n\t\twithCredentials: config.WITH_CREDENTIALS,\\n\t};\\n\\n\tonCancel(() => controller.abort());\\n\\n\tfor (const fn of config.interceptors.request._fns) {\\n\t\trequestConfig = await fn(requestConfig);\\n\t}\\n\\n\ttry {\\n\t\treturn await axiosClient.request(requestConfig);\\n\t} catch (error) {\\n\t\tconst axiosError = error as AxiosError<T>;\\n\t\tif (axiosError.response) {\\n\t\t\treturn axiosError.response;\\n\t\t}\\n\t\tthrow error;\\n\t}\\n};';\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import type { HttpClient } from '@angular/common/http';\\nimport type { Observable } from 'rxjs';\\n\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n return \"import type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { CancelablePromise } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\";\n },\n 5: function (container, depth0, helpers, partials, data) {\n return '\tconstructor(\\n\t\tpublic readonly config: OpenAPIConfig,\\n\t\tpublic readonly http: HttpClient,\\n\t) {}\\n';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return '\tconstructor(public readonly config: OpenAPIConfig) {}\\n';\n },\n 9: function (container, depth0, helpers, partials, data) {\n return '\tpublic abstract request<T>(options: ApiRequestOptions<T>): Observable<T>;\\n';\n },\n 11: function (container, depth0, helpers, partials, data) {\n return '\tpublic abstract request<T>(options: ApiRequestOptions<T>): CancelablePromise<T>;\\n';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 11, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n '\\nexport abstract class BaseHttpRequest {\\n\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.program(7, data, 0),\n data: data,\n loc: {\n start: { line: 15, column: 1 },\n end: { line: 22, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(9, data, 0),\n inverse: container.program(11, data, 0),\n data: data,\n loc: {\n start: { line: 24, column: 1 },\n end: { line: 28, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '}'\n );\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export class CancelError extends Error {\\n\tconstructor(message: string) {\\n\t\tsuper(message);\\n\t\tthis.name = 'CancelError';\\n\t}\\n\\n\tpublic get isCancelled(): boolean {\\n\t\treturn true;\\n\t}\\n}\\n\\nexport interface OnCancel {\\n\treadonly isResolved: boolean;\\n\treadonly isRejected: boolean;\\n\treadonly isCancelled: boolean;\\n\\n\t(cancelHandler: () => void): void;\\n}\\n\\nexport class CancelablePromise<T> implements Promise<T> {\\n\tprivate _isResolved: boolean;\\n\tprivate _isRejected: boolean;\\n\tprivate _isCancelled: boolean;\\n\treadonly cancelHandlers: (() => void)[];\\n\treadonly promise: Promise<T>;\\n\tprivate _resolve?: (value: T | PromiseLike<T>) => void;\\n\tprivate _reject?: (reason?: unknown) => void;\\n\\n\tconstructor(\\n\t\texecutor: (\\n\t\t\tresolve: (value: T | PromiseLike<T>) => void,\\n\t\t\treject: (reason?: unknown) => void,\\n\t\t\tonCancel: OnCancel\\n\t\t) => void\\n\t) {\\n\t\tthis._isResolved = false;\\n\t\tthis._isRejected = false;\\n\t\tthis._isCancelled = false;\\n\t\tthis.cancelHandlers = [];\\n\t\tthis.promise = new Promise<T>((resolve, reject) => {\\n\t\t\tthis._resolve = resolve;\\n\t\t\tthis._reject = reject;\\n\\n\t\t\tconst onResolve = (value: T | PromiseLike<T>): void => {\\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\\n\t\t\t\t\treturn;\\n\t\t\t\t}\\n\t\t\t\tthis._isResolved = true;\\n\t\t\t\tif (this._resolve) this._resolve(value);\\n\t\t\t};\\n\\n\t\t\tconst onReject = (reason?: unknown): void => {\\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\\n\t\t\t\t\treturn;\\n\t\t\t\t}\\n\t\t\t\tthis._isRejected = true;\\n\t\t\t\tif (this._reject) this._reject(reason);\\n\t\t\t};\\n\\n\t\t\tconst onCancel = (cancelHandler: () => void): void => {\\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\\n\t\t\t\t\treturn;\\n\t\t\t\t}\\n\t\t\t\tthis.cancelHandlers.push(cancelHandler);\\n\t\t\t};\\n\\n\t\t\tObject.defineProperty(onCancel, 'isResolved', {\\n\t\t\t\tget: (): boolean => this._isResolved,\\n\t\t\t});\\n\\n\t\t\tObject.defineProperty(onCancel, 'isRejected', {\\n\t\t\t\tget: (): boolean => this._isRejected,\\n\t\t\t});\\n\\n\t\t\tObject.defineProperty(onCancel, 'isCancelled', {\\n\t\t\t\tget: (): boolean => this._isCancelled,\\n\t\t\t});\\n\\n\t\t\treturn executor(onResolve, onReject, onCancel as OnCancel);\\n\t\t});\\n\t}\\n\\n\tget [Symbol.toStringTag](): string {\\n\t\treturn \\\"Cancellable Promise\\\";\\n\t}\\n\\n\tpublic then<TResult1 = T, TResult2 = never>(\\n\t\tonFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,\\n\t\tonRejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null\\n\t): Promise<TResult1 | TResult2> {\\n\t\treturn this.promise.then(onFulfilled, onRejected);\\n\t}\\n\\n\tpublic catch<TResult = never>(\\n\t\tonRejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null\\n\t): Promise<T | TResult> {\\n\t\treturn this.promise.catch(onRejected);\\n\t}\\n\\n\tpublic finally(onFinally?: (() => void) | null): Promise<T> {\\n\t\treturn this.promise.finally(onFinally);\\n\t}\\n\\n\tpublic cancel(): void {\\n\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\\n\t\t\treturn;\\n\t\t}\\n\t\tthis._isCancelled = true;\\n\t\tif (this.cancelHandlers.length) {\\n\t\t\ttry {\\n\t\t\t\tfor (const cancelHandler of this.cancelHandlers) {\\n\t\t\t\t\tcancelHandler();\\n\t\t\t\t}\\n\t\t\t} catch (error) {\\n\t\t\t\tconsole.warn('Cancellation threw an error', error);\\n\t\t\t\treturn;\\n\t\t\t}\\n\t\t}\\n\t\tthis.cancelHandlers.length = 0;\\n\t\tif (this._reject) this._reject(new CancelError('Request aborted'));\\n\t}\\n\\n\tpublic get isCancelled(): boolean {\\n\t\treturn this._isCancelled;\\n\t}\\n}\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getHeaders = async <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): Promise<Headers> => {\\n\tconst [token, username, password, additionalHeaders] = await Promise.all([\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.TOKEN),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.USERNAME),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.PASSWORD),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.HEADERS),\\n\t]);\\n\\n\tconst headers = Object.entries({\\n\t\tAccept: 'application/json',\\n\t\t...additionalHeaders,\\n\t\t...options.headers,\\n\t})\\n\t\t.filter(([, value]) => value !== undefined && value !== null)\\n\t\t.reduce((headers, [key, value]) => ({\\n\t\t\t...headers,\\n\t\t\t[key]: String(value),\\n\t\t}), {} as Record<string, string>);\\n\\n\tif (isStringWithValue(token)) {\\n\t\theaders['Authorization'] = `Bearer ${token}`;\\n\t}\\n\\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\\n\t\tconst credentials = base64(`${username}:${password}`);\\n\t\theaders['Authorization'] = `Basic ${credentials}`;\\n\t}\\n\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType) {\\n\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t} else if (isBlob(options.body)) {\\n\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\\n\t\t} else if (isString(options.body)) {\\n\t\t\theaders['Content-Type'] = 'text/plain';\\n\t\t} else if (!isFormData(options.body)) {\\n\t\t\theaders['Content-Type'] = 'application/json';\\n\t\t}\\n\t}\\n\\n\treturn new Headers(headers);\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getRequestBody = (options: ApiRequestOptions): unknown => {\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType?.includes('application/json') || options.mediaType?.includes('+json')) {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\\n\t\t\treturn options.body;\\n\t\t} else {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getResponseBody = async (response: Response): Promise<unknown> => {\\n\tif (response.status !== 204) {\\n\t\ttry {\\n\t\t\tconst contentType = response.headers.get('Content-Type');\\n\t\t\tif (contentType) {\\n\t\t\t\tconst binaryTypes = ['application/octet-stream', 'application/pdf', 'application/zip', 'audio/', 'image/', 'video/'];\\n\t\t\t\tif (contentType.includes('application/json') || contentType.includes('+json')) {\\n\t\t\t\t\treturn await response.json();\\n\t\t\t\t} else if (binaryTypes.some(type => contentType.includes(type))) {\\n\t\t\t\t\treturn await response.blob();\\n\t\t\t\t} else if (contentType.includes('multipart/form-data')) {\\n\t\t\t\t\treturn await response.formData();\\n\t\t\t\t} else if (contentType.includes('text/')) {\\n\t\t\t\t\treturn await response.text();\\n\t\t\t\t}\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\tconsole.error(error);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {\\n\tif (responseHeader) {\\n\t\tconst content = response.headers.get(responseHeader);\\n\t\tif (isString(content)) {\\n\t\t\treturn content;\\n\t\t}\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import fetch, { FormData, Headers } from 'node-fetch';\\nimport type { RequestInit, Response } from 'node-fetch';\\n\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n return 'ApiResult<T>';\n },\n 5: function (container, depth0, helpers, partials, data) {\n return 'T';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return 'result.body';\n },\n 9: function (container, depth0, helpers, partials, data) {\n return 'result';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/node',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 5, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n \"import { ApiError } from './ApiError';\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\nimport { CancelablePromise } from './CancelablePromise';\\nimport type { OnCancel } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\\n\" +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isString'),\n depth0,\n {\n name: 'functions/isString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isStringWithValue'),\n depth0,\n {\n name: 'functions/isStringWithValue',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isBlob'),\n depth0,\n {\n name: 'functions/isBlob',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isFormData'),\n depth0,\n {\n name: 'functions/isFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/base64'),\n depth0,\n {\n name: 'functions/base64',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getQueryString'),\n depth0,\n {\n name: 'functions/getQueryString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getUrl'),\n depth0,\n {\n name: 'functions/getUrl',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getFormData'),\n depth0,\n {\n name: 'functions/getFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/resolve'),\n depth0,\n {\n name: 'functions/resolve',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getHeaders'),\n depth0,\n {\n name: 'fetch/getHeaders',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getRequestBody'),\n depth0,\n {\n name: 'fetch/getRequestBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/sendRequest'),\n depth0,\n {\n name: 'fetch/sendRequest',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getResponseHeader'),\n depth0,\n {\n name: 'fetch/getResponseHeader',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getResponseBody'),\n depth0,\n {\n name: 'fetch/getResponseBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/catchErrorCodes'),\n depth0,\n {\n name: 'functions/catchErrorCodes',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n/**\\n * Request method\\n * @param config The OpenAPI configuration object\\n * @param options The request options from the service\\n * @returns CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(3, data, 0),\n inverse: container.program(5, data, 0),\n data: data,\n loc: {\n start: { line: 62, column: 30 },\n end: { line: 62, column: 108 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '>\\n * @throws ApiError\\n */\\nexport const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(3, data, 0),\n inverse: container.program(5, data, 0),\n data: data,\n loc: {\n start: { line: 65, column: 100 },\n end: { line: 65, column: 178 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '> => {\\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\\n\t\ttry {\\n\t\t\tconst url = getUrl(config, options);\\n\t\t\tconst formData = getFormData(options);\\n\t\t\tconst body = getRequestBody(options);\\n\t\t\tconst headers = await getHeaders(config, options);\\n\\n\t\t\tif (!onCancel.isCancelled) {\\n\t\t\t\tlet response = await sendRequest(config, options, url, body, formData, headers, onCancel);\\n\\n\t\t\t\tfor (const fn of config.interceptors.response._fns) {\\n\t\t\t\t\tresponse = await fn(response);\\n\t\t\t\t}\\n\\n\t\t\t\tconst responseBody = await getResponseBody(response);\\n\t\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\\n\\n\t\t\t\tlet transformedBody = responseBody;\\n\t\t\t\tif (options.responseTransformer && response.ok) {\\n\t\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\\n\t\t\t\t}\\n\\n\t\t\t\tconst result: ApiResult = {\\n\t\t\t\t\turl,\\n\t\t\t\t\tok: response.ok,\\n\t\t\t\t\tstatus: response.status,\\n\t\t\t\t\tstatusText: response.statusText,\\n\t\t\t\t\tbody: responseHeader ?? transformedBody,\\n\t\t\t\t};\\n\\n\t\t\t\tcatchErrorCodes(options, result);\\n\\n\t\t\t\tresolve(' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'body',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(7, data, 0),\n inverse: container.program(9, data, 0),\n data: data,\n loc: {\n start: { line: 98, column: 12 },\n end: { line: 98, column: 90 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ');\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\treject(error);\\n\t\t}\\n\t});\\n};'\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return '\tif (config.WITH_CREDENTIALS) {\\n\t\trequest.credentials = config.CREDENTIALS;\\n\t}\\n';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n 'export const sendRequest = async (\\n\tconfig: OpenAPIConfig,\\n\toptions: ApiRequestOptions,\\n\turl: string,\\n\tbody: any,\\n\tformData: FormData | undefined,\\n\theaders: Headers,\\n\tonCancel: OnCancel\\n): Promise<Response> => {\\n\tconst controller = new AbortController();\\n\\n\tlet request: RequestInit = {\\n\t\theaders,\\n\t\tbody: body ?? formData,\\n\t\tmethod: options.method,\\n\t\tsignal: controller.signal,\\n\t};\\n\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/fetch',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 19, column: 1 },\n end: { line: 23, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\\n\tfor (const fn of config.interceptors.request._fns) {\\n\t\trequest = await fn(request);\\n\t}\\n\\n\tonCancel(() => controller.abort());\\n\\n\treturn await fetch(url, request);\\n};'\n );\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const base64 = (str: string): string => {\\n\ttry {\\n\t\treturn btoa(str);\\n\t} catch (err) {\\n\t\t// @ts-ignore\\n\t\treturn Buffer.from(str).toString('base64');\\n\t}\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {\\n\tconst errors: Record<number, string> = {\\n\t\t400: 'Bad Request',\\n\t\t401: 'Unauthorized',\\n\t\t402: 'Payment Required',\\n\t\t403: 'Forbidden',\\n\t\t404: 'Not Found',\\n\t\t405: 'Method Not Allowed',\\n\t\t406: 'Not Acceptable',\\n\t\t407: 'Proxy Authentication Required',\\n\t\t408: 'Request Timeout',\\n\t\t409: 'Conflict',\\n\t\t410: 'Gone',\\n\t\t411: 'Length Required',\\n\t\t412: 'Precondition Failed',\\n\t\t413: 'Payload Too Large',\\n\t\t414: 'URI Too Long',\\n\t\t415: 'Unsupported Media Type',\\n\t\t416: 'Range Not Satisfiable',\\n\t\t417: 'Expectation Failed',\\n\t\t418: 'Im a teapot',\\n\t\t421: 'Misdirected Request',\\n\t\t422: 'Unprocessable Content',\\n\t\t423: 'Locked',\\n\t\t424: 'Failed Dependency',\\n\t\t425: 'Too Early',\\n\t\t426: 'Upgrade Required',\\n\t\t428: 'Precondition Required',\\n\t\t429: 'Too Many Requests',\\n\t\t431: 'Request Header Fields Too Large',\\n\t\t451: 'Unavailable For Legal Reasons',\\n\t\t500: 'Internal Server Error',\\n\t\t501: 'Not Implemented',\\n\t\t502: 'Bad Gateway',\\n\t\t503: 'Service Unavailable',\\n\t\t504: 'Gateway Timeout',\\n\t\t505: 'HTTP Version Not Supported',\\n\t\t506: 'Variant Also Negotiates',\\n\t\t507: 'Insufficient Storage',\\n\t\t508: 'Loop Detected',\\n\t\t510: 'Not Extended',\\n\t\t511: 'Network Authentication Required',\\n\t\t...options.errors,\\n\t}\\n\\n\tconst error = errors[result.status];\\n\tif (error) {\\n\t\tthrow new ApiError(options, result, error);\\n\t}\\n\\n\tif (!result.ok) {\\n\t\tconst errorStatus = result.status ?? 'unknown';\\n\t\tconst errorStatusText = result.statusText ?? 'unknown';\\n\t\tconst errorBody = (() => {\\n\t\t\ttry {\\n\t\t\t\treturn JSON.stringify(result.body, null, 2);\\n\t\t\t} catch (e) {\\n\t\t\t\treturn undefined;\\n\t\t\t}\\n\t\t})();\\n\\n\t\tthrow new ApiError(options, result,\\n\t\t\t`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`\\n\t\t);\\n\t}\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getFormData = (options: ApiRequestOptions): FormData | undefined => {\\n\tif (options.formData) {\\n\t\tconst formData = new FormData();\\n\\n\t\tconst process = (key: string, value: unknown) => {\\n\t\t\tif (isString(value) || isBlob(value)) {\\n\t\t\t\tformData.append(key, value);\\n\t\t\t} else {\\n\t\t\t\tformData.append(key, JSON.stringify(value));\\n\t\t\t}\\n\t\t};\\n\\n\t\tObject.entries(options.formData)\\n\t\t\t.filter(([, value]) => value !== undefined && value !== null)\\n\t\t\t.forEach(([key, value]) => {\\n\t\t\t\tif (Array.isArray(value)) {\\n\t\t\t\t\tvalue.forEach(v => process(key, v));\\n\t\t\t\t} else {\\n\t\t\t\t\tprocess(key, value);\\n\t\t\t\t}\\n\t\t\t});\\n\\n\t\treturn formData;\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getQueryString = (params: Record<string, unknown>): string => {\\n\tconst qs: string[] = [];\\n\\n\tconst append = (key: string, value: unknown) => {\\n\t\tqs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\\n\t};\\n\\n\tconst encodePair = (key: string, value: unknown) => {\\n\t\tif (value === undefined || value === null) {\\n\t\t\treturn;\\n\t\t}\\n\\n\t\tif (value instanceof Date) {\\n\t\t\tappend(key, value.toISOString());\\n\t\t} else if (Array.isArray(value)) {\\n\t\t\tvalue.forEach(v => encodePair(key, v));\\n\t\t} else if (typeof value === 'object') {\\n\t\t\tObject.entries(value).forEach(([k, v]) => encodePair(`${key}[${k}]`, v));\\n\t\t} else {\\n\t\t\tappend(key, value);\\n\t\t}\\n\t};\\n\\n\tObject.entries(params).forEach(([key, value]) => encodePair(key, value));\\n\\n\treturn qs.length ? `?${qs.join('&')}` : '';\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {\\n\tconst encoder = config.ENCODE_PATH || encodeURI;\\n\\n\tconst path = options.url\\n\t\t.replace('{api-version}', config.VERSION)\\n\t\t.replace(/{(.*?)}/g, (substring: string, group: string) => {\\n\t\t\tif (options.path?.hasOwnProperty(group)) {\\n\t\t\t\treturn encoder(String(options.path[group]));\\n\t\t\t}\\n\t\t\treturn substring;\\n\t\t});\\n\\n\tconst url = config.BASE + path;\\n\treturn options.query ? url + getQueryString(options.query) : url;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const isBlob = (value: any): value is Blob => {\\n\treturn value instanceof Blob;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const isFormData = (value: unknown): value is FormData => {\\n\treturn value instanceof FormData;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const isString = (value: unknown): value is string => {\\n\treturn typeof value === 'string';\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const isStringWithValue = (value: unknown): value is string => {\\n\treturn isString(value) && value !== '';\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const isSuccess = (status: number): boolean => {\\n\treturn status >= 200 && status < 300;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"type Resolver<T> = (options: ApiRequestOptions<T>) => Promise<T>;\\n\\nexport const resolve = async <T>(options: ApiRequestOptions<T>, resolver?: T | Resolver<T>): Promise<T | undefined> => {\\n\tif (typeof resolver === 'function') {\\n\t\treturn (resolver as Resolver<T>)(options);\\n\t}\\n\treturn resolver;\\n};\";\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import { Inject, Injectable } from '@angular/core';\\nimport { HttpClient } from '@angular/common/http';\\nimport type { Observable } from 'rxjs';\\n\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport { BaseHttpRequest } from './BaseHttpRequest';\\nimport type { OpenAPIConfig } from './OpenAPI';\\nimport { OpenAPI } from './OpenAPI';\\nimport { request as __request } from './request';\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n return \"import type { ApiRequestOptions } from './ApiRequestOptions';\\nimport { BaseHttpRequest } from './BaseHttpRequest';\\nimport type { CancelablePromise } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\nimport { request as __request } from './request';\\n\";\n },\n 5: function (container, depth0, helpers, partials, data) {\n return '@Injectable()\\n';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return '\tconstructor(\\n\t\t@Inject(OpenAPI)\\n\t\tconfig: OpenAPIConfig,\\n\t\thttp: HttpClient,\\n\t) {\\n\t\tsuper(config, http);\\n\t}\\n';\n },\n 9: function (container, depth0, helpers, partials, data) {\n return '\tconstructor(config: OpenAPIConfig) {\\n\t\tsuper(config);\\n\t}\\n';\n },\n 11: function (container, depth0, helpers, partials, data) {\n return '\t/**\\n\t * Request method\\n\t * @param options The request options from the service\\n\t * @returns Observable<T>\\n\t * @throws ApiError\\n\t */\\n\tpublic override request<T>(options: ApiRequestOptions<T>): Observable<T> {\\n\t\treturn __request(this.config, this.http, options);\\n\t}\\n';\n },\n 13: function (container, depth0, helpers, partials, data) {\n return '\t/**\\n\t * Request method\\n\t * @param options The request options from the service\\n\t * @returns CancelablePromise<T>\\n\t * @throws ApiError\\n\t */\\n\tpublic override request<T>(options: ApiRequestOptions<T>): CancelablePromise<T> {\\n\t\treturn __request(this.config, options);\\n\t}\\n';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 17, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 19, column: 0 },\n end: { line: 21, column: 11 },\n },\n },\n )) != null\n ? stack1\n : '') +\n 'export class ' +\n ((stack1 = container.lambda(\n container.strict(depth0, 'httpRequest', {\n start: { line: 22, column: 15 },\n end: { line: 22, column: 26 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n ' extends BaseHttpRequest {\\n\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(7, data, 0),\n inverse: container.program(9, data, 0),\n data: data,\n loc: {\n start: { line: 24, column: 1 },\n end: { line: 36, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(11, data, 0),\n inverse: container.program(13, data, 0),\n data: data,\n loc: {\n start: { line: 38, column: 1 },\n end: { line: 58, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '}'\n );\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import type { HttpResponse } from '@angular/common/http';\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n return \"import type { AxiosRequestConfig, AxiosResponse } from 'axios';\\n\";\n },\n 5: function (container, depth0, helpers, partials, data) {\n return \"import type { RequestInit, Response } from 'node-fetch';\\n\";\n },\n 7: function (container, depth0, helpers, partials, data) {\n return '\t\tresponse: Interceptors<HttpResponse<any>>;\\n';\n },\n 9: function (container, depth0, helpers, partials, data) {\n return '\t\trequest: Interceptors<AxiosRequestConfig>;\\n\t\tresponse: Interceptors<AxiosResponse>;\\n';\n },\n 11: function (container, depth0, helpers, partials, data) {\n return '\t\trequest: Interceptors<RequestInit>;\\n\t\tresponse: Interceptors<Response>;\\n';\n },\n 13: function (container, depth0, helpers, partials, data) {\n return '\t\trequest: Interceptors<XMLHttpRequest>;\\n\t\tresponse: Interceptors<XMLHttpRequest>;\\n';\n },\n 15: function (container, depth0, helpers, partials, data) {\n return '\t\trequest: new Interceptors(),\\n';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n alias2 = container.strict,\n alias3 = container.lambda,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 3, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/axios',\n {\n name: 'equals',\n hash: {},\n fn: container.program(3, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 4, column: 0 }, end: { line: 6, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/node',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 7, column: 0 }, end: { line: 9, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n \"import type { ApiRequestOptions } from './ApiRequestOptions';\\n\\ntype Headers = Record<string, string>;\\ntype Middleware<T> = (value: T) => T | Promise<T>;\\ntype Resolver<T> = (options: ApiRequestOptions<T>) => Promise<T>;\\n\\nexport class Interceptors<T> {\\n _fns: Middleware<T>[];\\n\\n constructor() {\\n this._fns = [];\\n }\\n\\n eject(fn: Middleware<T>): void {\\n const index = this._fns.indexOf(fn);\\n if (index !== -1) {\\n this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)];\\n }\\n }\\n\\n use(fn: Middleware<T>): void {\\n this._fns = [...this._fns, fn];\\n }\\n}\\n\\nexport type OpenAPIConfig = {\\n\tBASE: string;\\n\tCREDENTIALS: 'include' | 'omit' | 'same-origin';\\n\tENCODE_PATH?: ((path: string) => string) | undefined;\\n\tHEADERS?: Headers | Resolver<Headers> | undefined;\\n\tPASSWORD?: string | Resolver<string> | undefined;\\n\tTOKEN?: string | Resolver<string> | undefined;\\n\tUSERNAME?: string | Resolver<string> | undefined;\\n\tVERSION: string;\\n\tWITH_CREDENTIALS: boolean;\\n\tinterceptors: {\\n\" +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(7, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 46, column: 2 },\n end: { line: 48, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/axios',\n {\n name: 'equals',\n hash: {},\n fn: container.program(9, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 49, column: 2 },\n end: { line: 52, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/fetch',\n {\n name: 'equals',\n hash: {},\n fn: container.program(11, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 53, column: 2 },\n end: { line: 56, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/node',\n {\n name: 'equals',\n hash: {},\n fn: container.program(11, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 57, column: 2 },\n end: { line: 60, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/xhr',\n {\n name: 'equals',\n hash: {},\n fn: container.program(13, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 61, column: 2 },\n end: { line: 64, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n \"\t};\\n};\\n\\nexport const OpenAPI: OpenAPIConfig = {\\n\tBASE: '\" +\n ((stack1 = alias3(\n alias2(depth0, 'server', {\n start: { line: 69, column: 11 },\n end: { line: 69, column: 17 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\tCREDENTIALS: 'include',\\n\tENCODE_PATH: undefined,\\n\tHEADERS: undefined,\\n\tPASSWORD: undefined,\\n\tTOKEN: undefined,\\n\tUSERNAME: undefined,\\n\tVERSION: '\" +\n ((stack1 = alias3(\n alias2(depth0, 'version', {\n start: { line: 76, column: 14 },\n end: { line: 76, column: 21 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\tWITH_CREDENTIALS: false,\\n\tinterceptors: {\\n\" +\n ((stack1 = lookupProperty(helpers, 'notEquals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'notEquals',\n hash: {},\n fn: container.program(15, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 79, column: 2 },\n end: { line: 81, column: 16 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\t\tresponse: new Interceptors(),\\n\t},\\n};'\n );\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/request'),\n depth0,\n {\n name: 'angular/request',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '';\n },\n 3: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/request'),\n depth0,\n {\n name: 'axios/request',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '';\n },\n 5: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/request'),\n depth0,\n {\n name: 'fetch/request',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '';\n },\n 7: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/request'),\n depth0,\n {\n name: 'xhr/request',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 1, column: 87 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/axios',\n {\n name: 'equals',\n hash: {},\n fn: container.program(3, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 2, column: 0 }, end: { line: 2, column: 83 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/fetch',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 3, column: 0 }, end: { line: 3, column: 83 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/node',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 4, column: 0 }, end: { line: 4, column: 82 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/xhr',\n {\n name: 'equals',\n hash: {},\n fn: container.program(7, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 5, column: 0 }, end: { line: 5, column: 79 } },\n },\n )) != null\n ? stack1\n : '')\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getHeaders = async <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): Promise<Headers> => {\\n\tconst [token, username, password, additionalHeaders] = await Promise.all([\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.TOKEN),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.USERNAME),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.PASSWORD),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.HEADERS),\\n\t]);\\n\\n\tconst headers = Object.entries({\\n\t\tAccept: 'application/json',\\n\t\t...additionalHeaders,\\n\t\t...options.headers,\\n\t})\\n\t\t.filter(([, value]) => value !== undefined && value !== null)\\n\t\t.reduce((headers, [key, value]) => ({\\n\t\t\t...headers,\\n\t\t\t[key]: String(value),\\n\t\t}), {} as Record<string, string>);\\n\\n\tif (isStringWithValue(token)) {\\n\t\theaders['Authorization'] = `Bearer ${token}`;\\n\t}\\n\\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\\n\t\tconst credentials = base64(`${username}:${password}`);\\n\t\theaders['Authorization'] = `Basic ${credentials}`;\\n\t}\\n\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType) {\\n\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t} else if (isBlob(options.body)) {\\n\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\\n\t\t} else if (isString(options.body)) {\\n\t\t\theaders['Content-Type'] = 'text/plain';\\n\t\t} else if (!isFormData(options.body)) {\\n\t\t\theaders['Content-Type'] = 'application/json';\\n\t\t}\\n\t}\\n\\n\treturn new Headers(headers);\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getRequestBody = (options: ApiRequestOptions): unknown => {\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType?.includes('application/json') || options.mediaType?.includes('+json')) {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\\n\t\t\treturn options.body;\\n\t\t} else {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getResponseBody = (xhr: XMLHttpRequest): unknown => {\\n\tif (xhr.status !== 204) {\\n\t\ttry {\\n\t\t\tconst contentType = xhr.getResponseHeader('Content-Type');\\n\t\t\tif (contentType) {\\n\t\t\t\tif (contentType.includes('application/json') || contentType.includes('+json')) {\\n\t\t\t\t\treturn JSON.parse(xhr.responseText);\\n\t\t\t\t} else {\\n\t\t\t\t\treturn xhr.responseText;\\n\t\t\t\t}\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\tconsole.error(error);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseHeader = (xhr: XMLHttpRequest, responseHeader?: string): string | undefined => {\\n\tif (responseHeader) {\\n\t\tconst content = xhr.getResponseHeader(responseHeader);\\n\t\tif (isString(content)) {\\n\t\t\treturn content;\\n\t\t}\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return 'ApiResult<T>';\n },\n 3: function (container, depth0, helpers, partials, data) {\n return 'T';\n },\n 5: function (container, depth0, helpers, partials, data) {\n return 'result.body';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return 'result';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n \"import { ApiError } from './ApiError';\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\nimport { CancelablePromise } from './CancelablePromise';\\nimport type { OnCancel } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\\n\" +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isString'),\n depth0,\n {\n name: 'functions/isString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isStringWithValue'),\n depth0,\n {\n name: 'functions/isStringWithValue',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isBlob'),\n depth0,\n {\n name: 'functions/isBlob',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isFormData'),\n depth0,\n {\n name: 'functions/isFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isSuccess'),\n depth0,\n {\n name: 'functions/isSuccess',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/base64'),\n depth0,\n {\n name: 'functions/base64',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getQueryString'),\n depth0,\n {\n name: 'functions/getQueryString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getUrl'),\n depth0,\n {\n name: 'functions/getUrl',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getFormData'),\n depth0,\n {\n name: 'functions/getFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/resolve'),\n depth0,\n {\n name: 'functions/resolve',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getHeaders'),\n depth0,\n {\n name: 'fetch/getHeaders',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/getRequestBody'),\n depth0,\n {\n name: 'xhr/getRequestBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/sendRequest'),\n depth0,\n {\n name: 'xhr/sendRequest',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/getResponseHeader'),\n depth0,\n {\n name: 'xhr/getResponseHeader',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/getResponseBody'),\n depth0,\n {\n name: 'xhr/getResponseBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/catchErrorCodes'),\n depth0,\n {\n name: 'functions/catchErrorCodes',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n/**\\n * Request method\\n * @param config The OpenAPI configuration object\\n * @param options The request options from the service\\n * @returns CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: {\n start: { line: 60, column: 30 },\n end: { line: 60, column: 108 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '>\\n * @throws ApiError\\n */\\nexport const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: {\n start: { line: 63, column: 100 },\n end: { line: 63, column: 178 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '> => {\\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\\n\t\ttry {\\n\t\t\tconst url = getUrl(config, options);\\n\t\t\tconst formData = getFormData(options);\\n\t\t\tconst body = getRequestBody(options);\\n\t\t\tconst headers = await getHeaders(config, options);\\n\\n\t\t\tif (!onCancel.isCancelled) {\\n\t\t\t\tlet response = await sendRequest(config, options, url, body, formData, headers, onCancel);\\n\\n\t\t\t\tfor (const fn of config.interceptors.response._fns) {\\n\t\t\t\t\tresponse = await fn(response);\\n\t\t\t\t}\\n\\n\t\t\t\tconst responseBody = getResponseBody(response);\\n\t\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\\n\\n\t\t\t\tlet transformedBody = responseBody;\\n\t\t\t\tif (options.responseTransformer && isSuccess(response.status)) {\\n\t\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\\n\t\t\t\t}\\n\\n\t\t\t\tconst result: ApiResult = {\\n\t\t\t\t\turl,\\n\t\t\t\t\tok: isSuccess(response.status),\\n\t\t\t\t\tstatus: response.status,\\n\t\t\t\t\tstatusText: response.statusText,\\n\t\t\t\t\tbody: responseHeader ?? transformedBody,\\n\t\t\t\t};\\n\\n\t\t\t\tcatchErrorCodes(options, result);\\n\\n\t\t\t\tresolve(' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'body',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.program(7, data, 0),\n data: data,\n loc: {\n start: { line: 96, column: 12 },\n end: { line: 96, column: 90 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ');\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\treject(error);\\n\t\t}\\n\t});\\n};'\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const sendRequest = async (\\n\tconfig: OpenAPIConfig,\\n\toptions: ApiRequestOptions,\\n\turl: string,\\n\tbody: any,\\n\tformData: FormData | undefined,\\n\theaders: Headers,\\n\tonCancel: OnCancel\\n): Promise<XMLHttpRequest> => {\\n\tlet xhr = new XMLHttpRequest();\\n\txhr.open(options.method, url, true);\\n\txhr.withCredentials = config.WITH_CREDENTIALS;\\n\\n\theaders.forEach((value, key) => {\\n\t\txhr.setRequestHeader(key, value);\\n\t});\\n\\n\treturn new Promise<XMLHttpRequest>(async (resolve, reject) => {\\n\t\txhr.onload = () => resolve(xhr);\\n\t\txhr.onabort = () => reject(new Error('Request aborted'));\\n\t\txhr.onerror = () => reject(new Error('Network error'));\\n\\n\t\tfor (const fn of config.interceptors.request._fns) {\\n\t\t\txhr = await fn(xhr);\\n\t\t}\\n\\n\t\txhr.send(body ?? formData);\\n\\n\t\tonCancel(() => xhr.abort());\\n\t});\\n};\";\n },\n useData: true,\n};\n","import Handlebars from 'handlebars';\n\n// @ts-expect-error\nimport templateClient from '../legacy/handlebars/compiled/client.js';\n// @ts-expect-error\nimport angularGetHeaders from '../legacy/handlebars/compiled/core/angular/getHeaders.js';\n// @ts-expect-error\nimport angularGetRequestBody from '../legacy/handlebars/compiled/core/angular/getRequestBody.js';\n// @ts-expect-error\nimport angularGetResponseBody from '../legacy/handlebars/compiled/core/angular/getResponseBody.js';\n// @ts-expect-error\nimport angularGetResponseHeader from '../legacy/handlebars/compiled/core/angular/getResponseHeader.js';\n// @ts-expect-error\nimport angularRequest from '../legacy/handlebars/compiled/core/angular/request.js';\n// @ts-expect-error\nimport angularSendRequest from '../legacy/handlebars/compiled/core/angular/sendRequest.js';\n// @ts-expect-error\nimport templateCoreApiError from '../legacy/handlebars/compiled/core/ApiError.js';\n// @ts-expect-error\nimport templateCoreApiRequestOptions from '../legacy/handlebars/compiled/core/ApiRequestOptions.js';\n// @ts-expect-error\nimport templateCoreApiResult from '../legacy/handlebars/compiled/core/ApiResult.js';\n// @ts-expect-error\nimport axiosGetHeaders from '../legacy/handlebars/compiled/core/axios/getHeaders.js';\n// @ts-expect-error\nimport axiosGetRequestBody from '../legacy/handlebars/compiled/core/axios/getRequestBody.js';\n// @ts-expect-error\nimport axiosGetResponseBody from '../legacy/handlebars/compiled/core/axios/getResponseBody.js';\n// @ts-expect-error\nimport axiosGetResponseHeader from '../legacy/handlebars/compiled/core/axios/getResponseHeader.js';\n// @ts-expect-error\nimport axiosRequest from '../legacy/handlebars/compiled/core/axios/request.js';\n// @ts-expect-error\nimport axiosSendRequest from '../legacy/handlebars/compiled/core/axios/sendRequest.js';\n// @ts-expect-error\nimport templateCoreBaseHttpRequest from '../legacy/handlebars/compiled/core/BaseHttpRequest.js';\n// @ts-expect-error\nimport templateCancelablePromise from '../legacy/handlebars/compiled/core/CancelablePromise.js';\n// @ts-expect-error\nimport fetchGetHeaders from '../legacy/handlebars/compiled/core/fetch/getHeaders.js';\n// @ts-expect-error\nimport fetchGetRequestBody from '../legacy/handlebars/compiled/core/fetch/getRequestBody.js';\n// @ts-expect-error\nimport fetchGetResponseBody from '../legacy/handlebars/compiled/core/fetch/getResponseBody.js';\n// @ts-expect-error\nimport fetchGetResponseHeader from '../legacy/handlebars/compiled/core/fetch/getResponseHeader.js';\n// @ts-expect-error\nimport fetchRequest from '../legacy/handlebars/compiled/core/fetch/request.js';\n// @ts-expect-error\nimport fetchSendRequest from '../legacy/handlebars/compiled/core/fetch/sendRequest.js';\n// @ts-expect-error\nimport functionBase64 from '../legacy/handlebars/compiled/core/functions/base64.js';\n// @ts-expect-error\nimport functionCatchErrorCodes from '../legacy/handlebars/compiled/core/functions/catchErrorCodes.js';\n// @ts-expect-error\nimport functionGetFormData from '../legacy/handlebars/compiled/core/functions/getFormData.js';\n// @ts-expect-error\nimport functionGetQueryString from '../legacy/handlebars/compiled/core/functions/getQueryString.js';\n// @ts-expect-error\nimport functionGetUrl from '../legacy/handlebars/compiled/core/functions/getUrl.js';\n// @ts-expect-error\nimport functionIsBlob from '../legacy/handlebars/compiled/core/functions/isBlob.js';\n// @ts-expect-error\nimport functionIsFormData from '../legacy/handlebars/compiled/core/functions/isFormData.js';\n// @ts-expect-error\nimport functionIsString from '../legacy/handlebars/compiled/core/functions/isString.js';\n// @ts-expect-error\nimport functionIsStringWithValue from '../legacy/handlebars/compiled/core/functions/isStringWithValue.js';\n// @ts-expect-error\nimport functionIsSuccess from '../legacy/handlebars/compiled/core/functions/isSuccess.js';\n// @ts-expect-error\nimport functionResolve from '../legacy/handlebars/compiled/core/functions/resolve.js';\n// @ts-expect-error\nimport templateCoreHttpRequest from '../legacy/handlebars/compiled/core/HttpRequest.js';\n// @ts-expect-error\nimport templateCoreSettings from '../legacy/handlebars/compiled/core/OpenAPI.js';\n// @ts-expect-error\nimport templateCoreRequest from '../legacy/handlebars/compiled/core/request.js';\n// @ts-expect-error\nimport xhrGetHeaders from '../legacy/handlebars/compiled/core/xhr/getHeaders.js';\n// @ts-expect-error\nimport xhrGetRequestBody from '../legacy/handlebars/compiled/core/xhr/getRequestBody.js';\n// @ts-expect-error\nimport xhrGetResponseBody from '../legacy/handlebars/compiled/core/xhr/getResponseBody.js';\n// @ts-expect-error\nimport xhrGetResponseHeader from '../legacy/handlebars/compiled/core/xhr/getResponseHeader.js';\n// @ts-expect-error\nimport xhrRequest from '../legacy/handlebars/compiled/core/xhr/request.js';\n// @ts-expect-error\nimport xhrSendRequest from '../legacy/handlebars/compiled/core/xhr/sendRequest.js';\nimport { getConfig } from './config';\nimport { stringCase } from './stringCase';\nimport { transformClassName } from './transform';\n\nexport const registerHandlebarHelpers = (): void => {\n Handlebars.registerHelper(\n 'camelCase',\n function (this: unknown, name: string) {\n return stringCase({\n case: 'camelCase',\n value: name,\n });\n },\n );\n\n Handlebars.registerHelper(\n 'equals',\n function (\n this: unknown,\n a: string,\n b: string,\n options: Handlebars.HelperOptions,\n ) {\n return a === b ? options.fn(this) : options.inverse(this);\n },\n );\n\n Handlebars.registerHelper(\n 'ifServicesResponse',\n function (this: unknown, value: string, options: Handlebars.HelperOptions) {\n return getConfig().plugins['@hey-api/sdk']?.config.response === value\n ? options.fn(this)\n : options.inverse(this);\n },\n );\n\n Handlebars.registerHelper('ifdef', function (this: unknown, ...args): string {\n const options = args.pop();\n if (!args.every((value) => !value)) {\n return options.fn(this);\n }\n return options.inverse(this);\n });\n\n Handlebars.registerHelper(\n 'notEquals',\n function (\n this: unknown,\n a: string,\n b: string,\n options: Handlebars.HelperOptions,\n ) {\n return a !== b ? options.fn(this) : options.inverse(this);\n },\n );\n\n Handlebars.registerHelper(\n 'transformServiceName',\n function (this: unknown, name: string) {\n return transformClassName({\n config: getConfig(),\n name,\n });\n },\n );\n};\n\nexport interface Templates {\n client: Handlebars.TemplateDelegate;\n core: {\n apiError: Handlebars.TemplateDelegate;\n apiRequestOptions: Handlebars.TemplateDelegate;\n apiResult: Handlebars.TemplateDelegate;\n baseHttpRequest: Handlebars.TemplateDelegate;\n cancelablePromise: Handlebars.TemplateDelegate;\n httpRequest: Handlebars.TemplateDelegate;\n request: Handlebars.TemplateDelegate;\n settings: Handlebars.TemplateDelegate;\n };\n}\n\n/**\n * Read all the Handlebar templates that we need and return a wrapper object\n * so we can easily access the templates in our generator/write functions.\n */\nexport const registerHandlebarTemplates = (): Templates => {\n registerHandlebarHelpers();\n\n // Main templates (entry points for the files we write to disk)\n const templates: Templates = {\n client: Handlebars.template(templateClient),\n core: {\n apiError: Handlebars.template(templateCoreApiError),\n apiRequestOptions: Handlebars.template(templateCoreApiRequestOptions),\n apiResult: Handlebars.template(templateCoreApiResult),\n baseHttpRequest: Handlebars.template(templateCoreBaseHttpRequest),\n cancelablePromise: Handlebars.template(templateCancelablePromise),\n httpRequest: Handlebars.template(templateCoreHttpRequest),\n request: Handlebars.template(templateCoreRequest),\n settings: Handlebars.template(templateCoreSettings),\n },\n };\n\n // Generic functions used in 'request' file @see src/legacy/handlebars/templates/core/request.hbs for more info\n Handlebars.registerPartial(\n 'functions/base64',\n Handlebars.template(functionBase64),\n );\n Handlebars.registerPartial(\n 'functions/catchErrorCodes',\n Handlebars.template(functionCatchErrorCodes),\n );\n Handlebars.registerPartial(\n 'functions/getFormData',\n Handlebars.template(functionGetFormData),\n );\n Handlebars.registerPartial(\n 'functions/getQueryString',\n Handlebars.template(functionGetQueryString),\n );\n Handlebars.registerPartial(\n 'functions/getUrl',\n Handlebars.template(functionGetUrl),\n );\n Handlebars.registerPartial(\n 'functions/isBlob',\n Handlebars.template(functionIsBlob),\n );\n Handlebars.registerPartial(\n 'functions/isFormData',\n Handlebars.template(functionIsFormData),\n );\n Handlebars.registerPartial(\n 'functions/isString',\n Handlebars.template(functionIsString),\n );\n Handlebars.registerPartial(\n 'functions/isStringWithValue',\n Handlebars.template(functionIsStringWithValue),\n );\n Handlebars.registerPartial(\n 'functions/isSuccess',\n Handlebars.template(functionIsSuccess),\n );\n Handlebars.registerPartial(\n 'functions/resolve',\n Handlebars.template(functionResolve),\n );\n\n // Specific files for the fetch client implementation\n Handlebars.registerPartial(\n 'fetch/getHeaders',\n Handlebars.template(fetchGetHeaders),\n );\n Handlebars.registerPartial(\n 'fetch/getRequestBody',\n Handlebars.template(fetchGetRequestBody),\n );\n Handlebars.registerPartial(\n 'fetch/getResponseBody',\n Handlebars.template(fetchGetResponseBody),\n );\n Handlebars.registerPartial(\n 'fetch/getResponseHeader',\n Handlebars.template(fetchGetResponseHeader),\n );\n Handlebars.registerPartial(\n 'fetch/request',\n Handlebars.template(fetchRequest),\n );\n Handlebars.registerPartial(\n 'fetch/sendRequest',\n Handlebars.template(fetchSendRequest),\n );\n\n // Specific files for the xhr client implementation\n Handlebars.registerPartial(\n 'xhr/getHeaders',\n Handlebars.template(xhrGetHeaders),\n );\n Handlebars.registerPartial(\n 'xhr/getRequestBody',\n Handlebars.template(xhrGetRequestBody),\n );\n Handlebars.registerPartial(\n 'xhr/getResponseBody',\n Handlebars.template(xhrGetResponseBody),\n );\n Handlebars.registerPartial(\n 'xhr/getResponseHeader',\n Handlebars.template(xhrGetResponseHeader),\n );\n Handlebars.registerPartial('xhr/request', Handlebars.template(xhrRequest));\n Handlebars.registerPartial(\n 'xhr/sendRequest',\n Handlebars.template(xhrSendRequest),\n );\n\n // Specific files for the axios client implementation\n Handlebars.registerPartial(\n 'axios/getHeaders',\n Handlebars.template(axiosGetHeaders),\n );\n Handlebars.registerPartial(\n 'axios/getRequestBody',\n Handlebars.template(axiosGetRequestBody),\n );\n Handlebars.registerPartial(\n 'axios/getResponseBody',\n Handlebars.template(axiosGetResponseBody),\n );\n Handlebars.registerPartial(\n 'axios/getResponseHeader',\n Handlebars.template(axiosGetResponseHeader),\n );\n Handlebars.registerPartial(\n 'axios/request',\n Handlebars.template(axiosRequest),\n );\n Handlebars.registerPartial(\n 'axios/sendRequest',\n Handlebars.template(axiosSendRequest),\n );\n\n // Specific files for the angular client implementation\n Handlebars.registerPartial(\n 'angular/getHeaders',\n Handlebars.template(angularGetHeaders),\n );\n Handlebars.registerPartial(\n 'angular/getRequestBody',\n Handlebars.template(angularGetRequestBody),\n );\n Handlebars.registerPartial(\n 'angular/getResponseBody',\n Handlebars.template(angularGetResponseBody),\n );\n Handlebars.registerPartial(\n 'angular/getResponseHeader',\n Handlebars.template(angularGetResponseHeader),\n );\n Handlebars.registerPartial(\n 'angular/request',\n Handlebars.template(angularRequest),\n );\n Handlebars.registerPartial(\n 'angular/sendRequest',\n Handlebars.template(angularSendRequest),\n );\n\n return templates;\n};\n","import colors from 'ansi-colors';\n\ninterface LoggerEvent {\n end?: PerformanceMark;\n events: Array<LoggerEvent>;\n id: string; // unique internal key\n name: string;\n start: PerformanceMark;\n}\n\ninterface Severity {\n color: colors.StyleFunction;\n type: 'duration' | 'percentage';\n}\n\ninterface StoredEventResult {\n position: ReadonlyArray<number>;\n}\n\nlet loggerCounter = 0;\nconst nameToId = (name: string) => `${name}-${loggerCounter++}`;\nconst idEnd = (id: string) => `${id}-end`;\nconst idLength = (id: string) => `${id}-length`;\nconst idStart = (id: string) => `${id}-start`;\n\nconst getSeverity = (\n duration: number,\n percentage: number,\n): Severity | undefined => {\n if (duration > 200) {\n return {\n color: colors.red,\n type: 'duration',\n };\n }\n if (percentage > 30) {\n return {\n color: colors.red,\n type: 'percentage',\n };\n }\n if (duration > 50) {\n return {\n color: colors.yellow,\n type: 'duration',\n };\n }\n if (percentage > 10) {\n return {\n color: colors.yellow,\n type: 'percentage',\n };\n }\n return;\n};\n\nexport class Logger {\n private events: Array<LoggerEvent> = [];\n\n private end(result: StoredEventResult): void {\n let event: LoggerEvent | undefined;\n let events = this.events;\n for (const index of result.position) {\n event = events[index];\n if (event?.events) {\n events = event.events;\n }\n }\n if (event && !event.end) {\n event.end = performance.mark(idEnd(event.id));\n }\n }\n\n report(print: boolean = true): PerformanceMeasure | undefined {\n const firstEvent = this.events[0];\n if (!firstEvent) return;\n const lastEvent = this.events[this.events.length - 1]!;\n const name = 'root';\n const id = nameToId(name);\n const measure = performance.measure(\n idLength(id),\n idStart(firstEvent.id),\n idEnd(lastEvent.id),\n );\n if (print) {\n this.reportEvent({\n end: lastEvent.end,\n events: this.events,\n id,\n indent: 0,\n measure,\n name,\n start: firstEvent!.start,\n });\n }\n return measure;\n }\n\n private reportEvent({\n indent,\n ...parent\n }: LoggerEvent & {\n indent: number;\n measure: PerformanceMeasure;\n }): void {\n const color = !indent ? colors.cyan : colors.gray;\n const lastIndex = parent.events.length - 1;\n\n parent.events.forEach((event, index) => {\n const measure = performance.measure(\n idLength(event.id),\n idStart(event.id),\n idEnd(event.id),\n );\n const duration = Math.ceil(measure.duration * 100) / 100;\n const percentage =\n Math.ceil((measure.duration / parent.measure.duration) * 100 * 100) /\n 100;\n const severity = indent ? getSeverity(duration, percentage) : undefined;\n\n let durationLabel = `${duration.toFixed(2).padStart(8)}ms`;\n if (severity?.type === 'duration') {\n durationLabel = severity.color(durationLabel);\n }\n\n const branch = index === lastIndex ? '└─ ' : '├─ ';\n const prefix = !indent ? '' : '│ '.repeat(indent - 1) + branch;\n const maxLength = 38 - prefix.length;\n\n const percentageBranch = !indent ? '' : '↳ ';\n const percentagePrefix = indent\n ? ' '.repeat(indent - 1) + percentageBranch\n : '';\n let percentageLabel = `${percentagePrefix}${percentage.toFixed(2)}%`;\n if (severity?.type === 'percentage') {\n percentageLabel = severity.color(percentageLabel);\n }\n const jobPrefix = colors.gray('[root] ');\n console.log(\n `${jobPrefix}${colors.gray(prefix)}${color(\n `${event.name.padEnd(maxLength)} ${durationLabel} (${percentageLabel})`,\n )}`,\n );\n this.reportEvent({ ...event, indent: indent + 1, measure });\n });\n }\n\n private start(id: string): PerformanceMark {\n return performance.mark(idStart(id));\n }\n\n private storeEvent({\n result,\n ...event\n }: Pick<LoggerEvent, 'events' | 'id' | 'name' | 'start'> & {\n result: StoredEventResult;\n }): void {\n const lastEventIndex = event.events.length - 1;\n const lastEvent = event.events[lastEventIndex];\n if (lastEvent && !lastEvent.end) {\n result.position = [...result.position, lastEventIndex];\n this.storeEvent({ ...event, events: lastEvent.events, result });\n return;\n }\n const length = event.events.push({ ...event, events: [] });\n result.position = [...result.position, length - 1];\n }\n\n timeEvent(name: string) {\n const id = nameToId(name);\n const start = this.start(id);\n const event: LoggerEvent = {\n events: this.events,\n id,\n name,\n start,\n };\n const result: StoredEventResult = {\n position: [],\n };\n this.storeEvent({ ...event, result });\n return {\n mark: start,\n timeEnd: () => this.end(result),\n };\n }\n}\n","import { stringCase } from './stringCase';\n\n// publicly exposed utils\nexport const utils = {\n stringCase,\n};\n","import './overrides.d.ts';\n\nimport colors from 'ansi-colors';\n// @ts-expect-error\nimport colorSupport from 'color-support';\n\nimport { checkNodeVersion } from './config/engine';\nimport type { Configs } from './config/init';\nimport { initConfigs } from './config/init';\nimport { getLogs } from './config/logs';\nimport { createClient as pCreateClient } from './createClient';\nimport {\n ConfigValidationError,\n JobError,\n logCrashReport,\n openGitHubIssueWithCrashReport,\n printCrashReport,\n shouldReportCrash,\n} from './error';\nimport type { IR } from './ir/types';\nimport type { Client } from './types/client';\nimport type { UserConfig } from './types/config';\nimport type { LazyOrAsync, MaybeArray } from './types/utils';\nimport { printCliIntro } from './utils/cli';\nimport { registerHandlebarTemplates } from './utils/handlebars';\nimport { Logger } from './utils/logger';\n\ncolors.enabled = colorSupport().hasBasic;\n\n/**\n * Generate a client from the provided configuration.\n *\n * @param userConfig User provided {@link UserConfig} configuration(s).\n */\nexport const createClient = async (\n userConfig?: LazyOrAsync<MaybeArray<UserConfig>>,\n logger = new Logger(),\n): Promise<ReadonlyArray<Client | IR.Context>> => {\n const resolvedConfig =\n typeof userConfig === 'function' ? await userConfig() : userConfig;\n const userConfigs = resolvedConfig\n ? resolvedConfig instanceof Array\n ? resolvedConfig\n : [resolvedConfig]\n : [];\n\n let rawLogs = userConfigs.find(\n (config) => getLogs(config).level !== 'silent',\n )?.logs;\n if (typeof rawLogs === 'string') {\n rawLogs = getLogs({ logs: rawLogs });\n }\n\n let configs: Configs | undefined;\n\n try {\n checkNodeVersion();\n\n const eventCreateClient = logger.timeEvent('createClient');\n\n const eventConfig = logger.timeEvent('config');\n configs = await initConfigs({ logger, userConfigs });\n const printIntro = configs.results.some(\n (result) => result.config.logs.level !== 'silent',\n );\n if (printIntro) {\n printCliIntro();\n }\n eventConfig.timeEnd();\n\n const allConfigErrors = configs.results.flatMap((result) =>\n result.errors.map((error) => ({ error, jobIndex: result.jobIndex })),\n );\n if (allConfigErrors.length) {\n throw new ConfigValidationError(allConfigErrors);\n }\n\n const eventHandlebars = logger.timeEvent('handlebars');\n const templates = registerHandlebarTemplates();\n eventHandlebars.timeEnd();\n\n const clients = await Promise.all(\n configs.results.map(async (result) => {\n try {\n return await pCreateClient({\n config: result.config,\n dependencies: configs!.dependencies,\n jobIndex: result.jobIndex,\n logger,\n templates,\n });\n } catch (error) {\n throw new JobError('', {\n error,\n jobIndex: result.jobIndex,\n });\n }\n }),\n );\n const result = clients.filter((client) => Boolean(client)) as ReadonlyArray<\n Client | IR.Context\n >;\n\n eventCreateClient.timeEnd();\n\n const printLogs = configs.results.some(\n (result) => result.config.logs.level === 'debug',\n );\n logger.report(printLogs);\n\n return result;\n } catch (error) {\n const results = configs?.results ?? [];\n\n const logs =\n results.find((result) => result.config.logs.level !== 'silent')?.config\n .logs ?? rawLogs;\n if (!logs || logs.level !== 'silent') {\n const dryRun =\n results.some((result) => result.config.dryRun) ??\n userConfigs.some((config) => config.dryRun) ??\n false;\n const logPath =\n logs?.file && !dryRun\n ? logCrashReport(error, logs.path ?? '')\n : undefined;\n\n printCrashReport({ error, logPath });\n const isInteractive =\n results.some((result) => result.config.interactive) ??\n userConfigs.some((config) => config.interactive) ??\n false;\n if (await shouldReportCrash({ error, isInteractive })) {\n await openGitHubIssueWithCrashReport(error);\n }\n }\n\n throw error;\n }\n};\n\n/**\n * Type helper for openapi-ts.config.ts, returns {@link MaybeArray<UserConfig>} object(s)\n */\nexport const defineConfig = async <T extends MaybeArray<UserConfig>>(\n config: LazyOrAsync<T>,\n): Promise<T> => (typeof config === 'function' ? await config() : config);\n\nexport { defaultPaginationKeywords } from './config/parser';\nexport { defaultPlugins } from './config/plugins';\nexport type { IR } from './ir/types';\nexport type {\n OpenApi,\n OpenApiMetaObject,\n OpenApiOperationObject,\n OpenApiParameterObject,\n OpenApiRequestBodyObject,\n OpenApiResponseObject,\n OpenApiSchemaObject,\n} from './openApi/types';\nexport type { AngularClient } from './plugins/@hey-api/client-angular';\nexport type { AxiosClient } from './plugins/@hey-api/client-axios';\nexport {\n clientDefaultConfig,\n clientDefaultMeta,\n} from './plugins/@hey-api/client-core/config';\nexport { clientPluginHandler } from './plugins/@hey-api/client-core/plugin';\nexport type { Client } from './plugins/@hey-api/client-core/types';\nexport type { FetchClient } from './plugins/@hey-api/client-fetch';\nexport type { NextClient } from './plugins/@hey-api/client-next';\nexport type { NuxtClient } from './plugins/@hey-api/client-nuxt';\nexport type { OfetchClient } from './plugins/@hey-api/client-ofetch';\nexport type { ExpressionTransformer } from './plugins/@hey-api/transformers/expressions';\nexport type { TypeTransformer } from './plugins/@hey-api/transformers/types';\nexport { definePluginConfig } from './plugins/shared/utils/config';\nexport type { DefinePlugin, Plugin } from './plugins/types';\nexport { compiler, tsc } from './tsc';\nexport type { UserConfig } from './types/config';\nexport type { LegacyIR } from './types/types';\nexport { utils } from './utils/exports';\nexport { Logger } from './utils/logger';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["files: Files","meta: ProjectRenderMeta","path","isexe","sync","fs","path","checkStat","isexe","sync","fs","path","isexe","sync","path","path","which","path","resolveCommand","path","fs","readShebang","path","isWin","parse","cp","formatters: Record<Formatters, OutputProcessor>","path","linters: Record<Linters, OutputProcessor>","module","operation: Operation","result: Pick<\n Partial<Input>,\n | 'api_key'\n | 'branch'\n | 'commit_sha'\n | 'organization'\n | 'project'\n | 'registry'\n | 'tags'\n | 'version'\n > &\n Pick<Input, 'path'>","path","queryParams: Array<string>","lines: Array<string>","createClient","watches: ReadonlyArray<WatchValues>","client: Client | undefined","context: IR.Context | undefined","data","lines: Array<string>","templates: Templates","templateClient","templateCoreApiError","templateCoreApiRequestOptions","templateCoreApiResult","templateCoreBaseHttpRequest","templateCancelablePromise","templateCoreHttpRequest","templateCoreRequest","templateCoreSettings","functionBase64","functionCatchErrorCodes","functionGetFormData","functionGetQueryString","functionGetUrl","functionIsBlob","functionIsFormData","functionIsString","functionIsStringWithValue","functionIsSuccess","functionResolve","fetchGetHeaders","fetchGetRequestBody","fetchGetResponseBody","fetchGetResponseHeader","fetchRequest","fetchSendRequest","xhrGetHeaders","xhrGetRequestBody","xhrGetResponseBody","xhrGetResponseHeader","xhrRequest","xhrSendRequest","axiosGetHeaders","axiosGetRequestBody","axiosGetResponseBody","axiosGetResponseHeader","axiosRequest","axiosSendRequest","angularGetHeaders","angularGetRequestBody","angularGetResponseBody","angularGetResponseHeader","angularRequest","angularSendRequest","event: LoggerEvent | undefined","event: LoggerEvent","result: StoredEventResult","configs: Configs | undefined","result","pCreateClient"],"sources":["../src/config/engine.ts","../src/utils/getHttpRequestName.ts","../src/generate/class.ts","../src/generate/core.ts","../src/generate/legacy/indexFile.ts","../src/generate/legacy/output.ts","../src/generate/output.ts","../src/openApi/shared/utils/patch.ts","../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js","../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js","../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js","../../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js","../../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js","../../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","../../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js","../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js","../src/processOutput.ts","../src/utils/postprocess.ts","../src/createClient.ts","../src/utils/cli.ts","../src/legacy/handlebars/compiled/client.js","../src/legacy/handlebars/compiled/core/angular/getHeaders.js","../src/legacy/handlebars/compiled/core/angular/getRequestBody.js","../src/legacy/handlebars/compiled/core/angular/getResponseBody.js","../src/legacy/handlebars/compiled/core/angular/getResponseHeader.js","../src/legacy/handlebars/compiled/core/angular/request.js","../src/legacy/handlebars/compiled/core/angular/sendRequest.js","../src/legacy/handlebars/compiled/core/ApiError.js","../src/legacy/handlebars/compiled/core/ApiRequestOptions.js","../src/legacy/handlebars/compiled/core/ApiResult.js","../src/legacy/handlebars/compiled/core/axios/getHeaders.js","../src/legacy/handlebars/compiled/core/axios/getRequestBody.js","../src/legacy/handlebars/compiled/core/axios/getResponseBody.js","../src/legacy/handlebars/compiled/core/axios/getResponseHeader.js","../src/legacy/handlebars/compiled/core/axios/request.js","../src/legacy/handlebars/compiled/core/axios/sendRequest.js","../src/legacy/handlebars/compiled/core/BaseHttpRequest.js","../src/legacy/handlebars/compiled/core/CancelablePromise.js","../src/legacy/handlebars/compiled/core/fetch/getHeaders.js","../src/legacy/handlebars/compiled/core/fetch/getRequestBody.js","../src/legacy/handlebars/compiled/core/fetch/getResponseBody.js","../src/legacy/handlebars/compiled/core/fetch/getResponseHeader.js","../src/legacy/handlebars/compiled/core/fetch/request.js","../src/legacy/handlebars/compiled/core/fetch/sendRequest.js","../src/legacy/handlebars/compiled/core/functions/base64.js","../src/legacy/handlebars/compiled/core/functions/catchErrorCodes.js","../src/legacy/handlebars/compiled/core/functions/getFormData.js","../src/legacy/handlebars/compiled/core/functions/getQueryString.js","../src/legacy/handlebars/compiled/core/functions/getUrl.js","../src/legacy/handlebars/compiled/core/functions/isBlob.js","../src/legacy/handlebars/compiled/core/functions/isFormData.js","../src/legacy/handlebars/compiled/core/functions/isString.js","../src/legacy/handlebars/compiled/core/functions/isStringWithValue.js","../src/legacy/handlebars/compiled/core/functions/isSuccess.js","../src/legacy/handlebars/compiled/core/functions/resolve.js","../src/legacy/handlebars/compiled/core/HttpRequest.js","../src/legacy/handlebars/compiled/core/OpenAPI.js","../src/legacy/handlebars/compiled/core/request.js","../src/legacy/handlebars/compiled/core/xhr/getHeaders.js","../src/legacy/handlebars/compiled/core/xhr/getRequestBody.js","../src/legacy/handlebars/compiled/core/xhr/getResponseBody.js","../src/legacy/handlebars/compiled/core/xhr/getResponseHeader.js","../src/legacy/handlebars/compiled/core/xhr/request.js","../src/legacy/handlebars/compiled/core/xhr/sendRequest.js","../src/utils/handlebars.ts","../src/utils/logger.ts","../src/utils/exports.ts","../src/index.ts"],"sourcesContent":["import { ConfigError } from '../error';\n\nexport const checkNodeVersion = () => {\n if (typeof Bun !== 'undefined') {\n const [major] = Bun.version.split('.').map(Number);\n if (major! < 1) {\n throw new ConfigError(\n `Unsupported Bun version ${Bun.version}. Please use Bun 1.0.0 or newer.`,\n );\n }\n } else if (typeof process !== 'undefined' && process.versions?.node) {\n const [major] = process.versions.node.split('.').map(Number);\n if (major! < 20) {\n throw new ConfigError(\n `Unsupported Node version ${process.versions.node}. Please use Node 20 or newer.`,\n );\n }\n }\n};\n","import type { PluginClientNames } from '../plugins/types';\n\n/**\n * Generate the HttpRequest filename based on the selected client\n * @param client HTTP client to generate\n */\nexport const getHttpRequestName = (clientName: PluginClientNames): string => {\n switch (clientName) {\n case 'legacy/angular':\n return 'AngularHttpRequest';\n case 'legacy/axios':\n return 'AxiosHttpRequest';\n case 'legacy/fetch':\n return 'FetchHttpRequest';\n case 'legacy/node':\n return 'NodeHttpRequest';\n case 'legacy/xhr':\n return 'XHRHttpRequest';\n default:\n return '';\n }\n};\n","import fs from 'node:fs';\nimport path from 'node:path';\n\nimport type { OpenApi } from '../openApi';\nimport { getClientPlugin } from '../plugins/@hey-api/client-core/utils';\nimport type { Client } from '../types/client';\nimport { getConfig, legacyNameFromConfig } from '../utils/config';\nimport { getHttpRequestName } from '../utils/getHttpRequestName';\nimport type { Templates } from '../utils/handlebars';\nimport { sortByName } from '../utils/sort';\nimport { ensureDirSync } from './utils';\n\n/**\n * Generate the OpenAPI client index file using the Handlebar template and write it to disk.\n * The index file just contains all the exports you need to use the client as a standalone\n * library. But you can also import individual models and services directly.\n * @param openApi {@link OpenApi} Dereferenced OpenAPI specification\n * @param outputPath Directory to write the generated files to\n * @param client Client containing models, schemas, and services\n * @param templates The loaded handlebar templates\n */\nexport const generateLegacyClientClass = async (\n _openApi: OpenApi,\n outputPath: string,\n client: Client,\n templates: Templates,\n) => {\n const config = getConfig();\n\n const clientPlugin = getClientPlugin(config);\n const templateResult = templates.client({\n $config: config,\n ...client,\n httpRequest: getHttpRequestName(clientPlugin.name),\n models: sortByName(client.models),\n services: sortByName(client.services),\n });\n\n if (legacyNameFromConfig(config)) {\n ensureDirSync(outputPath);\n fs.writeFileSync(\n path.resolve(outputPath, `${legacyNameFromConfig(config)}.ts`),\n templateResult,\n );\n }\n};\n","import fs from 'node:fs';\nimport path from 'node:path';\n\nimport { getClientPlugin } from '../plugins/@hey-api/client-core/utils';\nimport type { Client } from '../types/client';\nimport { getConfig, legacyNameFromConfig } from '../utils/config';\nimport { getHttpRequestName } from '../utils/getHttpRequestName';\nimport type { Templates } from '../utils/handlebars';\n\n/**\n * Generate OpenAPI core files, this includes the basic boilerplate code to handle requests.\n * @param outputPath Directory to write the generated files to\n * @param client Client containing models, schemas, and services\n * @param templates The loaded handlebar templates\n */\nexport const generateLegacyCore = async (\n outputPath: string,\n client: Client,\n templates: Templates,\n): Promise<void> => {\n const config = getConfig();\n\n if (config.exportCore) {\n const clientPlugin = getClientPlugin(config);\n const context = {\n httpRequest: getHttpRequestName(clientPlugin.name),\n server: config.base !== undefined ? config.base : client.server,\n version: client.version,\n };\n\n fs.rmSync(path.resolve(outputPath), {\n force: true,\n recursive: true,\n });\n fs.mkdirSync(path.resolve(outputPath), {\n recursive: true,\n });\n\n await fs.writeFileSync(\n path.resolve(outputPath, 'OpenAPI.ts'),\n templates.core.settings({\n $config: config,\n ...context,\n }),\n );\n await fs.writeFileSync(\n path.resolve(outputPath, 'ApiError.ts'),\n templates.core.apiError({\n $config: config,\n ...context,\n }),\n );\n await fs.writeFileSync(\n path.resolve(outputPath, 'ApiRequestOptions.ts'),\n templates.core.apiRequestOptions({\n $config: config,\n ...context,\n }),\n );\n await fs.writeFileSync(\n path.resolve(outputPath, 'ApiResult.ts'),\n templates.core.apiResult({\n $config: config,\n ...context,\n }),\n );\n if (clientPlugin.name !== 'legacy/angular') {\n await fs.writeFileSync(\n path.resolve(outputPath, 'CancelablePromise.ts'),\n templates.core.cancelablePromise({\n $config: config,\n ...context,\n }),\n );\n }\n await fs.writeFileSync(\n path.resolve(outputPath, 'request.ts'),\n templates.core.request({\n $config: config,\n ...context,\n }),\n );\n\n if (legacyNameFromConfig(config)) {\n await fs.writeFileSync(\n path.resolve(outputPath, 'BaseHttpRequest.ts'),\n templates.core.baseHttpRequest({\n $config: config,\n ...context,\n }),\n );\n await fs.writeFileSync(\n path.resolve(outputPath, `${context.httpRequest}.ts`),\n templates.core.httpRequest({\n $config: config,\n ...context,\n }),\n );\n }\n\n if (config.request) {\n const requestFile = path.resolve(process.cwd(), config.request);\n const requestFileExists = await fs.existsSync(requestFile);\n if (!requestFileExists) {\n throw new Error(`Custom request file \"${requestFile}\" does not exists`);\n }\n await fs.copyFileSync(\n requestFile,\n path.resolve(outputPath, 'request.ts'),\n );\n }\n }\n};\n","import { getClientPlugin } from '../../plugins/@hey-api/client-core/utils';\nimport { tsc } from '../../tsc';\nimport type { Files } from '../../types/utils';\nimport { getConfig, legacyNameFromConfig } from '../../utils/config';\nimport { GeneratedFile } from '../file';\n\nexport const generateIndexFile = ({ files }: { files: Files }): void => {\n const config = getConfig();\n\n files.index = new GeneratedFile({\n dir: config.output.path,\n id: 'index',\n name: 'index.ts',\n });\n\n if (legacyNameFromConfig(config)) {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: legacyNameFromConfig(config)!,\n module: `./${legacyNameFromConfig(config)}`,\n }),\n );\n }\n\n if (config.exportCore) {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: 'ApiError',\n module: './core/ApiError',\n }),\n );\n if (config.plugins['@hey-api/sdk']?.config.response === 'response') {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: { asType: true, name: 'ApiResult' },\n module: './core/ApiResult',\n }),\n );\n }\n if (legacyNameFromConfig(config)) {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: 'BaseHttpRequest',\n module: './core/BaseHttpRequest',\n }),\n );\n }\n const clientPlugin = getClientPlugin(config);\n if (clientPlugin.name !== 'legacy/angular') {\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: ['CancelablePromise', 'CancelError'],\n module: './core/CancelablePromise',\n }),\n );\n }\n files.index.add(\n tsc.exportNamedDeclaration({\n exports: ['OpenAPI', { asType: true, name: 'OpenAPIConfig' }],\n module: './core/OpenAPI',\n }),\n );\n }\n\n Object.keys(files)\n .sort()\n .forEach((name) => {\n const file = files[name]!;\n\n if (name === 'index' || file.isEmpty()) {\n return;\n }\n\n if (file.exportFromIndex) {\n files.index!.add(\n tsc.exportAllDeclaration({\n module: `./${file.nameWithoutExtension()}`,\n }),\n );\n }\n });\n};\n","import path from 'node:path';\n\nimport type { ProjectRenderMeta } from '@hey-api/codegen-core';\n\nimport type { OpenApi } from '../../openApi';\nimport { getClientPlugin } from '../../plugins/@hey-api/client-core/utils';\nimport type { Client } from '../../types/client';\nimport type { Files } from '../../types/utils';\nimport { getConfig, isLegacyClient } from '../../utils/config';\nimport type { Templates } from '../../utils/handlebars';\nimport { generateLegacyClientClass } from '../class';\nimport { generateClientBundle } from '../client';\nimport { generateLegacyCore } from '../core';\nimport { GeneratedFile } from '../file';\nimport { removeDirSync } from '../utils';\nimport { generateIndexFile } from './indexFile';\n\n/**\n * Write our OpenAPI client, using the given templates at the given output\n * @param openApi {@link OpenApi} Dereferenced OpenAPI specification\n * @param client Client containing models, schemas, and services\n * @param templates Templates wrapper with all loaded Handlebars templates\n */\nexport const generateLegacyOutput = async ({\n client,\n openApi,\n templates,\n}: {\n client: Client;\n openApi: unknown;\n templates: Templates;\n}): Promise<void> => {\n const config = getConfig();\n\n const spec = openApi as OpenApi;\n\n // TODO: parser - move to config.input\n if (client) {\n if (\n config.plugins['@hey-api/sdk']?.config.include &&\n config.plugins['@hey-api/sdk'].config.asClass\n ) {\n const regexp = new RegExp(config.plugins['@hey-api/sdk'].config.include);\n client.services = client.services.filter((service) =>\n regexp.test(service.name),\n );\n }\n\n if (config.plugins['@hey-api/typescript']?.config.include) {\n const regexp = new RegExp(\n config.plugins['@hey-api/typescript'].config.include,\n );\n client.models = client.models.filter((model) => regexp.test(model.name));\n }\n }\n\n const outputPath = path.resolve(config.output.path);\n\n if (config.output.clean) {\n removeDirSync(outputPath);\n }\n\n const clientPlugin = getClientPlugin(config);\n if (\n !isLegacyClient(config) &&\n 'bundle' in clientPlugin.config &&\n clientPlugin.config.bundle\n ) {\n const meta: ProjectRenderMeta = {\n importFileExtension: config.output.importFileExtension,\n };\n\n generateClientBundle({\n meta,\n outputPath,\n // @ts-expect-error\n plugin: clientPlugin,\n });\n }\n\n // deprecated files\n await generateLegacyClientClass(spec, outputPath, client, templates);\n await generateLegacyCore(\n path.resolve(config.output.path, 'core'),\n client,\n templates,\n );\n\n const files: Files = {};\n\n for (const name of config.pluginOrder) {\n const plugin = config.plugins[name]!;\n const outputParts = ((plugin.output as string) ?? '').split('/');\n const outputDir = path.resolve(\n config.output.path,\n ...outputParts.slice(0, outputParts.length - 1),\n );\n files[plugin.name] = new GeneratedFile({\n dir: outputDir,\n id: `legacy-unused-${plugin.name}`,\n name: `${outputParts[outputParts.length - 1]}.ts`,\n });\n plugin.handlerLegacy?.({\n client,\n files,\n openApi: spec,\n plugin: plugin as never,\n });\n }\n\n // TODO: exports do not support .js extensions\n generateIndexFile({ files });\n\n Object.entries(files).forEach(([name, file]) => {\n if (config.dryRun) {\n return;\n }\n\n if (name === 'index') {\n file.write('\\n', config.output.tsConfig);\n } else {\n file.write('\\n\\n', config.output.tsConfig);\n }\n });\n};\n","import fs from 'node:fs';\nimport path from 'node:path';\n\nimport type { ProjectRenderMeta } from '@hey-api/codegen-core';\n\nimport type { IR } from '../ir/types';\nimport { getClientPlugin } from '../plugins/@hey-api/client-core/utils';\nimport { generateClientBundle } from './client';\nimport { removeDirSync } from './utils';\n\nexport const generateOutput = async ({ context }: { context: IR.Context }) => {\n const outputPath = path.resolve(context.config.output.path);\n\n if (context.config.output.clean) {\n removeDirSync(outputPath);\n }\n\n const meta: ProjectRenderMeta = {\n importFileExtension: context.config.output.importFileExtension,\n };\n\n const client = getClientPlugin(context.config);\n if ('bundle' in client.config && client.config.bundle) {\n // not proud of this one\n // @ts-expect-error\n context.config._FRAGILE_CLIENT_BUNDLE_RENAMED = generateClientBundle({\n meta,\n outputPath,\n // @ts-expect-error\n plugin: client,\n project: context.gen,\n });\n }\n\n for (const plugin of context.registerPlugins()) {\n await plugin.run();\n }\n\n for (const file of context.gen.render(meta)) {\n const filePath = path.resolve(outputPath, file.path);\n const dir = path.dirname(filePath);\n if (!context.config.dryRun) {\n fs.mkdirSync(dir, { recursive: true });\n fs.writeFileSync(filePath, file.content, { encoding: 'utf8' });\n }\n }\n};\n","import type { Patch } from '../../../types/parser';\nimport type { OpenApi } from '../../types';\n\nexport const patchOpenApiSpec = ({\n patchOptions,\n spec: _spec,\n}: {\n patchOptions: Patch | undefined;\n spec: unknown;\n}) => {\n if (!patchOptions) {\n return;\n }\n\n const spec = _spec as OpenApi.V2_0_X | OpenApi.V3_0_X | OpenApi.V3_1_X;\n\n if ('swagger' in spec) {\n if (patchOptions.version && spec.swagger) {\n spec.swagger = (\n typeof patchOptions.version === 'string'\n ? patchOptions.version\n : patchOptions.version(spec.swagger)\n ) as typeof spec.swagger;\n }\n\n if (patchOptions.meta && spec.info) {\n patchOptions.meta(spec.info);\n }\n\n if (patchOptions.schemas && spec.definitions) {\n for (const key in patchOptions.schemas) {\n const schema = spec.definitions[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.schemas[key]!;\n patchFn(schema);\n }\n }\n\n if (patchOptions.operations && spec.paths) {\n for (const key in patchOptions.operations) {\n const [method, path] = key.split(' ');\n if (!method || !path) continue;\n\n const pathItem = spec.paths[path as keyof typeof spec.paths];\n if (!pathItem) continue;\n\n const operation =\n pathItem[method.toLocaleLowerCase() as keyof typeof pathItem] ||\n pathItem[method.toLocaleUpperCase() as keyof typeof pathItem];\n if (!operation || typeof operation !== 'object') continue;\n\n const patchFn = patchOptions.operations[key]!;\n patchFn(operation as any);\n }\n }\n return;\n }\n\n if (patchOptions.version && spec.openapi) {\n spec.openapi = (\n typeof patchOptions.version === 'string'\n ? patchOptions.version\n : patchOptions.version(spec.openapi)\n ) as typeof spec.openapi;\n }\n\n if (patchOptions.meta && spec.info) {\n patchOptions.meta(spec.info);\n }\n\n if (spec.components) {\n if (patchOptions.schemas && spec.components.schemas) {\n for (const key in patchOptions.schemas) {\n const schema = spec.components.schemas[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.schemas[key]!;\n patchFn(schema);\n }\n }\n\n if (patchOptions.parameters && spec.components.parameters) {\n for (const key in patchOptions.parameters) {\n const schema = spec.components.parameters[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.parameters[key]!;\n patchFn(schema);\n }\n }\n\n if (patchOptions.requestBodies && spec.components.requestBodies) {\n for (const key in patchOptions.requestBodies) {\n const schema = spec.components.requestBodies[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.requestBodies[key]!;\n patchFn(schema);\n }\n }\n\n if (patchOptions.responses && spec.components.responses) {\n for (const key in patchOptions.responses) {\n const schema = spec.components.responses[key];\n if (!schema || typeof schema !== 'object') continue;\n\n const patchFn = patchOptions.responses[key]!;\n patchFn(schema);\n }\n }\n }\n\n if (patchOptions.operations && spec.paths) {\n for (const key in patchOptions.operations) {\n const [method, path] = key.split(' ');\n if (!method || !path) continue;\n\n const pathItem = spec.paths[path as keyof typeof spec.paths];\n if (!pathItem) continue;\n\n const operation =\n pathItem[method.toLocaleLowerCase() as keyof typeof pathItem] ||\n pathItem[method.toLocaleUpperCase() as keyof typeof pathItem];\n if (!operation || typeof operation !== 'object') continue;\n\n const patchFn = patchOptions.operations[key]!;\n patchFn(operation as any);\n }\n }\n};\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n // It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input\n // Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(?=(\\\\+?)?)\\1\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(?=(\\\\+?)?)\\1$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed);\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","import { sync } from 'cross-spawn';\n\nimport type { Config } from './types/config';\nimport type { Formatters, Linters } from './types/output';\n\ntype OutputProcessor = {\n args: (path: string) => ReadonlyArray<string>;\n command: string;\n name: string;\n};\n\n/**\n * Map of supported formatters\n */\nconst formatters: Record<Formatters, OutputProcessor> = {\n biome: {\n args: (path) => ['format', '--write', path],\n command: 'biome',\n name: 'Biome (Format)',\n },\n prettier: {\n args: (path) => [\n '--ignore-unknown',\n path,\n '--write',\n '--ignore-path',\n './.prettierignore',\n ],\n command: 'prettier',\n name: 'Prettier',\n },\n};\n\n/**\n * Map of supported linters\n */\nconst linters: Record<Linters, OutputProcessor> = {\n biome: {\n args: (path) => ['lint', '--apply', path],\n command: 'biome',\n name: 'Biome (Lint)',\n },\n eslint: {\n args: (path) => [path, '--fix'],\n command: 'eslint',\n name: 'ESLint',\n },\n oxlint: {\n args: (path) => ['--fix', path],\n command: 'oxlint',\n name: 'oxlint',\n },\n};\n\nexport const processOutput = ({ config }: { config: Config }) => {\n if (config.output.format) {\n const module = formatters[config.output.format];\n console.log(`✨ Running ${module.name}`);\n sync(module.command, module.args(config.output.path));\n }\n\n if (config.output.lint) {\n const module = linters[config.output.lint];\n console.log(`✨ Running ${module.name}`);\n sync(module.command, module.args(config.output.path));\n }\n};\n","import type { Client as ParserClient, Model } from '../openApi';\nimport { sanitizeNamespaceIdentifier } from '../openApi';\nimport type { Client, Operation, Service } from '../types/client';\nimport type { Config } from '../types/config';\nimport { getConfig, legacyNameFromConfig } from './config';\nimport { sort } from './sort';\nimport { stringCase } from './stringCase';\nimport { unique } from './unique';\n\n/**\n * Post process client\n * @param client Client object with all the models, services, etc.\n */\nexport function postProcessClient(\n client: Omit<ParserClient, 'config'>,\n config: Config,\n): Client {\n return {\n ...client,\n config,\n models: client.models.map((model) => postProcessModel(model)),\n services: postProcessOperations(client.operations).map(postProcessService),\n types: {},\n };\n}\n\nconst postProcessModel = (model: Model): Model => ({\n ...model,\n $refs: model.$refs.filter((value, index, arr) => unique(value, index, arr)),\n enum: model.enum.filter(\n (value, index, arr) =>\n arr.findIndex((item) => item.value === value.value) === index,\n ),\n enums: model.enums.filter(\n (value, index, arr) =>\n arr.findIndex((item) => item.name === value.name) === index,\n ),\n imports: model.imports\n .filter(\n (value, index, arr) => unique(value, index, arr) && value !== model.name,\n )\n .sort(sort),\n});\n\nconst postProcessOperations = (\n operations: ParserClient['operations'],\n): Client['services'] => {\n const config = getConfig();\n\n const services = new Map<string, Service>();\n\n operations.forEach((parserOperation) => {\n const tags =\n parserOperation.tags?.length &&\n (config.plugins['@hey-api/sdk']?.config.asClass ||\n legacyNameFromConfig(config))\n ? parserOperation.tags.filter(unique)\n : ['Default'];\n tags.forEach((tag) => {\n const operation: Operation = {\n ...parserOperation,\n service: getServiceName(tag),\n };\n const service =\n services.get(operation.service) || getNewService(operation);\n service.$refs = [...service.$refs, ...operation.$refs];\n service.imports = [...service.imports, ...operation.imports];\n service.operations = [...service.operations, operation];\n services.set(operation.service, service);\n });\n });\n\n return Array.from(services.values());\n};\n\nconst postProcessService = (service: Service): Service => {\n const clone = { ...service };\n clone.operations = postProcessServiceOperations(clone);\n clone.operations.forEach((operation) => {\n clone.imports.push(...operation.imports);\n });\n clone.imports = clone.imports.filter(unique).sort(sort);\n return clone;\n};\n\nconst postProcessServiceOperations = (service: Service): Operation[] => {\n const names = new Map<string, number>();\n\n return service.operations.map((operation) => {\n const clone = { ...operation };\n\n // Parse the service parameters and successes, very similar to how we parse\n // properties of models. These methods will extend the type if needed.\n clone.imports.push(\n ...clone.parameters.flatMap((parameter) => parameter.imports),\n );\n const successResponses = clone.responses.filter((response) =>\n response.responseTypes.includes('success'),\n );\n clone.imports.push(...successResponses.flatMap((result) => result.imports));\n\n // Check if the operation name is unique, if not then prefix this with a number\n const name = clone.name;\n const index = names.get(name) || 0;\n if (index > 0) {\n clone.name = `${name}${index}`;\n }\n names.set(name, index + 1);\n\n return clone;\n });\n};\n\nexport const getNewService = (operation: Operation): Service => ({\n $refs: [],\n imports: [],\n name: operation.service,\n operations: [],\n});\n\n/**\n * Convert the input value to a correct service name. This converts\n * the input string to PascalCase.\n */\nexport const getServiceName = (value: string): string =>\n stringCase({\n case: 'PascalCase',\n value: sanitizeNamespaceIdentifier(value),\n });\n","import path from 'node:path';\n\nimport { $RefParser } from '@hey-api/json-schema-ref-parser';\nimport colors from 'ansi-colors';\n\nimport { generateLegacyOutput } from './generate/legacy/output';\nimport { generateOutput } from './generate/output';\nimport { getSpec } from './getSpec';\nimport type { IR } from './ir/types';\nimport { parseLegacy, parseOpenApiSpec } from './openApi';\nimport { patchOpenApiSpec } from './openApi/shared/utils/patch';\nimport { processOutput } from './processOutput';\nimport type { Client } from './types/client';\nimport type { Config } from './types/config';\nimport type { Input } from './types/input';\nimport type { WatchValues } from './types/types';\nimport { isLegacyClient, legacyNameFromConfig } from './utils/config';\nimport type { Templates } from './utils/handlebars';\nimport type { Logger } from './utils/logger';\nimport { postProcessClient } from './utils/postprocess';\n\nexport const compileInputPath = (input: Omit<Input, 'watch'>) => {\n const result: Pick<\n Partial<Input>,\n | 'api_key'\n | 'branch'\n | 'commit_sha'\n | 'organization'\n | 'project'\n | 'registry'\n | 'tags'\n | 'version'\n > &\n Pick<Input, 'path'> = {\n ...input,\n path: '',\n };\n\n if (\n input.path &&\n (typeof input.path !== 'string' || input.registry !== 'hey-api')\n ) {\n result.path = input.path;\n return result;\n }\n\n const [basePath, baseQuery] = input.path.split('?');\n const queryParts = (baseQuery || '').split('&');\n const queryPath = queryParts.map((part) => part.split('='));\n\n let path = basePath || '';\n if (path.endsWith('/')) {\n path = path.slice(0, path.length - 1);\n }\n\n const [, pathUrl] = path.split('://');\n const [baseUrl, organization, project] = (pathUrl || '').split('/');\n result.organization = organization || input.organization;\n result.project = project || input.project;\n\n const queryParams: Array<string> = [];\n\n const kApiKey = 'api_key';\n result.api_key =\n queryPath.find(([key]) => key === kApiKey)?.[1] ||\n input.api_key ||\n process.env.HEY_API_TOKEN;\n if (result.api_key) {\n queryParams.push(`${kApiKey}=${result.api_key}`);\n }\n\n const kBranch = 'branch';\n result.branch =\n queryPath.find(([key]) => key === kBranch)?.[1] || input.branch;\n if (result.branch) {\n queryParams.push(`${kBranch}=${result.branch}`);\n }\n\n const kCommitSha = 'commit_sha';\n result.commit_sha =\n queryPath.find(([key]) => key === kCommitSha)?.[1] || input.commit_sha;\n if (result.commit_sha) {\n queryParams.push(`${kCommitSha}=${result.commit_sha}`);\n }\n\n const kTags = 'tags';\n result.tags =\n queryPath.find(([key]) => key === kTags)?.[1]?.split(',') || input.tags;\n if (result.tags?.length) {\n queryParams.push(`${kTags}=${result.tags.join(',')}`);\n }\n\n const kVersion = 'version';\n result.version =\n queryPath.find(([key]) => key === kVersion)?.[1] || input.version;\n if (result.version) {\n queryParams.push(`${kVersion}=${result.version}`);\n }\n\n if (!result.organization) {\n throw new Error(\n 'missing organization - from which Hey API Platform organization do you want to generate your output?',\n );\n }\n\n if (!result.project) {\n throw new Error(\n 'missing project - from which Hey API Platform project do you want to generate your output?',\n );\n }\n\n const query = queryParams.join('&');\n const platformUrl = baseUrl || 'get.heyapi.dev';\n const isLocalhost = platformUrl.startsWith('localhost');\n const platformUrlWithProtocol = [\n isLocalhost ? 'http' : 'https',\n platformUrl,\n ].join('://');\n const compiledPath = isLocalhost\n ? [\n platformUrlWithProtocol,\n 'v1',\n 'get',\n result.organization,\n result.project,\n ].join('/')\n : [platformUrlWithProtocol, result.organization, result.project].join('/');\n result.path = query ? `${compiledPath}?${query}` : compiledPath;\n\n return result;\n};\n\nconst logInputPaths = (\n inputPaths: ReadonlyArray<ReturnType<typeof compileInputPath>>,\n jobIndex: number,\n) => {\n const lines: Array<string> = [];\n\n const jobPrefix = colors.gray(`[Job ${jobIndex + 1}] `);\n const count = inputPaths.length;\n const baseString = colors.cyan(\n `Generating from ${count} ${count === 1 ? 'input' : 'inputs'}:`,\n );\n lines.push(`${jobPrefix}⏳ ${baseString}`);\n\n inputPaths.forEach((inputPath, index) => {\n const itemPrefixStr = ` [${index + 1}] `;\n const itemPrefix = colors.cyan(itemPrefixStr);\n const detailIndent = ' '.repeat(itemPrefixStr.length);\n\n if (typeof inputPath.path !== 'string') {\n lines.push(`${jobPrefix}${itemPrefix}raw OpenAPI specification`);\n return;\n }\n\n switch (inputPath.registry) {\n case 'hey-api': {\n const baseInput = [inputPath.organization, inputPath.project]\n .filter(Boolean)\n .join('/');\n lines.push(`${jobPrefix}${itemPrefix}${baseInput}`);\n if (inputPath.branch) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('branch:')} ${colors.green(\n inputPath.branch,\n )}`,\n );\n }\n if (inputPath.commit_sha) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('commit:')} ${colors.green(\n inputPath.commit_sha,\n )}`,\n );\n }\n if (inputPath.tags?.length) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('tags:')} ${colors.green(\n inputPath.tags.join(', '),\n )}`,\n );\n }\n if (inputPath.version) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('version:')} ${colors.green(\n inputPath.version,\n )}`,\n );\n }\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('registry:')} ${colors.green('Hey API')}`,\n );\n break;\n }\n case 'readme': {\n const baseInput = [inputPath.organization, inputPath.project]\n .filter(Boolean)\n .join('/');\n if (!baseInput) {\n lines.push(`${jobPrefix}${itemPrefix}${inputPath.path}`);\n } else {\n lines.push(`${jobPrefix}${itemPrefix}${baseInput}`);\n }\n // @ts-expect-error\n if (inputPath.uuid) {\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('uuid:')} ${colors.green(\n // @ts-expect-error\n inputPath.uuid,\n )}`,\n );\n }\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('registry:')} ${colors.green('ReadMe')}`,\n );\n break;\n }\n case 'scalar': {\n const baseInput = [inputPath.organization, inputPath.project]\n .filter(Boolean)\n .join('/');\n lines.push(`${jobPrefix}${itemPrefix}${baseInput}`);\n lines.push(\n `${jobPrefix}${detailIndent}${colors.gray('registry:')} ${colors.green('Scalar')}`,\n );\n break;\n }\n default:\n lines.push(`${jobPrefix}${itemPrefix}${inputPath.path}`);\n break;\n }\n });\n\n for (const line of lines) {\n console.log(line);\n }\n};\n\nexport const createClient = async ({\n config,\n dependencies,\n jobIndex,\n logger,\n templates,\n watches: _watches,\n}: {\n config: Config;\n dependencies: Record<string, string>;\n jobIndex: number;\n logger: Logger;\n templates: Templates;\n /**\n * Always undefined on the first run, defined on subsequent runs.\n */\n watches?: ReadonlyArray<WatchValues>;\n}): Promise<Client | undefined | IR.Context> => {\n const watches: ReadonlyArray<WatchValues> =\n _watches ||\n Array.from({ length: config.input.length }, () => ({\n headers: new Headers(),\n }));\n\n const inputPaths = config.input.map((input) => compileInputPath(input));\n\n // on first run, print the message as soon as possible\n if (config.logs.level !== 'silent' && !_watches) {\n logInputPaths(inputPaths, jobIndex);\n }\n\n const getSpecData = async (input: Input, index: number) => {\n const eventSpec = logger.timeEvent('spec');\n const { arrayBuffer, error, resolvedInput, response } = await getSpec({\n fetchOptions: input.fetch,\n inputPath: inputPaths[index]!.path,\n timeout: input.watch.timeout,\n watch: watches[index]!,\n });\n eventSpec.timeEnd();\n\n // throw on first run if there's an error to preserve user experience\n // if in watch mode, subsequent errors won't throw to gracefully handle\n // cases where server might be reloading\n if (error && !_watches) {\n throw new Error(\n `Request failed with status ${response.status}: ${response.statusText}`,\n );\n }\n\n return { arrayBuffer, resolvedInput };\n };\n const specData = (\n await Promise.all(\n config.input.map((input, index) => getSpecData(input, index)),\n )\n ).filter((data) => data.arrayBuffer || data.resolvedInput);\n\n let client: Client | undefined;\n let context: IR.Context | undefined;\n\n if (specData.length) {\n const refParser = new $RefParser();\n const data =\n specData.length > 1\n ? await refParser.bundleMany({\n arrayBuffer: specData.map((data) => data.arrayBuffer!),\n pathOrUrlOrSchemas: [],\n resolvedInputs: specData.map((data) => data.resolvedInput!),\n })\n : await refParser.bundle({\n arrayBuffer: specData[0]!.arrayBuffer,\n pathOrUrlOrSchema: undefined,\n resolvedInput: specData[0]!.resolvedInput,\n });\n\n // on subsequent runs in watch mode, print the message only if we know we're\n // generating the output\n if (config.logs.level !== 'silent' && _watches) {\n console.clear();\n logInputPaths(inputPaths, jobIndex);\n }\n\n const eventInputPatch = logger.timeEvent('input.patch');\n patchOpenApiSpec({ patchOptions: config.parser.patch, spec: data });\n eventInputPatch.timeEnd();\n\n const eventParser = logger.timeEvent('parser');\n if (\n config.experimentalParser &&\n !isLegacyClient(config) &&\n !legacyNameFromConfig(config)\n ) {\n context = parseOpenApiSpec({ config, dependencies, logger, spec: data });\n }\n\n // fallback to legacy parser\n if (!context) {\n const parsed = parseLegacy({ openApi: data });\n client = postProcessClient(parsed, config);\n }\n eventParser.timeEnd();\n\n const eventGenerator = logger.timeEvent('generator');\n if (context) {\n await generateOutput({ context });\n } else if (client) {\n await generateLegacyOutput({ client, openApi: data, templates });\n }\n eventGenerator.timeEnd();\n\n const eventPostprocess = logger.timeEvent('postprocess');\n if (!config.dryRun) {\n processOutput({ config });\n\n if (config.logs.level !== 'silent') {\n const outputPath = process.env.INIT_CWD\n ? `./${path.relative(process.env.INIT_CWD, config.output.path)}`\n : config.output.path;\n const jobPrefix = colors.gray(`[Job ${jobIndex + 1}] `);\n console.log(\n `${jobPrefix}${colors.green('✅ Done!')} Your output is in ${colors.cyanBright(outputPath)}`,\n );\n }\n }\n eventPostprocess.timeEnd();\n }\n\n const watchedInput = config.input.find(\n (input, index) =>\n input.watch.enabled && typeof inputPaths[index]!.path === 'string',\n );\n\n if (watchedInput) {\n setTimeout(() => {\n createClient({\n config,\n dependencies,\n jobIndex,\n logger,\n templates,\n watches,\n });\n }, watchedInput.watch.interval);\n }\n\n return context || client;\n};\n","import colors from 'ansi-colors';\n\nimport { loadPackageJson } from '../generate/tsConfig';\n\nconst textAscii = `\n888 | e 888~-_ 888\n888___| e88~~8e Y88b / d8b 888 \\\\ 888\n888 | d888 88b Y888/ /Y88b 888 | 888\n888 | 8888__888 Y8/ / Y88b 888 / 888\n888 | Y888 , Y /____Y88b 888_-~ 888\n888 | \"88___/ / / Y88b 888 888\n _/\n`;\n\nconst asciiToLines = (\n ascii: string,\n options?: {\n padding?: number;\n },\n) => {\n const lines: Array<string> = [];\n const padding = Array.from<string>({ length: options?.padding ?? 0 }).fill(\n '',\n );\n lines.push(...padding);\n let maxLineLength = 0;\n let line = '';\n for (const char of ascii) {\n if (char === '\\n') {\n if (line) {\n lines.push(line);\n maxLineLength = Math.max(maxLineLength, line.length);\n line = '';\n }\n } else {\n line += char;\n }\n }\n lines.push(...padding);\n return { lines, maxLineLength };\n};\n\nexport function printCliIntro() {\n const packageJson = loadPackageJson();\n const text = asciiToLines(textAscii, { padding: 1 });\n for (const line of text.lines) {\n console.log(colors.cyan(line));\n }\n console.log(colors.gray(`${packageJson.name} v${packageJson.version}`));\n console.log('');\n}\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import { NgModule} from '@angular/core';\\nimport { HttpClientModule } from '@angular/common/http';\\n\\nimport { AngularHttpRequest } from './core/AngularHttpRequest';\\nimport { BaseHttpRequest } from './core/BaseHttpRequest';\\nimport type { OpenAPIConfig } from './core/OpenAPI';\\nimport { OpenAPI } from './core/OpenAPI';\\nimport { Interceptors } from './core/OpenAPI';\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = container.strict,\n alias2 = container.lambda;\n\n return (\n \"import type { BaseHttpRequest } from './core/BaseHttpRequest';\\nimport type { OpenAPIConfig } from './core/OpenAPI';\\nimport { Interceptors } from './core/OpenAPI';\\nimport { \" +\n ((stack1 = alias2(\n alias1(depth0, 'httpRequest', {\n start: { line: 14, column: 12 },\n end: { line: 14, column: 23 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \" } from './core/\" +\n ((stack1 = alias2(\n alias1(depth0, 'httpRequest', {\n start: { line: 14, column: 45 },\n end: { line: 14, column: 56 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"';\\n\"\n );\n },\n 5: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = lookupProperty(helpers, 'each').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(depth0, 'services'),\n {\n name: 'each',\n hash: {},\n fn: container.program(6, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 18, column: 0 }, end: { line: 20, column: 9 } },\n },\n )) != null\n ? stack1\n : '';\n },\n 6: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n 'import { ' +\n ((stack1 = lookupProperty(helpers, 'transformServiceName').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(depth0, 'name'),\n {\n name: 'transformServiceName',\n hash: {},\n data: data,\n loc: {\n start: { line: 19, column: 9 },\n end: { line: 19, column: 40 },\n },\n },\n )) != null\n ? stack1\n : '') +\n \" } from './sdk.gen';\\n\"\n );\n },\n 8: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = container.strict,\n alias2 = container.lambda,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n \"@NgModule({\\n\timports: [HttpClientModule],\\n\tproviders: [\\n\t\t{\\n\t\t\tprovide: OpenAPI,\\n\t\t\tuseValue: {\\n\t\t\t\tBASE: OpenAPI?.BASE ?? '\" +\n ((stack1 = alias2(\n alias1(depth0, 'server', {\n start: { line: 30, column: 31 },\n end: { line: 30, column: 37 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\t\t\t\tVERSION: OpenAPI?.VERSION ?? '\" +\n ((stack1 = alias2(\n alias1(depth0, 'version', {\n start: { line: 31, column: 37 },\n end: { line: 31, column: 44 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\t\t\t\tWITH_CREDENTIALS: OpenAPI?.WITH_CREDENTIALS ?? false,\\n\t\t\t\tCREDENTIALS: OpenAPI?.CREDENTIALS ?? 'include',\\n\t\t\t\tTOKEN: OpenAPI?.TOKEN,\\n\t\t\t\tUSERNAME: OpenAPI?.USERNAME,\\n\t\t\t\tPASSWORD: OpenAPI?.PASSWORD,\\n\t\t\t\tHEADERS: OpenAPI?.HEADERS,\\n\t\t\t\tENCODE_PATH: OpenAPI?.ENCODE_PATH,\\n\t\t\t\tinterceptors: {\\n\t\t\t\t\tresponse: OpenAPI?.interceptors?.response ?? new Interceptors(),\\n\t\t\t\t},\\n\t\t\t} as OpenAPIConfig,\\n\t\t},\\n\t\t{\\n\t\t\tprovide: BaseHttpRequest,\\n\t\t\tuseClass: AngularHttpRequest,\\n\t\t},\\n\" +\n ((stack1 = lookupProperty(helpers, 'each').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(depth0, 'services'),\n {\n name: 'each',\n hash: {},\n fn: container.program(9, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 48, column: 2 },\n end: { line: 50, column: 11 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\t]\\n})\\nexport class ' +\n ((stack1 = alias2(\n alias1(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'name',\n { start: { line: 53, column: 16 }, end: { line: 53, column: 34 } },\n ),\n depth0,\n )) != null\n ? stack1\n : '') +\n ' {}\\n'\n );\n },\n 9: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n '\t\t' +\n ((stack1 = lookupProperty(helpers, 'transformServiceName').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(depth0, 'name'),\n {\n name: 'transformServiceName',\n hash: {},\n data: data,\n loc: {\n start: { line: 49, column: 2 },\n end: { line: 49, column: 33 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ',\\n'\n );\n },\n 11: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = container.strict,\n alias2 = container.lambda,\n alias3 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n 'type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;\\n\\nexport class ' +\n ((stack1 = alias2(\n alias1(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'name',\n { start: { line: 57, column: 16 }, end: { line: 57, column: 34 } },\n ),\n depth0,\n )) != null\n ? stack1\n : '') +\n ' {\\n\\n' +\n ((stack1 = lookupProperty(helpers, 'each').call(\n alias3,\n lookupProperty(depth0, 'services'),\n {\n name: 'each',\n hash: {},\n fn: container.program(12, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 59, column: 1 },\n end: { line: 61, column: 10 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\\n\tpublic readonly request: BaseHttpRequest;\\n\\n\tconstructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = ' +\n ((stack1 = alias2(\n alias1(depth0, 'httpRequest', {\n start: { line: 65, column: 87 },\n end: { line: 65, column: 98 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \") {\\n\t\tthis.request = new HttpRequest({\\n\t\t\tBASE: config?.BASE ?? '\" +\n ((stack1 = alias2(\n alias1(depth0, 'server', {\n start: { line: 67, column: 29 },\n end: { line: 67, column: 35 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\t\t\tVERSION: config?.VERSION ?? '\" +\n ((stack1 = alias2(\n alias1(depth0, 'version', {\n start: { line: 68, column: 35 },\n end: { line: 68, column: 42 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\t\t\tWITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,\\n\t\t\tCREDENTIALS: config?.CREDENTIALS ?? 'include',\\n\t\t\tTOKEN: config?.TOKEN,\\n\t\t\tUSERNAME: config?.USERNAME,\\n\t\t\tPASSWORD: config?.PASSWORD,\\n\t\t\tHEADERS: config?.HEADERS,\\n\t\t\tENCODE_PATH: config?.ENCODE_PATH,\\n\t\t\tinterceptors: {\\n\t\t\t\trequest: config?.interceptors?.request ?? new Interceptors(),\\n\t\t\t\tresponse: config?.interceptors?.response ?? new Interceptors(),\\n },\\n\t\t});\\n\\n\" +\n ((stack1 = lookupProperty(helpers, 'each').call(\n alias3,\n lookupProperty(depth0, 'services'),\n {\n name: 'each',\n hash: {},\n fn: container.program(14, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 82, column: 2 },\n end: { line: 84, column: 11 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\t}\\n}\\n'\n );\n },\n 12: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n '\tpublic readonly ' +\n ((stack1 = lookupProperty(helpers, 'camelCase').call(\n alias1,\n lookupProperty(depth0, 'name'),\n {\n name: 'camelCase',\n hash: {},\n data: data,\n loc: {\n start: { line: 60, column: 17 },\n end: { line: 60, column: 37 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ': ' +\n ((stack1 = lookupProperty(helpers, 'transformServiceName').call(\n alias1,\n lookupProperty(depth0, 'name'),\n {\n name: 'transformServiceName',\n hash: {},\n data: data,\n loc: {\n start: { line: 60, column: 39 },\n end: { line: 60, column: 70 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ';\\n'\n );\n },\n 14: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n '\t\tthis.' +\n ((stack1 = lookupProperty(helpers, 'camelCase').call(\n alias1,\n lookupProperty(depth0, 'name'),\n {\n name: 'camelCase',\n hash: {},\n data: data,\n loc: {\n start: { line: 83, column: 7 },\n end: { line: 83, column: 27 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ' = new ' +\n ((stack1 = lookupProperty(helpers, 'transformServiceName').call(\n alias1,\n lookupProperty(depth0, 'name'),\n {\n name: 'transformServiceName',\n hash: {},\n data: data,\n loc: {\n start: { line: 83, column: 34 },\n end: { line: 83, column: 65 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '(this.request);\\n'\n );\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 15, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'if').call(\n alias1,\n lookupProperty(depth0, 'services'),\n {\n name: 'if',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 17, column: 0 }, end: { line: 21, column: 7 } },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(8, data, 0),\n inverse: container.program(11, data, 0),\n data: data,\n loc: {\n start: { line: 23, column: 0 },\n end: { line: 87, column: 11 },\n },\n },\n )) != null\n ? stack1\n : '')\n );\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getHeaders = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): Observable<HttpHeaders> => {\\n\treturn forkJoin({\\n\t\t// @ts-ignore\\n\t\ttoken: resolve(options, config.TOKEN),\\n\t\t// @ts-ignore\\n\t\tusername: resolve(options, config.USERNAME),\\n\t\t// @ts-ignore\\n\t\tpassword: resolve(options, config.PASSWORD),\\n\t\t// @ts-ignore\\n\t\tadditionalHeaders: resolve(options, config.HEADERS),\\n\t}).pipe(\\n\t\tmap(({ token, username, password, additionalHeaders }) => {\\n\t\t\tconst headers = Object.entries({\\n\t\t\t\tAccept: 'application/json',\\n\t\t\t\t...additionalHeaders,\\n\t\t\t\t...options.headers,\\n\t\t\t})\\n\t\t\t\t.filter(([, value]) => value !== undefined && value !== null)\\n\t\t\t\t.reduce((headers, [key, value]) => ({\\n\t\t\t\t\t...headers,\\n\t\t\t\t\t[key]: String(value),\\n\t\t\t\t}), {} as Record<string, string>);\\n\\n\t\t\tif (isStringWithValue(token)) {\\n\t\t\t\theaders['Authorization'] = `Bearer ${token}`;\\n\t\t\t}\\n\\n\t\t\tif (isStringWithValue(username) && isStringWithValue(password)) {\\n\t\t\t\tconst credentials = base64(`${username}:${password}`);\\n\t\t\t\theaders['Authorization'] = `Basic ${credentials}`;\\n\t\t\t}\\n\\n\t\t\tif (options.body !== undefined) {\\n\t\t\t\tif (options.mediaType) {\\n\t\t\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t\t\t} else if (isBlob(options.body)) {\\n\t\t\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\\n\t\t\t\t} else if (isString(options.body)) {\\n\t\t\t\t\theaders['Content-Type'] = 'text/plain';\\n\t\t\t\t} else if (!isFormData(options.body)) {\\n\t\t\t\t\theaders['Content-Type'] = 'application/json';\\n\t\t\t\t}\\n\t\t\t}\\n\\n\t\t\treturn new HttpHeaders(headers);\\n\t\t}),\\n\t);\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getRequestBody = (options: ApiRequestOptions): unknown => {\\n\tif (options.body) {\\n\t\tif (options.mediaType?.includes('application/json') || options.mediaType?.includes('+json')) {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\\n\t\t\treturn options.body;\\n\t\t} else {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseBody = <T>(response: HttpResponse<T>): T | undefined => {\\n\tif (response.status !== 204 && response.body !== null) {\\n\t\treturn response.body;\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseHeader = <T>(response: HttpResponse<T>, responseHeader?: string): string | undefined => {\\n\tif (responseHeader) {\\n\t\tconst value = response.headers.get(responseHeader);\\n\t\tif (isString(value)) {\\n\t\t\treturn value;\\n\t\t}\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n \"import { HttpClient, HttpHeaders } from '@angular/common/http';\\nimport type { HttpResponse, HttpErrorResponse } from '@angular/common/http';\\nimport { forkJoin, of, throwError } from 'rxjs';\\nimport { catchError, map, switchMap } from 'rxjs/operators';\\nimport type { Observable } from 'rxjs';\\n\\nimport { ApiError } from './ApiError';\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\\n\" +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isString'),\n depth0,\n {\n name: 'functions/isString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isStringWithValue'),\n depth0,\n {\n name: 'functions/isStringWithValue',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isBlob'),\n depth0,\n {\n name: 'functions/isBlob',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isFormData'),\n depth0,\n {\n name: 'functions/isFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/base64'),\n depth0,\n {\n name: 'functions/base64',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getQueryString'),\n depth0,\n {\n name: 'functions/getQueryString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getUrl'),\n depth0,\n {\n name: 'functions/getUrl',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getFormData'),\n depth0,\n {\n name: 'functions/getFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/resolve'),\n depth0,\n {\n name: 'functions/resolve',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/getHeaders'),\n depth0,\n {\n name: 'angular/getHeaders',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/getRequestBody'),\n depth0,\n {\n name: 'angular/getRequestBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/sendRequest'),\n depth0,\n {\n name: 'angular/sendRequest',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/getResponseHeader'),\n depth0,\n {\n name: 'angular/getResponseHeader',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/getResponseBody'),\n depth0,\n {\n name: 'angular/getResponseBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/catchErrorCodes'),\n depth0,\n {\n name: 'functions/catchErrorCodes',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n/**\\n * Request method\\n * @param config The OpenAPI configuration object\\n * @param http The Angular HTTP client\\n * @param options The request options from the service\\n * @returns Observable<T>\\n * @throws ApiError\\n */\\nexport const request = <T>(config: OpenAPIConfig, http: HttpClient, options: ApiRequestOptions<T>): Observable<T> => {\\n\tconst url = getUrl(config, options);\\n\tconst formData = getFormData(options);\\n\tconst body = getRequestBody(options);\\n\\n\treturn getHeaders(config, options).pipe(\\n\t\tswitchMap(headers => {\\n\t\t\treturn sendRequest<T>(config, options, http, url, body, formData, headers);\\n\t\t}),\\n\t\tswitchMap(async response => {\\n\t\t\tfor (const fn of config.interceptors.response._fns) {\\n\t\t\t\tresponse = await fn(response);\\n\t\t\t}\\n\t\t\tconst responseBody = getResponseBody(response);\\n\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\\n\\n\t\t\tlet transformedBody = responseBody;\\n\t\t\tif (options.responseTransformer && response.ok) {\\n\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\\n\t\t\t}\\n\\n\t\t\treturn {\\n\t\t\t\turl,\\n\t\t\t\tok: response.ok,\\n\t\t\t\tstatus: response.status,\\n\t\t\t\tstatusText: response.statusText,\\n\t\t\t\tbody: responseHeader ?? transformedBody,\\n\t\t\t} as ApiResult;\\n\t\t}),\\n\t\tcatchError((error: HttpErrorResponse) => {\\n\t\t\tif (!error.status) {\\n\t\t\t\treturn throwError(() => error);\\n\t\t\t}\\n\t\t\treturn of({\\n\t\t\t\turl,\\n\t\t\t\tok: error.ok,\\n\t\t\t\tstatus: error.status,\\n\t\t\t\tstatusText: error.statusText,\\n\t\t\t\tbody: error.error ?? error.statusText,\\n\t\t\t} as ApiResult);\\n\t\t}),\\n\t\tmap(result => {\\n\t\t\tcatchErrorCodes(options, result);\\n\t\t\treturn result.body as T;\\n\t\t}),\\n\t\tcatchError((error: ApiError) => {\\n\t\t\treturn throwError(() => error);\\n\t\t}),\\n\t);\\n};'\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const sendRequest = <T>(\\n\tconfig: OpenAPIConfig,\\n\toptions: ApiRequestOptions<T>,\\n\thttp: HttpClient,\\n\turl: string,\\n\tbody: unknown,\\n\tformData: FormData | undefined,\\n\theaders: HttpHeaders\\n): Observable<HttpResponse<T>> => {\\n\treturn http.request<T>(options.method, url, {\\n\t\theaders,\\n\t\tbody: body ?? formData,\\n\t\twithCredentials: config.WITH_CREDENTIALS,\\n\t\tobserve: 'response',\\n\t});\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"import type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\n\\nexport class ApiError extends Error {\\n\tpublic readonly url: string;\\n\tpublic readonly status: number;\\n\tpublic readonly statusText: string;\\n\tpublic readonly body: unknown;\\n\tpublic readonly request: ApiRequestOptions;\\n\\n\tconstructor(request: ApiRequestOptions, response: ApiResult, message: string) {\\n\t\tsuper(message);\\n\\n\t\tthis.name = 'ApiError';\\n\t\tthis.url = response.url;\\n\t\tthis.status = response.status;\\n\t\tthis.statusText = response.statusText;\\n\t\tthis.body = response.body;\\n\t\tthis.request = request;\\n\t}\\n}\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export type ApiRequestOptions<T = unknown> = {\\n\treadonly body?: any;\\n\treadonly cookies?: Record<string, unknown>;\\n\treadonly errors?: Record<number | string, string>;\\n\treadonly formData?: Record<string, unknown> | any[] | Blob | File;\\n\treadonly headers?: Record<string, unknown>;\\n\treadonly mediaType?: string;\\n\treadonly method:\\n\t\t| 'DELETE'\\n\t\t| 'GET'\\n\t\t| 'HEAD'\\n\t\t| 'OPTIONS'\\n\t\t| 'PATCH'\\n\t\t| 'POST'\\n\t\t| 'PUT';\\n\treadonly path?: Record<string, unknown>;\\n\treadonly query?: Record<string, unknown>;\\n\treadonly responseHeader?: string;\\n\treadonly responseTransformer?: (data: unknown) => Promise<T>;\\n\treadonly url: string;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export type ApiResult<TData = any> = {\\n\treadonly body: TData;\\n\treadonly ok: boolean;\\n\treadonly status: number;\\n\treadonly statusText: string;\\n\treadonly url: string;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getHeaders = async <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): Promise<Record<string, string>> => {\\n\tconst [token, username, password, additionalHeaders] = await Promise.all([\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.TOKEN),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.USERNAME),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.PASSWORD),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.HEADERS),\\n\t]);\\n\\n\tconst headers = Object.entries({\\n\t\tAccept: 'application/json',\\n\t\t...additionalHeaders,\\n\t\t...options.headers,\\n\t})\\n\t.filter(([, value]) => value !== undefined && value !== null)\\n\t.reduce((headers, [key, value]) => ({\\n\t\t...headers,\\n\t\t[key]: String(value),\\n\t}), {} as Record<string, string>);\\n\\n\tif (isStringWithValue(token)) {\\n\t\theaders['Authorization'] = `Bearer ${token}`;\\n\t}\\n\\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\\n\t\tconst credentials = base64(`${username}:${password}`);\\n\t\theaders['Authorization'] = `Basic ${credentials}`;\\n\t}\\n\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType) {\\n\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t} else if (isBlob(options.body)) {\\n\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\\n\t\t} else if (isString(options.body)) {\\n\t\t\theaders['Content-Type'] = 'text/plain';\\n\t\t} else if (!isFormData(options.body)) {\\n\t\t\theaders['Content-Type'] = 'application/json';\\n\t\t}\\n\t} else if (options.formData !== undefined) {\\n\t\tif (options.mediaType) {\\n\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t}\\n\t}\\n\\n\treturn headers;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getRequestBody = (options: ApiRequestOptions): unknown => {\\n\tif (options.body) {\\n\t\treturn options.body;\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseBody = (response: AxiosResponse<unknown>): unknown => {\\n\tif (response.status !== 204) {\\n\t\treturn response.data;\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseHeader = (response: AxiosResponse<unknown>, responseHeader?: string): string | undefined => {\\n\tif (responseHeader) {\\n\t\tconst content = response.headers[responseHeader];\\n\t\tif (isString(content)) {\\n\t\t\treturn content;\\n\t\t}\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return 'ApiResult<T>';\n },\n 3: function (container, depth0, helpers, partials, data) {\n return 'T';\n },\n 5: function (container, depth0, helpers, partials, data) {\n return 'result.body';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return 'result';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n \"import axios from 'axios';\\nimport type { AxiosError, AxiosRequestConfig, AxiosResponse, AxiosInstance } from 'axios';\\n\\nimport { ApiError } from './ApiError';\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\nimport { CancelablePromise } from './CancelablePromise';\\nimport type { OnCancel } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\\n\" +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isString'),\n depth0,\n {\n name: 'functions/isString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isStringWithValue'),\n depth0,\n {\n name: 'functions/isStringWithValue',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isBlob'),\n depth0,\n {\n name: 'functions/isBlob',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isFormData'),\n depth0,\n {\n name: 'functions/isFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isSuccess'),\n depth0,\n {\n name: 'functions/isSuccess',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/base64'),\n depth0,\n {\n name: 'functions/base64',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getQueryString'),\n depth0,\n {\n name: 'functions/getQueryString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getUrl'),\n depth0,\n {\n name: 'functions/getUrl',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getFormData'),\n depth0,\n {\n name: 'functions/getFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/resolve'),\n depth0,\n {\n name: 'functions/resolve',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/getHeaders'),\n depth0,\n {\n name: 'axios/getHeaders',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/getRequestBody'),\n depth0,\n {\n name: 'axios/getRequestBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/sendRequest'),\n depth0,\n {\n name: 'axios/sendRequest',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/getResponseHeader'),\n depth0,\n {\n name: 'axios/getResponseHeader',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/getResponseBody'),\n depth0,\n {\n name: 'axios/getResponseBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/catchErrorCodes'),\n depth0,\n {\n name: 'functions/catchErrorCodes',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n/**\\n * Request method\\n * @param config The OpenAPI configuration object\\n * @param options The request options from the service\\n * @param axiosClient The axios client instance to use\\n * @returns CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: {\n start: { line: 64, column: 30 },\n end: { line: 64, column: 108 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '>\\n * @throws ApiError\\n */\\nexport const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>, axiosClient: AxiosInstance = axios): CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: {\n start: { line: 67, column: 136 },\n end: { line: 67, column: 214 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '> => {\\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\\n\t\ttry {\\n\t\t\tconst url = getUrl(config, options);\\n\t\t\tconst formData = getFormData(options);\\n\t\t\tconst body = getRequestBody(options);\\n\t\t\tconst headers = await getHeaders(config, options);\\n\\n\t\t\tif (!onCancel.isCancelled) {\\n\t\t\t\tlet response = await sendRequest<T>(config, options, url, body, formData, headers, onCancel, axiosClient);\\n\\n\t\t\t\tfor (const fn of config.interceptors.response._fns) {\\n\t\t\t\t\tresponse = await fn(response);\\n\t\t\t\t}\\n\\n\t\t\t\tconst responseBody = getResponseBody(response);\\n\t\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\\n\\n\t\t\t\tlet transformedBody = responseBody;\\n\t\t\t\tif (options.responseTransformer && isSuccess(response.status)) {\\n\t\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\\n\t\t\t\t}\\n\\n\t\t\t\tconst result: ApiResult = {\\n\t\t\t\t\turl,\\n\t\t\t\t\tok: isSuccess(response.status),\\n\t\t\t\t\tstatus: response.status,\\n\t\t\t\t\tstatusText: response.statusText,\\n\t\t\t\t\tbody: responseHeader ?? transformedBody,\\n\t\t\t\t};\\n\\n\t\t\t\tcatchErrorCodes(options, result);\\n\\n\t\t\t\tresolve(' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'body',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.program(7, data, 0),\n data: data,\n loc: {\n start: { line: 100, column: 12 },\n end: { line: 100, column: 90 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ');\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\treject(error);\\n\t\t}\\n\t});\\n};'\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const sendRequest = async <T>(\\n\tconfig: OpenAPIConfig,\\n\toptions: ApiRequestOptions<T>,\\n\turl: string,\\n\tbody: unknown,\\n\tformData: FormData | undefined,\\n\theaders: Record<string, string>,\\n\tonCancel: OnCancel,\\n\taxiosClient: AxiosInstance\\n): Promise<AxiosResponse<T>> => {\\n\tconst controller = new AbortController();\\n\\n\tlet requestConfig: AxiosRequestConfig = {\\n\t\tdata: body ?? formData,\\n\t\theaders,\\n\t\tmethod: options.method,\\n\t\tsignal: controller.signal,\\n\t\turl,\\n\t\twithCredentials: config.WITH_CREDENTIALS,\\n\t};\\n\\n\tonCancel(() => controller.abort());\\n\\n\tfor (const fn of config.interceptors.request._fns) {\\n\t\trequestConfig = await fn(requestConfig);\\n\t}\\n\\n\ttry {\\n\t\treturn await axiosClient.request(requestConfig);\\n\t} catch (error) {\\n\t\tconst axiosError = error as AxiosError<T>;\\n\t\tif (axiosError.response) {\\n\t\t\treturn axiosError.response;\\n\t\t}\\n\t\tthrow error;\\n\t}\\n};';\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import type { HttpClient } from '@angular/common/http';\\nimport type { Observable } from 'rxjs';\\n\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n return \"import type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { CancelablePromise } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\";\n },\n 5: function (container, depth0, helpers, partials, data) {\n return '\tconstructor(\\n\t\tpublic readonly config: OpenAPIConfig,\\n\t\tpublic readonly http: HttpClient,\\n\t) {}\\n';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return '\tconstructor(public readonly config: OpenAPIConfig) {}\\n';\n },\n 9: function (container, depth0, helpers, partials, data) {\n return '\tpublic abstract request<T>(options: ApiRequestOptions<T>): Observable<T>;\\n';\n },\n 11: function (container, depth0, helpers, partials, data) {\n return '\tpublic abstract request<T>(options: ApiRequestOptions<T>): CancelablePromise<T>;\\n';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 11, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n '\\nexport abstract class BaseHttpRequest {\\n\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.program(7, data, 0),\n data: data,\n loc: {\n start: { line: 15, column: 1 },\n end: { line: 22, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(9, data, 0),\n inverse: container.program(11, data, 0),\n data: data,\n loc: {\n start: { line: 24, column: 1 },\n end: { line: 28, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '}'\n );\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export class CancelError extends Error {\\n\tconstructor(message: string) {\\n\t\tsuper(message);\\n\t\tthis.name = 'CancelError';\\n\t}\\n\\n\tpublic get isCancelled(): boolean {\\n\t\treturn true;\\n\t}\\n}\\n\\nexport interface OnCancel {\\n\treadonly isResolved: boolean;\\n\treadonly isRejected: boolean;\\n\treadonly isCancelled: boolean;\\n\\n\t(cancelHandler: () => void): void;\\n}\\n\\nexport class CancelablePromise<T> implements Promise<T> {\\n\tprivate _isResolved: boolean;\\n\tprivate _isRejected: boolean;\\n\tprivate _isCancelled: boolean;\\n\treadonly cancelHandlers: (() => void)[];\\n\treadonly promise: Promise<T>;\\n\tprivate _resolve?: (value: T | PromiseLike<T>) => void;\\n\tprivate _reject?: (reason?: unknown) => void;\\n\\n\tconstructor(\\n\t\texecutor: (\\n\t\t\tresolve: (value: T | PromiseLike<T>) => void,\\n\t\t\treject: (reason?: unknown) => void,\\n\t\t\tonCancel: OnCancel\\n\t\t) => void\\n\t) {\\n\t\tthis._isResolved = false;\\n\t\tthis._isRejected = false;\\n\t\tthis._isCancelled = false;\\n\t\tthis.cancelHandlers = [];\\n\t\tthis.promise = new Promise<T>((resolve, reject) => {\\n\t\t\tthis._resolve = resolve;\\n\t\t\tthis._reject = reject;\\n\\n\t\t\tconst onResolve = (value: T | PromiseLike<T>): void => {\\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\\n\t\t\t\t\treturn;\\n\t\t\t\t}\\n\t\t\t\tthis._isResolved = true;\\n\t\t\t\tif (this._resolve) this._resolve(value);\\n\t\t\t};\\n\\n\t\t\tconst onReject = (reason?: unknown): void => {\\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\\n\t\t\t\t\treturn;\\n\t\t\t\t}\\n\t\t\t\tthis._isRejected = true;\\n\t\t\t\tif (this._reject) this._reject(reason);\\n\t\t\t};\\n\\n\t\t\tconst onCancel = (cancelHandler: () => void): void => {\\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\\n\t\t\t\t\treturn;\\n\t\t\t\t}\\n\t\t\t\tthis.cancelHandlers.push(cancelHandler);\\n\t\t\t};\\n\\n\t\t\tObject.defineProperty(onCancel, 'isResolved', {\\n\t\t\t\tget: (): boolean => this._isResolved,\\n\t\t\t});\\n\\n\t\t\tObject.defineProperty(onCancel, 'isRejected', {\\n\t\t\t\tget: (): boolean => this._isRejected,\\n\t\t\t});\\n\\n\t\t\tObject.defineProperty(onCancel, 'isCancelled', {\\n\t\t\t\tget: (): boolean => this._isCancelled,\\n\t\t\t});\\n\\n\t\t\treturn executor(onResolve, onReject, onCancel as OnCancel);\\n\t\t});\\n\t}\\n\\n\tget [Symbol.toStringTag](): string {\\n\t\treturn \\\"Cancellable Promise\\\";\\n\t}\\n\\n\tpublic then<TResult1 = T, TResult2 = never>(\\n\t\tonFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,\\n\t\tonRejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null\\n\t): Promise<TResult1 | TResult2> {\\n\t\treturn this.promise.then(onFulfilled, onRejected);\\n\t}\\n\\n\tpublic catch<TResult = never>(\\n\t\tonRejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null\\n\t): Promise<T | TResult> {\\n\t\treturn this.promise.catch(onRejected);\\n\t}\\n\\n\tpublic finally(onFinally?: (() => void) | null): Promise<T> {\\n\t\treturn this.promise.finally(onFinally);\\n\t}\\n\\n\tpublic cancel(): void {\\n\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\\n\t\t\treturn;\\n\t\t}\\n\t\tthis._isCancelled = true;\\n\t\tif (this.cancelHandlers.length) {\\n\t\t\ttry {\\n\t\t\t\tfor (const cancelHandler of this.cancelHandlers) {\\n\t\t\t\t\tcancelHandler();\\n\t\t\t\t}\\n\t\t\t} catch (error) {\\n\t\t\t\tconsole.warn('Cancellation threw an error', error);\\n\t\t\t\treturn;\\n\t\t\t}\\n\t\t}\\n\t\tthis.cancelHandlers.length = 0;\\n\t\tif (this._reject) this._reject(new CancelError('Request aborted'));\\n\t}\\n\\n\tpublic get isCancelled(): boolean {\\n\t\treturn this._isCancelled;\\n\t}\\n}\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getHeaders = async <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): Promise<Headers> => {\\n\tconst [token, username, password, additionalHeaders] = await Promise.all([\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.TOKEN),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.USERNAME),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.PASSWORD),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.HEADERS),\\n\t]);\\n\\n\tconst headers = Object.entries({\\n\t\tAccept: 'application/json',\\n\t\t...additionalHeaders,\\n\t\t...options.headers,\\n\t})\\n\t\t.filter(([, value]) => value !== undefined && value !== null)\\n\t\t.reduce((headers, [key, value]) => ({\\n\t\t\t...headers,\\n\t\t\t[key]: String(value),\\n\t\t}), {} as Record<string, string>);\\n\\n\tif (isStringWithValue(token)) {\\n\t\theaders['Authorization'] = `Bearer ${token}`;\\n\t}\\n\\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\\n\t\tconst credentials = base64(`${username}:${password}`);\\n\t\theaders['Authorization'] = `Basic ${credentials}`;\\n\t}\\n\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType) {\\n\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t} else if (isBlob(options.body)) {\\n\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\\n\t\t} else if (isString(options.body)) {\\n\t\t\theaders['Content-Type'] = 'text/plain';\\n\t\t} else if (!isFormData(options.body)) {\\n\t\t\theaders['Content-Type'] = 'application/json';\\n\t\t}\\n\t}\\n\\n\treturn new Headers(headers);\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getRequestBody = (options: ApiRequestOptions): unknown => {\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType?.includes('application/json') || options.mediaType?.includes('+json')) {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\\n\t\t\treturn options.body;\\n\t\t} else {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getResponseBody = async (response: Response): Promise<unknown> => {\\n\tif (response.status !== 204) {\\n\t\ttry {\\n\t\t\tconst contentType = response.headers.get('Content-Type');\\n\t\t\tif (contentType) {\\n\t\t\t\tconst binaryTypes = ['application/octet-stream', 'application/pdf', 'application/zip', 'audio/', 'image/', 'video/'];\\n\t\t\t\tif (contentType.includes('application/json') || contentType.includes('+json')) {\\n\t\t\t\t\treturn await response.json();\\n\t\t\t\t} else if (binaryTypes.some(type => contentType.includes(type))) {\\n\t\t\t\t\treturn await response.blob();\\n\t\t\t\t} else if (contentType.includes('multipart/form-data')) {\\n\t\t\t\t\treturn await response.formData();\\n\t\t\t\t} else if (contentType.includes('text/')) {\\n\t\t\t\t\treturn await response.text();\\n\t\t\t\t}\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\tconsole.error(error);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {\\n\tif (responseHeader) {\\n\t\tconst content = response.headers.get(responseHeader);\\n\t\tif (isString(content)) {\\n\t\t\treturn content;\\n\t\t}\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import fetch, { FormData, Headers } from 'node-fetch';\\nimport type { RequestInit, Response } from 'node-fetch';\\n\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n return 'ApiResult<T>';\n },\n 5: function (container, depth0, helpers, partials, data) {\n return 'T';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return 'result.body';\n },\n 9: function (container, depth0, helpers, partials, data) {\n return 'result';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/node',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 5, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n \"import { ApiError } from './ApiError';\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\nimport { CancelablePromise } from './CancelablePromise';\\nimport type { OnCancel } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\\n\" +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isString'),\n depth0,\n {\n name: 'functions/isString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isStringWithValue'),\n depth0,\n {\n name: 'functions/isStringWithValue',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isBlob'),\n depth0,\n {\n name: 'functions/isBlob',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isFormData'),\n depth0,\n {\n name: 'functions/isFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/base64'),\n depth0,\n {\n name: 'functions/base64',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getQueryString'),\n depth0,\n {\n name: 'functions/getQueryString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getUrl'),\n depth0,\n {\n name: 'functions/getUrl',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getFormData'),\n depth0,\n {\n name: 'functions/getFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/resolve'),\n depth0,\n {\n name: 'functions/resolve',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getHeaders'),\n depth0,\n {\n name: 'fetch/getHeaders',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getRequestBody'),\n depth0,\n {\n name: 'fetch/getRequestBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/sendRequest'),\n depth0,\n {\n name: 'fetch/sendRequest',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getResponseHeader'),\n depth0,\n {\n name: 'fetch/getResponseHeader',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getResponseBody'),\n depth0,\n {\n name: 'fetch/getResponseBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/catchErrorCodes'),\n depth0,\n {\n name: 'functions/catchErrorCodes',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n/**\\n * Request method\\n * @param config The OpenAPI configuration object\\n * @param options The request options from the service\\n * @returns CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(3, data, 0),\n inverse: container.program(5, data, 0),\n data: data,\n loc: {\n start: { line: 62, column: 30 },\n end: { line: 62, column: 108 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '>\\n * @throws ApiError\\n */\\nexport const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(3, data, 0),\n inverse: container.program(5, data, 0),\n data: data,\n loc: {\n start: { line: 65, column: 100 },\n end: { line: 65, column: 178 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '> => {\\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\\n\t\ttry {\\n\t\t\tconst url = getUrl(config, options);\\n\t\t\tconst formData = getFormData(options);\\n\t\t\tconst body = getRequestBody(options);\\n\t\t\tconst headers = await getHeaders(config, options);\\n\\n\t\t\tif (!onCancel.isCancelled) {\\n\t\t\t\tlet response = await sendRequest(config, options, url, body, formData, headers, onCancel);\\n\\n\t\t\t\tfor (const fn of config.interceptors.response._fns) {\\n\t\t\t\t\tresponse = await fn(response);\\n\t\t\t\t}\\n\\n\t\t\t\tconst responseBody = await getResponseBody(response);\\n\t\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\\n\\n\t\t\t\tlet transformedBody = responseBody;\\n\t\t\t\tif (options.responseTransformer && response.ok) {\\n\t\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\\n\t\t\t\t}\\n\\n\t\t\t\tconst result: ApiResult = {\\n\t\t\t\t\turl,\\n\t\t\t\t\tok: response.ok,\\n\t\t\t\t\tstatus: response.status,\\n\t\t\t\t\tstatusText: response.statusText,\\n\t\t\t\t\tbody: responseHeader ?? transformedBody,\\n\t\t\t\t};\\n\\n\t\t\t\tcatchErrorCodes(options, result);\\n\\n\t\t\t\tresolve(' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'body',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(7, data, 0),\n inverse: container.program(9, data, 0),\n data: data,\n loc: {\n start: { line: 98, column: 12 },\n end: { line: 98, column: 90 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ');\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\treject(error);\\n\t\t}\\n\t});\\n};'\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return '\tif (config.WITH_CREDENTIALS) {\\n\t\trequest.credentials = config.CREDENTIALS;\\n\t}\\n';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n 'export const sendRequest = async (\\n\tconfig: OpenAPIConfig,\\n\toptions: ApiRequestOptions,\\n\turl: string,\\n\tbody: any,\\n\tformData: FormData | undefined,\\n\theaders: Headers,\\n\tonCancel: OnCancel\\n): Promise<Response> => {\\n\tconst controller = new AbortController();\\n\\n\tlet request: RequestInit = {\\n\t\theaders,\\n\t\tbody: body ?? formData,\\n\t\tmethod: options.method,\\n\t\tsignal: controller.signal,\\n\t};\\n\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/fetch',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 19, column: 1 },\n end: { line: 23, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\\n\tfor (const fn of config.interceptors.request._fns) {\\n\t\trequest = await fn(request);\\n\t}\\n\\n\tonCancel(() => controller.abort());\\n\\n\treturn await fetch(url, request);\\n};'\n );\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const base64 = (str: string): string => {\\n\ttry {\\n\t\treturn btoa(str);\\n\t} catch (err) {\\n\t\t// @ts-ignore\\n\t\treturn Buffer.from(str).toString('base64');\\n\t}\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {\\n\tconst errors: Record<number, string> = {\\n\t\t400: 'Bad Request',\\n\t\t401: 'Unauthorized',\\n\t\t402: 'Payment Required',\\n\t\t403: 'Forbidden',\\n\t\t404: 'Not Found',\\n\t\t405: 'Method Not Allowed',\\n\t\t406: 'Not Acceptable',\\n\t\t407: 'Proxy Authentication Required',\\n\t\t408: 'Request Timeout',\\n\t\t409: 'Conflict',\\n\t\t410: 'Gone',\\n\t\t411: 'Length Required',\\n\t\t412: 'Precondition Failed',\\n\t\t413: 'Payload Too Large',\\n\t\t414: 'URI Too Long',\\n\t\t415: 'Unsupported Media Type',\\n\t\t416: 'Range Not Satisfiable',\\n\t\t417: 'Expectation Failed',\\n\t\t418: 'Im a teapot',\\n\t\t421: 'Misdirected Request',\\n\t\t422: 'Unprocessable Content',\\n\t\t423: 'Locked',\\n\t\t424: 'Failed Dependency',\\n\t\t425: 'Too Early',\\n\t\t426: 'Upgrade Required',\\n\t\t428: 'Precondition Required',\\n\t\t429: 'Too Many Requests',\\n\t\t431: 'Request Header Fields Too Large',\\n\t\t451: 'Unavailable For Legal Reasons',\\n\t\t500: 'Internal Server Error',\\n\t\t501: 'Not Implemented',\\n\t\t502: 'Bad Gateway',\\n\t\t503: 'Service Unavailable',\\n\t\t504: 'Gateway Timeout',\\n\t\t505: 'HTTP Version Not Supported',\\n\t\t506: 'Variant Also Negotiates',\\n\t\t507: 'Insufficient Storage',\\n\t\t508: 'Loop Detected',\\n\t\t510: 'Not Extended',\\n\t\t511: 'Network Authentication Required',\\n\t\t...options.errors,\\n\t}\\n\\n\tconst error = errors[result.status];\\n\tif (error) {\\n\t\tthrow new ApiError(options, result, error);\\n\t}\\n\\n\tif (!result.ok) {\\n\t\tconst errorStatus = result.status ?? 'unknown';\\n\t\tconst errorStatusText = result.statusText ?? 'unknown';\\n\t\tconst errorBody = (() => {\\n\t\t\ttry {\\n\t\t\t\treturn JSON.stringify(result.body, null, 2);\\n\t\t\t} catch (e) {\\n\t\t\t\treturn undefined;\\n\t\t\t}\\n\t\t})();\\n\\n\t\tthrow new ApiError(options, result,\\n\t\t\t`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`\\n\t\t);\\n\t}\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getFormData = (options: ApiRequestOptions): FormData | undefined => {\\n\tif (options.formData) {\\n\t\tconst formData = new FormData();\\n\\n\t\tconst process = (key: string, value: unknown) => {\\n\t\t\tif (isString(value) || isBlob(value)) {\\n\t\t\t\tformData.append(key, value);\\n\t\t\t} else {\\n\t\t\t\tformData.append(key, JSON.stringify(value));\\n\t\t\t}\\n\t\t};\\n\\n\t\tObject.entries(options.formData)\\n\t\t\t.filter(([, value]) => value !== undefined && value !== null)\\n\t\t\t.forEach(([key, value]) => {\\n\t\t\t\tif (Array.isArray(value)) {\\n\t\t\t\t\tvalue.forEach(v => process(key, v));\\n\t\t\t\t} else {\\n\t\t\t\t\tprocess(key, value);\\n\t\t\t\t}\\n\t\t\t});\\n\\n\t\treturn formData;\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getQueryString = (params: Record<string, unknown>): string => {\\n\tconst qs: string[] = [];\\n\\n\tconst append = (key: string, value: unknown) => {\\n\t\tqs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\\n\t};\\n\\n\tconst encodePair = (key: string, value: unknown) => {\\n\t\tif (value === undefined || value === null) {\\n\t\t\treturn;\\n\t\t}\\n\\n\t\tif (value instanceof Date) {\\n\t\t\tappend(key, value.toISOString());\\n\t\t} else if (Array.isArray(value)) {\\n\t\t\tvalue.forEach(v => encodePair(key, v));\\n\t\t} else if (typeof value === 'object') {\\n\t\t\tObject.entries(value).forEach(([k, v]) => encodePair(`${key}[${k}]`, v));\\n\t\t} else {\\n\t\t\tappend(key, value);\\n\t\t}\\n\t};\\n\\n\tObject.entries(params).forEach(([key, value]) => encodePair(key, value));\\n\\n\treturn qs.length ? `?${qs.join('&')}` : '';\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {\\n\tconst encoder = config.ENCODE_PATH || encodeURI;\\n\\n\tconst path = options.url\\n\t\t.replace('{api-version}', config.VERSION)\\n\t\t.replace(/{(.*?)}/g, (substring: string, group: string) => {\\n\t\t\tif (options.path?.hasOwnProperty(group)) {\\n\t\t\t\treturn encoder(String(options.path[group]));\\n\t\t\t}\\n\t\t\treturn substring;\\n\t\t});\\n\\n\tconst url = config.BASE + path;\\n\treturn options.query ? url + getQueryString(options.query) : url;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const isBlob = (value: any): value is Blob => {\\n\treturn value instanceof Blob;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const isFormData = (value: unknown): value is FormData => {\\n\treturn value instanceof FormData;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const isString = (value: unknown): value is string => {\\n\treturn typeof value === 'string';\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const isStringWithValue = (value: unknown): value is string => {\\n\treturn isString(value) && value !== '';\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const isSuccess = (status: number): boolean => {\\n\treturn status >= 200 && status < 300;\\n};';\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"type Resolver<T> = (options: ApiRequestOptions<T>) => Promise<T>;\\n\\nexport const resolve = async <T>(options: ApiRequestOptions<T>, resolver?: T | Resolver<T>): Promise<T | undefined> => {\\n\tif (typeof resolver === 'function') {\\n\t\treturn (resolver as Resolver<T>)(options);\\n\t}\\n\treturn resolver;\\n};\";\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import { Inject, Injectable } from '@angular/core';\\nimport { HttpClient } from '@angular/common/http';\\nimport type { Observable } from 'rxjs';\\n\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport { BaseHttpRequest } from './BaseHttpRequest';\\nimport type { OpenAPIConfig } from './OpenAPI';\\nimport { OpenAPI } from './OpenAPI';\\nimport { request as __request } from './request';\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n return \"import type { ApiRequestOptions } from './ApiRequestOptions';\\nimport { BaseHttpRequest } from './BaseHttpRequest';\\nimport type { CancelablePromise } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\nimport { request as __request } from './request';\\n\";\n },\n 5: function (container, depth0, helpers, partials, data) {\n return '@Injectable()\\n';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return '\tconstructor(\\n\t\t@Inject(OpenAPI)\\n\t\tconfig: OpenAPIConfig,\\n\t\thttp: HttpClient,\\n\t) {\\n\t\tsuper(config, http);\\n\t}\\n';\n },\n 9: function (container, depth0, helpers, partials, data) {\n return '\tconstructor(config: OpenAPIConfig) {\\n\t\tsuper(config);\\n\t}\\n';\n },\n 11: function (container, depth0, helpers, partials, data) {\n return '\t/**\\n\t * Request method\\n\t * @param options The request options from the service\\n\t * @returns Observable<T>\\n\t * @throws ApiError\\n\t */\\n\tpublic override request<T>(options: ApiRequestOptions<T>): Observable<T> {\\n\t\treturn __request(this.config, this.http, options);\\n\t}\\n';\n },\n 13: function (container, depth0, helpers, partials, data) {\n return '\t/**\\n\t * Request method\\n\t * @param options The request options from the service\\n\t * @returns CancelablePromise<T>\\n\t * @throws ApiError\\n\t */\\n\tpublic override request<T>(options: ApiRequestOptions<T>): CancelablePromise<T> {\\n\t\treturn __request(this.config, options);\\n\t}\\n';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 17, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 19, column: 0 },\n end: { line: 21, column: 11 },\n },\n },\n )) != null\n ? stack1\n : '') +\n 'export class ' +\n ((stack1 = container.lambda(\n container.strict(depth0, 'httpRequest', {\n start: { line: 22, column: 15 },\n end: { line: 22, column: 26 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n ' extends BaseHttpRequest {\\n\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(7, data, 0),\n inverse: container.program(9, data, 0),\n data: data,\n loc: {\n start: { line: 24, column: 1 },\n end: { line: 36, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\\n' +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(11, data, 0),\n inverse: container.program(13, data, 0),\n data: data,\n loc: {\n start: { line: 38, column: 1 },\n end: { line: 58, column: 12 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '}'\n );\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return \"import type { HttpResponse } from '@angular/common/http';\\n\";\n },\n 3: function (container, depth0, helpers, partials, data) {\n return \"import type { AxiosRequestConfig, AxiosResponse } from 'axios';\\n\";\n },\n 5: function (container, depth0, helpers, partials, data) {\n return \"import type { RequestInit, Response } from 'node-fetch';\\n\";\n },\n 7: function (container, depth0, helpers, partials, data) {\n return '\t\tresponse: Interceptors<HttpResponse<any>>;\\n';\n },\n 9: function (container, depth0, helpers, partials, data) {\n return '\t\trequest: Interceptors<AxiosRequestConfig>;\\n\t\tresponse: Interceptors<AxiosResponse>;\\n';\n },\n 11: function (container, depth0, helpers, partials, data) {\n return '\t\trequest: Interceptors<RequestInit>;\\n\t\tresponse: Interceptors<Response>;\\n';\n },\n 13: function (container, depth0, helpers, partials, data) {\n return '\t\trequest: Interceptors<XMLHttpRequest>;\\n\t\tresponse: Interceptors<XMLHttpRequest>;\\n';\n },\n 15: function (container, depth0, helpers, partials, data) {\n return '\t\trequest: new Interceptors(),\\n';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n alias2 = container.strict,\n alias3 = container.lambda,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 3, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/axios',\n {\n name: 'equals',\n hash: {},\n fn: container.program(3, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 4, column: 0 }, end: { line: 6, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/node',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 7, column: 0 }, end: { line: 9, column: 11 } },\n },\n )) != null\n ? stack1\n : '') +\n \"import type { ApiRequestOptions } from './ApiRequestOptions';\\n\\ntype Headers = Record<string, string>;\\ntype Middleware<T> = (value: T) => T | Promise<T>;\\ntype Resolver<T> = (options: ApiRequestOptions<T>) => Promise<T>;\\n\\nexport class Interceptors<T> {\\n _fns: Middleware<T>[];\\n\\n constructor() {\\n this._fns = [];\\n }\\n\\n eject(fn: Middleware<T>): void {\\n const index = this._fns.indexOf(fn);\\n if (index !== -1) {\\n this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)];\\n }\\n }\\n\\n use(fn: Middleware<T>): void {\\n this._fns = [...this._fns, fn];\\n }\\n}\\n\\nexport type OpenAPIConfig = {\\n\tBASE: string;\\n\tCREDENTIALS: 'include' | 'omit' | 'same-origin';\\n\tENCODE_PATH?: ((path: string) => string) | undefined;\\n\tHEADERS?: Headers | Resolver<Headers> | undefined;\\n\tPASSWORD?: string | Resolver<string> | undefined;\\n\tTOKEN?: string | Resolver<string> | undefined;\\n\tUSERNAME?: string | Resolver<string> | undefined;\\n\tVERSION: string;\\n\tWITH_CREDENTIALS: boolean;\\n\tinterceptors: {\\n\" +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(7, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 46, column: 2 },\n end: { line: 48, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/axios',\n {\n name: 'equals',\n hash: {},\n fn: container.program(9, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 49, column: 2 },\n end: { line: 52, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/fetch',\n {\n name: 'equals',\n hash: {},\n fn: container.program(11, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 53, column: 2 },\n end: { line: 56, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/node',\n {\n name: 'equals',\n hash: {},\n fn: container.program(11, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 57, column: 2 },\n end: { line: 60, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/xhr',\n {\n name: 'equals',\n hash: {},\n fn: container.program(13, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 61, column: 2 },\n end: { line: 64, column: 13 },\n },\n },\n )) != null\n ? stack1\n : '') +\n \"\t};\\n};\\n\\nexport const OpenAPI: OpenAPIConfig = {\\n\tBASE: '\" +\n ((stack1 = alias3(\n alias2(depth0, 'server', {\n start: { line: 69, column: 11 },\n end: { line: 69, column: 17 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\tCREDENTIALS: 'include',\\n\tENCODE_PATH: undefined,\\n\tHEADERS: undefined,\\n\tPASSWORD: undefined,\\n\tTOKEN: undefined,\\n\tUSERNAME: undefined,\\n\tVERSION: '\" +\n ((stack1 = alias3(\n alias2(depth0, 'version', {\n start: { line: 76, column: 14 },\n end: { line: 76, column: 21 },\n }),\n depth0,\n )) != null\n ? stack1\n : '') +\n \"',\\n\tWITH_CREDENTIALS: false,\\n\tinterceptors: {\\n\" +\n ((stack1 = lookupProperty(helpers, 'notEquals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'notEquals',\n hash: {},\n fn: container.program(15, data, 0),\n inverse: container.noop,\n data: data,\n loc: {\n start: { line: 79, column: 2 },\n end: { line: 81, column: 16 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '\t\tresponse: new Interceptors(),\\n\t},\\n};'\n );\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = container.invokePartial(\n lookupProperty(partials, 'angular/request'),\n depth0,\n {\n name: 'angular/request',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '';\n },\n 3: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = container.invokePartial(\n lookupProperty(partials, 'axios/request'),\n depth0,\n {\n name: 'axios/request',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '';\n },\n 5: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/request'),\n depth0,\n {\n name: 'fetch/request',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '';\n },\n 7: function (container, depth0, helpers, partials, data) {\n var stack1,\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/request'),\n depth0,\n {\n name: 'xhr/request',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/angular',\n {\n name: 'equals',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 1, column: 0 }, end: { line: 1, column: 87 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/axios',\n {\n name: 'equals',\n hash: {},\n fn: container.program(3, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 2, column: 0 }, end: { line: 2, column: 83 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/fetch',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 3, column: 0 }, end: { line: 3, column: 83 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/node',\n {\n name: 'equals',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 4, column: 0 }, end: { line: 4, column: 82 } },\n },\n )) != null\n ? stack1\n : '') +\n ((stack1 = lookupProperty(helpers, 'equals').call(\n alias1,\n lookupProperty(\n lookupProperty(\n lookupProperty(lookupProperty(data, 'root'), '$config'),\n 'client',\n ),\n 'name',\n ),\n 'legacy/xhr',\n {\n name: 'equals',\n hash: {},\n fn: container.program(7, data, 0),\n inverse: container.noop,\n data: data,\n loc: { start: { line: 5, column: 0 }, end: { line: 5, column: 79 } },\n },\n )) != null\n ? stack1\n : '')\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getHeaders = async <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): Promise<Headers> => {\\n\tconst [token, username, password, additionalHeaders] = await Promise.all([\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.TOKEN),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.USERNAME),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.PASSWORD),\\n\t\t// @ts-ignore\\n\t\tresolve(options, config.HEADERS),\\n\t]);\\n\\n\tconst headers = Object.entries({\\n\t\tAccept: 'application/json',\\n\t\t...additionalHeaders,\\n\t\t...options.headers,\\n\t})\\n\t\t.filter(([, value]) => value !== undefined && value !== null)\\n\t\t.reduce((headers, [key, value]) => ({\\n\t\t\t...headers,\\n\t\t\t[key]: String(value),\\n\t\t}), {} as Record<string, string>);\\n\\n\tif (isStringWithValue(token)) {\\n\t\theaders['Authorization'] = `Bearer ${token}`;\\n\t}\\n\\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\\n\t\tconst credentials = base64(`${username}:${password}`);\\n\t\theaders['Authorization'] = `Basic ${credentials}`;\\n\t}\\n\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType) {\\n\t\t\theaders['Content-Type'] = options.mediaType;\\n\t\t} else if (isBlob(options.body)) {\\n\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\\n\t\t} else if (isString(options.body)) {\\n\t\t\theaders['Content-Type'] = 'text/plain';\\n\t\t} else if (!isFormData(options.body)) {\\n\t\t\theaders['Content-Type'] = 'application/json';\\n\t\t}\\n\t}\\n\\n\treturn new Headers(headers);\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getRequestBody = (options: ApiRequestOptions): unknown => {\\n\tif (options.body !== undefined) {\\n\t\tif (options.mediaType?.includes('application/json') || options.mediaType?.includes('+json')) {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\\n\t\t\treturn options.body;\\n\t\t} else {\\n\t\t\treturn JSON.stringify(options.body);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const getResponseBody = (xhr: XMLHttpRequest): unknown => {\\n\tif (xhr.status !== 204) {\\n\t\ttry {\\n\t\t\tconst contentType = xhr.getResponseHeader('Content-Type');\\n\t\t\tif (contentType) {\\n\t\t\t\tif (contentType.includes('application/json') || contentType.includes('+json')) {\\n\t\t\t\t\treturn JSON.parse(xhr.responseText);\\n\t\t\t\t} else {\\n\t\t\t\t\treturn xhr.responseText;\\n\t\t\t\t}\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\tconsole.error(error);\\n\t\t}\\n\t}\\n\treturn undefined;\\n};\";\n },\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return 'export const getResponseHeader = (xhr: XMLHttpRequest, responseHeader?: string): string | undefined => {\\n\tif (responseHeader) {\\n\t\tconst content = xhr.getResponseHeader(responseHeader);\\n\t\tif (isString(content)) {\\n\t\t\treturn content;\\n\t\t}\\n\t}\\n\treturn undefined;\\n};';\n },\n useData: true,\n};\n","export default {\n 1: function (container, depth0, helpers, partials, data) {\n return 'ApiResult<T>';\n },\n 3: function (container, depth0, helpers, partials, data) {\n return 'T';\n },\n 5: function (container, depth0, helpers, partials, data) {\n return 'result.body';\n },\n 7: function (container, depth0, helpers, partials, data) {\n return 'result';\n },\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n var stack1,\n alias1 = depth0 != null ? depth0 : container.nullContext || {},\n lookupProperty =\n container.lookupProperty ||\n function (parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined;\n };\n\n return (\n \"import { ApiError } from './ApiError';\\nimport type { ApiRequestOptions } from './ApiRequestOptions';\\nimport type { ApiResult } from './ApiResult';\\nimport { CancelablePromise } from './CancelablePromise';\\nimport type { OnCancel } from './CancelablePromise';\\nimport type { OpenAPIConfig } from './OpenAPI';\\n\\n\" +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isString'),\n depth0,\n {\n name: 'functions/isString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isStringWithValue'),\n depth0,\n {\n name: 'functions/isStringWithValue',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isBlob'),\n depth0,\n {\n name: 'functions/isBlob',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isFormData'),\n depth0,\n {\n name: 'functions/isFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/isSuccess'),\n depth0,\n {\n name: 'functions/isSuccess',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/base64'),\n depth0,\n {\n name: 'functions/base64',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getQueryString'),\n depth0,\n {\n name: 'functions/getQueryString',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getUrl'),\n depth0,\n {\n name: 'functions/getUrl',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/getFormData'),\n depth0,\n {\n name: 'functions/getFormData',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/resolve'),\n depth0,\n {\n name: 'functions/resolve',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'fetch/getHeaders'),\n depth0,\n {\n name: 'fetch/getHeaders',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/getRequestBody'),\n depth0,\n {\n name: 'xhr/getRequestBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/sendRequest'),\n depth0,\n {\n name: 'xhr/sendRequest',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/getResponseHeader'),\n depth0,\n {\n name: 'xhr/getResponseHeader',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'xhr/getResponseBody'),\n depth0,\n {\n name: 'xhr/getResponseBody',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n' +\n ((stack1 = container.invokePartial(\n lookupProperty(partials, 'functions/catchErrorCodes'),\n depth0,\n {\n name: 'functions/catchErrorCodes',\n data: data,\n helpers: helpers,\n partials: partials,\n decorators: container.decorators,\n },\n )) != null\n ? stack1\n : '') +\n '\\n\\n/**\\n * Request method\\n * @param config The OpenAPI configuration object\\n * @param options The request options from the service\\n * @returns CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: {\n start: { line: 60, column: 30 },\n end: { line: 60, column: 108 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '>\\n * @throws ApiError\\n */\\nexport const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): CancelablePromise<' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'response',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(1, data, 0),\n inverse: container.program(3, data, 0),\n data: data,\n loc: {\n start: { line: 63, column: 100 },\n end: { line: 63, column: 178 },\n },\n },\n )) != null\n ? stack1\n : '') +\n '> => {\\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\\n\t\ttry {\\n\t\t\tconst url = getUrl(config, options);\\n\t\t\tconst formData = getFormData(options);\\n\t\t\tconst body = getRequestBody(options);\\n\t\t\tconst headers = await getHeaders(config, options);\\n\\n\t\t\tif (!onCancel.isCancelled) {\\n\t\t\t\tlet response = await sendRequest(config, options, url, body, formData, headers, onCancel);\\n\\n\t\t\t\tfor (const fn of config.interceptors.response._fns) {\\n\t\t\t\t\tresponse = await fn(response);\\n\t\t\t\t}\\n\\n\t\t\t\tconst responseBody = getResponseBody(response);\\n\t\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\\n\\n\t\t\t\tlet transformedBody = responseBody;\\n\t\t\t\tif (options.responseTransformer && isSuccess(response.status)) {\\n\t\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\\n\t\t\t\t}\\n\\n\t\t\t\tconst result: ApiResult = {\\n\t\t\t\t\turl,\\n\t\t\t\t\tok: isSuccess(response.status),\\n\t\t\t\t\tstatus: response.status,\\n\t\t\t\t\tstatusText: response.statusText,\\n\t\t\t\t\tbody: responseHeader ?? transformedBody,\\n\t\t\t\t};\\n\\n\t\t\t\tcatchErrorCodes(options, result);\\n\\n\t\t\t\tresolve(' +\n ((stack1 = lookupProperty(helpers, 'ifServicesResponse').call(\n alias1,\n 'body',\n {\n name: 'ifServicesResponse',\n hash: {},\n fn: container.program(5, data, 0),\n inverse: container.program(7, data, 0),\n data: data,\n loc: {\n start: { line: 96, column: 12 },\n end: { line: 96, column: 90 },\n },\n },\n )) != null\n ? stack1\n : '') +\n ');\\n\t\t\t}\\n\t\t} catch (error) {\\n\t\t\treject(error);\\n\t\t}\\n\t});\\n};'\n );\n },\n usePartial: true,\n useData: true,\n};\n","export default {\n compiler: [8, '>= 4.3.0'],\n main: function (container, depth0, helpers, partials, data) {\n return \"export const sendRequest = async (\\n\tconfig: OpenAPIConfig,\\n\toptions: ApiRequestOptions,\\n\turl: string,\\n\tbody: any,\\n\tformData: FormData | undefined,\\n\theaders: Headers,\\n\tonCancel: OnCancel\\n): Promise<XMLHttpRequest> => {\\n\tlet xhr = new XMLHttpRequest();\\n\txhr.open(options.method, url, true);\\n\txhr.withCredentials = config.WITH_CREDENTIALS;\\n\\n\theaders.forEach((value, key) => {\\n\t\txhr.setRequestHeader(key, value);\\n\t});\\n\\n\treturn new Promise<XMLHttpRequest>(async (resolve, reject) => {\\n\t\txhr.onload = () => resolve(xhr);\\n\t\txhr.onabort = () => reject(new Error('Request aborted'));\\n\t\txhr.onerror = () => reject(new Error('Network error'));\\n\\n\t\tfor (const fn of config.interceptors.request._fns) {\\n\t\t\txhr = await fn(xhr);\\n\t\t}\\n\\n\t\txhr.send(body ?? formData);\\n\\n\t\tonCancel(() => xhr.abort());\\n\t});\\n};\";\n },\n useData: true,\n};\n","import Handlebars from 'handlebars';\n\n// @ts-expect-error\nimport templateClient from '../legacy/handlebars/compiled/client.js';\n// @ts-expect-error\nimport angularGetHeaders from '../legacy/handlebars/compiled/core/angular/getHeaders.js';\n// @ts-expect-error\nimport angularGetRequestBody from '../legacy/handlebars/compiled/core/angular/getRequestBody.js';\n// @ts-expect-error\nimport angularGetResponseBody from '../legacy/handlebars/compiled/core/angular/getResponseBody.js';\n// @ts-expect-error\nimport angularGetResponseHeader from '../legacy/handlebars/compiled/core/angular/getResponseHeader.js';\n// @ts-expect-error\nimport angularRequest from '../legacy/handlebars/compiled/core/angular/request.js';\n// @ts-expect-error\nimport angularSendRequest from '../legacy/handlebars/compiled/core/angular/sendRequest.js';\n// @ts-expect-error\nimport templateCoreApiError from '../legacy/handlebars/compiled/core/ApiError.js';\n// @ts-expect-error\nimport templateCoreApiRequestOptions from '../legacy/handlebars/compiled/core/ApiRequestOptions.js';\n// @ts-expect-error\nimport templateCoreApiResult from '../legacy/handlebars/compiled/core/ApiResult.js';\n// @ts-expect-error\nimport axiosGetHeaders from '../legacy/handlebars/compiled/core/axios/getHeaders.js';\n// @ts-expect-error\nimport axiosGetRequestBody from '../legacy/handlebars/compiled/core/axios/getRequestBody.js';\n// @ts-expect-error\nimport axiosGetResponseBody from '../legacy/handlebars/compiled/core/axios/getResponseBody.js';\n// @ts-expect-error\nimport axiosGetResponseHeader from '../legacy/handlebars/compiled/core/axios/getResponseHeader.js';\n// @ts-expect-error\nimport axiosRequest from '../legacy/handlebars/compiled/core/axios/request.js';\n// @ts-expect-error\nimport axiosSendRequest from '../legacy/handlebars/compiled/core/axios/sendRequest.js';\n// @ts-expect-error\nimport templateCoreBaseHttpRequest from '../legacy/handlebars/compiled/core/BaseHttpRequest.js';\n// @ts-expect-error\nimport templateCancelablePromise from '../legacy/handlebars/compiled/core/CancelablePromise.js';\n// @ts-expect-error\nimport fetchGetHeaders from '../legacy/handlebars/compiled/core/fetch/getHeaders.js';\n// @ts-expect-error\nimport fetchGetRequestBody from '../legacy/handlebars/compiled/core/fetch/getRequestBody.js';\n// @ts-expect-error\nimport fetchGetResponseBody from '../legacy/handlebars/compiled/core/fetch/getResponseBody.js';\n// @ts-expect-error\nimport fetchGetResponseHeader from '../legacy/handlebars/compiled/core/fetch/getResponseHeader.js';\n// @ts-expect-error\nimport fetchRequest from '../legacy/handlebars/compiled/core/fetch/request.js';\n// @ts-expect-error\nimport fetchSendRequest from '../legacy/handlebars/compiled/core/fetch/sendRequest.js';\n// @ts-expect-error\nimport functionBase64 from '../legacy/handlebars/compiled/core/functions/base64.js';\n// @ts-expect-error\nimport functionCatchErrorCodes from '../legacy/handlebars/compiled/core/functions/catchErrorCodes.js';\n// @ts-expect-error\nimport functionGetFormData from '../legacy/handlebars/compiled/core/functions/getFormData.js';\n// @ts-expect-error\nimport functionGetQueryString from '../legacy/handlebars/compiled/core/functions/getQueryString.js';\n// @ts-expect-error\nimport functionGetUrl from '../legacy/handlebars/compiled/core/functions/getUrl.js';\n// @ts-expect-error\nimport functionIsBlob from '../legacy/handlebars/compiled/core/functions/isBlob.js';\n// @ts-expect-error\nimport functionIsFormData from '../legacy/handlebars/compiled/core/functions/isFormData.js';\n// @ts-expect-error\nimport functionIsString from '../legacy/handlebars/compiled/core/functions/isString.js';\n// @ts-expect-error\nimport functionIsStringWithValue from '../legacy/handlebars/compiled/core/functions/isStringWithValue.js';\n// @ts-expect-error\nimport functionIsSuccess from '../legacy/handlebars/compiled/core/functions/isSuccess.js';\n// @ts-expect-error\nimport functionResolve from '../legacy/handlebars/compiled/core/functions/resolve.js';\n// @ts-expect-error\nimport templateCoreHttpRequest from '../legacy/handlebars/compiled/core/HttpRequest.js';\n// @ts-expect-error\nimport templateCoreSettings from '../legacy/handlebars/compiled/core/OpenAPI.js';\n// @ts-expect-error\nimport templateCoreRequest from '../legacy/handlebars/compiled/core/request.js';\n// @ts-expect-error\nimport xhrGetHeaders from '../legacy/handlebars/compiled/core/xhr/getHeaders.js';\n// @ts-expect-error\nimport xhrGetRequestBody from '../legacy/handlebars/compiled/core/xhr/getRequestBody.js';\n// @ts-expect-error\nimport xhrGetResponseBody from '../legacy/handlebars/compiled/core/xhr/getResponseBody.js';\n// @ts-expect-error\nimport xhrGetResponseHeader from '../legacy/handlebars/compiled/core/xhr/getResponseHeader.js';\n// @ts-expect-error\nimport xhrRequest from '../legacy/handlebars/compiled/core/xhr/request.js';\n// @ts-expect-error\nimport xhrSendRequest from '../legacy/handlebars/compiled/core/xhr/sendRequest.js';\nimport { getConfig } from './config';\nimport { stringCase } from './stringCase';\nimport { transformClassName } from './transform';\n\nexport const registerHandlebarHelpers = (): void => {\n Handlebars.registerHelper(\n 'camelCase',\n function (this: unknown, name: string) {\n return stringCase({\n case: 'camelCase',\n value: name,\n });\n },\n );\n\n Handlebars.registerHelper(\n 'equals',\n function (\n this: unknown,\n a: string,\n b: string,\n options: Handlebars.HelperOptions,\n ) {\n return a === b ? options.fn(this) : options.inverse(this);\n },\n );\n\n Handlebars.registerHelper(\n 'ifServicesResponse',\n function (this: unknown, value: string, options: Handlebars.HelperOptions) {\n return getConfig().plugins['@hey-api/sdk']?.config.response === value\n ? options.fn(this)\n : options.inverse(this);\n },\n );\n\n Handlebars.registerHelper('ifdef', function (this: unknown, ...args): string {\n const options = args.pop();\n if (!args.every((value) => !value)) {\n return options.fn(this);\n }\n return options.inverse(this);\n });\n\n Handlebars.registerHelper(\n 'notEquals',\n function (\n this: unknown,\n a: string,\n b: string,\n options: Handlebars.HelperOptions,\n ) {\n return a !== b ? options.fn(this) : options.inverse(this);\n },\n );\n\n Handlebars.registerHelper(\n 'transformServiceName',\n function (this: unknown, name: string) {\n return transformClassName({\n config: getConfig(),\n name,\n });\n },\n );\n};\n\nexport interface Templates {\n client: Handlebars.TemplateDelegate;\n core: {\n apiError: Handlebars.TemplateDelegate;\n apiRequestOptions: Handlebars.TemplateDelegate;\n apiResult: Handlebars.TemplateDelegate;\n baseHttpRequest: Handlebars.TemplateDelegate;\n cancelablePromise: Handlebars.TemplateDelegate;\n httpRequest: Handlebars.TemplateDelegate;\n request: Handlebars.TemplateDelegate;\n settings: Handlebars.TemplateDelegate;\n };\n}\n\n/**\n * Read all the Handlebar templates that we need and return a wrapper object\n * so we can easily access the templates in our generator/write functions.\n */\nexport const registerHandlebarTemplates = (): Templates => {\n registerHandlebarHelpers();\n\n // Main templates (entry points for the files we write to disk)\n const templates: Templates = {\n client: Handlebars.template(templateClient),\n core: {\n apiError: Handlebars.template(templateCoreApiError),\n apiRequestOptions: Handlebars.template(templateCoreApiRequestOptions),\n apiResult: Handlebars.template(templateCoreApiResult),\n baseHttpRequest: Handlebars.template(templateCoreBaseHttpRequest),\n cancelablePromise: Handlebars.template(templateCancelablePromise),\n httpRequest: Handlebars.template(templateCoreHttpRequest),\n request: Handlebars.template(templateCoreRequest),\n settings: Handlebars.template(templateCoreSettings),\n },\n };\n\n // Generic functions used in 'request' file @see src/legacy/handlebars/templates/core/request.hbs for more info\n Handlebars.registerPartial(\n 'functions/base64',\n Handlebars.template(functionBase64),\n );\n Handlebars.registerPartial(\n 'functions/catchErrorCodes',\n Handlebars.template(functionCatchErrorCodes),\n );\n Handlebars.registerPartial(\n 'functions/getFormData',\n Handlebars.template(functionGetFormData),\n );\n Handlebars.registerPartial(\n 'functions/getQueryString',\n Handlebars.template(functionGetQueryString),\n );\n Handlebars.registerPartial(\n 'functions/getUrl',\n Handlebars.template(functionGetUrl),\n );\n Handlebars.registerPartial(\n 'functions/isBlob',\n Handlebars.template(functionIsBlob),\n );\n Handlebars.registerPartial(\n 'functions/isFormData',\n Handlebars.template(functionIsFormData),\n );\n Handlebars.registerPartial(\n 'functions/isString',\n Handlebars.template(functionIsString),\n );\n Handlebars.registerPartial(\n 'functions/isStringWithValue',\n Handlebars.template(functionIsStringWithValue),\n );\n Handlebars.registerPartial(\n 'functions/isSuccess',\n Handlebars.template(functionIsSuccess),\n );\n Handlebars.registerPartial(\n 'functions/resolve',\n Handlebars.template(functionResolve),\n );\n\n // Specific files for the fetch client implementation\n Handlebars.registerPartial(\n 'fetch/getHeaders',\n Handlebars.template(fetchGetHeaders),\n );\n Handlebars.registerPartial(\n 'fetch/getRequestBody',\n Handlebars.template(fetchGetRequestBody),\n );\n Handlebars.registerPartial(\n 'fetch/getResponseBody',\n Handlebars.template(fetchGetResponseBody),\n );\n Handlebars.registerPartial(\n 'fetch/getResponseHeader',\n Handlebars.template(fetchGetResponseHeader),\n );\n Handlebars.registerPartial(\n 'fetch/request',\n Handlebars.template(fetchRequest),\n );\n Handlebars.registerPartial(\n 'fetch/sendRequest',\n Handlebars.template(fetchSendRequest),\n );\n\n // Specific files for the xhr client implementation\n Handlebars.registerPartial(\n 'xhr/getHeaders',\n Handlebars.template(xhrGetHeaders),\n );\n Handlebars.registerPartial(\n 'xhr/getRequestBody',\n Handlebars.template(xhrGetRequestBody),\n );\n Handlebars.registerPartial(\n 'xhr/getResponseBody',\n Handlebars.template(xhrGetResponseBody),\n );\n Handlebars.registerPartial(\n 'xhr/getResponseHeader',\n Handlebars.template(xhrGetResponseHeader),\n );\n Handlebars.registerPartial('xhr/request', Handlebars.template(xhrRequest));\n Handlebars.registerPartial(\n 'xhr/sendRequest',\n Handlebars.template(xhrSendRequest),\n );\n\n // Specific files for the axios client implementation\n Handlebars.registerPartial(\n 'axios/getHeaders',\n Handlebars.template(axiosGetHeaders),\n );\n Handlebars.registerPartial(\n 'axios/getRequestBody',\n Handlebars.template(axiosGetRequestBody),\n );\n Handlebars.registerPartial(\n 'axios/getResponseBody',\n Handlebars.template(axiosGetResponseBody),\n );\n Handlebars.registerPartial(\n 'axios/getResponseHeader',\n Handlebars.template(axiosGetResponseHeader),\n );\n Handlebars.registerPartial(\n 'axios/request',\n Handlebars.template(axiosRequest),\n );\n Handlebars.registerPartial(\n 'axios/sendRequest',\n Handlebars.template(axiosSendRequest),\n );\n\n // Specific files for the angular client implementation\n Handlebars.registerPartial(\n 'angular/getHeaders',\n Handlebars.template(angularGetHeaders),\n );\n Handlebars.registerPartial(\n 'angular/getRequestBody',\n Handlebars.template(angularGetRequestBody),\n );\n Handlebars.registerPartial(\n 'angular/getResponseBody',\n Handlebars.template(angularGetResponseBody),\n );\n Handlebars.registerPartial(\n 'angular/getResponseHeader',\n Handlebars.template(angularGetResponseHeader),\n );\n Handlebars.registerPartial(\n 'angular/request',\n Handlebars.template(angularRequest),\n );\n Handlebars.registerPartial(\n 'angular/sendRequest',\n Handlebars.template(angularSendRequest),\n );\n\n return templates;\n};\n","import colors from 'ansi-colors';\n\ninterface LoggerEvent {\n end?: PerformanceMark;\n events: Array<LoggerEvent>;\n id: string; // unique internal key\n name: string;\n start: PerformanceMark;\n}\n\ninterface Severity {\n color: colors.StyleFunction;\n type: 'duration' | 'percentage';\n}\n\ninterface StoredEventResult {\n position: ReadonlyArray<number>;\n}\n\nlet loggerCounter = 0;\nconst nameToId = (name: string) => `${name}-${loggerCounter++}`;\nconst idEnd = (id: string) => `${id}-end`;\nconst idLength = (id: string) => `${id}-length`;\nconst idStart = (id: string) => `${id}-start`;\n\nconst getSeverity = (\n duration: number,\n percentage: number,\n): Severity | undefined => {\n if (duration > 200) {\n return {\n color: colors.red,\n type: 'duration',\n };\n }\n if (percentage > 30) {\n return {\n color: colors.red,\n type: 'percentage',\n };\n }\n if (duration > 50) {\n return {\n color: colors.yellow,\n type: 'duration',\n };\n }\n if (percentage > 10) {\n return {\n color: colors.yellow,\n type: 'percentage',\n };\n }\n return;\n};\n\nexport class Logger {\n private events: Array<LoggerEvent> = [];\n\n private end(result: StoredEventResult): void {\n let event: LoggerEvent | undefined;\n let events = this.events;\n for (const index of result.position) {\n event = events[index];\n if (event?.events) {\n events = event.events;\n }\n }\n if (event && !event.end) {\n event.end = performance.mark(idEnd(event.id));\n }\n }\n\n report(print: boolean = true): PerformanceMeasure | undefined {\n const firstEvent = this.events[0];\n if (!firstEvent) return;\n const lastEvent = this.events[this.events.length - 1]!;\n const name = 'root';\n const id = nameToId(name);\n const measure = performance.measure(\n idLength(id),\n idStart(firstEvent.id),\n idEnd(lastEvent.id),\n );\n if (print) {\n this.reportEvent({\n end: lastEvent.end,\n events: this.events,\n id,\n indent: 0,\n measure,\n name,\n start: firstEvent!.start,\n });\n }\n return measure;\n }\n\n private reportEvent({\n indent,\n ...parent\n }: LoggerEvent & {\n indent: number;\n measure: PerformanceMeasure;\n }): void {\n const color = !indent ? colors.cyan : colors.gray;\n const lastIndex = parent.events.length - 1;\n\n parent.events.forEach((event, index) => {\n const measure = performance.measure(\n idLength(event.id),\n idStart(event.id),\n idEnd(event.id),\n );\n const duration = Math.ceil(measure.duration * 100) / 100;\n const percentage =\n Math.ceil((measure.duration / parent.measure.duration) * 100 * 100) /\n 100;\n const severity = indent ? getSeverity(duration, percentage) : undefined;\n\n let durationLabel = `${duration.toFixed(2).padStart(8)}ms`;\n if (severity?.type === 'duration') {\n durationLabel = severity.color(durationLabel);\n }\n\n const branch = index === lastIndex ? '└─ ' : '├─ ';\n const prefix = !indent ? '' : '│ '.repeat(indent - 1) + branch;\n const maxLength = 38 - prefix.length;\n\n const percentageBranch = !indent ? '' : '↳ ';\n const percentagePrefix = indent\n ? ' '.repeat(indent - 1) + percentageBranch\n : '';\n let percentageLabel = `${percentagePrefix}${percentage.toFixed(2)}%`;\n if (severity?.type === 'percentage') {\n percentageLabel = severity.color(percentageLabel);\n }\n const jobPrefix = colors.gray('[root] ');\n console.log(\n `${jobPrefix}${colors.gray(prefix)}${color(\n `${event.name.padEnd(maxLength)} ${durationLabel} (${percentageLabel})`,\n )}`,\n );\n this.reportEvent({ ...event, indent: indent + 1, measure });\n });\n }\n\n private start(id: string): PerformanceMark {\n return performance.mark(idStart(id));\n }\n\n private storeEvent({\n result,\n ...event\n }: Pick<LoggerEvent, 'events' | 'id' | 'name' | 'start'> & {\n result: StoredEventResult;\n }): void {\n const lastEventIndex = event.events.length - 1;\n const lastEvent = event.events[lastEventIndex];\n if (lastEvent && !lastEvent.end) {\n result.position = [...result.position, lastEventIndex];\n this.storeEvent({ ...event, events: lastEvent.events, result });\n return;\n }\n const length = event.events.push({ ...event, events: [] });\n result.position = [...result.position, length - 1];\n }\n\n timeEvent(name: string) {\n const id = nameToId(name);\n const start = this.start(id);\n const event: LoggerEvent = {\n events: this.events,\n id,\n name,\n start,\n };\n const result: StoredEventResult = {\n position: [],\n };\n this.storeEvent({ ...event, result });\n return {\n mark: start,\n timeEnd: () => this.end(result),\n };\n }\n}\n","import { stringCase } from './stringCase';\n\n// publicly exposed utils\nexport const utils = {\n stringCase,\n};\n","// eslint-disable-next-line @typescript-eslint/triple-slash-reference\n/// <reference path=\"./overrides.d.ts\" />\n\nimport colors from 'ansi-colors';\n// @ts-expect-error\nimport colorSupport from 'color-support';\n\nimport { checkNodeVersion } from './config/engine';\nimport type { Configs } from './config/init';\nimport { initConfigs } from './config/init';\nimport { getLogs } from './config/logs';\nimport { createClient as pCreateClient } from './createClient';\nimport {\n ConfigValidationError,\n JobError,\n logCrashReport,\n openGitHubIssueWithCrashReport,\n printCrashReport,\n shouldReportCrash,\n} from './error';\nimport type { IR } from './ir/types';\nimport type { Client } from './types/client';\nimport type { UserConfig } from './types/config';\nimport type { LazyOrAsync, MaybeArray } from './types/utils';\nimport { printCliIntro } from './utils/cli';\nimport { registerHandlebarTemplates } from './utils/handlebars';\nimport { Logger } from './utils/logger';\n\ncolors.enabled = colorSupport().hasBasic;\n\n/**\n * Generate a client from the provided configuration.\n *\n * @param userConfig User provided {@link UserConfig} configuration(s).\n */\nexport const createClient = async (\n userConfig?: LazyOrAsync<MaybeArray<UserConfig>>,\n logger = new Logger(),\n): Promise<ReadonlyArray<Client | IR.Context>> => {\n const resolvedConfig =\n typeof userConfig === 'function' ? await userConfig() : userConfig;\n const userConfigs = resolvedConfig\n ? resolvedConfig instanceof Array\n ? resolvedConfig\n : [resolvedConfig]\n : [];\n\n let rawLogs = userConfigs.find(\n (config) => getLogs(config).level !== 'silent',\n )?.logs;\n if (typeof rawLogs === 'string') {\n rawLogs = getLogs({ logs: rawLogs });\n }\n\n let configs: Configs | undefined;\n\n try {\n checkNodeVersion();\n\n const eventCreateClient = logger.timeEvent('createClient');\n\n const eventConfig = logger.timeEvent('config');\n configs = await initConfigs({ logger, userConfigs });\n const printIntro = configs.results.some(\n (result) => result.config.logs.level !== 'silent',\n );\n if (printIntro) {\n printCliIntro();\n }\n eventConfig.timeEnd();\n\n const allConfigErrors = configs.results.flatMap((result) =>\n result.errors.map((error) => ({ error, jobIndex: result.jobIndex })),\n );\n if (allConfigErrors.length) {\n throw new ConfigValidationError(allConfigErrors);\n }\n\n const eventHandlebars = logger.timeEvent('handlebars');\n const templates = registerHandlebarTemplates();\n eventHandlebars.timeEnd();\n\n const clients = await Promise.all(\n configs.results.map(async (result) => {\n try {\n return await pCreateClient({\n config: result.config,\n dependencies: configs!.dependencies,\n jobIndex: result.jobIndex,\n logger,\n templates,\n });\n } catch (error) {\n throw new JobError('', {\n error,\n jobIndex: result.jobIndex,\n });\n }\n }),\n );\n const result = clients.filter((client) => Boolean(client)) as ReadonlyArray<\n Client | IR.Context\n >;\n\n eventCreateClient.timeEnd();\n\n const printLogs = configs.results.some(\n (result) => result.config.logs.level === 'debug',\n );\n logger.report(printLogs);\n\n return result;\n } catch (error) {\n const results = configs?.results ?? [];\n\n const logs =\n results.find((result) => result.config.logs.level !== 'silent')?.config\n .logs ??\n results[0]?.config.logs ??\n rawLogs;\n const dryRun =\n results.some((result) => result.config.dryRun) ??\n userConfigs.some((config) => config.dryRun) ??\n false;\n const logPath =\n logs?.file && !dryRun\n ? logCrashReport(error, logs.path ?? '')\n : undefined;\n if (!logs || logs.level !== 'silent') {\n printCrashReport({ error, logPath });\n const isInteractive =\n results.some((result) => result.config.interactive) ??\n userConfigs.some((config) => config.interactive) ??\n false;\n if (await shouldReportCrash({ error, isInteractive })) {\n await openGitHubIssueWithCrashReport(error);\n }\n }\n\n throw error;\n }\n};\n\n/**\n * Type helper for openapi-ts.config.ts, returns {@link MaybeArray<UserConfig>} object(s)\n */\nexport const defineConfig = async <T extends MaybeArray<UserConfig>>(\n config: LazyOrAsync<T>,\n): Promise<T> => (typeof config === 'function' ? await config() : config);\n\nexport { defaultPaginationKeywords } from './config/parser';\nexport { defaultPlugins } from './config/plugins';\nexport type { IR } from './ir/types';\nexport type {\n OpenApi,\n OpenApiMetaObject,\n OpenApiOperationObject,\n OpenApiParameterObject,\n OpenApiRequestBodyObject,\n OpenApiResponseObject,\n OpenApiSchemaObject,\n} from './openApi/types';\nexport type { AngularClient } from './plugins/@hey-api/client-angular';\nexport type { AxiosClient } from './plugins/@hey-api/client-axios';\nexport {\n clientDefaultConfig,\n clientDefaultMeta,\n} from './plugins/@hey-api/client-core/config';\nexport { clientPluginHandler } from './plugins/@hey-api/client-core/plugin';\nexport type { Client } from './plugins/@hey-api/client-core/types';\nexport type { FetchClient } from './plugins/@hey-api/client-fetch';\nexport type { NextClient } from './plugins/@hey-api/client-next';\nexport type { NuxtClient } from './plugins/@hey-api/client-nuxt';\nexport type { OfetchClient } from './plugins/@hey-api/client-ofetch';\nexport type { ExpressionTransformer } from './plugins/@hey-api/transformers/expressions';\nexport type { TypeTransformer } from './plugins/@hey-api/transformers/types';\nexport { definePluginConfig } from './plugins/shared/utils/config';\nexport type { DefinePlugin, Plugin } from './plugins/types';\nexport { compiler, tsc } from './tsc';\nexport type { UserConfig } from './types/config';\nexport type { LegacyIR } from './types/types';\nexport { utils } from './utils/exports';\nexport { Logger } from './utils/logger';\n"],"x_google_ignoreList":[8,9,10,11,12,13,14,15,16,17,18,19,20],"mappings":"uhBAEA,MAAa,MAAyB,CACpC,GAAI,OAAO,IAAQ,IAAa,CAC9B,GAAM,CAAC,GAAS,IAAI,QAAQ,MAAM,IAAI,CAAC,IAAI,OAAO,CAClD,GAAI,EAAS,EACX,MAAM,IAAI,EACR,2BAA2B,IAAI,QAAQ,kCACxC,SAEM,OAAO,QAAY,KAAe,QAAQ,UAAU,KAAM,CACnE,GAAM,CAAC,GAAS,QAAQ,SAAS,KAAK,MAAM,IAAI,CAAC,IAAI,OAAO,CAC5D,GAAI,EAAS,GACX,MAAM,IAAI,EACR,4BAA4B,QAAQ,SAAS,KAAK,gCACnD,GCTM,EAAsB,GAA0C,CAC3E,OAAQ,EAAR,CACE,IAAK,iBACH,MAAO,qBACT,IAAK,eACH,MAAO,mBACT,IAAK,eACH,MAAO,mBACT,IAAK,cACH,MAAO,kBACT,IAAK,aACH,MAAO,iBACT,QACE,MAAO,KCEA,EAA4B,MACvC,EACA,EACA,EACA,IACG,CACH,IAAM,EAAS,GA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,EAAU,cACnB,EAAe,EAAU,qBAAqB,CAC9C,EACA,CACE,KAAM,qBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,8BAA8B,CACvD,EACA,CACE,KAAM,8BACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,uBAAuB,CAChD,EACA,CACE,KAAM,uBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,2BAA2B,CACpD,EACA,CACE,KAAM,2BACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,wBAAwB,CACjD,EACA,CACE,KAAM,wBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,oBAAoB,CAC7C,EACA,CACE,KAAM,oBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,qBAAqB,CAC9C,EACA,CACE,KAAM,qBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,yBAAyB,CAClD,EACA,CACE,KAAM,yBACA,OACG,UACC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,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,uBAAuB,CAChD,EACA,CACE,KAAM,uBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,sBAAsB,CAC/C,EACA,CACE,KAAM,sBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,2BAA2B,CACpD,EACA,CACE,KAAM,2BACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,wBAAwB,CACjD,EACA,CACE,KAAM,wBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,oBAAoB,CAC7C,EACA,CACE,KAAM,oBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,uBAAuB,CAChD,EACA,CACE,KAAM,uBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,oBAAoB,CAC7C,EACA,CACE,KAAM,oBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB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,CAAE,CACrE,CACF,EAEG,IACJ;;;;;;;GACW,EAAU,cACnB,EAAe,EAAU,qBAAqB,CAC9C,EACA,CACE,KAAM,qBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,8BAA8B,CACvD,EACA,CACE,KAAM,8BACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,uBAAuB,CAChD,EACA,CACE,KAAM,uBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,2BAA2B,CACpD,EACA,CACE,KAAM,2BACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,wBAAwB,CACjD,EACA,CACE,KAAM,wBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,oBAAoB,CAC7C,EACA,CACE,KAAM,oBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,uBA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C/C,EACA,CACE,KAAM,sBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,2BAA2B,CACpD,EACA,CACE,KAAM,2BACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,wBAAwB,CACjD,EACA,CACE,KAAM,wBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,oBAAoB,CAC7C,EACA,CACE,KAAM,oBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,mBAAmB,CAC5C,EACA,CACE,KAAM,mBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,qBAAqB,CAC9C,EACA,CACE,KAAM,qBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,kBAAkB,CAC3C,EACA,CACE,KAAM,kBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,wBAAwB,CACjD,EACA,CACE,KAAM,wBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG,IACJ;;GACW,EAAU,cACnB,EAAe,EAAU,sBAAsB,CAC/C,EACA,CACE,KAAM,sBACA,OACG,UACC,WACV,WAAY,EAAU,WACvB,CACF,EAEG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EAAW,SAASC,GAAwB,CAC7C,CACD,EAAW,gBACT,wBACA,EAAW,SAASC,GAAoB,CACzC,CACD,EAAW,gBACT,2BACA,EAAW,SAASC,GAAuB,CAC5C,CACD,EAAW,gBACT,mBACA,EAAW,SAASC,GAAe,CACpC,CACD,EAAW,gBACT,mBACA,EAAW,SAASC,GAAe,CACpC,CACD,EAAW,gBACT,uBACA,EAAW,SAASC,GAAmB,CACxC,CACD,EAAW,gBACT,qBACA,EAAW,SAASC,GAAiB,CACtC,CACD,EAAW,gBACT,8BACA,EAAW,SAASC,GAA0B,CAC/C,CACD,EAAW,gBACT,sBACA,EAAW,SAASC,GAAkB,CACvC,CACD,EAAW,gBACT,oBACA,EAAW,SAASC,GAAgB,CACrC,CAGD,EAAW,gBACT,mBACA,EAAW,SAASC,GAAgB,CACrC,CACD,EAAW,gBACT,uBACA,EAAW,SAASC,GAAoB,CACzC,CACD,EAAW,gBACT,wBACA,EAAW,SAASC,GAAqB,CAC1C,CACD,EAAW,gBACT,0BACA,EAAW,SAASC,GAAuB,CAC5C,CACD,EAAW,gBACT,gBACA,EAAW,SAASC,GAAa,CAClC,CACD,EAAW,gBACT,oBACA,EAAW,SAASC,GAAiB,CACtC,CAGD,EAAW,gBACT,iBACA,EAAW,SAASC,GAAc,CACnC,CACD,EAAW,gBACT,qBACA,EAAW,SAASC,GAAkB,CACvC,CACD,EAAW,gBACT,sBACA,EAAW,SAASC,GAAmB,CACxC,CACD,EAAW,gBACT,wBACA,EAAW,SAASC,GAAqB,CAC1C,CACD,EAAW,gBAAgB,cAAe,EAAW,SAASC,GAAW,CAAC,CAC1E,EAAW,gBACT,kBACA,EAAW,SAASC,GAAe,CACpC,CAGD,EAAW,gBACT,mBACA,EAAW,SAASC,GAAgB,CACrC,CACD,EAAW,gBACT,uBACA,EAAW,SAASC,GAAoB,CACzC,CACD,EAAW,gBACT,wBACA,EAAW,SAASC,GAAqB,CAC1C,CACD,EAAW,gBACT,0BACA,EAAW,SAASC,GAAuB,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