@kubb/plugin-swr 3.0.0-alpha.21 → 3.0.0-alpha.23
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/package.json +12 -12
- package/src/generators/__snapshots__/clientDataReturnTypeFull.ts +1 -1
- package/src/generators/__snapshots__/clientGetImportPath.ts +1 -1
- package/src/generators/__snapshots__/clientPostImportPath.ts +1 -1
- package/src/generators/__snapshots__/findByTags.ts +1 -1
- package/src/generators/__snapshots__/findByTagsPathParamsObject.ts +1 -1
- package/src/generators/__snapshots__/findByTagsWithZod.ts +1 -1
- package/src/generators/__snapshots__/getAsMutation.ts +1 -1
- package/src/generators/__snapshots__/postAsQuery.ts +1 -1
- package/src/generators/__snapshots__/updatePetById.ts +1 -1
- package/src/generators/__snapshots__/updatePetByIdPathParamsObject.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-swr",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.23",
|
|
4
4
|
"description": "Generator plugin-swr",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -63,25 +63,25 @@
|
|
|
63
63
|
"!/**/__tests__/**"
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@kubb/core": "3.0.0-alpha.
|
|
67
|
-
"@kubb/fs": "3.0.0-alpha.
|
|
68
|
-
"@kubb/oas": "3.0.0-alpha.
|
|
69
|
-
"@kubb/plugin-
|
|
70
|
-
"@kubb/plugin-
|
|
71
|
-
"@kubb/
|
|
72
|
-
"@kubb/plugin-
|
|
73
|
-
"@kubb/
|
|
66
|
+
"@kubb/core": "3.0.0-alpha.23",
|
|
67
|
+
"@kubb/fs": "3.0.0-alpha.23",
|
|
68
|
+
"@kubb/oas": "3.0.0-alpha.23",
|
|
69
|
+
"@kubb/plugin-client": "3.0.0-alpha.23",
|
|
70
|
+
"@kubb/plugin-oas": "3.0.0-alpha.23",
|
|
71
|
+
"@kubb/plugin-ts": "3.0.0-alpha.23",
|
|
72
|
+
"@kubb/plugin-zod": "3.0.0-alpha.23",
|
|
73
|
+
"@kubb/react": "3.0.0-alpha.23"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/react": "^18.3.8",
|
|
77
77
|
"react": "^18.3.1",
|
|
78
78
|
"tsup": "^8.3.0",
|
|
79
79
|
"typescript": "^5.6.2",
|
|
80
|
-
"@kubb/config-ts": "3.0.0-alpha.
|
|
81
|
-
"@kubb/config-tsup": "3.0.0-alpha.
|
|
80
|
+
"@kubb/config-ts": "3.0.0-alpha.23",
|
|
81
|
+
"@kubb/config-tsup": "3.0.0-alpha.23"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@kubb/react": "3.0.0-alpha.
|
|
84
|
+
"@kubb/react": "3.0.0-alpha.23"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=20"
|
|
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
|
|
|
9
9
|
* @link /pet/findByTags
|
|
10
10
|
*/
|
|
11
11
|
async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
12
|
-
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "
|
|
12
|
+
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
|
|
|
9
9
|
* @link /pet/findByTags
|
|
10
10
|
*/
|
|
11
11
|
async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
12
|
-
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "
|
|
12
|
+
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
|
|
13
13
|
return res.data;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ import type { SWRMutationConfiguration } from "swr/mutation";
|
|
|
9
9
|
* @link /pet/:petId
|
|
10
10
|
*/
|
|
11
11
|
async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig> = {}) {
|
|
12
|
-
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "
|
|
12
|
+
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "POST", url: `/pet/${petId}`, params, ...config });
|
|
13
13
|
return res.data;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
|
|
|
9
9
|
* @link /pet/findByTags
|
|
10
10
|
*/
|
|
11
11
|
async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
12
|
-
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "
|
|
12
|
+
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
|
|
13
13
|
return res.data;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
|
|
|
9
9
|
* @link /pet/findByTags
|
|
10
10
|
*/
|
|
11
11
|
async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
12
|
-
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "
|
|
12
|
+
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
|
|
13
13
|
return res.data;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
|
|
|
9
9
|
* @link /pet/findByTags
|
|
10
10
|
*/
|
|
11
11
|
async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
12
|
-
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "
|
|
12
|
+
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
|
|
13
13
|
return findPetsByTagsQueryResponse.parse(res.data);
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -10,7 +10,7 @@ import type { Key } from "swr";
|
|
|
10
10
|
* @link /pet/findByTags
|
|
11
11
|
*/
|
|
12
12
|
async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
13
|
-
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "
|
|
13
|
+
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
|
|
14
14
|
return res.data;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -9,7 +9,7 @@ import type { Key } from "swr";
|
|
|
9
9
|
* @link /pet/:petId
|
|
10
10
|
*/
|
|
11
11
|
async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig> = {}) {
|
|
12
|
-
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "
|
|
12
|
+
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "POST", url: `/pet/${petId}`, params, ...config });
|
|
13
13
|
return res.data;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ import type { SWRMutationConfiguration } from "swr/mutation";
|
|
|
9
9
|
* @link /pet/:petId
|
|
10
10
|
*/
|
|
11
11
|
async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig> = {}) {
|
|
12
|
-
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "
|
|
12
|
+
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "POST", url: `/pet/${petId}`, params, ...config });
|
|
13
13
|
return res.data;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -11,7 +11,7 @@ import type { SWRMutationConfiguration } from "swr/mutation";
|
|
|
11
11
|
async function updatePetWithForm({ petId }: {
|
|
12
12
|
petId: UpdatePetWithFormPathParams["petId"];
|
|
13
13
|
}, params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig> = {}) {
|
|
14
|
-
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "
|
|
14
|
+
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "POST", url: `/pet/${petId}`, params, ...config });
|
|
15
15
|
return res.data;
|
|
16
16
|
}
|
|
17
17
|
|