ts-openapi-codegen 2.0.0-beta.5 → 2.0.0-beta.6
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/common/utils/fileSystemHelpers.d.ts +2 -0
- package/dist/common/utils/fileSystemHelpers.d.ts.map +1 -1
- package/dist/common/utils/fileSystemHelpers.js +9 -0
- package/dist/core/WriteClient.d.ts +3 -1
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +8 -0
- package/dist/core/__tests__/WriteClient.test.js +2 -1
- package/dist/core/types/base/ClientArtifacts.model.d.ts +1 -1
- package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts +1 -1
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/Templates.model.d.ts +29 -0
- package/dist/core/types/base/Templates.model.d.ts.map +1 -0
- package/dist/core/types/base/Templates.model.js +2 -0
- package/dist/core/utils/__mocks__/templates.d.ts +1 -1
- package/dist/core/utils/__mocks__/templates.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.js +2 -1
- package/dist/core/utils/__tests__/resolveRefToImportPath.test.js +65 -1
- package/dist/core/utils/precompileTemplates.js +1 -0
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +11 -0
- package/dist/core/utils/registerHandlebarTemplates.d.ts +1 -27
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +4 -2
- package/dist/core/utils/resolveRefToImportPath.d.ts.map +1 -1
- package/dist/core/utils/resolveRefToImportPath.js +5 -10
- package/dist/core/utils/writeClientCore.d.ts +1 -1
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +3 -2
- package/dist/core/utils/writeClientCoreIndex.d.ts +1 -1
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.d.ts +12 -0
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -0
- package/dist/core/utils/writeClientExecutor.js +18 -0
- package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientFullIndex.js +1 -1
- package/dist/core/utils/writeClientModels.d.ts +1 -1
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.d.ts +1 -1
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.d.ts +1 -1
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemasIndex.d.ts +1 -1
- package/dist/core/utils/writeClientSchemasIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.d.ts +1 -1
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServicesIndex.d.ts +1 -1
- package/dist/core/utils/writeClientServicesIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSimpleIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSimpleIndex.js +1 -1
- package/dist/templatesCompiled/client/core/createExecutorAdapter.d.ts +12 -0
- package/dist/templatesCompiled/client/core/createExecutorAdapter.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/createExecutorAdapter.js +32 -0
- package/dist/templatesCompiled/client/{core/legacy-request-adapter.d.ts → exportClient.d.ts} +3 -1
- package/dist/templatesCompiled/client/exportClient.d.ts.map +1 -0
- package/dist/templatesCompiled/client/exportClient.js +49 -0
- package/dist/templatesCompiled/client/indexCore.js +2 -2
- package/dist/templatesCompiled/client/indexFull.d.ts +12 -9
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexFull.js +69 -46
- package/dist/templatesCompiled/client/indexSimple.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexSimple.js +2 -1
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts +2 -1
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/serviceOption.js +36 -30
- package/package.json +1 -1
- package/dist/templatesCompiled/client/core/legacy-request-adapter.d.ts.map +0 -1
- package/dist/templatesCompiled/client/core/legacy-request-adapter.js +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientSchemas.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemas.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"writeClientSchemas.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemas.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;GAMG;AACH,UAAU,mBAAmB;IACzB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACzC;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiCvG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Templates } from '../types/base/Templates.model';
|
|
1
2
|
import { Model } from '../types/shared/Model.model';
|
|
2
3
|
import { WriteClient } from '../WriteClient';
|
|
3
|
-
import { Templates } from './registerHandlebarTemplates';
|
|
4
4
|
interface IOptionsProps {
|
|
5
5
|
models: Model[];
|
|
6
6
|
templates: Templates;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientSchemasIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemasIndex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"writeClientSchemasIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemasIndex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,UAAU,aAAa;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,iBActF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OutputPaths } from '../types/base/OutputPaths.model';
|
|
2
|
+
import { Templates } from '../types/base/Templates.model';
|
|
2
3
|
import { HttpClient } from '../types/enums/HttpClient.enum';
|
|
3
4
|
import type { Service } from '../types/shared/Service.model';
|
|
4
5
|
import { WriteClient } from '../WriteClient';
|
|
5
|
-
import { Templates } from './registerHandlebarTemplates';
|
|
6
6
|
type TServeceOutputsPath = Omit<OutputPaths, 'output' | 'outputSchemas'>;
|
|
7
7
|
/**
|
|
8
8
|
* @param services Array of Services to write
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,KAAK,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,eAAe,CAAC,CAAC;AAEzE;;;;;;;;GAQG;AACH,UAAU,oBAAoB;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BzG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Templates } from '../types/base/Templates.model';
|
|
1
2
|
import { Service } from '../types/shared/Service.model';
|
|
2
3
|
import { WriteClient } from '../WriteClient';
|
|
3
|
-
import { Templates } from './registerHandlebarTemplates';
|
|
4
4
|
interface IOptionsProps {
|
|
5
5
|
services: Service[];
|
|
6
6
|
templates: Templates;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientServicesIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServicesIndex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"writeClientServicesIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServicesIndex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,UAAU,aAAa;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,iBAcvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientSimpleIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSimpleIndex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"writeClientSimpleIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSimpleIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB7G"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writeClientSimpleIndex = writeClientSimpleIndex;
|
|
4
|
-
const pathHelpers_1 = require("../../common/utils/pathHelpers");
|
|
5
4
|
const fileSystemHelpers_1 = require("../../common/utils/fileSystemHelpers");
|
|
5
|
+
const pathHelpers_1 = require("../../common/utils/pathHelpers");
|
|
6
6
|
/**
|
|
7
7
|
* Generate the OpenAPI client index file using the Handlebar template and write it to disk.
|
|
8
8
|
* The index file just contains all the exports you need to use the client as a standalone
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: {
|
|
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) => string;
|
|
4
|
+
"5": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
5
|
+
"7": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
|
+
compiler: (string | number)[];
|
|
7
|
+
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
|
+
usePartial: boolean;
|
|
9
|
+
useData: boolean;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=createExecutorAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createExecutorAdapter.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/core/createExecutorAdapter.ts"],"names":[],"mappings":";;;;;;;;;;AAMA,wBAwBmC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// This is an automatically generated file for the hbs template.
|
|
4
|
+
// You don't need to change it, run npm run build:hbs to update it.
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint: disable */
|
|
7
|
+
/* eslint: disable */
|
|
8
|
+
// @ts-nocheck
|
|
9
|
+
exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
10
|
+
return "import type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { TOpenAPIConfig } from './OpenAPI';\nimport { OpenAPI } from './OpenAPI';\n";
|
|
11
|
+
}, "3": function (container, depth0, helpers, partials, data) {
|
|
12
|
+
return " openApiConfig: TOpenAPIConfig = OpenAPI,\n mapOptions?: (options: TRequestOptions | undefined) => Partial<ApiRequestOptions>,\n";
|
|
13
|
+
}, "5": function (container, depth0, helpers, partials, data) {
|
|
14
|
+
return " request<TResponse>(config: RequestConfig, options?: TRequestOptions): Promise<TResponse> {\n return __request(config, options) as Promise<TResponse>;\n },\n";
|
|
15
|
+
}, "7": function (container, depth0, helpers, partials, data) {
|
|
16
|
+
return " request<TResponse>(config: RequestConfig, options?: TRequestOptions): Promise<TResponse> {\n const baseOptions: ApiRequestOptions = {\n method: config.method as ApiRequestOptions['method'],\n path: config.path,\n headers: config.headers,\n query: config.query,\n body: config.body,\n };\n\n const mergedOptions: ApiRequestOptions = {\n ...baseOptions,\n ...(mapOptions ? mapOptions(options) : {}),\n };\n\n return __request<TResponse>(mergedOptions, openApiConfig);\n },\n";
|
|
17
|
+
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
18
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
19
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
20
|
+
return parent[propertyName];
|
|
21
|
+
}
|
|
22
|
+
return undefined;
|
|
23
|
+
};
|
|
24
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
25
|
+
+ "\nimport type { RequestExecutor, RequestConfig } from './request-executor';\n"
|
|
26
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCustomRequest"), { "name": "unless", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 11 } } })) != null ? stack1 : "")
|
|
27
|
+
+ "import { request as __request } from './request';\n\nexport function createExecutorAdapter<TRequestOptions extends Record<string, any>>(\n"
|
|
28
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCustomRequest"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 15, "column": 11 } } })) != null ? stack1 : "")
|
|
29
|
+
+ "): RequestExecutor<TRequestOptions> {\n return {\n"
|
|
30
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCustomRequest"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.program(7, data, 0), "data": data, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 39, "column": 15 } } })) != null ? stack1 : "")
|
|
31
|
+
+ " };\n}\n";
|
|
32
|
+
}, "usePartial": true, "useData": true };
|
package/dist/templatesCompiled/client/{core/legacy-request-adapter.d.ts → exportClient.d.ts}
RENAMED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare const _default: {
|
|
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) => string;
|
|
2
4
|
compiler: (string | number)[];
|
|
3
5
|
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
4
6
|
usePartial: boolean;
|
|
5
7
|
useData: boolean;
|
|
6
8
|
};
|
|
7
9
|
export default _default;
|
|
8
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=exportClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportClient.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportClient.ts"],"names":[],"mappings":";;;;;;;;AAMA,wBA2CmC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// This is an automatically generated file for the hbs template.
|
|
4
|
+
// You don't need to change it, run npm run build:hbs to update it.
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint: disable */
|
|
7
|
+
/* eslint: disable */
|
|
8
|
+
// @ts-nocheck
|
|
9
|
+
exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
10
|
+
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
11
|
+
return "import { "
|
|
12
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 9, "column": 11 }, "end": { "line": 9, "column": 15 } }), depth0)) != null ? stack1 : "")
|
|
13
|
+
+ " } from './services/"
|
|
14
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 9, "column": 39 }, "end": { "line": 9, "column": 43 } }), depth0)) != null ? stack1 : "")
|
|
15
|
+
+ "';\n";
|
|
16
|
+
}, "3": function (container, depth0, helpers, partials, data) {
|
|
17
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
19
|
+
return parent[propertyName];
|
|
20
|
+
}
|
|
21
|
+
return undefined;
|
|
22
|
+
};
|
|
23
|
+
return " "
|
|
24
|
+
+ ((stack1 = lookupProperty(helpers, "camelCase").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "name"), { "name": "camelCase", "hash": {}, "data": data, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 22 } } })) != null ? stack1 : "")
|
|
25
|
+
+ ": new "
|
|
26
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 29, "column": 30 }, "end": { "line": 29, "column": 34 } }), depth0)) != null ? stack1 : "")
|
|
27
|
+
+ "(executor),\n";
|
|
28
|
+
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
29
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
31
|
+
return parent[propertyName];
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
};
|
|
35
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
36
|
+
+ "\nimport { OpenAPI } from '"
|
|
37
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "OpenAPI", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 66 } } })) != null ? stack1 : "")
|
|
38
|
+
+ "';\nimport type { TOpenAPIConfig } from '"
|
|
39
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "OpenAPI", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 4, "column": 37 }, "end": { "line": 4, "column": 78 } } })) != null ? stack1 : "")
|
|
40
|
+
+ "';\nimport type { RequestExecutor } from '"
|
|
41
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "request-executor", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 5, "column": 38 }, "end": { "line": 5, "column": 88 } } })) != null ? stack1 : "")
|
|
42
|
+
+ "';\nimport { createExecutorAdapter } from '"
|
|
43
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "createExecutorAdapter", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 6, "column": 94 } } })) != null ? stack1 : "")
|
|
44
|
+
+ "';\n\n"
|
|
45
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "services"), { "name": "each", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 9 } } })) != null ? stack1 : "")
|
|
46
|
+
+ "\nexport interface ClientOptions<TExecutorOptions extends Record<string, any>> {\n openApi?: Partial<TOpenAPIConfig>;\n executor?: RequestExecutor<TExecutorOptions>;\n}\n\nexport function createClient<TExecutorOptions extends Record<string, any>>(\n options: ClientOptions<TExecutorOptions> = {},\n) {\n const openApiConfig: TOpenAPIConfig = {\n ...OpenAPI,\n ...options.openApi,\n };\n\n const executor = createExecutorAdapter<TExecutorOptions>(openApiConfig);\n\n return {\n"
|
|
47
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "services"), { "name": "each", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 30, "column": 13 } } })) != null ? stack1 : "")
|
|
48
|
+
+ " };\n}\n";
|
|
49
|
+
}, "usePartial": true, "useData": true };
|
|
@@ -16,7 +16,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
16
16
|
return undefined;
|
|
17
17
|
};
|
|
18
18
|
return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
19
|
-
+ "\nexport { ApiError } from './ApiError';\n"
|
|
20
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line":
|
|
19
|
+
+ "\nexport { ApiError } from './ApiError';\nexport { RequestConfig, RequestExecutor } from './request-executor';\nexport { createLegacyExecutor } from './legacy-request-adapter';\n"
|
|
20
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 7 } } })) != null ? stack1 : "")
|
|
21
21
|
+ "export { OpenAPI } from './OpenAPI';\nexport type { TOpenAPIConfig } from './OpenAPI';\n";
|
|
22
22
|
}, "usePartial": true, "useData": true };
|
|
@@ -6,19 +6,22 @@ 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
|
-
"12": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
10
9
|
"13": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
11
|
-
"
|
|
12
|
-
"16": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
10
|
+
"15": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
13
11
|
"17": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
12
|
+
"18": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
13
|
+
"19": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
14
|
+
"20": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
15
|
+
"22": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
17
16
|
"23": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
18
|
-
"25": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
19
|
-
"
|
|
17
|
+
"25": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
18
|
+
"27": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
19
|
+
"28": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
20
|
+
"29": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
21
|
+
"31": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
22
|
+
"32": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
20
23
|
compiler: (string | number)[];
|
|
21
|
-
main: (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) =>
|
|
24
|
+
main: (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => string;
|
|
22
25
|
usePartial: boolean;
|
|
23
26
|
useData: boolean;
|
|
24
27
|
useDepths: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexFull.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexFull.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"indexFull.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexFull.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA8NoD"}
|
|
@@ -14,7 +14,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
14
14
|
return undefined;
|
|
15
15
|
};
|
|
16
16
|
return "\n"
|
|
17
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "core"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line":
|
|
17
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "core"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 13, "column": 9 } } })) != null ? stack1 : "");
|
|
18
18
|
}, "2": function (container, depth0, helpers, partials, data, blockParams, depths) {
|
|
19
19
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
20
20
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -26,22 +26,44 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
26
26
|
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(3, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 87 } } })) != null ? stack1 : "")
|
|
27
27
|
+ " } from './"
|
|
28
28
|
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "ApiError", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 5, "column": 98 }, "end": { "line": 5, "column": 128 } } })) != null ? stack1 : "")
|
|
29
|
+
+ "';\nexport { RequestConfig"
|
|
30
|
+
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(5, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 22 }, "end": { "line": 6, "column": 97 } } })) != null ? stack1 : "")
|
|
31
|
+
+ ", RequestExecutor"
|
|
32
|
+
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(7, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 114 }, "end": { "line": 6, "column": 191 } } })) != null ? stack1 : "")
|
|
33
|
+
+ " } from './"
|
|
34
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "request-executor", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 6, "column": 202 }, "end": { "line": 6, "column": 240 } } })) != null ? stack1 : "")
|
|
35
|
+
+ "';\nexport { createExecutorAdapter"
|
|
36
|
+
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(9, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 7, "column": 113 } } })) != null ? stack1 : "")
|
|
37
|
+
+ " } from './"
|
|
38
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "createExecutorAdapter", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 7, "column": 124 }, "end": { "line": 7, "column": 167 } } })) != null ? stack1 : "")
|
|
29
39
|
+ "';\n"
|
|
30
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(
|
|
40
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(11, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 7 } } })) != null ? stack1 : "")
|
|
31
41
|
+ "export { OpenAPI"
|
|
32
|
-
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(
|
|
42
|
+
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(13, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 86 } } })) != null ? stack1 : "")
|
|
33
43
|
+ " } from './"
|
|
34
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "OpenAPI", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
44
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "OpenAPI", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 11, "column": 97 }, "end": { "line": 11, "column": 126 } } })) != null ? stack1 : "")
|
|
35
45
|
+ "';\nexport type { TOpenAPIConfig"
|
|
36
|
-
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(
|
|
46
|
+
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(15, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 12, "column": 28 }, "end": { "line": 12, "column": 104 } } })) != null ? stack1 : "")
|
|
37
47
|
+ " } from './"
|
|
38
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "OpenAPI", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
48
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "OpenAPI", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 12, "column": 115 }, "end": { "line": 12, "column": 144 } } })) != null ? stack1 : "")
|
|
39
49
|
+ "';\n";
|
|
40
50
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
41
51
|
var stack1;
|
|
42
52
|
return " as ApiError$"
|
|
43
53
|
+ ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line": 5, "column": 64 }, "end": { "line": 5, "column": 70 } }), depth0)) != null ? stack1 : "");
|
|
44
54
|
}, "5": function (container, depth0, helpers, partials, data) {
|
|
55
|
+
var stack1;
|
|
56
|
+
return " as RequestConfig$"
|
|
57
|
+
+ ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line": 6, "column": 74 }, "end": { "line": 6, "column": 80 } }), depth0)) != null ? stack1 : "");
|
|
58
|
+
}, "7": function (container, depth0, helpers, partials, data) {
|
|
59
|
+
var stack1;
|
|
60
|
+
return " as RequestExecutor$"
|
|
61
|
+
+ ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line": 6, "column": 168 }, "end": { "line": 6, "column": 174 } }), depth0)) != null ? stack1 : "");
|
|
62
|
+
}, "9": function (container, depth0, helpers, partials, data) {
|
|
63
|
+
var stack1;
|
|
64
|
+
return " as createExecutorAdapter$"
|
|
65
|
+
+ ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line": 7, "column": 90 }, "end": { "line": 7, "column": 96 } }), depth0)) != null ? stack1 : "");
|
|
66
|
+
}, "11": function (container, depth0, helpers, partials, data) {
|
|
45
67
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
46
68
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
47
69
|
return parent[propertyName];
|
|
@@ -49,17 +71,17 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
49
71
|
return undefined;
|
|
50
72
|
};
|
|
51
73
|
return "export { CancelablePromise } from './"
|
|
52
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), depth0, "CancelablePromise", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
74
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), depth0, "CancelablePromise", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 9, "column": 37 }, "end": { "line": 9, "column": 76 } } })) != null ? stack1 : "")
|
|
53
75
|
+ "';\n";
|
|
54
|
-
}, "
|
|
76
|
+
}, "13": function (container, depth0, helpers, partials, data) {
|
|
55
77
|
var stack1;
|
|
56
78
|
return " as OpenAPI$"
|
|
57
|
-
+ ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line":
|
|
58
|
-
}, "
|
|
79
|
+
+ ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line": 11, "column": 63 }, "end": { "line": 11, "column": 69 } }), depth0)) != null ? stack1 : "");
|
|
80
|
+
}, "15": function (container, depth0, helpers, partials, data) {
|
|
59
81
|
var stack1;
|
|
60
82
|
return " as TOpenAPIConfig$"
|
|
61
|
-
+ ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line":
|
|
62
|
-
}, "
|
|
83
|
+
+ ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line": 12, "column": 81 }, "end": { "line": 12, "column": 87 } }), depth0)) != null ? stack1 : "");
|
|
84
|
+
}, "17": function (container, depth0, helpers, partials, data) {
|
|
63
85
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
64
86
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
65
87
|
return parent[propertyName];
|
|
@@ -67,16 +89,16 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
67
89
|
return undefined;
|
|
68
90
|
};
|
|
69
91
|
return "\n"
|
|
70
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "models"), { "name": "each", "hash": {}, "fn": container.program(
|
|
71
|
-
}, "
|
|
92
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "models"), { "name": "each", "hash": {}, "fn": container.program(18, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 27, "column": 9 } } })) != null ? stack1 : "");
|
|
93
|
+
}, "18": function (container, depth0, helpers, partials, data) {
|
|
72
94
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
73
95
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
74
96
|
return parent[propertyName];
|
|
75
97
|
}
|
|
76
98
|
return undefined;
|
|
77
99
|
};
|
|
78
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enum"), { "name": "if", "hash": {}, "fn": container.program(
|
|
79
|
-
}, "
|
|
100
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enum"), { "name": "if", "hash": {}, "fn": container.program(19, data, 0), "inverse": container.program(22, data, 0), "data": data, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 26, "column": 7 } } })) != null ? stack1 : "");
|
|
101
|
+
}, "19": function (container, depth0, helpers, partials, data) {
|
|
80
102
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
81
103
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
82
104
|
return parent[propertyName];
|
|
@@ -84,24 +106,24 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
84
106
|
return undefined;
|
|
85
107
|
};
|
|
86
108
|
return "export { "
|
|
87
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
88
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(
|
|
109
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 16 } }), depth0)) != null ? stack1 : "")
|
|
110
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(20, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 19, "column": 19 }, "end": { "line": 19, "column": 55 } } })) != null ? stack1 : "")
|
|
89
111
|
+ " } from './"
|
|
90
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(depth0, "package"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
112
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(depth0, "package"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 19, "column": 66 }, "end": { "line": 19, "column": 93 } } })) != null ? stack1 : "")
|
|
91
113
|
+ "';\n";
|
|
92
|
-
}, "
|
|
114
|
+
}, "20": function (container, depth0, helpers, partials, data) {
|
|
93
115
|
var stack1;
|
|
94
116
|
return " as "
|
|
95
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "alias", { "start": { "line":
|
|
96
|
-
}, "
|
|
117
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "alias", { "start": { "line": 19, "column": 40 }, "end": { "line": 19, "column": 45 } }), depth0)) != null ? stack1 : "");
|
|
118
|
+
}, "22": function (container, depth0, helpers, partials, data) {
|
|
97
119
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
98
120
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
99
121
|
return parent[propertyName];
|
|
100
122
|
}
|
|
101
123
|
return undefined;
|
|
102
124
|
};
|
|
103
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "useUnionTypes"), { "name": "if", "hash": {}, "fn": container.program(
|
|
104
|
-
}, "
|
|
125
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "useUnionTypes"), { "name": "if", "hash": {}, "fn": container.program(23, data, 0), "inverse": container.program(25, data, 0), "data": data, "loc": { "start": { "line": 20, "column": 0 }, "end": { "line": 26, "column": 0 } } })) != null ? stack1 : "");
|
|
126
|
+
}, "23": function (container, depth0, helpers, partials, data) {
|
|
105
127
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
106
128
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
107
129
|
return parent[propertyName];
|
|
@@ -109,20 +131,20 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
109
131
|
return undefined;
|
|
110
132
|
};
|
|
111
133
|
return "export type { "
|
|
112
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
113
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(
|
|
134
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 21, "column": 17 }, "end": { "line": 21, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
135
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(20, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 21, "column": 24 }, "end": { "line": 21, "column": 60 } } })) != null ? stack1 : "")
|
|
114
136
|
+ " } from './"
|
|
115
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(depth0, "package"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
137
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(depth0, "package"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 21, "column": 71 }, "end": { "line": 21, "column": 98 } } })) != null ? stack1 : "")
|
|
116
138
|
+ "';\n";
|
|
117
|
-
}, "
|
|
139
|
+
}, "25": function (container, depth0, helpers, partials, data) {
|
|
118
140
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
119
141
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
120
142
|
return parent[propertyName];
|
|
121
143
|
}
|
|
122
144
|
return undefined;
|
|
123
145
|
};
|
|
124
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enums"), { "name": "if", "hash": {}, "fn": container.program(
|
|
125
|
-
}, "
|
|
146
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enums"), { "name": "if", "hash": {}, "fn": container.program(19, data, 0), "inverse": container.program(23, data, 0), "data": data, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 26, "column": 0 } } })) != null ? stack1 : "");
|
|
147
|
+
}, "27": function (container, depth0, helpers, partials, data) {
|
|
126
148
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
127
149
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
128
150
|
return parent[propertyName];
|
|
@@ -130,8 +152,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
130
152
|
return undefined;
|
|
131
153
|
};
|
|
132
154
|
return "\n"
|
|
133
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "schemas"), { "name": "each", "hash": {}, "fn": container.program(
|
|
134
|
-
}, "
|
|
155
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "schemas"), { "name": "each", "hash": {}, "fn": container.program(28, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 31, "column": 0 }, "end": { "line": 33, "column": 9 } } })) != null ? stack1 : "");
|
|
156
|
+
}, "28": function (container, depth0, helpers, partials, data) {
|
|
135
157
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
136
158
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
137
159
|
return parent[propertyName];
|
|
@@ -139,18 +161,18 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
139
161
|
return undefined;
|
|
140
162
|
};
|
|
141
163
|
return "export { "
|
|
142
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
164
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 32, "column": 12 }, "end": { "line": 32, "column": 16 } }), depth0)) != null ? stack1 : "")
|
|
143
165
|
+ "Schema"
|
|
144
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(
|
|
166
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(29, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 32, "column": 25 }, "end": { "line": 32, "column": 67 } } })) != null ? stack1 : "")
|
|
145
167
|
+ " } from './"
|
|
146
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(depth0, "package"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
168
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(depth0, "package"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 32, "column": 78 }, "end": { "line": 32, "column": 105 } } })) != null ? stack1 : "")
|
|
147
169
|
+ "Schema';\n";
|
|
148
|
-
}, "
|
|
170
|
+
}, "29": function (container, depth0, helpers, partials, data) {
|
|
149
171
|
var stack1;
|
|
150
172
|
return " as "
|
|
151
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "alias", { "start": { "line":
|
|
173
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "alias", { "start": { "line": 32, "column": 46 }, "end": { "line": 32, "column": 51 } }), depth0)) != null ? stack1 : "")
|
|
152
174
|
+ "Schema";
|
|
153
|
-
}, "
|
|
175
|
+
}, "31": function (container, depth0, helpers, partials, data) {
|
|
154
176
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
155
177
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
156
178
|
return parent[propertyName];
|
|
@@ -158,8 +180,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
158
180
|
return undefined;
|
|
159
181
|
};
|
|
160
182
|
return "\n"
|
|
161
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "services"), { "name": "each", "hash": {}, "fn": container.program(
|
|
162
|
-
}, "
|
|
183
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "services"), { "name": "each", "hash": {}, "fn": container.program(32, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 37, "column": 0 }, "end": { "line": 39, "column": 9 } } })) != null ? stack1 : "");
|
|
184
|
+
}, "32": function (container, depth0, helpers, partials, data) {
|
|
163
185
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
164
186
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
165
187
|
return parent[propertyName];
|
|
@@ -167,9 +189,9 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
167
189
|
return undefined;
|
|
168
190
|
};
|
|
169
191
|
return "export { "
|
|
170
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
192
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 38, "column": 12 }, "end": { "line": 38, "column": 16 } }), depth0)) != null ? stack1 : "")
|
|
171
193
|
+ " } from './"
|
|
172
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "package"), lookupProperty(depth0, "name"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
194
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "package"), lookupProperty(depth0, "name"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 38, "column": 30 }, "end": { "line": 38, "column": 57 } } })) != null ? stack1 : "")
|
|
173
195
|
+ "';\n";
|
|
174
196
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data, blockParams, depths) {
|
|
175
197
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -179,8 +201,9 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
179
201
|
return undefined;
|
|
180
202
|
};
|
|
181
203
|
return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
182
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "core"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line":
|
|
183
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "models"), { "name": "if", "hash": {}, "fn": container.program(
|
|
184
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "schemas"), { "name": "if", "hash": {}, "fn": container.program(
|
|
185
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "services"), { "name": "if", "hash": {}, "fn": container.program(
|
|
204
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "core"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 14, "column": 7 } } })) != null ? stack1 : "")
|
|
205
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "models"), { "name": "if", "hash": {}, "fn": container.program(17, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 28, "column": 7 } } })) != null ? stack1 : "")
|
|
206
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "schemas"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 29, "column": 0 }, "end": { "line": 34, "column": 7 } } })) != null ? stack1 : "")
|
|
207
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "services"), { "name": "if", "hash": {}, "fn": container.program(31, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 35, "column": 0 }, "end": { "line": 40, "column": 7 } } })) != null ? stack1 : "")
|
|
208
|
+
+ "\nexport { ClientOptions, createClient } from './createClient';\n";
|
|
186
209
|
}, "usePartial": true, "useData": true, "useDepths": true };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexSimple.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexSimple.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,
|
|
1
|
+
{"version":3,"file":"indexSimple.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexSimple.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,wBA8HoD"}
|
|
@@ -117,5 +117,6 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
117
117
|
+ "\n\n"
|
|
118
118
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "schemas"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 20, "column": 7 } } })) != null ? stack1 : "")
|
|
119
119
|
+ "\n"
|
|
120
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "services"), { "name": "if", "hash": {}, "fn": container.program(13, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 26, "column": 7 } } })) != null ? stack1 : "")
|
|
120
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "services"), { "name": "if", "hash": {}, "fn": container.program(13, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 26, "column": 7 } } })) != null ? stack1 : "")
|
|
121
|
+
+ "\nexport { ClientOptions, createClient } from './createClient';\n";
|
|
121
122
|
}, "usePartial": true, "useData": true, "useDepths": true };
|
|
@@ -4,8 +4,9 @@ declare const _default: {
|
|
|
4
4
|
"4": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
5
5
|
"6": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
6
|
"8": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
7
|
-
"
|
|
7
|
+
"10": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
8
8
|
"11": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
9
|
+
"12": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
9
10
|
compiler: (string | number)[];
|
|
10
11
|
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
11
12
|
useData: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceOption.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/partials/serviceOption.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"serviceOption.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/partials/serviceOption.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAMA,wBAwGiB"}
|