@hey-api/openapi-ts 0.59.1 → 0.59.2
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 +189 -188
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -5
- package/dist/index.d.ts +22 -5
- package/dist/index.js +183 -182
- package/dist/index.js.map +1 -1
- package/package.json +20 -20
package/dist/index.d.cts
CHANGED
|
@@ -3950,8 +3950,8 @@ interface IROperationObject {
|
|
|
3950
3950
|
parameters?: IRParametersObject;
|
|
3951
3951
|
path: keyof IRPathsObject;
|
|
3952
3952
|
responses?: IRResponsesObject;
|
|
3953
|
+
security?: ReadonlyArray<SecuritySchemeObject>;
|
|
3953
3954
|
// TODO: parser - add more properties
|
|
3954
|
-
// security?: ReadonlyArray<SecurityRequirementObject>;
|
|
3955
3955
|
// servers?: ReadonlyArray<ServerObject>;
|
|
3956
3956
|
summary?: string;
|
|
3957
3957
|
tags?: ReadonlyArray<string>;
|
|
@@ -4110,18 +4110,29 @@ interface Config$a extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
4110
4110
|
* Note that by enabling this option, your SDKs will **NOT**
|
|
4111
4111
|
* support {@link https://developer.mozilla.org/docs/Glossary/Tree_shaking tree-shaking}.
|
|
4112
4112
|
* For this reason, it is disabled by default.
|
|
4113
|
+
*
|
|
4113
4114
|
* @default false
|
|
4114
4115
|
*/
|
|
4115
4116
|
asClass?: boolean;
|
|
4116
4117
|
/**
|
|
4118
|
+
* **This feature works only with the experimental parser**
|
|
4119
|
+
*
|
|
4120
|
+
* Should the generated functions contain auth mechanisms? You may want to
|
|
4121
|
+
* disable this option if you're handling auth yourself or defining it
|
|
4122
|
+
* globally on the client and want to reduce the size of generated code.
|
|
4123
|
+
*
|
|
4124
|
+
* @default true
|
|
4125
|
+
*/
|
|
4126
|
+
auth?: boolean;
|
|
4127
|
+
/**
|
|
4128
|
+
* **This feature works only with the legacy parser**
|
|
4129
|
+
*
|
|
4117
4130
|
* Filter endpoints to be included in the generated SDK. The provided
|
|
4118
4131
|
* string should be a regular expression where matched results will be
|
|
4119
4132
|
* included in the output. The input pattern this string will be tested
|
|
4120
4133
|
* against is `{method} {path}`. For example, you can match
|
|
4121
4134
|
* `POST /api/v1/foo` with `^POST /api/v1/foo$`.
|
|
4122
4135
|
*
|
|
4123
|
-
* This option does not work with the experimental parser.
|
|
4124
|
-
*
|
|
4125
4136
|
* @deprecated
|
|
4126
4137
|
*/
|
|
4127
4138
|
filter?: string;
|
|
@@ -4138,17 +4149,21 @@ interface Config$a extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
4138
4149
|
// TODO: parser - rename operationId option to something like inferId?: boolean
|
|
4139
4150
|
/**
|
|
4140
4151
|
* Use operation ID to generate operation names?
|
|
4152
|
+
*
|
|
4141
4153
|
* @default true
|
|
4142
4154
|
*/
|
|
4143
4155
|
operationId?: boolean;
|
|
4144
4156
|
/**
|
|
4145
4157
|
* Name of the generated file.
|
|
4158
|
+
*
|
|
4146
4159
|
* @default 'sdk'
|
|
4147
4160
|
*/
|
|
4148
4161
|
output?: string;
|
|
4149
4162
|
/**
|
|
4150
4163
|
* Define shape of returned value from service calls
|
|
4164
|
+
*
|
|
4151
4165
|
* @default 'body'
|
|
4166
|
+
*
|
|
4152
4167
|
* @deprecated
|
|
4153
4168
|
*/
|
|
4154
4169
|
response?: 'body' | 'response';
|
|
@@ -4157,6 +4172,7 @@ interface Config$a extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
4157
4172
|
* obtained from your OpenAPI specification tags.
|
|
4158
4173
|
*
|
|
4159
4174
|
* This option has no effect if `sdk.asClass` is `false`.
|
|
4175
|
+
*
|
|
4160
4176
|
* @default '{{name}}Service'
|
|
4161
4177
|
*/
|
|
4162
4178
|
serviceNameBuilder?: string;
|
|
@@ -4213,15 +4229,16 @@ interface Config$8 extends Plugin.Name<'@hey-api/typescript'> {
|
|
|
4213
4229
|
*/
|
|
4214
4230
|
identifierCase?: Exclude<StringCase, 'SCREAMING_SNAKE_CASE'>;
|
|
4215
4231
|
/**
|
|
4216
|
-
*
|
|
4232
|
+
* **This feature works only with the legacy parser**
|
|
4217
4233
|
*
|
|
4218
|
-
*
|
|
4234
|
+
* Include only types matching regular expression.
|
|
4219
4235
|
*
|
|
4220
4236
|
* @deprecated
|
|
4221
4237
|
*/
|
|
4222
4238
|
include?: string;
|
|
4223
4239
|
/**
|
|
4224
4240
|
* Name of the generated file.
|
|
4241
|
+
*
|
|
4225
4242
|
* @default 'types'
|
|
4226
4243
|
*/
|
|
4227
4244
|
output?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3950,8 +3950,8 @@ interface IROperationObject {
|
|
|
3950
3950
|
parameters?: IRParametersObject;
|
|
3951
3951
|
path: keyof IRPathsObject;
|
|
3952
3952
|
responses?: IRResponsesObject;
|
|
3953
|
+
security?: ReadonlyArray<SecuritySchemeObject>;
|
|
3953
3954
|
// TODO: parser - add more properties
|
|
3954
|
-
// security?: ReadonlyArray<SecurityRequirementObject>;
|
|
3955
3955
|
// servers?: ReadonlyArray<ServerObject>;
|
|
3956
3956
|
summary?: string;
|
|
3957
3957
|
tags?: ReadonlyArray<string>;
|
|
@@ -4110,18 +4110,29 @@ interface Config$a extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
4110
4110
|
* Note that by enabling this option, your SDKs will **NOT**
|
|
4111
4111
|
* support {@link https://developer.mozilla.org/docs/Glossary/Tree_shaking tree-shaking}.
|
|
4112
4112
|
* For this reason, it is disabled by default.
|
|
4113
|
+
*
|
|
4113
4114
|
* @default false
|
|
4114
4115
|
*/
|
|
4115
4116
|
asClass?: boolean;
|
|
4116
4117
|
/**
|
|
4118
|
+
* **This feature works only with the experimental parser**
|
|
4119
|
+
*
|
|
4120
|
+
* Should the generated functions contain auth mechanisms? You may want to
|
|
4121
|
+
* disable this option if you're handling auth yourself or defining it
|
|
4122
|
+
* globally on the client and want to reduce the size of generated code.
|
|
4123
|
+
*
|
|
4124
|
+
* @default true
|
|
4125
|
+
*/
|
|
4126
|
+
auth?: boolean;
|
|
4127
|
+
/**
|
|
4128
|
+
* **This feature works only with the legacy parser**
|
|
4129
|
+
*
|
|
4117
4130
|
* Filter endpoints to be included in the generated SDK. The provided
|
|
4118
4131
|
* string should be a regular expression where matched results will be
|
|
4119
4132
|
* included in the output. The input pattern this string will be tested
|
|
4120
4133
|
* against is `{method} {path}`. For example, you can match
|
|
4121
4134
|
* `POST /api/v1/foo` with `^POST /api/v1/foo$`.
|
|
4122
4135
|
*
|
|
4123
|
-
* This option does not work with the experimental parser.
|
|
4124
|
-
*
|
|
4125
4136
|
* @deprecated
|
|
4126
4137
|
*/
|
|
4127
4138
|
filter?: string;
|
|
@@ -4138,17 +4149,21 @@ interface Config$a extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
4138
4149
|
// TODO: parser - rename operationId option to something like inferId?: boolean
|
|
4139
4150
|
/**
|
|
4140
4151
|
* Use operation ID to generate operation names?
|
|
4152
|
+
*
|
|
4141
4153
|
* @default true
|
|
4142
4154
|
*/
|
|
4143
4155
|
operationId?: boolean;
|
|
4144
4156
|
/**
|
|
4145
4157
|
* Name of the generated file.
|
|
4158
|
+
*
|
|
4146
4159
|
* @default 'sdk'
|
|
4147
4160
|
*/
|
|
4148
4161
|
output?: string;
|
|
4149
4162
|
/**
|
|
4150
4163
|
* Define shape of returned value from service calls
|
|
4164
|
+
*
|
|
4151
4165
|
* @default 'body'
|
|
4166
|
+
*
|
|
4152
4167
|
* @deprecated
|
|
4153
4168
|
*/
|
|
4154
4169
|
response?: 'body' | 'response';
|
|
@@ -4157,6 +4172,7 @@ interface Config$a extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
4157
4172
|
* obtained from your OpenAPI specification tags.
|
|
4158
4173
|
*
|
|
4159
4174
|
* This option has no effect if `sdk.asClass` is `false`.
|
|
4175
|
+
*
|
|
4160
4176
|
* @default '{{name}}Service'
|
|
4161
4177
|
*/
|
|
4162
4178
|
serviceNameBuilder?: string;
|
|
@@ -4213,15 +4229,16 @@ interface Config$8 extends Plugin.Name<'@hey-api/typescript'> {
|
|
|
4213
4229
|
*/
|
|
4214
4230
|
identifierCase?: Exclude<StringCase, 'SCREAMING_SNAKE_CASE'>;
|
|
4215
4231
|
/**
|
|
4216
|
-
*
|
|
4232
|
+
* **This feature works only with the legacy parser**
|
|
4217
4233
|
*
|
|
4218
|
-
*
|
|
4234
|
+
* Include only types matching regular expression.
|
|
4219
4235
|
*
|
|
4220
4236
|
* @deprecated
|
|
4221
4237
|
*/
|
|
4222
4238
|
include?: string;
|
|
4223
4239
|
/**
|
|
4224
4240
|
* Name of the generated file.
|
|
4241
|
+
*
|
|
4225
4242
|
* @default 'types'
|
|
4226
4243
|
*/
|
|
4227
4244
|
output?: string;
|