@hey-api/openapi-ts 0.80.10 → 0.80.12

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-5eps4CIa.cjs';
1
+ import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-Dtr2Cny3.cjs';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import 'node:fs';
@@ -1,4 +1,4 @@
1
- import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-5eps4CIa.js';
1
+ import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-Dtr2Cny3.js';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import 'node:fs';
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-7LYLA6HT.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-YCLZNERM.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -7765,7 +7765,7 @@ type PluginValidatorNames = 'valibot' | 'zod';
7765
7765
 
7766
7766
  type PluginNames =
7767
7767
  | PluginClientNames
7768
- | '@hey-api/angular-resource'
7768
+ | '@angular/common'
7769
7769
  | '@hey-api/schemas'
7770
7770
  | '@hey-api/sdk'
7771
7771
  | '@hey-api/transformers'
@@ -7903,43 +7903,156 @@ type DefinePlugin<
7903
7903
  Types: Plugin.Types<Config, ResolvedConfig, Api>;
7904
7904
  };
7905
7905
 
7906
- type UserConfig$m = Plugin.Name<'@hey-api/angular-resource'> & {
7906
+ type UserConfig$m = Plugin.Name<'@angular/common'> & {
7907
7907
  /**
7908
- * Whether to generate the resource as a class.
7908
+ * Should the exports from the generated files be re-exported in the index
7909
+ * barrel file?
7910
+ *
7909
7911
  * @default false
7910
7912
  */
7911
- asClass?: boolean;
7912
-
7913
- classNameBuilder?: (className: string) => string;
7914
- methodNameBuilder?: (operation: IR.OperationObject | Operation) => string;
7915
-
7913
+ exportFromIndex?: boolean;
7914
+ /**
7915
+ * Options for generating HTTP Request instances.
7916
+ *
7917
+ * @default true
7918
+ */
7919
+ httpRequests?:
7920
+ | boolean
7921
+ | {
7922
+ /**
7923
+ * Whether to generate the resource as a class.
7924
+ *
7925
+ * @default false
7926
+ */
7927
+ asClass?: boolean;
7928
+ /**
7929
+ * Builds the class name for the generated resource.
7930
+ * By default, the class name is suffixed with "Resources".
7931
+ */
7932
+ classNameBuilder?: StringName;
7933
+ /**
7934
+ * Whether or not to create HTTP Request instances.
7935
+ *
7936
+ * @default true
7937
+ */
7938
+ enabled?: boolean;
7939
+ /**
7940
+ * Builds the method name for the generated resource.
7941
+ *
7942
+ * By default, the operation id is used, if `asClass` is false, the method is also suffixed with "Resource".
7943
+ */
7944
+ methodNameBuilder?: (operation: IR.OperationObject) => string;
7945
+ };
7946
+ /**
7947
+ * Options for generating HTTP resource APIs.
7948
+ *
7949
+ * @default true
7950
+ */
7951
+ httpResources?:
7952
+ | boolean
7953
+ | {
7954
+ /**
7955
+ * Whether to generate the resource as a class.
7956
+ * @default false
7957
+ */
7958
+ asClass?: boolean;
7959
+ /**
7960
+ * Builds the class name for the generated resource.
7961
+ * By default, the class name is suffixed with "Resources".
7962
+ */
7963
+ classNameBuilder?: StringName;
7964
+ /**
7965
+ * Whether or not to create HTTP resource APIs.
7966
+ *
7967
+ * @default true
7968
+ */
7969
+ enabled?: boolean;
7970
+ /**
7971
+ * Builds the method name for the generated resource.
7972
+ *
7973
+ * By default, the operation id is used, if `asClass` is false, the method is also suffixed with "Resource".
7974
+ */
7975
+ methodNameBuilder?: (operation: IR.OperationObject) => string;
7976
+ };
7916
7977
  /**
7917
7978
  * Name of the generated file.
7918
7979
  *
7919
- * @default 'httpResource'
7980
+ * @default '@angular/common'
7920
7981
  */
7921
7982
  output?: string;
7922
7983
  };
7923
7984
 
7924
- type Config$9 = Plugin.Name<'@hey-api/angular-resource'> & {
7985
+ type Config$9 = Plugin.Name<'@angular/common'> & {
7925
7986
  /**
7926
- * Whether to generate the resource as a class.
7987
+ * Should the exports from the generated files be re-exported in the index
7988
+ * barrel file?
7989
+ *
7927
7990
  * @default false
7928
7991
  */
7929
- asClass: boolean;
7930
-
7931
- classNameBuilder?: (className: string) => string;
7932
- methodNameBuilder?: (operation: IR.OperationObject | Operation) => string;
7933
-
7992
+ exportFromIndex: boolean;
7993
+ /**
7994
+ * Options for generating HTTP Request instances.
7995
+ */
7996
+ httpRequests: {
7997
+ /**
7998
+ * Whether to generate the resource as a class.
7999
+ *
8000
+ * @default false
8001
+ */
8002
+ asClass: boolean;
8003
+ /**
8004
+ * Builds the class name for the generated resource.
8005
+ * By default, the class name is suffixed with "Resources".
8006
+ */
8007
+ classNameBuilder: StringName;
8008
+ /**
8009
+ * Whether or not to create HTTP Request instances.
8010
+ *
8011
+ * @default true
8012
+ */
8013
+ enabled: boolean;
8014
+ /**
8015
+ * Builds the method name for the generated resource.
8016
+ * By default, the operation id is used, if `asClass` is false, the method is also suffixed with "Resource".
8017
+ */
8018
+ methodNameBuilder: (operation: IR.OperationObject) => string;
8019
+ };
8020
+ /**
8021
+ * Options for generating HTTP resource APIs.
8022
+ */
8023
+ httpResources: {
8024
+ /**
8025
+ * Whether to generate the resource as a class.
8026
+ *
8027
+ * @default false
8028
+ */
8029
+ asClass: boolean;
8030
+ /**
8031
+ * Builds the class name for the generated resource.
8032
+ * By default, the class name is suffixed with "Resources".
8033
+ */
8034
+ classNameBuilder: StringName;
8035
+ /**
8036
+ * Whether or not to create HTTP resource APIs.
8037
+ *
8038
+ * @default true
8039
+ */
8040
+ enabled: boolean;
8041
+ /**
8042
+ * Builds the method name for the generated resource.
8043
+ * By default, the operation id is used, if `asClass` is false, the method is also suffixed with "Resource".
8044
+ */
8045
+ methodNameBuilder: (operation: IR.OperationObject) => string;
8046
+ };
7934
8047
  /**
7935
8048
  * Name of the generated file.
7936
8049
  *
7937
- * @default 'httpResource'
8050
+ * @default '@angular/common'
7938
8051
  */
7939
- output?: string;
8052
+ output: string;
7940
8053
  };
7941
8054
 
7942
- type HeyApiAngularResourcePlugin = DefinePlugin<UserConfig$m, Config$9>;
8055
+ type AngularCommonPlugin = DefinePlugin<UserConfig$m, Config$9>;
7943
8056
 
7944
8057
  type UserConfig$l = Plugin.Name<'@hey-api/client-axios'> &
7945
8058
  Client.Config & {
@@ -11968,6 +12081,15 @@ type UserConfig = Plugin.Name<'zod'> & {
11968
12081
  * date validation features.
11969
12082
  */
11970
12083
  dates?: {
12084
+ /**
12085
+ * Whether to allow unqualified (timezone-less) datetimes:
12086
+ *
12087
+ * When enabled, Zod will accept datetime strings without timezone information.
12088
+ * When disabled, Zod will require timezone information in datetime strings.
12089
+ *
12090
+ * @default false
12091
+ */
12092
+ local?: boolean;
11971
12093
  /**
11972
12094
  * Whether to include timezone offset information when handling dates.
11973
12095
  *
@@ -12300,6 +12422,15 @@ type Config = Plugin.Name<'zod'> & {
12300
12422
  * date validation features.
12301
12423
  */
12302
12424
  dates: {
12425
+ /**
12426
+ * Whether to allow unqualified (timezone-less) datetimes:
12427
+ *
12428
+ * When enabled, Zod will accept datetime strings without timezone information.
12429
+ * When disabled, Zod will require timezone information in datetime strings.
12430
+ *
12431
+ * @default false
12432
+ */
12433
+ local: boolean;
12303
12434
  /**
12304
12435
  * Whether to include timezone offset information when handling dates.
12305
12436
  *
@@ -12555,7 +12686,7 @@ type Api = {
12555
12686
  };
12556
12687
 
12557
12688
  interface PluginConfigMap {
12558
- '@hey-api/angular-resource': HeyApiAngularResourcePlugin['Types'];
12689
+ '@angular/common': AngularCommonPlugin['Types'];
12559
12690
  '@hey-api/client-angular': HeyApiClientAngularPlugin['Types'];
12560
12691
  '@hey-api/client-axios': HeyApiClientAxiosPlugin['Types'];
12561
12692
  '@hey-api/client-fetch': HeyApiClientFetchPlugin['Types'];
@@ -7765,7 +7765,7 @@ type PluginValidatorNames = 'valibot' | 'zod';
7765
7765
 
7766
7766
  type PluginNames =
7767
7767
  | PluginClientNames
7768
- | '@hey-api/angular-resource'
7768
+ | '@angular/common'
7769
7769
  | '@hey-api/schemas'
7770
7770
  | '@hey-api/sdk'
7771
7771
  | '@hey-api/transformers'
@@ -7903,43 +7903,156 @@ type DefinePlugin<
7903
7903
  Types: Plugin.Types<Config, ResolvedConfig, Api>;
7904
7904
  };
7905
7905
 
7906
- type UserConfig$m = Plugin.Name<'@hey-api/angular-resource'> & {
7906
+ type UserConfig$m = Plugin.Name<'@angular/common'> & {
7907
7907
  /**
7908
- * Whether to generate the resource as a class.
7908
+ * Should the exports from the generated files be re-exported in the index
7909
+ * barrel file?
7910
+ *
7909
7911
  * @default false
7910
7912
  */
7911
- asClass?: boolean;
7912
-
7913
- classNameBuilder?: (className: string) => string;
7914
- methodNameBuilder?: (operation: IR.OperationObject | Operation) => string;
7915
-
7913
+ exportFromIndex?: boolean;
7914
+ /**
7915
+ * Options for generating HTTP Request instances.
7916
+ *
7917
+ * @default true
7918
+ */
7919
+ httpRequests?:
7920
+ | boolean
7921
+ | {
7922
+ /**
7923
+ * Whether to generate the resource as a class.
7924
+ *
7925
+ * @default false
7926
+ */
7927
+ asClass?: boolean;
7928
+ /**
7929
+ * Builds the class name for the generated resource.
7930
+ * By default, the class name is suffixed with "Resources".
7931
+ */
7932
+ classNameBuilder?: StringName;
7933
+ /**
7934
+ * Whether or not to create HTTP Request instances.
7935
+ *
7936
+ * @default true
7937
+ */
7938
+ enabled?: boolean;
7939
+ /**
7940
+ * Builds the method name for the generated resource.
7941
+ *
7942
+ * By default, the operation id is used, if `asClass` is false, the method is also suffixed with "Resource".
7943
+ */
7944
+ methodNameBuilder?: (operation: IR.OperationObject) => string;
7945
+ };
7946
+ /**
7947
+ * Options for generating HTTP resource APIs.
7948
+ *
7949
+ * @default true
7950
+ */
7951
+ httpResources?:
7952
+ | boolean
7953
+ | {
7954
+ /**
7955
+ * Whether to generate the resource as a class.
7956
+ * @default false
7957
+ */
7958
+ asClass?: boolean;
7959
+ /**
7960
+ * Builds the class name for the generated resource.
7961
+ * By default, the class name is suffixed with "Resources".
7962
+ */
7963
+ classNameBuilder?: StringName;
7964
+ /**
7965
+ * Whether or not to create HTTP resource APIs.
7966
+ *
7967
+ * @default true
7968
+ */
7969
+ enabled?: boolean;
7970
+ /**
7971
+ * Builds the method name for the generated resource.
7972
+ *
7973
+ * By default, the operation id is used, if `asClass` is false, the method is also suffixed with "Resource".
7974
+ */
7975
+ methodNameBuilder?: (operation: IR.OperationObject) => string;
7976
+ };
7916
7977
  /**
7917
7978
  * Name of the generated file.
7918
7979
  *
7919
- * @default 'httpResource'
7980
+ * @default '@angular/common'
7920
7981
  */
7921
7982
  output?: string;
7922
7983
  };
7923
7984
 
7924
- type Config$9 = Plugin.Name<'@hey-api/angular-resource'> & {
7985
+ type Config$9 = Plugin.Name<'@angular/common'> & {
7925
7986
  /**
7926
- * Whether to generate the resource as a class.
7987
+ * Should the exports from the generated files be re-exported in the index
7988
+ * barrel file?
7989
+ *
7927
7990
  * @default false
7928
7991
  */
7929
- asClass: boolean;
7930
-
7931
- classNameBuilder?: (className: string) => string;
7932
- methodNameBuilder?: (operation: IR.OperationObject | Operation) => string;
7933
-
7992
+ exportFromIndex: boolean;
7993
+ /**
7994
+ * Options for generating HTTP Request instances.
7995
+ */
7996
+ httpRequests: {
7997
+ /**
7998
+ * Whether to generate the resource as a class.
7999
+ *
8000
+ * @default false
8001
+ */
8002
+ asClass: boolean;
8003
+ /**
8004
+ * Builds the class name for the generated resource.
8005
+ * By default, the class name is suffixed with "Resources".
8006
+ */
8007
+ classNameBuilder: StringName;
8008
+ /**
8009
+ * Whether or not to create HTTP Request instances.
8010
+ *
8011
+ * @default true
8012
+ */
8013
+ enabled: boolean;
8014
+ /**
8015
+ * Builds the method name for the generated resource.
8016
+ * By default, the operation id is used, if `asClass` is false, the method is also suffixed with "Resource".
8017
+ */
8018
+ methodNameBuilder: (operation: IR.OperationObject) => string;
8019
+ };
8020
+ /**
8021
+ * Options for generating HTTP resource APIs.
8022
+ */
8023
+ httpResources: {
8024
+ /**
8025
+ * Whether to generate the resource as a class.
8026
+ *
8027
+ * @default false
8028
+ */
8029
+ asClass: boolean;
8030
+ /**
8031
+ * Builds the class name for the generated resource.
8032
+ * By default, the class name is suffixed with "Resources".
8033
+ */
8034
+ classNameBuilder: StringName;
8035
+ /**
8036
+ * Whether or not to create HTTP resource APIs.
8037
+ *
8038
+ * @default true
8039
+ */
8040
+ enabled: boolean;
8041
+ /**
8042
+ * Builds the method name for the generated resource.
8043
+ * By default, the operation id is used, if `asClass` is false, the method is also suffixed with "Resource".
8044
+ */
8045
+ methodNameBuilder: (operation: IR.OperationObject) => string;
8046
+ };
7934
8047
  /**
7935
8048
  * Name of the generated file.
7936
8049
  *
7937
- * @default 'httpResource'
8050
+ * @default '@angular/common'
7938
8051
  */
7939
- output?: string;
8052
+ output: string;
7940
8053
  };
7941
8054
 
7942
- type HeyApiAngularResourcePlugin = DefinePlugin<UserConfig$m, Config$9>;
8055
+ type AngularCommonPlugin = DefinePlugin<UserConfig$m, Config$9>;
7943
8056
 
7944
8057
  type UserConfig$l = Plugin.Name<'@hey-api/client-axios'> &
7945
8058
  Client.Config & {
@@ -11968,6 +12081,15 @@ type UserConfig = Plugin.Name<'zod'> & {
11968
12081
  * date validation features.
11969
12082
  */
11970
12083
  dates?: {
12084
+ /**
12085
+ * Whether to allow unqualified (timezone-less) datetimes:
12086
+ *
12087
+ * When enabled, Zod will accept datetime strings without timezone information.
12088
+ * When disabled, Zod will require timezone information in datetime strings.
12089
+ *
12090
+ * @default false
12091
+ */
12092
+ local?: boolean;
11971
12093
  /**
11972
12094
  * Whether to include timezone offset information when handling dates.
11973
12095
  *
@@ -12300,6 +12422,15 @@ type Config = Plugin.Name<'zod'> & {
12300
12422
  * date validation features.
12301
12423
  */
12302
12424
  dates: {
12425
+ /**
12426
+ * Whether to allow unqualified (timezone-less) datetimes:
12427
+ *
12428
+ * When enabled, Zod will accept datetime strings without timezone information.
12429
+ * When disabled, Zod will require timezone information in datetime strings.
12430
+ *
12431
+ * @default false
12432
+ */
12433
+ local: boolean;
12303
12434
  /**
12304
12435
  * Whether to include timezone offset information when handling dates.
12305
12436
  *
@@ -12555,7 +12686,7 @@ type Api = {
12555
12686
  };
12556
12687
 
12557
12688
  interface PluginConfigMap {
12558
- '@hey-api/angular-resource': HeyApiAngularResourcePlugin['Types'];
12689
+ '@angular/common': AngularCommonPlugin['Types'];
12559
12690
  '@hey-api/client-angular': HeyApiClientAngularPlugin['Types'];
12560
12691
  '@hey-api/client-axios': HeyApiClientAxiosPlugin['Types'];
12561
12692
  '@hey-api/client-fetch': HeyApiClientFetchPlugin['Types'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.80.10",
3
+ "version": "0.80.12",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {