@hey-api/openapi-ts 0.80.10 → 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.
- package/README.md +3 -2
- package/dist/chunk-7WYJFIBI.js +43 -0
- package/dist/chunk-7WYJFIBI.js.map +1 -0
- package/dist/clients/angular/client.ts +97 -38
- package/dist/clients/angular/types.ts +76 -39
- package/dist/clients/angular/utils.ts +43 -31
- package/dist/index.cjs +68 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +13 -12
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/{types.d-5eps4CIa.d.cts → types.d-CjuizMGC.d.cts} +133 -20
- package/dist/{types.d-5eps4CIa.d.ts → types.d-CjuizMGC.d.ts} +133 -20
- package/package.json +1 -1
- package/dist/chunk-7LYLA6HT.js +0 -42
- package/dist/chunk-7LYLA6HT.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-
|
|
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';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-
|
|
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-
|
|
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
|
-
| '@
|
|
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<'@
|
|
7906
|
+
type UserConfig$m = Plugin.Name<'@angular/common'> & {
|
|
7907
7907
|
/**
|
|
7908
|
-
*
|
|
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
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
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 '
|
|
7980
|
+
* @default '@angular/common'
|
|
7920
7981
|
*/
|
|
7921
7982
|
output?: string;
|
|
7922
7983
|
};
|
|
7923
7984
|
|
|
7924
|
-
type Config$9 = Plugin.Name<'@
|
|
7985
|
+
type Config$9 = Plugin.Name<'@angular/common'> & {
|
|
7925
7986
|
/**
|
|
7926
|
-
*
|
|
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
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
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 '
|
|
8050
|
+
* @default '@angular/common'
|
|
7938
8051
|
*/
|
|
7939
|
-
output
|
|
8052
|
+
output: string;
|
|
7940
8053
|
};
|
|
7941
8054
|
|
|
7942
|
-
type
|
|
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
|
-
'@
|
|
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
|
-
| '@
|
|
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<'@
|
|
7906
|
+
type UserConfig$m = Plugin.Name<'@angular/common'> & {
|
|
7907
7907
|
/**
|
|
7908
|
-
*
|
|
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
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
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 '
|
|
7980
|
+
* @default '@angular/common'
|
|
7920
7981
|
*/
|
|
7921
7982
|
output?: string;
|
|
7922
7983
|
};
|
|
7923
7984
|
|
|
7924
|
-
type Config$9 = Plugin.Name<'@
|
|
7985
|
+
type Config$9 = Plugin.Name<'@angular/common'> & {
|
|
7925
7986
|
/**
|
|
7926
|
-
*
|
|
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
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
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 '
|
|
8050
|
+
* @default '@angular/common'
|
|
7938
8051
|
*/
|
|
7939
|
-
output
|
|
8052
|
+
output: string;
|
|
7940
8053
|
};
|
|
7941
8054
|
|
|
7942
|
-
type
|
|
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
|
-
'@
|
|
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