@hey-api/openapi-ts 0.57.0 → 0.57.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 +58 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +54 -54
- package/dist/index.js.map +1 -1
- package/package.json +18 -18
package/dist/index.d.cts
CHANGED
|
@@ -3833,12 +3833,29 @@ interface Config$a extends PluginName<'@hey-api/schemas'> {
|
|
|
3833
3833
|
|
|
3834
3834
|
type IRMediaType = 'form-data' | 'json' | 'url-search-params';
|
|
3835
3835
|
|
|
3836
|
+
interface IRPathsObject {
|
|
3837
|
+
[path: `/${string}`]: IRPathItemObject;
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
interface IRPathItemObject {
|
|
3841
|
+
delete?: IROperationObject;
|
|
3842
|
+
get?: IROperationObject;
|
|
3843
|
+
head?: IROperationObject;
|
|
3844
|
+
options?: IROperationObject;
|
|
3845
|
+
patch?: IROperationObject;
|
|
3846
|
+
post?: IROperationObject;
|
|
3847
|
+
put?: IROperationObject;
|
|
3848
|
+
trace?: IROperationObject;
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3836
3851
|
interface IROperationObject {
|
|
3837
3852
|
body?: IRBodyObject;
|
|
3838
3853
|
deprecated?: boolean;
|
|
3839
3854
|
description?: string;
|
|
3840
3855
|
id: string;
|
|
3856
|
+
method: keyof IRPathItemObject;
|
|
3841
3857
|
parameters?: IRParametersObject;
|
|
3858
|
+
path: keyof IRPathsObject;
|
|
3842
3859
|
responses?: IRResponsesObject;
|
|
3843
3860
|
// TODO: parser - add more properties
|
|
3844
3861
|
// security?: ReadonlyArray<SecurityRequirementObject>;
|
|
@@ -3866,7 +3883,8 @@ interface IRParametersObject {
|
|
|
3866
3883
|
query?: Record<string, IRParameterObject>;
|
|
3867
3884
|
}
|
|
3868
3885
|
|
|
3869
|
-
interface IRParameterObject
|
|
3886
|
+
interface IRParameterObject
|
|
3887
|
+
extends Pick<JsonSchemaDraft2020_12, 'deprecated' | 'description'> {
|
|
3870
3888
|
/**
|
|
3871
3889
|
* Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 `:/?#[]@!$&'()*+,;=` to be included without percent-encoding. The default value is `false`. This property SHALL be ignored if the request body media type is not `application/x-www-form-urlencoded` or `multipart/form-data`. If a value is explicitly defined, then the value of `contentType` (implicit or explicit) SHALL be ignored.
|
|
3872
3890
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3833,12 +3833,29 @@ interface Config$a extends PluginName<'@hey-api/schemas'> {
|
|
|
3833
3833
|
|
|
3834
3834
|
type IRMediaType = 'form-data' | 'json' | 'url-search-params';
|
|
3835
3835
|
|
|
3836
|
+
interface IRPathsObject {
|
|
3837
|
+
[path: `/${string}`]: IRPathItemObject;
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
interface IRPathItemObject {
|
|
3841
|
+
delete?: IROperationObject;
|
|
3842
|
+
get?: IROperationObject;
|
|
3843
|
+
head?: IROperationObject;
|
|
3844
|
+
options?: IROperationObject;
|
|
3845
|
+
patch?: IROperationObject;
|
|
3846
|
+
post?: IROperationObject;
|
|
3847
|
+
put?: IROperationObject;
|
|
3848
|
+
trace?: IROperationObject;
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3836
3851
|
interface IROperationObject {
|
|
3837
3852
|
body?: IRBodyObject;
|
|
3838
3853
|
deprecated?: boolean;
|
|
3839
3854
|
description?: string;
|
|
3840
3855
|
id: string;
|
|
3856
|
+
method: keyof IRPathItemObject;
|
|
3841
3857
|
parameters?: IRParametersObject;
|
|
3858
|
+
path: keyof IRPathsObject;
|
|
3842
3859
|
responses?: IRResponsesObject;
|
|
3843
3860
|
// TODO: parser - add more properties
|
|
3844
3861
|
// security?: ReadonlyArray<SecurityRequirementObject>;
|
|
@@ -3866,7 +3883,8 @@ interface IRParametersObject {
|
|
|
3866
3883
|
query?: Record<string, IRParameterObject>;
|
|
3867
3884
|
}
|
|
3868
3885
|
|
|
3869
|
-
interface IRParameterObject
|
|
3886
|
+
interface IRParameterObject
|
|
3887
|
+
extends Pick<JsonSchemaDraft2020_12, 'deprecated' | 'description'> {
|
|
3870
3888
|
/**
|
|
3871
3889
|
* Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 `:/?#[]@!$&'()*+,;=` to be included without percent-encoding. The default value is `false`. This property SHALL be ignored if the request body media type is not `application/x-www-form-urlencoded` or `multipart/form-data`. If a value is explicitly defined, then the value of `contentType` (implicit or explicit) SHALL be ignored.
|
|
3872
3890
|
*/
|