@hey-api/openapi-ts 0.80.11 → 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-CjuizMGC.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-CjuizMGC.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-7WYJFIBI.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
  }
@@ -12081,6 +12094,15 @@ type UserConfig = Plugin.Name<'zod'> & {
12081
12094
  * date validation features.
12082
12095
  */
12083
12096
  dates?: {
12097
+ /**
12098
+ * Whether to allow unqualified (timezone-less) datetimes:
12099
+ *
12100
+ * When enabled, Zod will accept datetime strings without timezone information.
12101
+ * When disabled, Zod will require timezone information in datetime strings.
12102
+ *
12103
+ * @default false
12104
+ */
12105
+ local?: boolean;
12084
12106
  /**
12085
12107
  * Whether to include timezone offset information when handling dates.
12086
12108
  *
@@ -12413,6 +12435,15 @@ type Config = Plugin.Name<'zod'> & {
12413
12435
  * date validation features.
12414
12436
  */
12415
12437
  dates: {
12438
+ /**
12439
+ * Whether to allow unqualified (timezone-less) datetimes:
12440
+ *
12441
+ * When enabled, Zod will accept datetime strings without timezone information.
12442
+ * When disabled, Zod will require timezone information in datetime strings.
12443
+ *
12444
+ * @default false
12445
+ */
12446
+ local: boolean;
12416
12447
  /**
12417
12448
  * Whether to include timezone offset information when handling dates.
12418
12449
  *
@@ -12728,6 +12759,8 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12728
12759
  * Intermediate representation model obtained from `spec`.
12729
12760
  */
12730
12761
  ir: IR$1.Model;
12762
+ /** Logger instance */
12763
+ logger: Logger;
12731
12764
  /**
12732
12765
  * The package metadata and utilities for the current context, constructed
12733
12766
  * from the provided dependencies. Used for managing package-related
@@ -12745,9 +12778,10 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12745
12778
  * Resolved specification from `input`.
12746
12779
  */
12747
12780
  spec: Spec;
12748
- constructor({ config, dependencies, spec, }: {
12781
+ constructor({ config, dependencies, logger, spec, }: {
12749
12782
  config: Config$a;
12750
12783
  dependencies: Record<string, string>;
12784
+ logger: Logger;
12751
12785
  spec: Spec;
12752
12786
  });
12753
12787
  /**
@@ -13038,4 +13072,4 @@ interface WatchValues {
13038
13072
  lastValue?: string;
13039
13073
  }
13040
13074
 
13041
- 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
  }
@@ -12081,6 +12094,15 @@ type UserConfig = Plugin.Name<'zod'> & {
12081
12094
  * date validation features.
12082
12095
  */
12083
12096
  dates?: {
12097
+ /**
12098
+ * Whether to allow unqualified (timezone-less) datetimes:
12099
+ *
12100
+ * When enabled, Zod will accept datetime strings without timezone information.
12101
+ * When disabled, Zod will require timezone information in datetime strings.
12102
+ *
12103
+ * @default false
12104
+ */
12105
+ local?: boolean;
12084
12106
  /**
12085
12107
  * Whether to include timezone offset information when handling dates.
12086
12108
  *
@@ -12413,6 +12435,15 @@ type Config = Plugin.Name<'zod'> & {
12413
12435
  * date validation features.
12414
12436
  */
12415
12437
  dates: {
12438
+ /**
12439
+ * Whether to allow unqualified (timezone-less) datetimes:
12440
+ *
12441
+ * When enabled, Zod will accept datetime strings without timezone information.
12442
+ * When disabled, Zod will require timezone information in datetime strings.
12443
+ *
12444
+ * @default false
12445
+ */
12446
+ local: boolean;
12416
12447
  /**
12417
12448
  * Whether to include timezone offset information when handling dates.
12418
12449
  *
@@ -12728,6 +12759,8 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12728
12759
  * Intermediate representation model obtained from `spec`.
12729
12760
  */
12730
12761
  ir: IR$1.Model;
12762
+ /** Logger instance */
12763
+ logger: Logger;
12731
12764
  /**
12732
12765
  * The package metadata and utilities for the current context, constructed
12733
12766
  * from the provided dependencies. Used for managing package-related
@@ -12745,9 +12778,10 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12745
12778
  * Resolved specification from `input`.
12746
12779
  */
12747
12780
  spec: Spec;
12748
- constructor({ config, dependencies, spec, }: {
12781
+ constructor({ config, dependencies, logger, spec, }: {
12749
12782
  config: Config$a;
12750
12783
  dependencies: Record<string, string>;
12784
+ logger: Logger;
12751
12785
  spec: Spec;
12752
12786
  });
12753
12787
  /**
@@ -13038,4 +13072,4 @@ interface WatchValues {
13038
13072
  lastValue?: string;
13039
13073
  }
13040
13074
 
13041
- 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.11",
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": {