@hey-api/openapi-ts 0.54.4 → 0.55.1
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/dist/index.cjs +179 -179
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -4
- package/dist/index.d.ts +34 -4
- package/dist/index.js +175 -175
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -15,7 +15,8 @@ interface PluginName<Name extends PluginNames> {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface CommonConfig {
|
|
18
|
-
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
19
|
+
name: PluginNames | (string & {});
|
|
19
20
|
output?: string;
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -3943,6 +3944,7 @@ interface IRSchemaObject
|
|
|
3943
3944
|
| 'object'
|
|
3944
3945
|
| 'string'
|
|
3945
3946
|
| 'tuple'
|
|
3947
|
+
| 'undefined'
|
|
3946
3948
|
| 'unknown'
|
|
3947
3949
|
| 'void';
|
|
3948
3950
|
}
|
|
@@ -3965,6 +3967,10 @@ interface Config$7 extends PluginName<'@hey-api/services'> {
|
|
|
3965
3967
|
* results will be included in the output. The input pattern this
|
|
3966
3968
|
* string will be tested against is `{method} {path}`. For example,
|
|
3967
3969
|
* you can match `POST /api/v1/foo` with `^POST /api/v1/foo$`.
|
|
3970
|
+
*
|
|
3971
|
+
* This option does not work with the experimental parser.
|
|
3972
|
+
*
|
|
3973
|
+
* @deprecated
|
|
3968
3974
|
*/
|
|
3969
3975
|
filter?: string;
|
|
3970
3976
|
/**
|
|
@@ -4024,7 +4030,11 @@ interface Config$5 extends PluginName<'@hey-api/types'> {
|
|
|
4024
4030
|
*/
|
|
4025
4031
|
enums?: 'javascript' | 'typescript' | 'typescript+namespace' | false;
|
|
4026
4032
|
/**
|
|
4027
|
-
* Include only types matching regular expression
|
|
4033
|
+
* Include only types matching regular expression.
|
|
4034
|
+
*
|
|
4035
|
+
* This option does not work with the experimental parser.
|
|
4036
|
+
*
|
|
4037
|
+
* @deprecated
|
|
4028
4038
|
*/
|
|
4029
4039
|
include?: string;
|
|
4030
4040
|
/**
|
|
@@ -4224,9 +4234,29 @@ interface ClientConfig {
|
|
|
4224
4234
|
*/
|
|
4225
4235
|
exportCore?: boolean;
|
|
4226
4236
|
/**
|
|
4227
|
-
*
|
|
4237
|
+
* Path to the OpenAPI specification. This can be either local or remote path.
|
|
4238
|
+
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
4239
|
+
* object directly if you're fetching the file yourself.
|
|
4240
|
+
*
|
|
4241
|
+
* Alternatively, you can define a configuration object with more options.
|
|
4228
4242
|
*/
|
|
4229
|
-
input: string | Record<string, unknown
|
|
4243
|
+
input: string | Record<string, unknown> | {
|
|
4244
|
+
/**
|
|
4245
|
+
* Process only parts matching the regular expression. You can select both
|
|
4246
|
+
* operations and components by reference within the bundled input.
|
|
4247
|
+
*
|
|
4248
|
+
* @example
|
|
4249
|
+
* operation: '^#/paths/api/v1/foo/get$'
|
|
4250
|
+
* schema: '^#/components/schemas/Foo$'
|
|
4251
|
+
*/
|
|
4252
|
+
include?: string;
|
|
4253
|
+
/**
|
|
4254
|
+
* Path to the OpenAPI specification. This can be either local or remote path.
|
|
4255
|
+
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
4256
|
+
* object directly if you're fetching the file yourself.
|
|
4257
|
+
*/
|
|
4258
|
+
path: string | Record<string, unknown>;
|
|
4259
|
+
};
|
|
4230
4260
|
/**
|
|
4231
4261
|
* Custom client class name. Please note this option is deprecated and
|
|
4232
4262
|
* will be removed in favor of clients.
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ interface PluginName<Name extends PluginNames> {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface CommonConfig {
|
|
18
|
-
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
19
|
+
name: PluginNames | (string & {});
|
|
19
20
|
output?: string;
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -3943,6 +3944,7 @@ interface IRSchemaObject
|
|
|
3943
3944
|
| 'object'
|
|
3944
3945
|
| 'string'
|
|
3945
3946
|
| 'tuple'
|
|
3947
|
+
| 'undefined'
|
|
3946
3948
|
| 'unknown'
|
|
3947
3949
|
| 'void';
|
|
3948
3950
|
}
|
|
@@ -3965,6 +3967,10 @@ interface Config$7 extends PluginName<'@hey-api/services'> {
|
|
|
3965
3967
|
* results will be included in the output. The input pattern this
|
|
3966
3968
|
* string will be tested against is `{method} {path}`. For example,
|
|
3967
3969
|
* you can match `POST /api/v1/foo` with `^POST /api/v1/foo$`.
|
|
3970
|
+
*
|
|
3971
|
+
* This option does not work with the experimental parser.
|
|
3972
|
+
*
|
|
3973
|
+
* @deprecated
|
|
3968
3974
|
*/
|
|
3969
3975
|
filter?: string;
|
|
3970
3976
|
/**
|
|
@@ -4024,7 +4030,11 @@ interface Config$5 extends PluginName<'@hey-api/types'> {
|
|
|
4024
4030
|
*/
|
|
4025
4031
|
enums?: 'javascript' | 'typescript' | 'typescript+namespace' | false;
|
|
4026
4032
|
/**
|
|
4027
|
-
* Include only types matching regular expression
|
|
4033
|
+
* Include only types matching regular expression.
|
|
4034
|
+
*
|
|
4035
|
+
* This option does not work with the experimental parser.
|
|
4036
|
+
*
|
|
4037
|
+
* @deprecated
|
|
4028
4038
|
*/
|
|
4029
4039
|
include?: string;
|
|
4030
4040
|
/**
|
|
@@ -4224,9 +4234,29 @@ interface ClientConfig {
|
|
|
4224
4234
|
*/
|
|
4225
4235
|
exportCore?: boolean;
|
|
4226
4236
|
/**
|
|
4227
|
-
*
|
|
4237
|
+
* Path to the OpenAPI specification. This can be either local or remote path.
|
|
4238
|
+
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
4239
|
+
* object directly if you're fetching the file yourself.
|
|
4240
|
+
*
|
|
4241
|
+
* Alternatively, you can define a configuration object with more options.
|
|
4228
4242
|
*/
|
|
4229
|
-
input: string | Record<string, unknown
|
|
4243
|
+
input: string | Record<string, unknown> | {
|
|
4244
|
+
/**
|
|
4245
|
+
* Process only parts matching the regular expression. You can select both
|
|
4246
|
+
* operations and components by reference within the bundled input.
|
|
4247
|
+
*
|
|
4248
|
+
* @example
|
|
4249
|
+
* operation: '^#/paths/api/v1/foo/get$'
|
|
4250
|
+
* schema: '^#/components/schemas/Foo$'
|
|
4251
|
+
*/
|
|
4252
|
+
include?: string;
|
|
4253
|
+
/**
|
|
4254
|
+
* Path to the OpenAPI specification. This can be either local or remote path.
|
|
4255
|
+
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
4256
|
+
* object directly if you're fetching the file yourself.
|
|
4257
|
+
*/
|
|
4258
|
+
path: string | Record<string, unknown>;
|
|
4259
|
+
};
|
|
4230
4260
|
/**
|
|
4231
4261
|
* Custom client class name. Please note this option is deprecated and
|
|
4232
4262
|
* will be removed in favor of clients.
|