@hey-api/openapi-ts 0.80.12 → 0.80.13

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.
@@ -1,4 +1,4 @@
1
- import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-Dtr2Cny3.cjs';
1
+ import { k as Config, l as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-BzJA3GSb.cjs';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import 'node:fs';
@@ -9,9 +9,10 @@ import 'typescript';
9
9
  * Parse the resolved OpenAPI specification. This will populate and return
10
10
  * `context` with intermediate representation obtained from the parsed spec.
11
11
  */
12
- declare const parseOpenApiSpec: ({ config, dependencies, spec, }: {
12
+ declare const parseOpenApiSpec: ({ config, dependencies, logger, spec, }: {
13
13
  config: Config;
14
14
  dependencies: Record<string, string>;
15
+ logger: Logger;
15
16
  spec: unknown;
16
17
  }) => IR.Context | undefined;
17
18
 
@@ -1,4 +1,4 @@
1
- import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-Dtr2Cny3.js';
1
+ import { k as Config, l as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-BzJA3GSb.js';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import 'node:fs';
@@ -9,9 +9,10 @@ import 'typescript';
9
9
  * Parse the resolved OpenAPI specification. This will populate and return
10
10
  * `context` with intermediate representation obtained from the parsed spec.
11
11
  */
12
- declare const parseOpenApiSpec: ({ config, dependencies, spec, }: {
12
+ declare const parseOpenApiSpec: ({ config, dependencies, logger, spec, }: {
13
13
  config: Config;
14
14
  dependencies: Record<string, string>;
15
+ logger: Logger;
15
16
  spec: unknown;
16
17
  }) => IR.Context | undefined;
17
18
 
package/dist/internal.js CHANGED
@@ -1,2 +1,2 @@
1
- import {createRequire}from'module';export{K as getSpec,J as initConfigs,E as parseOpenApiSpec}from'./chunk-YCLZNERM.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
1
+ import {createRequire}from'module';export{K as getSpec,J as initConfigs,E as parseOpenApiSpec}from'./chunk-NAWMFQY4.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -6840,6 +6840,19 @@ type Config$a = Omit<
6840
6840
  };
6841
6841
  };
6842
6842
 
6843
+ declare class Logger {
6844
+ private events;
6845
+ private end;
6846
+ report(): void;
6847
+ private reportEvent;
6848
+ private start;
6849
+ private storeEvent;
6850
+ timeEvent(name: string): {
6851
+ mark: PerformanceMark;
6852
+ timeEnd: () => void;
6853
+ };
6854
+ }
6855
+
6843
6856
  interface Dictionary<T = unknown> {
6844
6857
  [key: string]: T;
6845
6858
  }
@@ -12746,6 +12759,8 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12746
12759
  * Intermediate representation model obtained from `spec`.
12747
12760
  */
12748
12761
  ir: IR$1.Model;
12762
+ /** Logger instance */
12763
+ logger: Logger;
12749
12764
  /**
12750
12765
  * The package metadata and utilities for the current context, constructed
12751
12766
  * from the provided dependencies. Used for managing package-related
@@ -12763,9 +12778,10 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12763
12778
  * Resolved specification from `input`.
12764
12779
  */
12765
12780
  spec: Spec;
12766
- constructor({ config, dependencies, spec, }: {
12781
+ constructor({ config, dependencies, logger, spec, }: {
12767
12782
  config: Config$a;
12768
12783
  dependencies: Record<string, string>;
12784
+ logger: Logger;
12769
12785
  spec: Spec;
12770
12786
  });
12771
12787
  /**
@@ -13056,4 +13072,4 @@ interface WatchValues {
13056
13072
  lastValue?: string;
13057
13073
  }
13058
13074
 
13059
- export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, LegacyIR as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, type Config$a as k, tsNodeToString as t };
13075
+ export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, LegacyIR as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, type Config$a as k, Logger as l, tsNodeToString as t };
@@ -6840,6 +6840,19 @@ type Config$a = Omit<
6840
6840
  };
6841
6841
  };
6842
6842
 
6843
+ declare class Logger {
6844
+ private events;
6845
+ private end;
6846
+ report(): void;
6847
+ private reportEvent;
6848
+ private start;
6849
+ private storeEvent;
6850
+ timeEvent(name: string): {
6851
+ mark: PerformanceMark;
6852
+ timeEnd: () => void;
6853
+ };
6854
+ }
6855
+
6843
6856
  interface Dictionary<T = unknown> {
6844
6857
  [key: string]: T;
6845
6858
  }
@@ -12746,6 +12759,8 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12746
12759
  * Intermediate representation model obtained from `spec`.
12747
12760
  */
12748
12761
  ir: IR$1.Model;
12762
+ /** Logger instance */
12763
+ logger: Logger;
12749
12764
  /**
12750
12765
  * The package metadata and utilities for the current context, constructed
12751
12766
  * from the provided dependencies. Used for managing package-related
@@ -12763,9 +12778,10 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12763
12778
  * Resolved specification from `input`.
12764
12779
  */
12765
12780
  spec: Spec;
12766
- constructor({ config, dependencies, spec, }: {
12781
+ constructor({ config, dependencies, logger, spec, }: {
12767
12782
  config: Config$a;
12768
12783
  dependencies: Record<string, string>;
12784
+ logger: Logger;
12769
12785
  spec: Spec;
12770
12786
  });
12771
12787
  /**
@@ -13056,4 +13072,4 @@ interface WatchValues {
13056
13072
  lastValue?: string;
13057
13073
  }
13058
13074
 
13059
- export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, LegacyIR as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, type Config$a as k, tsNodeToString as t };
13075
+ export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, LegacyIR as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, type Config$a as k, Logger as l, tsNodeToString as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.80.12",
3
+ "version": "0.80.13",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {