@hey-api/openapi-ts 0.80.9 → 0.80.11

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-CjuizMGC.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-CjuizMGC.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-7WYJFIBI.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 & {
@@ -12555,7 +12668,7 @@ type Api = {
12555
12668
  };
12556
12669
 
12557
12670
  interface PluginConfigMap {
12558
- '@hey-api/angular-resource': HeyApiAngularResourcePlugin['Types'];
12671
+ '@angular/common': AngularCommonPlugin['Types'];
12559
12672
  '@hey-api/client-angular': HeyApiClientAngularPlugin['Types'];
12560
12673
  '@hey-api/client-axios': HeyApiClientAxiosPlugin['Types'];
12561
12674
  '@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 & {
@@ -12555,7 +12668,7 @@ type Api = {
12555
12668
  };
12556
12669
 
12557
12670
  interface PluginConfigMap {
12558
- '@hey-api/angular-resource': HeyApiAngularResourcePlugin['Types'];
12671
+ '@angular/common': AngularCommonPlugin['Types'];
12559
12672
  '@hey-api/client-angular': HeyApiClientAngularPlugin['Types'];
12560
12673
  '@hey-api/client-axios': HeyApiClientAxiosPlugin['Types'];
12561
12674
  '@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.9",
3
+ "version": "0.80.11",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {