@orpc/openapi-client 1.12.0 → 1.12.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/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<image align="center" src="https://orpc.
|
|
2
|
+
<image align="center" src="https://orpc.dev/logo.webp" width=280 alt="oRPC logo" />
|
|
3
3
|
</div>
|
|
4
4
|
|
|
5
5
|
<h1></h1>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
## Documentation
|
|
47
47
|
|
|
48
|
-
You can find the full documentation [here](https://orpc.
|
|
48
|
+
You can find the full documentation [here](https://orpc.dev).
|
|
49
49
|
|
|
50
50
|
## Packages
|
|
51
51
|
|
|
@@ -11,7 +11,7 @@ interface OpenAPILinkOptions<T extends ClientContext> extends LinkFetchClientOpt
|
|
|
11
11
|
/**
|
|
12
12
|
* The OpenAPI Link for fetch runtime communicates with the server that follow the OpenAPI specification.
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://orpc.
|
|
14
|
+
* @see {@link https://orpc.dev/docs/openapi/client/openapi-link OpenAPI Link Docs}
|
|
15
15
|
* @see {@link https://swagger.io/specification/ OpenAPI Specification}
|
|
16
16
|
*/
|
|
17
17
|
declare class OpenAPILink<T extends ClientContext> extends StandardOpenAPILink<T> {
|
|
@@ -11,7 +11,7 @@ interface OpenAPILinkOptions<T extends ClientContext> extends LinkFetchClientOpt
|
|
|
11
11
|
/**
|
|
12
12
|
* The OpenAPI Link for fetch runtime communicates with the server that follow the OpenAPI specification.
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://orpc.
|
|
14
|
+
* @see {@link https://orpc.dev/docs/openapi/client/openapi-link OpenAPI Link Docs}
|
|
15
15
|
* @see {@link https://swagger.io/specification/ OpenAPI Specification}
|
|
16
16
|
*/
|
|
17
17
|
declare class OpenAPILink<T extends ClientContext> extends StandardOpenAPILink<T> {
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
* // }
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
-
* @see {@link https://orpc.
|
|
27
|
+
* @see {@link https://orpc.dev/docs/openapi/bracket-notation Bracket Notation Docs}
|
|
28
28
|
*/
|
|
29
29
|
declare function parseFormData(form: FormData): any;
|
|
30
30
|
/**
|
|
31
31
|
* Get the issue message from the error.
|
|
32
32
|
*
|
|
33
33
|
* @param error - The error (can be anything) can contain `data.issues` (standard schema issues)
|
|
34
|
-
* @param path - The path of the field that has the issue follow [bracket notation](https://orpc.
|
|
34
|
+
* @param path - The path of the field that has the issue follow [bracket notation](https://orpc.dev/docs/openapi/bracket-notation)
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```tsx
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
* // }
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
-
* @see {@link https://orpc.
|
|
27
|
+
* @see {@link https://orpc.dev/docs/openapi/bracket-notation Bracket Notation Docs}
|
|
28
28
|
*/
|
|
29
29
|
declare function parseFormData(form: FormData): any;
|
|
30
30
|
/**
|
|
31
31
|
* Get the issue message from the error.
|
|
32
32
|
*
|
|
33
33
|
* @param error - The error (can be anything) can contain `data.issues` (standard schema issues)
|
|
34
|
-
* @param path - The path of the field that has the issue follow [bracket notation](https://orpc.
|
|
34
|
+
* @param path - The path of the field that has the issue follow [bracket notation](https://orpc.dev/docs/openapi/bracket-notation)
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```tsx
|
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ type JsonifiedArray<T extends Array<unknown>> = T extends readonly [] ? [] : T e
|
|
|
7
7
|
/**
|
|
8
8
|
* Convert types that JSON not support to corresponding json types
|
|
9
9
|
*
|
|
10
|
-
* @see {@link https://orpc.
|
|
10
|
+
* @see {@link https://orpc.dev/docs/openapi/client/openapi-link OpenAPI Link Docs}
|
|
11
11
|
*/
|
|
12
12
|
type JsonifiedClient<T extends NestedClient<any>> = T extends Client<infer UClientContext, infer UInput, infer UOutput, infer UError> ? Client<UClientContext, UInput, JsonifiedValue<UOutput>, UError extends ORPCError<infer UCode, infer UData> ? ORPCError<UCode, JsonifiedValue<UData>> : UError> : {
|
|
13
13
|
[K in keyof T]: T[K] extends NestedClient<any> ? JsonifiedClient<T[K]> : T[K];
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ type JsonifiedArray<T extends Array<unknown>> = T extends readonly [] ? [] : T e
|
|
|
7
7
|
/**
|
|
8
8
|
* Convert types that JSON not support to corresponding json types
|
|
9
9
|
*
|
|
10
|
-
* @see {@link https://orpc.
|
|
10
|
+
* @see {@link https://orpc.dev/docs/openapi/client/openapi-link OpenAPI Link Docs}
|
|
11
11
|
*/
|
|
12
12
|
type JsonifiedClient<T extends NestedClient<any>> = T extends Client<infer UClientContext, infer UInput, infer UOutput, infer UError> ? Client<UClientContext, UInput, JsonifiedValue<UOutput>, UError extends ORPCError<infer UCode, infer UData> ? ORPCError<UCode, JsonifiedValue<UData>> : UError> : {
|
|
13
13
|
[K in keyof T]: T[K] extends NestedClient<any> ? JsonifiedClient<T[K]> : T[K];
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi-client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.12.
|
|
4
|
+
"version": "1.12.2",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://orpc.
|
|
6
|
+
"homepage": "https://orpc.dev",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/unnoq/orpc.git",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"dist"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@orpc/
|
|
43
|
-
"@orpc/
|
|
44
|
-
"@orpc/
|
|
45
|
-
"@orpc/
|
|
42
|
+
"@orpc/shared": "1.12.2",
|
|
43
|
+
"@orpc/standard-server": "1.12.2",
|
|
44
|
+
"@orpc/client": "1.12.2",
|
|
45
|
+
"@orpc/contract": "1.12.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@orpc/server": "1.12.
|
|
48
|
+
"@orpc/server": "1.12.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "unbuild",
|