ts-openapi-codegen 2.1.0-beta.6 → 2.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +9 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +9 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +9 -0
- package/dist/cli/analyzeUsage/analyzeUsage.d.ts +4 -0
- package/dist/cli/analyzeUsage/analyzeUsage.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/analyzeUsage.js +62 -0
- package/dist/cli/analyzeUsage/core/Analyzer.d.ts +9 -0
- package/dist/cli/analyzeUsage/core/Analyzer.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/Analyzer.js +29 -0
- package/dist/cli/analyzeUsage/core/ProjectContext.d.ts +10 -0
- package/dist/cli/analyzeUsage/core/ProjectContext.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/ProjectContext.js +63 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts +15 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/Scanner.js +115 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.js +78 -0
- package/dist/cli/analyzeUsage/rules/CoverageRule.d.ts +7 -0
- package/dist/cli/analyzeUsage/rules/CoverageRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/CoverageRule.js +63 -0
- package/dist/cli/analyzeUsage/rules/DiagnosticsRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/DiagnosticsRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/DiagnosticsRule.js +60 -0
- package/dist/cli/analyzeUsage/rules/ImportRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ImportRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ImportRule.js +52 -0
- package/dist/cli/analyzeUsage/rules/ModelRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ModelRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ModelRule.js +38 -0
- package/dist/cli/analyzeUsage/rules/SchemaRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/SchemaRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/SchemaRule.js +48 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts +7 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.js +92 -0
- package/dist/cli/analyzeUsage/types.d.ts +52 -0
- package/dist/cli/analyzeUsage/types.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/types.js +2 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.d.ts +5 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.js +38 -0
- package/dist/cli/analyzeUsage/utils/report.d.ts +16 -0
- package/dist/cli/analyzeUsage/utils/report.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/utils/report.js +85 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/checkConfig.test.js +10 -20
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.js +10 -20
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts +2 -1
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/checkConfig.js +8 -4
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts +2 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.js +6 -3
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +19 -1
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.js +18 -9
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts +2 -5
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +12 -16
- package/dist/cli/index.js +41 -9
- package/dist/cli/initOpenApiConfig/__tests__/init.test.js +4 -14
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.js +3 -1
- package/dist/cli/initOpenApiConfig/init.d.ts +2 -1
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.js +3 -3
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +0 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +1 -2
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.js +9 -0
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +0 -4
- package/dist/cli/previewChanges/previewChanges.d.ts +2 -1
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +6 -6
- package/dist/cli/schemas/analyzeUsage.d.ts +13 -0
- package/dist/cli/schemas/analyzeUsage.d.ts.map +1 -0
- package/dist/cli/schemas/analyzeUsage.js +38 -0
- package/dist/cli/schemas/generate.d.ts +7 -0
- package/dist/cli/schemas/generate.d.ts.map +1 -1
- package/dist/cli/schemas/generate.js +4 -0
- package/dist/cli/schemas/index.d.ts +2 -2
- package/dist/cli/schemas/index.d.ts.map +1 -1
- package/dist/cli/schemas/index.js +1 -1
- package/dist/cli/schemas/init.d.ts +0 -1
- package/dist/cli/schemas/init.d.ts.map +1 -1
- package/dist/cli/schemas/init.js +0 -1
- package/dist/cli/types.d.ts +6 -0
- package/dist/cli/types.d.ts.map +1 -0
- package/dist/cli/types.js +2 -0
- package/dist/common/Consts.d.ts +1 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +6 -2
- package/dist/common/Logger.js +2 -2
- package/dist/common/LoggerMessages.d.ts +59 -12
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +62 -15
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +0 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +7 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.js +5 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +14 -11
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +0 -2
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.js +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.js +0 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +0 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +0 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +8 -9
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +1 -1
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +0 -3
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +0 -2
- package/dist/core/OpenApiClient.d.ts +12 -1
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +193 -16
- package/dist/core/WriteClient.d.ts +12 -3
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +25 -5
- package/dist/core/plugins/getBuiltinPlugins.d.ts.map +1 -1
- package/dist/core/plugins/loadGeneratorPlugins.d.ts.map +1 -1
- package/dist/core/plugins/loadGeneratorPlugins.js +1 -1
- package/dist/core/types/shared/Client.model.d.ts +1 -1
- package/dist/core/types/shared/Client.model.d.ts.map +1 -1
- package/dist/core/types/shared/Model.model.d.ts +1 -1
- package/dist/core/types/shared/Model.model.d.ts.map +1 -1
- package/dist/core/utils/__tests__/prepareDtoModels.test.js +95 -0
- package/dist/core/utils/__tests__/writeClientServices.test.js +0 -1
- package/dist/core/utils/loadDiffReport.d.ts.map +1 -1
- package/dist/core/utils/loadDiffReport.js +5 -4
- package/dist/core/utils/precompileTemplates.js +3 -2
- package/dist/core/utils/prepareDtoModels.d.ts.map +1 -1
- package/dist/core/utils/prepareDtoModels.js +1 -7
- package/dist/core/utils/writeClientCore.d.ts +0 -2
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +19 -18
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientCoreIndex.js +14 -4
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +4 -4
- package/dist/core/utils/writeClientFullIndex.js +4 -4
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +10 -10
- package/dist/core/utils/writeClientModelsIndex.d.ts +1 -1
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.js +14 -4
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +7 -7
- package/dist/core/utils/writeClientSchemasIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemasIndex.js +14 -4
- package/dist/core/utils/writeClientServices.d.ts +0 -2
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +7 -8
- package/dist/core/utils/writeClientServicesIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientServicesIndex.js +14 -4
- package/dist/core/utils/writeClientSimpleIndex.js +4 -4
- package/dist/templatesCompiled/cli/customRequest.d.ts +2 -6
- package/dist/templatesCompiled/cli/customRequest.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequest.js +8 -28
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts +0 -3
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequestExecutor.js +5 -28
- package/dist/templatesCompiled/client/core/axios/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/axios/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +2 -22
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -5
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +12 -42
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts +0 -2
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +3 -11
- package/dist/templatesCompiled/client/core/fetch/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/fetch/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +2 -22
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts +0 -2
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +3 -11
- package/dist/templatesCompiled/client/core/node/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/node/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +2 -22
- package/dist/templatesCompiled/client/core/xhr/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/xhr/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/xhr/request.js +2 -22
- package/dist/templatesCompiled/client/exportService.d.ts +9 -11
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +64 -82
- package/dist/test/helpers/silenceLoggers.d.ts +11 -0
- package/dist/test/helpers/silenceLoggers.d.ts.map +1 -0
- package/dist/test/helpers/silenceLoggers.js +88 -0
- package/package.json +4 -3
|
@@ -9,29 +9,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
10
10
|
return "import { CancelablePromise } from './CancelablePromise';\n";
|
|
11
11
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
12
|
-
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
13
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14
|
-
return parent[propertyName];
|
|
15
|
-
}
|
|
16
|
-
return undefined;
|
|
17
|
-
};
|
|
18
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useRequestRaw"), { "name": "if", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.program(6, data, 0), "data": data, "loc": { "start": { "line": 67, "column": 0 }, "end": { "line": 145, "column": 7 } } })) != null ? stack1 : "");
|
|
19
|
-
}, "4": function (container, depth0, helpers, partials, data) {
|
|
20
12
|
return "export function requestRaw<T>(options: ApiRequestOptions, config: TOpenAPIConfig): CancelablePromise<ApiResult<T>> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options, config);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, config, onCancel);\n const responseBody = await getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n const result: ApiResult<T> = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result);\n }\n } catch (error) {\n reject(error);\n }\n });\n}\n\nexport function request<T>(options: ApiRequestOptions, config: TOpenAPIConfig): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options, config);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, config, onCancel);\n const responseBody = await getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n const result: ApiResult<T> = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}\n";
|
|
21
|
-
}, "
|
|
22
|
-
return "export function request<T>(options: ApiRequestOptions, config: TOpenAPIConfig): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options, config);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, config, onCancel);\n const responseBody = await getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n const result: ApiResult<T> = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}\n";
|
|
23
|
-
}, "8": function (container, depth0, helpers, partials, data) {
|
|
24
|
-
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
25
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
26
|
-
return parent[propertyName];
|
|
27
|
-
}
|
|
28
|
-
return undefined;
|
|
29
|
-
};
|
|
30
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useRequestRaw"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.program(11, data, 0), "data": data, "loc": { "start": { "line": 147, "column": 0 }, "end": { "line": 200, "column": 7 } } })) != null ? stack1 : "");
|
|
31
|
-
}, "9": function (container, depth0, helpers, partials, data) {
|
|
13
|
+
}, "5": function (container, depth0, helpers, partials, data) {
|
|
32
14
|
return "export async function request<T>(options: ApiRequestOptions, config: TOpenAPIConfig): Promise<T> {\n const result = await requestRaw<T>(options, config);\n return result.body;\n}\n\nexport async function requestRaw<T>(options: ApiRequestOptions, config: TOpenAPIConfig): Promise<ApiResult<T>> {\n return new Promise(async (resolve, reject) => {\n try {\n const url = getUrl(options, config);\n const response = await sendRequest(options, url, config);\n const responseBody = await getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult<T> = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result);\n } catch (error) {\n reject(error);\n }\n });\n}\n";
|
|
33
|
-
}, "11": function (container, depth0, helpers, partials, data) {
|
|
34
|
-
return "export async function request<T>(options: ApiRequestOptions, config: TOpenAPIConfig): Promise<T> {\n return new Promise(async (resolve, reject) => {\n try {\n const url = getUrl(options, config);\n const response = await sendRequest(options, url, config);\n const responseBody = await getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult<T> = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result.body);\n } catch (error) {\n reject(error);\n }\n });\n}\n";
|
|
35
15
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
36
16
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
37
17
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -71,5 +51,5 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
71
51
|
+ "\n\n"
|
|
72
52
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "functions/catchErrors"), depth0, { "name": "functions/catchErrors", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
73
53
|
+ "\n\n/**\n * Request using node-fetch client\n * @param config The OpenAPI configuration object\n * @param options The request options from the the service\n * @returns ApiResult\n * @throws ApiError\n */\n"
|
|
74
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.program(
|
|
54
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.program(5, data, 0), "data": data, "loc": { "start": { "line": 66, "column": 0 }, "end": { "line": 147, "column": 7 } } })) != null ? stack1 : "");
|
|
75
55
|
}, "usePartial": true, "useData": true };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"1": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
3
|
-
"3": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
4
|
-
"
|
|
5
|
-
"6": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
|
-
"8": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
7
|
-
"9": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
|
-
"11": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
3
|
+
"3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
4
|
+
"5": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
9
5
|
compiler: (string | number)[];
|
|
10
6
|
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
11
7
|
usePartial: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/xhr/request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/xhr/request.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBAiDmC"}
|
|
@@ -9,29 +9,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
10
10
|
return "import { CancelablePromise } from './CancelablePromise';\n";
|
|
11
11
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
12
|
-
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
13
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14
|
-
return parent[propertyName];
|
|
15
|
-
}
|
|
16
|
-
return undefined;
|
|
17
|
-
};
|
|
18
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useRequestRaw"), { "name": "if", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.program(6, data, 0), "data": data, "loc": { "start": { "line": 65, "column": 0 }, "end": { "line": 143, "column": 7 } } })) != null ? stack1 : "");
|
|
19
|
-
}, "4": function (container, depth0, helpers, partials, data) {
|
|
20
12
|
return "export function requestRaw<T>(options: ApiRequestOptions, config: TOpenAPIConfig): CancelablePromise<ApiResult<T>> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options, config);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, config, onCancel);\n const responseBody = getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n const result: ApiResult<T> = {\n url,\n ok: isSuccess(response.status),\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result);\n }\n } catch (error) {\n reject(error);\n }\n });\n}\n\nexport function request<T>(options: ApiRequestOptions, config: TOpenAPIConfig): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options, config);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, config, onCancel);\n const responseBody = getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n const result: ApiResult<T> = {\n url,\n ok: isSuccess(response.status),\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}\n";
|
|
21
|
-
}, "
|
|
22
|
-
return "export function request<T>(options: ApiRequestOptions, config: TOpenAPIConfig): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options, config);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, config, onCancel);\n const responseBody = getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n const result: ApiResult<T> = {\n url,\n ok: isSuccess(response.status),\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}\n";
|
|
23
|
-
}, "8": function (container, depth0, helpers, partials, data) {
|
|
24
|
-
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
25
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
26
|
-
return parent[propertyName];
|
|
27
|
-
}
|
|
28
|
-
return undefined;
|
|
29
|
-
};
|
|
30
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useRequestRaw"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.program(11, data, 0), "data": data, "loc": { "start": { "line": 145, "column": 0 }, "end": { "line": 198, "column": 7 } } })) != null ? stack1 : "");
|
|
31
|
-
}, "9": function (container, depth0, helpers, partials, data) {
|
|
13
|
+
}, "5": function (container, depth0, helpers, partials, data) {
|
|
32
14
|
return "export async function request<T>(options: ApiRequestOptions, config: TOpenAPIConfig): Promise<T> {\n const result = await requestRaw<T>(options, config);\n return result.body;\n}\n\nexport async function requestRaw<T>(options: ApiRequestOptions, config: TOpenAPIConfig): Promise<ApiResult<T>> {\n return new Promise(async (resolve, reject) => {\n try {\n const url = getUrl(options, config);\n const response = await sendRequest(options, url, config);\n const responseBody = getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult<T> = {\n url,\n ok: isSuccess(response.status),\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result);\n } catch (error) {\n reject(error);\n }\n });\n}\n";
|
|
33
|
-
}, "11": function (container, depth0, helpers, partials, data) {
|
|
34
|
-
return "export async function request<T>(options: ApiRequestOptions, config: TOpenAPIConfig): Promise<T> {\n return new Promise(async (resolve, reject) => {\n try {\n const url = getUrl(options, config);\n const response = await sendRequest(options, url, config);\n const responseBody = getResponseBody(response, options);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult<T> = {\n url,\n ok: isSuccess(response.status),\n status: response.status,\n statusText: response.statusText,\n body: (responseHeader || responseBody) as T,\n };\n\n catchErrors(options, result);\n resolve(result.body);\n } catch (error) {\n reject(error);\n }\n });\n}\n";
|
|
35
15
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
36
16
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
37
17
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -73,5 +53,5 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
73
53
|
+ "\n\n"
|
|
74
54
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "functions/catchErrors"), depth0, { "name": "functions/catchErrors", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
75
55
|
+ "\n\n/**\n * Request using XHR client\n * @param config The OpenAPI configuration object\n * @param options The request options from the the service\n * @returns ApiResult\n * @throws ApiError\n */\n"
|
|
76
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.program(
|
|
56
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.program(5, data, 0), "data": data, "loc": { "start": { "line": 64, "column": 0 }, "end": { "line": 145, "column": 7 } } })) != null ? stack1 : "");
|
|
77
57
|
}, "usePartial": true, "useData": true };
|
|
@@ -6,23 +6,21 @@ declare const _default: {
|
|
|
6
6
|
"7": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
7
7
|
"9": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
8
|
"11": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
9
|
-
"13": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
10
|
-
"
|
|
11
|
-
"16": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
12
|
-
"
|
|
13
|
-
"
|
|
9
|
+
"13": (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => string;
|
|
10
|
+
"14": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
11
|
+
"16": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
12
|
+
"17": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
13
|
+
"18": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
14
14
|
"20": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
15
15
|
"22": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
16
|
-
"24": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
17
|
-
"
|
|
18
|
-
"
|
|
16
|
+
"24": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
17
|
+
"25": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
18
|
+
"26": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
19
19
|
"28": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
20
20
|
"30": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
21
21
|
"32": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
22
22
|
"34": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
23
|
-
"36": (container: any, depth0: any, helpers: any, partials: any, data: any
|
|
24
|
-
"37": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
25
|
-
"39": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
23
|
+
"36": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
26
24
|
compiler: (string | number)[];
|
|
27
25
|
main: (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => string;
|
|
28
26
|
usePartial: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportService.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exportService.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAgRoD"}
|
|
@@ -42,16 +42,6 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
42
42
|
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "outputCore"), "CancelablePromise", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 91 } } })) != null ? stack1 : "")
|
|
43
43
|
+ "';\n";
|
|
44
44
|
}, "7": function (container, depth0, helpers, partials, data) {
|
|
45
|
-
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
46
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
47
|
-
return parent[propertyName];
|
|
48
|
-
}
|
|
49
|
-
return undefined;
|
|
50
|
-
};
|
|
51
|
-
return "import type { ApiResult } from '"
|
|
52
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "outputCore"), "ApiResult", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 13, "column": 32 }, "end": { "line": 13, "column": 75 } } })) != null ? stack1 : "")
|
|
53
|
-
+ "';\n";
|
|
54
|
-
}, "9": function (container, depth0, helpers, partials, data) {
|
|
55
45
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
56
46
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
57
47
|
return parent[propertyName];
|
|
@@ -59,13 +49,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
59
49
|
return undefined;
|
|
60
50
|
};
|
|
61
51
|
return "const "
|
|
62
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
52
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 13 } }), depth0)) != null ? stack1 : "")
|
|
63
53
|
+ " = ("
|
|
64
54
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
65
55
|
+ "): RequestConfig => ({\n "
|
|
66
56
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "serviceOption"), depth0, { "name": "serviceOption", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
67
57
|
+ "});\n\n";
|
|
68
|
-
}, "
|
|
58
|
+
}, "9": function (container, depth0, helpers, partials, data) {
|
|
69
59
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
70
60
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
71
61
|
return parent[propertyName];
|
|
@@ -73,18 +63,18 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
73
63
|
return undefined;
|
|
74
64
|
};
|
|
75
65
|
return " "
|
|
76
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
66
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 23, "column": 7 }, "end": { "line": 23, "column": 11 } }), depth0)) != null ? stack1 : "")
|
|
77
67
|
+ ": ("
|
|
78
68
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parametersDefinition"), depth0, { "name": "parametersDefinition", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
79
69
|
+ ") => RequestConfig;\n";
|
|
80
|
-
}, "
|
|
70
|
+
}, "11": function (container, depth0, helpers, partials, data) {
|
|
81
71
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
82
72
|
return " "
|
|
83
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
73
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 29, "column": 7 }, "end": { "line": 29, "column": 11 } }), depth0)) != null ? stack1 : "")
|
|
84
74
|
+ ": "
|
|
85
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
75
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 29, "column": 19 }, "end": { "line": 29, "column": 23 } }), depth0)) != null ? stack1 : "")
|
|
86
76
|
+ ",\n";
|
|
87
|
-
}, "
|
|
77
|
+
}, "13": function (container, depth0, helpers, partials, data, blockParams, depths) {
|
|
88
78
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), alias2 = container.strict, alias3 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
89
79
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
90
80
|
return parent[propertyName];
|
|
@@ -92,85 +82,94 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
92
82
|
return undefined;
|
|
93
83
|
};
|
|
94
84
|
return " /**\n"
|
|
95
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "deprecated"), { "name": "if", "hash": {}, "fn": container.program(
|
|
96
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "summary"), { "name": "if", "hash": {}, "fn": container.program(
|
|
97
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "description"), { "name": "if", "hash": {}, "fn": container.program(
|
|
98
|
-
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useOptions"), { "name": "unless", "hash": {}, "fn": container.program(
|
|
99
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "results"), { "name": "each", "hash": {}, "fn": container.program(
|
|
85
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "deprecated"), { "name": "if", "hash": {}, "fn": container.program(14, data, 0, blockParams, depths), "inverse": container.program(16, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 44, "column": 11 } } })) != null ? stack1 : "")
|
|
86
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "summary"), { "name": "if", "hash": {}, "fn": container.program(20, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 45, "column": 4 }, "end": { "line": 47, "column": 11 } } })) != null ? stack1 : "")
|
|
87
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "description"), { "name": "if", "hash": {}, "fn": container.program(22, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 50, "column": 11 } } })) != null ? stack1 : "")
|
|
88
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useOptions"), { "name": "unless", "hash": {}, "fn": container.program(24, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 51, "column": 4 }, "end": { "line": 57, "column": 15 } } })) != null ? stack1 : "")
|
|
89
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "results"), { "name": "each", "hash": {}, "fn": container.program(28, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 60, "column": 13 } } })) != null ? stack1 : "")
|
|
100
90
|
+ " * @throws ApiError\n */\n"
|
|
101
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(
|
|
91
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(30, data, 0, blockParams, depths), "inverse": container.program(32, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 63, "column": 4 }, "end": { "line": 73, "column": 11 } } })) != null ? stack1 : "")
|
|
102
92
|
+ " return this.executor.request<"
|
|
103
93
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
104
94
|
+ ">(\n "
|
|
105
|
-
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line":
|
|
95
|
+
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line": 75, "column": 15 }, "end": { "line": 75, "column": 28 } }), depth0)) != null ? stack1 : "")
|
|
106
96
|
+ "Options."
|
|
107
|
-
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line":
|
|
97
|
+
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 75, "column": 42 }, "end": { "line": 75, "column": 46 } }), depth0)) != null ? stack1 : "")
|
|
108
98
|
+ "("
|
|
109
99
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
110
100
|
+ "),\n options\n );\n }\n\n"
|
|
111
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "
|
|
112
|
-
|
|
101
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(34, data, 0, blockParams, depths), "inverse": container.program(36, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 80, "column": 4 }, "end": { "line": 90, "column": 11 } } })) != null ? stack1 : "")
|
|
102
|
+
+ " return this.executor.requestRaw<"
|
|
103
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
104
|
+
+ ">(\n "
|
|
105
|
+
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line": 92, "column": 15 }, "end": { "line": 92, "column": 28 } }), depth0)) != null ? stack1 : "")
|
|
106
|
+
+ "Options."
|
|
107
|
+
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 92, "column": 42 }, "end": { "line": 92, "column": 46 } }), depth0)) != null ? stack1 : "")
|
|
108
|
+
+ "("
|
|
109
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
110
|
+
+ "),\n options\n );\n }\n";
|
|
111
|
+
}, "14": function (container, depth0, helpers, partials, data) {
|
|
113
112
|
return " * @deprecated\n";
|
|
114
|
-
}, "
|
|
113
|
+
}, "16": function (container, depth0, helpers, partials, data) {
|
|
115
114
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
116
115
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
117
116
|
return parent[propertyName];
|
|
118
117
|
}
|
|
119
118
|
return undefined;
|
|
120
119
|
};
|
|
121
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "diff"), { "name": "if", "hash": {}, "fn": container.program(
|
|
122
|
-
}, "
|
|
120
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "diff"), { "name": "if", "hash": {}, "fn": container.program(17, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 40, "column": 4 }, "end": { "line": 44, "column": 4 } } })) != null ? stack1 : "");
|
|
121
|
+
}, "17": function (container, depth0, helpers, partials, data) {
|
|
123
122
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
124
123
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
125
124
|
return parent[propertyName];
|
|
126
125
|
}
|
|
127
126
|
return undefined;
|
|
128
127
|
};
|
|
129
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(depth0, "diff"), "action"), "removed", { "name": "equals", "hash": {}, "fn": container.program(
|
|
128
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(depth0, "diff"), "action"), "removed", { "name": "equals", "hash": {}, "fn": container.program(18, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 41, "column": 4 }, "end": { "line": 43, "column": 15 } } })) != null ? stack1 : "")
|
|
130
129
|
+ " ";
|
|
131
|
-
}, "
|
|
130
|
+
}, "18": function (container, depth0, helpers, partials, data) {
|
|
132
131
|
return " * @deprecated Removed from API\n";
|
|
133
|
-
}, "
|
|
132
|
+
}, "20": function (container, depth0, helpers, partials, data) {
|
|
134
133
|
var stack1;
|
|
135
134
|
return " * "
|
|
136
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "summary", { "start": { "line":
|
|
135
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "summary", { "start": { "line": 46, "column": 10 }, "end": { "line": 46, "column": 17 } }), depth0)) != null ? stack1 : "")
|
|
137
136
|
+ "\n";
|
|
138
|
-
}, "
|
|
137
|
+
}, "22": function (container, depth0, helpers, partials, data) {
|
|
139
138
|
var stack1;
|
|
140
139
|
return " * "
|
|
141
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "description", { "start": { "line":
|
|
140
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "description", { "start": { "line": 49, "column": 10 }, "end": { "line": 49, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
142
141
|
+ "\n";
|
|
143
|
-
}, "
|
|
142
|
+
}, "24": function (container, depth0, helpers, partials, data) {
|
|
144
143
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
145
144
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
146
145
|
return parent[propertyName];
|
|
147
146
|
}
|
|
148
147
|
return undefined;
|
|
149
148
|
};
|
|
150
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "if", "hash": {}, "fn": container.program(
|
|
151
|
-
}, "
|
|
149
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "if", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 52, "column": 4 }, "end": { "line": 56, "column": 11 } } })) != null ? stack1 : "");
|
|
150
|
+
}, "25": function (container, depth0, helpers, partials, data) {
|
|
152
151
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
153
152
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
154
153
|
return parent[propertyName];
|
|
155
154
|
}
|
|
156
155
|
return undefined;
|
|
157
156
|
};
|
|
158
|
-
return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "each", "hash": {}, "fn": container.program(
|
|
159
|
-
}, "
|
|
157
|
+
return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "each", "hash": {}, "fn": container.program(26, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 53, "column": 4 }, "end": { "line": 55, "column": 13 } } })) != null ? stack1 : "");
|
|
158
|
+
}, "26": function (container, depth0, helpers, partials, data) {
|
|
160
159
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
161
160
|
return " * @param "
|
|
162
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
161
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 54, "column": 17 }, "end": { "line": 54, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
163
162
|
+ " "
|
|
164
|
-
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line":
|
|
163
|
+
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 54, "column": 28 }, "end": { "line": 54, "column": 39 } }), depth0)) != null ? stack1 : "")
|
|
165
164
|
+ "\n";
|
|
166
|
-
}, "
|
|
165
|
+
}, "28": function (container, depth0, helpers, partials, data) {
|
|
167
166
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
168
167
|
return " * @returns "
|
|
169
|
-
+ ((stack1 = alias2(alias1(depth0, "type", { "start": { "line":
|
|
168
|
+
+ ((stack1 = alias2(alias1(depth0, "type", { "start": { "line": 59, "column": 19 }, "end": { "line": 59, "column": 23 } }), depth0)) != null ? stack1 : "")
|
|
170
169
|
+ " "
|
|
171
|
-
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line":
|
|
170
|
+
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 59, "column": 30 }, "end": { "line": 59, "column": 41 } }), depth0)) != null ? stack1 : "")
|
|
172
171
|
+ "\n";
|
|
173
|
-
}, "
|
|
172
|
+
}, "30": function (container, depth0, helpers, partials, data) {
|
|
174
173
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
175
174
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
176
175
|
return parent[propertyName];
|
|
@@ -178,13 +177,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
178
177
|
return undefined;
|
|
179
178
|
};
|
|
180
179
|
return " public "
|
|
181
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
180
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 64, "column": 14 }, "end": { "line": 64, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
182
181
|
+ "(\n "
|
|
183
182
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
184
183
|
+ " options?: TOptions,\n ): CancelablePromise<"
|
|
185
184
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
186
185
|
+ "> {\n";
|
|
187
|
-
}, "
|
|
186
|
+
}, "32": function (container, depth0, helpers, partials, data) {
|
|
188
187
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
189
188
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
190
189
|
return parent[propertyName];
|
|
@@ -192,30 +191,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
192
191
|
return undefined;
|
|
193
192
|
};
|
|
194
193
|
return " public "
|
|
195
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
194
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 69, "column": 14 }, "end": { "line": 69, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
196
195
|
+ "(\n "
|
|
197
196
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
198
197
|
+ " options?: TOptions,\n ): Promise<"
|
|
199
198
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
200
199
|
+ "> {\n";
|
|
201
|
-
}, "
|
|
202
|
-
var stack1, alias1 = container.strict, alias2 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
203
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
204
|
-
return parent[propertyName];
|
|
205
|
-
}
|
|
206
|
-
return undefined;
|
|
207
|
-
};
|
|
208
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(37, data, 0, blockParams, depths), "inverse": container.program(39, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 83, "column": 4 }, "end": { "line": 93, "column": 11 } } })) != null ? stack1 : "")
|
|
209
|
-
+ " return this.executor.requestRaw<"
|
|
210
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
211
|
-
+ ">(\n "
|
|
212
|
-
+ ((stack1 = alias2(alias1(depths[1], "originName", { "start": { "line": 95, "column": 15 }, "end": { "line": 95, "column": 28 } }), depth0)) != null ? stack1 : "")
|
|
213
|
-
+ "Options."
|
|
214
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 95, "column": 42 }, "end": { "line": 95, "column": 46 } }), depth0)) != null ? stack1 : "")
|
|
215
|
-
+ "("
|
|
216
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
217
|
-
+ "),\n options\n );\n }\n";
|
|
218
|
-
}, "37": function (container, depth0, helpers, partials, data) {
|
|
200
|
+
}, "34": function (container, depth0, helpers, partials, data) {
|
|
219
201
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
220
202
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
221
203
|
return parent[propertyName];
|
|
@@ -223,13 +205,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
223
205
|
return undefined;
|
|
224
206
|
};
|
|
225
207
|
return " public "
|
|
226
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
208
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 81, "column": 14 }, "end": { "line": 81, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
227
209
|
+ "Raw(\n "
|
|
228
210
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
229
211
|
+ " options?: TOptions,\n ): CancelablePromise<ApiResult<"
|
|
230
212
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
231
213
|
+ ">> {\n";
|
|
232
|
-
}, "
|
|
214
|
+
}, "36": function (container, depth0, helpers, partials, data) {
|
|
233
215
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
234
216
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
235
217
|
return parent[propertyName];
|
|
@@ -237,7 +219,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
237
219
|
return undefined;
|
|
238
220
|
};
|
|
239
221
|
return " public "
|
|
240
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
222
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 86, "column": 14 }, "end": { "line": 86, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
241
223
|
+ "Raw(\n "
|
|
242
224
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
243
225
|
+ " options?: TOptions,\n ): Promise<ApiResult<"
|
|
@@ -256,23 +238,23 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
256
238
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 7 } } })) != null ? stack1 : "")
|
|
257
239
|
+ "import type { RequestExecutor, RequestConfig } from '"
|
|
258
240
|
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "./executor/requestExecutor", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 11, "column": 53 }, "end": { "line": 11, "column": 113 } } })) != null ? stack1 : "")
|
|
259
|
-
+ "';\
|
|
260
|
-
+ ((stack1 = lookupProperty(helpers, "
|
|
261
|
-
+ "\n"
|
|
262
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
241
|
+
+ "';\nimport type { ApiResult } from '"
|
|
242
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "ApiResult", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 12, "column": 32 }, "end": { "line": 12, "column": 75 } } })) != null ? stack1 : "")
|
|
243
|
+
+ "';\n\n"
|
|
244
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(7, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 19, "column": 9 } } })) != null ? stack1 : "")
|
|
263
245
|
+ "\nexport type T"
|
|
264
|
-
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line":
|
|
246
|
+
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 21, "column": 16 }, "end": { "line": 21, "column": 26 } }), depth0)) != null ? stack1 : "")
|
|
265
247
|
+ "Options = {\n"
|
|
266
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
248
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(9, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 24, "column": 9 } } })) != null ? stack1 : "")
|
|
267
249
|
+ "};\n\nexport const "
|
|
268
|
-
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line":
|
|
250
|
+
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 26 } }), depth0)) != null ? stack1 : "")
|
|
269
251
|
+ "Options: T"
|
|
270
|
-
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line":
|
|
252
|
+
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 27, "column": 42 }, "end": { "line": 27, "column": 52 } }), depth0)) != null ? stack1 : "")
|
|
271
253
|
+ "Options = {\n"
|
|
272
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
254
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(11, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 28, "column": 0 }, "end": { "line": 30, "column": 9 } } })) != null ? stack1 : "")
|
|
273
255
|
+ "};\n\nexport class "
|
|
274
|
-
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line":
|
|
256
|
+
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 33, "column": 16 }, "end": { "line": 33, "column": 20 } }), depth0)) != null ? stack1 : "")
|
|
275
257
|
+ "<TOptions = unknown> {\n constructor(private readonly executor: RequestExecutor<TOptions>) {}\n\n"
|
|
276
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
258
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(13, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 36, "column": 4 }, "end": { "line": 96, "column": 13 } } })) != null ? stack1 : "")
|
|
277
259
|
+ "}\n";
|
|
278
260
|
}, "usePartial": true, "useData": true, "useDepths": true };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TestContext } from 'node:test';
|
|
2
|
+
/** Replaces APP_LOGGER public methods with no-ops. */
|
|
3
|
+
export declare function installSilenceAppLogger(): () => void;
|
|
4
|
+
/** Replaces Logger prototype public methods with no-ops (OpenApiClient `client` logger). */
|
|
5
|
+
export declare function installSilenceLoggerPrototype(): () => void;
|
|
6
|
+
/** Replaces APP_LOGGER and Logger public methods with no-ops. */
|
|
7
|
+
export declare function installSilenceLoggers(): () => void;
|
|
8
|
+
export declare function silenceAppLogger(t: TestContext): void;
|
|
9
|
+
export declare function silenceLoggerPrototype(t: TestContext): void;
|
|
10
|
+
export declare function silenceLoggers(t: TestContext): void;
|
|
11
|
+
//# sourceMappingURL=silenceLoggers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"silenceLoggers.d.ts","sourceRoot":"","sources":["../../../src/test/helpers/silenceLoggers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAQ7C,sDAAsD;AACtD,wBAAgB,uBAAuB,IAAI,MAAM,IAAI,CA6BpD;AAED,4FAA4F;AAC5F,wBAAgB,6BAA6B,IAAI,MAAM,IAAI,CA6B1D;AAED,iEAAiE;AACjE,wBAAgB,qBAAqB,IAAI,MAAM,IAAI,CAQlD;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,CAErD;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,CAE3D;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,CAEnD"}
|