@hey-api/openapi-ts 0.86.7 → 0.86.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"src-uVOc7K-o.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/generate.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';\n\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';\n\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';\n\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 !config.dryRun\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';\n\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 (\n 'bundle' in client.config &&\n client.config.bundle &&\n !context.config.dryRun\n ) {\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 { OpenApi } from '~/openApi/types';\n\nimport type { Patch } from '../../../types/parser';\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';\n\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 { buildGraph } from '~/openApi/shared/utils/graph';\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 if (context) {\n context.graph = buildGraph(context.ir, logger).graph;\n } else {\n // fallback to legacy parser\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';\n// @ts-expect-error\nimport angularGetHeaders from '~/legacy/handlebars/compiled/core/angular/getHeaders';\n// @ts-expect-error\nimport angularGetRequestBody from '~/legacy/handlebars/compiled/core/angular/getRequestBody';\n// @ts-expect-error\nimport angularGetResponseBody from '~/legacy/handlebars/compiled/core/angular/getResponseBody';\n// @ts-expect-error\nimport angularGetResponseHeader from '~/legacy/handlebars/compiled/core/angular/getResponseHeader';\n// @ts-expect-error\nimport angularRequest from '~/legacy/handlebars/compiled/core/angular/request';\n// @ts-expect-error\nimport angularSendRequest from '~/legacy/handlebars/compiled/core/angular/sendRequest';\n// @ts-expect-error\nimport templateCoreApiError from '~/legacy/handlebars/compiled/core/ApiError';\n// @ts-expect-error\nimport templateCoreApiRequestOptions from '~/legacy/handlebars/compiled/core/ApiRequestOptions';\n// @ts-expect-error\nimport templateCoreApiResult from '~/legacy/handlebars/compiled/core/ApiResult';\n// @ts-expect-error\nimport axiosGetHeaders from '~/legacy/handlebars/compiled/core/axios/getHeaders';\n// @ts-expect-error\nimport axiosGetRequestBody from '~/legacy/handlebars/compiled/core/axios/getRequestBody';\n// @ts-expect-error\nimport axiosGetResponseBody from '~/legacy/handlebars/compiled/core/axios/getResponseBody';\n// @ts-expect-error\nimport axiosGetResponseHeader from '~/legacy/handlebars/compiled/core/axios/getResponseHeader';\n// @ts-expect-error\nimport axiosRequest from '~/legacy/handlebars/compiled/core/axios/request';\n// @ts-expect-error\nimport axiosSendRequest from '~/legacy/handlebars/compiled/core/axios/sendRequest';\n// @ts-expect-error\nimport templateCoreBaseHttpRequest from '~/legacy/handlebars/compiled/core/BaseHttpRequest';\n// @ts-expect-error\nimport templateCancelablePromise from '~/legacy/handlebars/compiled/core/CancelablePromise';\n// @ts-expect-error\nimport fetchGetHeaders from '~/legacy/handlebars/compiled/core/fetch/getHeaders';\n// @ts-expect-error\nimport fetchGetRequestBody from '~/legacy/handlebars/compiled/core/fetch/getRequestBody';\n// @ts-expect-error\nimport fetchGetResponseBody from '~/legacy/handlebars/compiled/core/fetch/getResponseBody';\n// @ts-expect-error\nimport fetchGetResponseHeader from '~/legacy/handlebars/compiled/core/fetch/getResponseHeader';\n// @ts-expect-error\nimport fetchRequest from '~/legacy/handlebars/compiled/core/fetch/request';\n// @ts-expect-error\nimport fetchSendRequest from '~/legacy/handlebars/compiled/core/fetch/sendRequest';\n// @ts-expect-error\nimport functionBase64 from '~/legacy/handlebars/compiled/core/functions/base64';\n// @ts-expect-error\nimport functionCatchErrorCodes from '~/legacy/handlebars/compiled/core/functions/catchErrorCodes';\n// @ts-expect-error\nimport functionGetFormData from '~/legacy/handlebars/compiled/core/functions/getFormData';\n// @ts-expect-error\nimport functionGetQueryString from '~/legacy/handlebars/compiled/core/functions/getQueryString';\n// @ts-expect-error\nimport functionGetUrl from '~/legacy/handlebars/compiled/core/functions/getUrl';\n// @ts-expect-error\nimport functionIsBlob from '~/legacy/handlebars/compiled/core/functions/isBlob';\n// @ts-expect-error\nimport functionIsFormData from '~/legacy/handlebars/compiled/core/functions/isFormData';\n// @ts-expect-error\nimport functionIsString from '~/legacy/handlebars/compiled/core/functions/isString';\n// @ts-expect-error\nimport functionIsStringWithValue from '~/legacy/handlebars/compiled/core/functions/isStringWithValue';\n// @ts-expect-error\nimport functionIsSuccess from '~/legacy/handlebars/compiled/core/functions/isSuccess';\n// @ts-expect-error\nimport functionResolve from '~/legacy/handlebars/compiled/core/functions/resolve';\n// @ts-expect-error\nimport templateCoreHttpRequest from '~/legacy/handlebars/compiled/core/HttpRequest';\n// @ts-expect-error\nimport templateCoreSettings from '~/legacy/handlebars/compiled/core/OpenAPI';\n// @ts-expect-error\nimport templateCoreRequest from '~/legacy/handlebars/compiled/core/request';\n// @ts-expect-error\nimport xhrGetHeaders from '~/legacy/handlebars/compiled/core/xhr/getHeaders';\n// @ts-expect-error\nimport xhrGetRequestBody from '~/legacy/handlebars/compiled/core/xhr/getRequestBody';\n// @ts-expect-error\nimport xhrGetResponseBody from '~/legacy/handlebars/compiled/core/xhr/getResponseBody';\n// @ts-expect-error\nimport xhrGetResponseHeader from '~/legacy/handlebars/compiled/core/xhr/getResponseHeader';\n// @ts-expect-error\nimport xhrRequest from '~/legacy/handlebars/compiled/core/xhr/request';\n// @ts-expect-error\nimport xhrSendRequest from '~/legacy/handlebars/compiled/core/xhr/sendRequest';\n\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 { 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\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","import { stringCase } from './stringCase';\n\n// publicly exposed utils\nexport const utils = {\n stringCase,\n};\n","// OVERRIDES\n// hard-coded here because build process doesn't pick up overrides from separate files\nimport '@hey-api/codegen-core';\n\ndeclare module '@hey-api/codegen-core' {\n interface ProjectRenderMeta {\n /**\n * If specified, this will be the file extension used when importing\n * other modules. By default, we don't add a file extension and let the\n * runtime resolve it.\n *\n * @default null\n */\n importFileExtension?: (string & {}) | null;\n }\n\n interface SymbolMeta {\n /**\n * Path to the resource this symbol represents.\n */\n path?: ReadonlyArray<string | number>;\n /**\n * Name of the plugin that registered this symbol.\n */\n pluginName?: string;\n /**\n * Tags associated with this symbol.\n */\n tags?: Set<string>;\n }\n}\n// END OVERRIDES\n\nimport colors from 'ansi-colors';\n// @ts-expect-error\nimport colorSupport from 'color-support';\n\nimport type { UserConfig } from '~/types/config';\nimport type { LazyOrAsync, MaybeArray } from '~/types/utils';\n\ncolors.enabled = colorSupport().hasBasic;\n\nexport { createClient } from './generate';\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 { DefinePlugin, Plugin } from './plugins';\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 { compiler, tsc } from './tsc';\nexport type { Operation } from './types/client';\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":"ogBAEA,MAAa,OAAyB,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,KCGA,GAA4B,MACvC,EACA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AAe,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,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,EA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BAAuB,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,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,C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oB,CACjD,SAAU,EAAW,SAASC,GAAqB,CACpD,CACF,CAqJD,OAlJA,EAAW,gBACT,mBACA,EAAW,SAASC,GAAe,CACpC,CACD,EAAW,gBACT,4BACA,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,gBAC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GAAG,CACtC,IAAA,GAYN,MAXI,CAAC,GAAQ,EAAK,QAAU,YAC1B,EAAiB,CAAE,QAAO,UAAS,CAAC,CAKhC,MAAM,EAAkB,CAAE,QAAO,cAHnC,EAAQ,KAAM,GAAW,EAAO,OAAO,YAAY,EACnD,EAAY,KAAM,GAAW,EAAO,YAAY,EAChD,GACkD,CAAC,EACnD,MAAM,EAA+B,EAAM,EAIzC,IC/HG,GAAQ,CACnB,aACD,CCmCD,EAAO,QAAU,IAAc,CAAC,SAOhC,MAAa,GAAe,KAC1B,IACgB,OAAO,GAAW,WAAa,MAAM,GAAQ,CAAG"}
1
+ {"version":3,"file":"src-Be7tT6MZ.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/generate.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';\n\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';\n\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';\n\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 !config.dryRun\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';\n\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 (\n 'bundle' in client.config &&\n client.config.bundle &&\n !context.config.dryRun\n ) {\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 { OpenApi } from '~/openApi/types';\n\nimport type { Patch } from '../../../types/parser';\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';\n\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 { buildGraph } from '~/openApi/shared/utils/graph';\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 if (context) {\n context.graph = buildGraph(context.ir, logger).graph;\n } else {\n // fallback to legacy parser\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';\n// @ts-expect-error\nimport angularGetHeaders from '~/legacy/handlebars/compiled/core/angular/getHeaders';\n// @ts-expect-error\nimport angularGetRequestBody from '~/legacy/handlebars/compiled/core/angular/getRequestBody';\n// @ts-expect-error\nimport angularGetResponseBody from '~/legacy/handlebars/compiled/core/angular/getResponseBody';\n// @ts-expect-error\nimport angularGetResponseHeader from '~/legacy/handlebars/compiled/core/angular/getResponseHeader';\n// @ts-expect-error\nimport angularRequest from '~/legacy/handlebars/compiled/core/angular/request';\n// @ts-expect-error\nimport angularSendRequest from '~/legacy/handlebars/compiled/core/angular/sendRequest';\n// @ts-expect-error\nimport templateCoreApiError from '~/legacy/handlebars/compiled/core/ApiError';\n// @ts-expect-error\nimport templateCoreApiRequestOptions from '~/legacy/handlebars/compiled/core/ApiRequestOptions';\n// @ts-expect-error\nimport templateCoreApiResult from '~/legacy/handlebars/compiled/core/ApiResult';\n// @ts-expect-error\nimport axiosGetHeaders from '~/legacy/handlebars/compiled/core/axios/getHeaders';\n// @ts-expect-error\nimport axiosGetRequestBody from '~/legacy/handlebars/compiled/core/axios/getRequestBody';\n// @ts-expect-error\nimport axiosGetResponseBody from '~/legacy/handlebars/compiled/core/axios/getResponseBody';\n// @ts-expect-error\nimport axiosGetResponseHeader from '~/legacy/handlebars/compiled/core/axios/getResponseHeader';\n// @ts-expect-error\nimport axiosRequest from '~/legacy/handlebars/compiled/core/axios/request';\n// @ts-expect-error\nimport axiosSendRequest from '~/legacy/handlebars/compiled/core/axios/sendRequest';\n// @ts-expect-error\nimport templateCoreBaseHttpRequest from '~/legacy/handlebars/compiled/core/BaseHttpRequest';\n// @ts-expect-error\nimport templateCancelablePromise from '~/legacy/handlebars/compiled/core/CancelablePromise';\n// @ts-expect-error\nimport fetchGetHeaders from '~/legacy/handlebars/compiled/core/fetch/getHeaders';\n// @ts-expect-error\nimport fetchGetRequestBody from '~/legacy/handlebars/compiled/core/fetch/getRequestBody';\n// @ts-expect-error\nimport fetchGetResponseBody from '~/legacy/handlebars/compiled/core/fetch/getResponseBody';\n// @ts-expect-error\nimport fetchGetResponseHeader from '~/legacy/handlebars/compiled/core/fetch/getResponseHeader';\n// @ts-expect-error\nimport fetchRequest from '~/legacy/handlebars/compiled/core/fetch/request';\n// @ts-expect-error\nimport fetchSendRequest from '~/legacy/handlebars/compiled/core/fetch/sendRequest';\n// @ts-expect-error\nimport functionBase64 from '~/legacy/handlebars/compiled/core/functions/base64';\n// @ts-expect-error\nimport functionCatchErrorCodes from '~/legacy/handlebars/compiled/core/functions/catchErrorCodes';\n// @ts-expect-error\nimport functionGetFormData from '~/legacy/handlebars/compiled/core/functions/getFormData';\n// @ts-expect-error\nimport functionGetQueryString from '~/legacy/handlebars/compiled/core/functions/getQueryString';\n// @ts-expect-error\nimport functionGetUrl from '~/legacy/handlebars/compiled/core/functions/getUrl';\n// @ts-expect-error\nimport functionIsBlob from '~/legacy/handlebars/compiled/core/functions/isBlob';\n// @ts-expect-error\nimport functionIsFormData from '~/legacy/handlebars/compiled/core/functions/isFormData';\n// @ts-expect-error\nimport functionIsString from '~/legacy/handlebars/compiled/core/functions/isString';\n// @ts-expect-error\nimport functionIsStringWithValue from '~/legacy/handlebars/compiled/core/functions/isStringWithValue';\n// @ts-expect-error\nimport functionIsSuccess from '~/legacy/handlebars/compiled/core/functions/isSuccess';\n// @ts-expect-error\nimport functionResolve from '~/legacy/handlebars/compiled/core/functions/resolve';\n// @ts-expect-error\nimport templateCoreHttpRequest from '~/legacy/handlebars/compiled/core/HttpRequest';\n// @ts-expect-error\nimport templateCoreSettings from '~/legacy/handlebars/compiled/core/OpenAPI';\n// @ts-expect-error\nimport templateCoreRequest from '~/legacy/handlebars/compiled/core/request';\n// @ts-expect-error\nimport xhrGetHeaders from '~/legacy/handlebars/compiled/core/xhr/getHeaders';\n// @ts-expect-error\nimport xhrGetRequestBody from '~/legacy/handlebars/compiled/core/xhr/getRequestBody';\n// @ts-expect-error\nimport xhrGetResponseBody from '~/legacy/handlebars/compiled/core/xhr/getResponseBody';\n// @ts-expect-error\nimport xhrGetResponseHeader from '~/legacy/handlebars/compiled/core/xhr/getResponseHeader';\n// @ts-expect-error\nimport xhrRequest from '~/legacy/handlebars/compiled/core/xhr/request';\n// @ts-expect-error\nimport xhrSendRequest from '~/legacy/handlebars/compiled/core/xhr/sendRequest';\n\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 { 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\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","import { stringCase } from './stringCase';\n\n// publicly exposed utils\nexport const utils = {\n stringCase,\n};\n","// OVERRIDES\n// hard-coded here because build process doesn't pick up overrides from separate files\nimport '@hey-api/codegen-core';\n\ndeclare module '@hey-api/codegen-core' {\n interface ProjectRenderMeta {\n /**\n * If specified, this will be the file extension used when importing\n * other modules. By default, we don't add a file extension and let the\n * runtime resolve it.\n *\n * @default null\n */\n importFileExtension?: (string & {}) | null;\n }\n\n interface SymbolMeta {\n /**\n * Path to the resource this symbol represents.\n */\n path?: ReadonlyArray<string | number>;\n /**\n * Name of the plugin that registered this symbol.\n */\n pluginName?: string;\n /**\n * Tags associated with this symbol.\n */\n tags?: Set<string>;\n }\n}\n// END OVERRIDES\n\nimport colors from 'ansi-colors';\n// @ts-expect-error\nimport colorSupport from 'color-support';\n\nimport type { UserConfig } from '~/types/config';\nimport type { LazyOrAsync, MaybeArray } from '~/types/utils';\n\ncolors.enabled = colorSupport().hasBasic;\n\nexport { createClient } from './generate';\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 { DefinePlugin, Plugin } from './plugins';\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 { compiler, tsc } from './tsc';\nexport type { Operation } from './types/client';\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":"ogBAEA,MAAa,OAAyB,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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,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,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,qBAAqB,CAC9C,EACA,CACE,KAAM,qBACA,OACG,UAC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AQ,EAAW,SAASC,GAAe,CAC3C,KAAM,CACJ,SAAU,EAAW,SAASC,GAAqB,CACnD,kBAAmB,EAAW,SAASC,GAA8B,CACrE,UAAW,EAAW,SAASC,GAAsB,CACrD,gBAAiB,EAAW,SAASC,GAA4B,CACjE,kBAAmB,EAAW,SAASC,GAA0B,CACjE,YAAa,EAAW,SAASC,GAAwB,CACzD,QAAS,EAAW,SAASC,GAAoB,CACjD,SAAU,EAAW,SAASC,GAAqB,CACpD,CACF,CAqJD,OAlJA,EAAW,gBACT,mBACA,EAAW,SAASC,GAAe,CACpC,CACD,EAAW,gBACT,4BACA,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,C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