@hey-api/openapi-ts 0.86.4 → 0.86.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/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as FunctionParameter, D as ImportExportItemObject, E as Comments, F as __export, M as ObjectValue, N as SyntaxKindKeyword, O as tsNodeToString, P as types_d_exports, S as StringCase, T as MaybeArray, _ as OpenApiOperationObject, a as ExpressionTransformer, b as OpenApiResponseObject, c as DefinePlugin, f as Logger, g as OpenApiMetaObject, h as OpenApi, i as TypeTransformer, j as FunctionTypeParameter, k as AccessLevel, l as Plugin, m as UserConfig, o as Client$2, r as IR, s as PluginHandler, t as LegacyIR, u as Client$7, v as OpenApiParameterObject, w as LazyOrAsync, x as OpenApiSchemaObject, y as OpenApiRequestBodyObject } from "./types-CQZml4KE.cjs";
1
+ import { A as FunctionParameter, C as StringCase, D as ImportExportItemObject, E as Comments, F as __export, M as ObjectValue, N as SyntaxKindKeyword, O as tsNodeToString, P as types_d_exports, S as PluginHandler, T as MaybeArray, _ as OpenApiResponseObject, b as Logger, c as ExpressionTransformer, d as Client$7, f as OpenApi, g as OpenApiRequestBodyObject, h as OpenApiParameterObject, i as UserConfig, j as FunctionTypeParameter, k as AccessLevel, l as DefinePlugin, m as OpenApiOperationObject, o as IR, p as OpenApiMetaObject, s as TypeTransformer, t as LegacyIR, u as Plugin, v as OpenApiSchemaObject, w as LazyOrAsync, x as Client$2 } from "./types-ComCm5zo.cjs";
2
2
  import * as typescript0 from "typescript";
3
3
  import ts from "typescript";
4
4
  import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
@@ -874,6 +874,14 @@ interface TDataShape {
874
874
  type OmitKeys<T$1, K$1> = Pick<T$1, Exclude<keyof T$1, K$1>>;
875
875
  type Options$1<TData$1 extends TDataShape = TDataShape, ThrowOnError$1 extends boolean = boolean, TResponse = unknown, TResponseStyle$1 extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle$1, ThrowOnError$1>, 'body' | 'path' | 'query' | 'url'> & Omit<TData$1, 'url'>;
876
876
  //#endregion
877
+ //#region src/generate.d.ts
878
+ /**
879
+ * Generate a client from the provided configuration.
880
+ *
881
+ * @param userConfig User provided {@link UserConfig} configuration(s).
882
+ */
883
+ declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
884
+ //#endregion
877
885
  //#region src/config/parser.d.ts
878
886
  declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
879
887
  //#endregion
@@ -2119,12 +2127,6 @@ declare module '@hey-api/codegen-core' {
2119
2127
  tags?: Set<string>;
2120
2128
  }
2121
2129
  }
2122
- /**
2123
- * Generate a client from the provided configuration.
2124
- *
2125
- * @param userConfig User provided {@link UserConfig} configuration(s).
2126
- */
2127
- declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
2128
2130
  /**
2129
2131
  * Type helper for openapi-ts.config.ts, returns {@link MaybeArray<UserConfig>} object(s)
2130
2132
  */
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as __export } from "./chunk-C-EqMg7d.js";
2
- import { A as FunctionParameter, D as ImportExportItemObject, E as Comments, M as ObjectValue, N as SyntaxKindKeyword, O as tsNodeToString, P as types_d_exports, S as StringCase, T as MaybeArray, _ as OpenApiOperationObject, a as ExpressionTransformer, b as OpenApiResponseObject, c as DefinePlugin, f as Logger, g as OpenApiMetaObject, h as OpenApi, i as TypeTransformer, j as FunctionTypeParameter, k as AccessLevel, l as Plugin, m as UserConfig, o as Client$2, r as IR, s as PluginHandler, t as LegacyIR, u as Client$7, v as OpenApiParameterObject, w as LazyOrAsync, x as OpenApiSchemaObject, y as OpenApiRequestBodyObject } from "./types-yDJUUQN6.js";
2
+ import { A as FunctionParameter, C as StringCase, D as ImportExportItemObject, E as Comments, M as ObjectValue, N as SyntaxKindKeyword, O as tsNodeToString, P as types_d_exports, S as PluginHandler, T as MaybeArray, _ as OpenApiResponseObject, b as Logger, c as ExpressionTransformer, d as Client$7, f as OpenApi, g as OpenApiRequestBodyObject, h as OpenApiParameterObject, i as UserConfig, j as FunctionTypeParameter, k as AccessLevel, l as DefinePlugin, m as OpenApiOperationObject, o as IR, p as OpenApiMetaObject, s as TypeTransformer, t as LegacyIR, u as Plugin, v as OpenApiSchemaObject, w as LazyOrAsync, x as Client$2 } from "./types-7_tn_FD9.js";
3
3
  import "@hey-api/codegen-core";
4
4
  import * as typescript0 from "typescript";
5
5
  import ts from "typescript";
@@ -876,6 +876,14 @@ interface TDataShape {
876
876
  type OmitKeys<T$1, K$1> = Pick<T$1, Exclude<keyof T$1, K$1>>;
877
877
  type Options$1<TData$1 extends TDataShape = TDataShape, ThrowOnError$1 extends boolean = boolean, TResponse = unknown, TResponseStyle$1 extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle$1, ThrowOnError$1>, 'body' | 'path' | 'query' | 'url'> & Omit<TData$1, 'url'>;
878
878
  //#endregion
879
+ //#region src/generate.d.ts
880
+ /**
881
+ * Generate a client from the provided configuration.
882
+ *
883
+ * @param userConfig User provided {@link UserConfig} configuration(s).
884
+ */
885
+ declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
886
+ //#endregion
879
887
  //#region src/config/parser.d.ts
880
888
  declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
881
889
  //#endregion
@@ -2121,12 +2129,6 @@ declare module '@hey-api/codegen-core' {
2121
2129
  tags?: Set<string>;
2122
2130
  }
2123
2131
  }
2124
- /**
2125
- * Generate a client from the provided configuration.
2126
- *
2127
- * @param userConfig User provided {@link UserConfig} configuration(s).
2128
- */
2129
- declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
2130
2132
  /**
2131
2133
  * Type helper for openapi-ts.config.ts, returns {@link MaybeArray<UserConfig>} object(s)
2132
2134
  */