@unshared/client 0.6.4 → 0.6.5
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.
@@ -93,11 +93,11 @@ declare namespace OpenAPIV2 {
|
|
93
93
|
} : never)>;
|
94
94
|
/*************************************************************************/
|
95
95
|
/*************************************************************************/
|
96
|
-
type ResponseBody<T> = T extends {
|
97
|
-
responses: Record<
|
98
|
-
schema: infer
|
96
|
+
type ResponseBody<T, Status extends number = number> = T extends {
|
97
|
+
responses: Record<Status, {
|
98
|
+
schema: infer Schema;
|
99
99
|
}>;
|
100
|
-
} ? NonNullable<InferSchema<
|
100
|
+
} ? NonNullable<InferSchema<Schema>> : never;
|
101
101
|
type Response<T> = T extends {
|
102
102
|
responses: infer R;
|
103
103
|
} ? ({
|
@@ -145,8 +145,8 @@ declare namespace OpenAPIV3 {
|
|
145
145
|
type RequestQuery<T> = OpenAPIV2.Parameters<T, 'query'>;
|
146
146
|
/*************************************************************************/
|
147
147
|
/*************************************************************************/
|
148
|
-
type ResponseBody<U> = U extends {
|
149
|
-
responses: Record<
|
148
|
+
type ResponseBody<U, Status extends number = number> = U extends {
|
149
|
+
responses: Record<Status, {
|
150
150
|
content: Record<string, {
|
151
151
|
schema: infer Schema;
|
152
152
|
}>;
|
package/dist/createClient.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Result } from '@unshared/functions/attempt';
|
2
2
|
import { ServiceOptions } from './createService.js';
|
3
3
|
import { R as RequestOptions, F as FetchOptions } from './chunks/BGG3bT7O.js';
|
4
|
-
import { O as OpenAPILike, a as OpenAPIOptionsMap } from './chunks/
|
4
|
+
import { O as OpenAPILike, a as OpenAPIOptionsMap } from './chunks/DAtM4FUl.js';
|
5
5
|
import { ConnectOptions, WebSocketChannel } from './websocket.js';
|
6
6
|
import '@unshared/types';
|
7
7
|
import './HttpHeaders.js';
|
package/dist/createService.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MaybeLiteral } from '@unshared/types';
|
2
|
-
import { S as ServerUrl, b as OpenAPIV3, c as OperationId, d as OperationById, e as OperationOptions, f as OperationResult } from './chunks/
|
2
|
+
import { S as ServerUrl, b as OpenAPIV3, c as OperationId, d as OperationById, e as OperationOptions, f as OperationResult } from './chunks/DAtM4FUl.js';
|
3
3
|
import { R as RequestOptions } from './chunks/BGG3bT7O.js';
|
4
4
|
import 'openapi-types';
|
5
5
|
import './HttpHeaders.js';
|
package/dist/index.d.ts
CHANGED
@@ -6,6 +6,6 @@ export { HttpStatusCode } from './HttpStatusCodes.js';
|
|
6
6
|
import '@unshared/functions/attempt';
|
7
7
|
import './chunks/BGG3bT7O.js';
|
8
8
|
import '@unshared/types';
|
9
|
-
import './chunks/
|
9
|
+
import './chunks/DAtM4FUl.js';
|
10
10
|
import 'openapi-types';
|
11
11
|
import './websocket.js';
|
package/dist/openapi.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { O as OpenAPILike, a as OpenAPIOptionsMap, h as OpenAPIV2, j as OpenAPIV2Like, b as OpenAPIV3, k as OpenAPIV3Like, i as Operation, d as OperationById, n as OperationByRoute, c as OperationId, e as OperationOptions, l as OperationResponse, f as OperationResult, m as OperationRoute, S as ServerUrl, g as getServerUrl, r as resolveOperation } from './chunks/
|
1
|
+
export { O as OpenAPILike, a as OpenAPIOptionsMap, h as OpenAPIV2, j as OpenAPIV2Like, b as OpenAPIV3, k as OpenAPIV3Like, i as Operation, d as OperationById, n as OperationByRoute, c as OperationId, e as OperationOptions, l as OperationResponse, f as OperationResult, m as OperationRoute, S as ServerUrl, g as getServerUrl, r as resolveOperation } from './chunks/DAtM4FUl.js';
|
2
2
|
import { OpenAPIV2, OpenAPIV3, OpenAPIV3_1, OpenAPI } from 'openapi-types';
|
3
3
|
import { StringReplace, WriteableDeep, StringJoin, Substract } from '@unshared/types';
|
4
4
|
import './chunks/BGG3bT7O.js';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@unshared/client",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.6.
|
4
|
+
"version": "0.6.5",
|
5
5
|
"license": "MIT",
|
6
6
|
"sideEffects": false,
|
7
7
|
"author": "Stanley Horwood <stanley@hsjm.io>",
|
@@ -68,12 +68,12 @@
|
|
68
68
|
"LICENSE.md"
|
69
69
|
],
|
70
70
|
"dependencies": {
|
71
|
-
"@unshared/functions": "0.6.
|
72
|
-
"@unshared/types": "0.6.
|
71
|
+
"@unshared/functions": "0.6.5",
|
72
|
+
"@unshared/types": "0.6.5",
|
73
73
|
"openapi-types": "12.1.3"
|
74
74
|
},
|
75
75
|
"devDependencies": {
|
76
|
-
"@unshared/scripts": "0.6.
|
76
|
+
"@unshared/scripts": "0.6.5"
|
77
77
|
},
|
78
78
|
"scripts": {
|
79
79
|
"build:httpMethods": "tsx ./scripts/buildHttpMethods.ts",
|