@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 CHANGED
@@ -1,9 +1,15 @@
1
1
 
2
2
  const require_openApi = require('./openApi-BZ7m5ia5.cjs');
3
- const require_src = require('./src-BkOFTEi8.cjs');
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.Logger = require_src.Logger;
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 ctx, C as regexp, D as TypeTsDsl, E as TsDsl, F as Casing, M as OperationPath, N as OperationStrategy, O as ExampleOptions, P as IR, S as TypeScriptRenderer, T as MaybeTsDsl, _ as Client$2, a as Plugin, b as DollarTsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as CallArgs, k as TsDslContext, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as keywords, x as reserved, y as $ } from "./config-BF7XAWuG.cjs";
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?: Logger) => Promise<ReadonlyArray<Context>>;
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 keywords, B as IR, C as Client$1, D as reserved, E as DollarTsDsl, F as TsDslContext, I as ctx, L as CallArgs, M as TsDsl, N as TypeTsDsl, O as TypeScriptRenderer, P as ExampleOptions, R as OperationPath, S as Client$3, T as $, V as Casing, _ as Client$2, a as Plugin, b as Client$5, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as MaybeTsDsl, k as regexp, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as Client, x as Client$4, y as Client$6, z as OperationStrategy } from "./config-CU3acGju.mjs";
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?: Logger) => Promise<ReadonlyArray<Context>>;
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 Logger, n as utils, r as createClient, t as defineConfig } from "./src-BehyjtZ7.mjs";
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 };
@@ -1,5 +1,6 @@
1
1
 
2
- import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-BF7XAWuG.cjs";
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
@@ -1,5 +1,6 @@
1
1
 
2
- import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-CU3acGju.mjs";
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