@hey-api/openapi-ts 0.90.7 → 0.90.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -2
- package/dist/index.d.cts +3 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/internal.d.cts +2 -1
- package/dist/internal.d.mts +2 -1
- package/dist/openApi-B6J9qPwL.mjs.map +1 -1
- package/dist/openApi-BZ7m5ia5.cjs.map +1 -1
- package/dist/run.cjs +2 -2
- package/dist/run.mjs +2 -2
- package/dist/{src-BehyjtZ7.mjs → src-C9rj3EgV.mjs} +8 -144
- package/dist/src-C9rj3EgV.mjs.map +1 -0
- package/dist/{src-BkOFTEi8.cjs → src-Dbxz7RgS.cjs} +7 -149
- package/dist/src-Dbxz7RgS.cjs.map +1 -0
- package/dist/{config-CU3acGju.d.mts → types-ByDiVB9E.d.mts} +4636 -4655
- package/dist/{config-BF7XAWuG.d.cts → types-DzR_aHdx.d.cts} +4636 -4655
- package/package.json +2 -2
- package/dist/src-BehyjtZ7.mjs.map +0 -1
- package/dist/src-BkOFTEi8.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
const require_openApi = require('./openApi-BZ7m5ia5.cjs');
|
|
3
|
-
const require_src = require('./src-
|
|
3
|
+
const require_src = require('./src-Dbxz7RgS.cjs');
|
|
4
|
+
let _hey_api_codegen_core = require("@hey-api/codegen-core");
|
|
4
5
|
|
|
5
6
|
exports.$ = require_openApi.$;
|
|
6
|
-
exports
|
|
7
|
+
Object.defineProperty(exports, 'Logger', {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _hey_api_codegen_core.Logger;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
7
13
|
exports.OperationPath = require_openApi.OperationPath;
|
|
8
14
|
exports.OperationStrategy = require_openApi.OperationStrategy;
|
|
9
15
|
exports.TsDsl = require_openApi.TsDsl;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as CallArgs, C as keywords, D as ExampleOptions, E as TypeTsDsl, M as OperationStrategy, N as Casing, O as TsDslContext, P as IR, S as regexp, T as TsDsl, _ as PluginHandler, a as Plugin, b as reserved, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as Client$2, h as ExpressionTransformer, i as DefinePlugin, j as OperationPath, k as ctx, l as OpenApiParameterObject, m as TypeTransformer, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as $, w as MaybeTsDsl, x as TypeScriptRenderer, y as DollarTsDsl } from "./types-DzR_aHdx.cjs";
|
|
3
|
+
import { Logger } from "@hey-api/codegen-core";
|
|
3
4
|
import { LazyOrAsync, MaybeArray } from "@hey-api/types";
|
|
4
5
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
5
6
|
import { Injector } from "@angular/core";
|
|
@@ -880,7 +881,7 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
880
881
|
*
|
|
881
882
|
* @param userConfig User provided {@link UserConfig} configuration(s).
|
|
882
883
|
*/
|
|
883
|
-
declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?:
|
|
884
|
+
declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: any) => Promise<ReadonlyArray<Context>>;
|
|
884
885
|
//#endregion
|
|
885
886
|
//#region src/config/parser.d.ts
|
|
886
887
|
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as
|
|
3
|
-
import "@hey-api/codegen-core";
|
|
2
|
+
import { A as MaybeTsDsl, B as IR, C as Client, D as TypeScriptRenderer, E as reserved, F as ctx, I as CallArgs, L as OperationPath, M as TypeTsDsl, N as ExampleOptions, O as regexp, P as TsDslContext, R as OperationStrategy, S as Client$1, T as DollarTsDsl, _ as PluginHandler, a as Plugin, b as Client$4, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as Client$2, h as ExpressionTransformer, i as DefinePlugin, j as TsDsl, k as keywords, l as OpenApiParameterObject, m as TypeTransformer, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as Client$6, w as $, x as Client$3, y as Client$5, z as Casing } from "./types-ByDiVB9E.mjs";
|
|
3
|
+
import { Logger } from "@hey-api/codegen-core";
|
|
4
4
|
import { LazyOrAsync, MaybeArray } from "@hey-api/types";
|
|
5
5
|
|
|
6
6
|
//#region src/generate.d.ts
|
|
@@ -10,7 +10,7 @@ import { LazyOrAsync, MaybeArray } from "@hey-api/types";
|
|
|
10
10
|
*
|
|
11
11
|
* @param userConfig User provided {@link UserConfig} configuration(s).
|
|
12
12
|
*/
|
|
13
|
-
declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?:
|
|
13
|
+
declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: any) => Promise<ReadonlyArray<Context>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/config/parser.d.ts
|
|
16
16
|
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { C as defaultPaginationKeywords, S as definePluginConfig, _ as regexp, a as defaultPlugins, b as OperationPath, c as clientDefaultConfig, d as $, f as TypeScriptRenderer, g as keywords, h as reserved, l as clientDefaultMeta, m as ctx, o as clientPluginHandler, p as TsDslContext, v as TsDsl, x as OperationStrategy } from "./openApi-B6J9qPwL.mjs";
|
|
3
|
-
import { i as
|
|
3
|
+
import { i as createClient, n as defineConfig, r as utils, t as Logger } from "./src-C9rj3EgV.mjs";
|
|
4
4
|
|
|
5
5
|
export { $, Logger, OperationPath, OperationStrategy, TsDsl, TsDslContext, TypeScriptRenderer, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
|
package/dist/internal.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { n as UserConfig, p as Context, r as Input, t as Config } from "./types-DzR_aHdx.cjs";
|
|
3
|
+
import { Logger } from "@hey-api/codegen-core";
|
|
3
4
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
4
5
|
|
|
5
6
|
//#region src/config/init.d.ts
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { n as UserConfig, p as Context, r as Input, t as Config } from "./types-ByDiVB9E.mjs";
|
|
3
|
+
import { Logger } from "@hey-api/codegen-core";
|
|
3
4
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
4
5
|
|
|
5
6
|
//#region src/config/init.d.ts
|