@sebspark/openapi-core 2.3.0 → 2.3.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.d.ts +7 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -142,6 +142,12 @@ type Empty = Record<never, never>;
|
|
|
142
142
|
type Serialized<T> = {
|
|
143
143
|
[P in keyof T]: T[P] extends Date ? string : T[P] extends Date | undefined ? string | undefined : T[P] extends Array<infer U> ? Array<Serialized<U>> : T[P] extends (...args: any) => any ? T[P] : T[P] extends object ? Serialized<T[P]> : T[P] extends object | undefined ? Serialized<NonNullable<T[P]>> | undefined : T[P];
|
|
144
144
|
};
|
|
145
|
+
type ConvertToQueryParam<T> = T extends number ? string : T extends boolean ? string : T extends Date ? string : T extends string ? T : T extends Array<infer U> ? Array<ConvertToQueryParam<U>> : T extends object ? {
|
|
146
|
+
[K in keyof T]: ConvertToQueryParam<T[K]>;
|
|
147
|
+
} : T;
|
|
148
|
+
type QueryParams<T> = {
|
|
149
|
+
[K in keyof T]: ConvertToQueryParam<T[K]>;
|
|
150
|
+
};
|
|
145
151
|
type PartiallySerialized<T> = T | Serialized<T>;
|
|
146
152
|
type LowerCaseHeaders<T> = {
|
|
147
153
|
[P in keyof T as Lowercase<P & string>]: T[P];
|
|
@@ -718,4 +724,4 @@ type LinkObject = {
|
|
|
718
724
|
type CallbackObject = Record<string, PathItemObject | ReferenceObject>;
|
|
719
725
|
type SecurityRequirementObject = Record<string, string[]>;
|
|
720
726
|
|
|
721
|
-
export { APIResponse, APIServerDefinition, APIServerOptions, ArrayFormat, AsyncApiComponentsObject, AsyncApiDocument, AsyncOperationObject, AvroArray, AvroEnum, AvroField, AvroMap, AvroPrimitive, AvroRecord, AvroSchema, AvroUnion, BadGatewayError, BadRequestError, BaseClient, CallbackObject, ChannelItemObject, ClientErrorCode, ClientOptions, ComponentsObject, ConflictError, ContactObject, CorrelationIdObject, DefaultValue, DiscriminatorObject, EncodingObject, ErrorCode, Example, ExampleObject, ExpectationFailedError, ExternalDocumentationObject, FailedDependencyError, ForbiddenError, GatewayTimeoutError, GenericRouteHandler, GoneError, HTTPVersionNotSupportedError, HeaderObject, HeaderStyle, HttpError, HttpMethod, IMATeapotError, InfoObject, InsufficientStorageError, InternalServerError, LengthRequiredError, LicenseObject, LinkObject, LockedError, LoopDetectedError, LowerCaseHeaders, MediaTypeObject, MessageObject, MessageTraitObject, MethodNotAllowedError, MisdirectedRequestError, NetworkAuthenticationRequiredError, NotAcceptableError, NotExtendedError, NotFoundError, NotImplementedError, OAuthFlowObject, OAuthFlowsObject, OpenApiDocument, OperationObject, OperationTraitObject, ParameterIn, ParameterObject, ParameterStyle, PartiallySerialized, PathItemObject, PayloadRequestArgs, PayloadTooLargeError, PaymentRequiredError, PreconditionFailedError, PreconditionRequiredError, ProxyAuthenticationRequiredError, RangeNotSatisfiableError, ReferenceObject, RequestArgs, RequestBodyObject, RequestHeaderFieldsTooLargeError, RequestOptions, RequestTimeoutError, ResponseObject, ResponsesObject, Route, RouteHandler, SchemaEnum, SchemaObject, SchemaType, SecurityRequirementObject, SecuritySchemeObject, SecuritySchemeType, Serialized, ServerErrorCode, ServerObject, ServerVariableObject, ServiceUnavailableError, TagObject, TooEarlyError, TooManyRequestsError, URITooLongError, UnauthorizedError, UnavailableForLegalReasonsError, UnprocessableEntityError, UnsupportedMediaTypeError, UpgradeRequiredError, VariantAlsoNegotiatesError, Verb, XMLObject, createHttpError, fromAxiosError };
|
|
727
|
+
export { APIResponse, APIServerDefinition, APIServerOptions, ArrayFormat, AsyncApiComponentsObject, AsyncApiDocument, AsyncOperationObject, AvroArray, AvroEnum, AvroField, AvroMap, AvroPrimitive, AvroRecord, AvroSchema, AvroUnion, BadGatewayError, BadRequestError, BaseClient, CallbackObject, ChannelItemObject, ClientErrorCode, ClientOptions, ComponentsObject, ConflictError, ContactObject, CorrelationIdObject, DefaultValue, DiscriminatorObject, EncodingObject, ErrorCode, Example, ExampleObject, ExpectationFailedError, ExternalDocumentationObject, FailedDependencyError, ForbiddenError, GatewayTimeoutError, GenericRouteHandler, GoneError, HTTPVersionNotSupportedError, HeaderObject, HeaderStyle, HttpError, HttpMethod, IMATeapotError, InfoObject, InsufficientStorageError, InternalServerError, LengthRequiredError, LicenseObject, LinkObject, LockedError, LoopDetectedError, LowerCaseHeaders, MediaTypeObject, MessageObject, MessageTraitObject, MethodNotAllowedError, MisdirectedRequestError, NetworkAuthenticationRequiredError, NotAcceptableError, NotExtendedError, NotFoundError, NotImplementedError, OAuthFlowObject, OAuthFlowsObject, OpenApiDocument, OperationObject, OperationTraitObject, ParameterIn, ParameterObject, ParameterStyle, PartiallySerialized, PathItemObject, PayloadRequestArgs, PayloadTooLargeError, PaymentRequiredError, PreconditionFailedError, PreconditionRequiredError, ProxyAuthenticationRequiredError, QueryParams, RangeNotSatisfiableError, ReferenceObject, RequestArgs, RequestBodyObject, RequestHeaderFieldsTooLargeError, RequestOptions, RequestTimeoutError, ResponseObject, ResponsesObject, Route, RouteHandler, SchemaEnum, SchemaObject, SchemaType, SecurityRequirementObject, SecuritySchemeObject, SecuritySchemeType, Serialized, ServerErrorCode, ServerObject, ServerVariableObject, ServiceUnavailableError, TagObject, TooEarlyError, TooManyRequestsError, URITooLongError, UnauthorizedError, UnavailableForLegalReasonsError, UnprocessableEntityError, UnsupportedMediaTypeError, UpgradeRequiredError, VariantAlsoNegotiatesError, Verb, XMLObject, createHttpError, fromAxiosError };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebspark/openapi-core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@sebspark/retry": "*",
|
|
27
|
-
"axios": "1.
|
|
27
|
+
"axios": "^1.12.0"
|
|
28
28
|
}
|
|
29
29
|
}
|