@kubb/plugin-svelte-query 3.0.10 → 3.0.12
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 +11 -11
- package/src/generators/__snapshots__/clientDataReturnTypeFull.ts +2 -2
- package/src/generators/__snapshots__/clientGetImportPath.ts +2 -2
- package/src/generators/__snapshots__/clientPostImportPath.ts +2 -2
- package/src/generators/__snapshots__/findByTags.ts +2 -2
- package/src/generators/__snapshots__/findByTagsObject.ts +2 -2
- package/src/generators/__snapshots__/findByTagsPathParamsObject.ts +2 -2
- package/src/generators/__snapshots__/findByTagsWithCustomQueryKey.ts +2 -2
- package/src/generators/__snapshots__/findByTagsWithZod.ts +2 -2
- package/src/generators/__snapshots__/postAsQuery.ts +2 -2
- package/src/generators/__snapshots__/updatePetById.ts +2 -2
- package/src/generators/__snapshots__/updatePetByIdPathParamsObject.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-svelte-query",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"description": "Generator svelte-query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"faker",
|
|
@@ -63,21 +63,21 @@
|
|
|
63
63
|
],
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"remeda": "^2.17.3",
|
|
66
|
-
"@kubb/core": "3.0.
|
|
67
|
-
"@kubb/fs": "3.0.
|
|
68
|
-
"@kubb/oas": "3.0.
|
|
69
|
-
"@kubb/plugin-oas": "3.0.
|
|
70
|
-
"@kubb/plugin-ts": "3.0.
|
|
71
|
-
"@kubb/plugin-zod": "3.0.
|
|
72
|
-
"@kubb/react": "3.0.
|
|
66
|
+
"@kubb/core": "3.0.12",
|
|
67
|
+
"@kubb/fs": "3.0.12",
|
|
68
|
+
"@kubb/oas": "3.0.12",
|
|
69
|
+
"@kubb/plugin-oas": "3.0.12",
|
|
70
|
+
"@kubb/plugin-ts": "3.0.12",
|
|
71
|
+
"@kubb/plugin-zod": "3.0.12",
|
|
72
|
+
"@kubb/react": "3.0.12"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/react": "^18.3.12",
|
|
76
76
|
"react": "^18.3.1",
|
|
77
77
|
"tsup": "^8.3.5",
|
|
78
|
-
"typescript": "^5.
|
|
79
|
-
"@kubb/config-ts": "3.0.
|
|
80
|
-
"@kubb/config-tsup": "3.0.
|
|
78
|
+
"typescript": "^5.7.2",
|
|
79
|
+
"@kubb/config-ts": "3.0.12",
|
|
80
|
+
"@kubb/config-tsup": "3.0.12"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@kubb/react": "^3.0.0"
|
|
@@ -10,7 +10,7 @@ import { queryOptions, createQuery } from "@tanstack/svelte-query";
|
|
|
10
10
|
/**
|
|
11
11
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
12
12
|
* @summary Finds Pets by tags
|
|
13
|
-
* @link /pet/findByTags
|
|
13
|
+
* {@link /pet/findByTags}
|
|
14
14
|
*/
|
|
15
15
|
async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
16
16
|
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, headers: { ...headers, ...config.headers }, ...config });
|
|
@@ -31,7 +31,7 @@ async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: Find
|
|
|
31
31
|
/**
|
|
32
32
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
33
33
|
* @summary Finds Pets by tags
|
|
34
|
-
* @link /pet/findByTags
|
|
34
|
+
* {@link /pet/findByTags}
|
|
35
35
|
*/
|
|
36
36
|
export function createFindPetsByTags<TData = ResponseConfig<FindPetsByTagsQueryResponse>, TQueryData = ResponseConfig<FindPetsByTagsQueryResponse>, TQueryKey extends QueryKey = FindPetsByTagsQueryKey>(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, options: {
|
|
37
37
|
query?: Partial<CreateBaseQueryOptions<ResponseConfig<FindPetsByTagsQueryResponse>, FindPetsByTags400, TData, TQueryData, TQueryKey>>;
|
|
@@ -10,7 +10,7 @@ import { queryOptions, createQuery } from "@tanstack/svelte-query";
|
|
|
10
10
|
/**
|
|
11
11
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
12
12
|
* @summary Finds Pets by tags
|
|
13
|
-
* @link /pet/findByTags
|
|
13
|
+
* {@link /pet/findByTags}
|
|
14
14
|
*/
|
|
15
15
|
async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
16
16
|
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, headers: { ...headers, ...config.headers }, ...config });
|
|
@@ -31,7 +31,7 @@ async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: Find
|
|
|
31
31
|
/**
|
|
32
32
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
33
33
|
* @summary Finds Pets by tags
|
|
34
|
-
* @link /pet/findByTags
|
|
34
|
+
* {@link /pet/findByTags}
|
|
35
35
|
*/
|
|
36
36
|
export function createFindPetsByTags<TData = FindPetsByTagsQueryResponse, TQueryData = FindPetsByTagsQueryResponse, TQueryKey extends QueryKey = FindPetsByTagsQueryKey>(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, options: {
|
|
37
37
|
query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, FindPetsByTags400, TData, TQueryData, TQueryKey>>;
|
|
@@ -9,7 +9,7 @@ import { createMutation } from "@tanstack/svelte-query";
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @summary Updates a pet in the store with form data
|
|
12
|
-
* @link /pet/:petId
|
|
12
|
+
* {@link /pet/:petId}
|
|
13
13
|
*/
|
|
14
14
|
async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], data?: UpdatePetWithFormMutationRequest, params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> = {}) {
|
|
15
15
|
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, UpdatePetWithFormMutationRequest>({ method: "POST", url: `/pet/${petId}`, params, data, ...config });
|
|
@@ -18,7 +18,7 @@ async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], da
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @summary Updates a pet in the store with form data
|
|
21
|
-
* @link /pet/:petId
|
|
21
|
+
* {@link /pet/:petId}
|
|
22
22
|
*/
|
|
23
23
|
export function createUpdatePetWithForm(options: {
|
|
24
24
|
mutation?: CreateMutationOptions<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, {
|
|
@@ -10,7 +10,7 @@ import { queryOptions, createQuery } from "@tanstack/svelte-query";
|
|
|
10
10
|
/**
|
|
11
11
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
12
12
|
* @summary Finds Pets by tags
|
|
13
|
-
* @link /pet/findByTags
|
|
13
|
+
* {@link /pet/findByTags}
|
|
14
14
|
*/
|
|
15
15
|
async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
16
16
|
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, headers: { ...headers, ...config.headers }, ...config });
|
|
@@ -31,7 +31,7 @@ async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: Find
|
|
|
31
31
|
/**
|
|
32
32
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
33
33
|
* @summary Finds Pets by tags
|
|
34
|
-
* @link /pet/findByTags
|
|
34
|
+
* {@link /pet/findByTags}
|
|
35
35
|
*/
|
|
36
36
|
export function createFindPetsByTags<TData = FindPetsByTagsQueryResponse, TQueryData = FindPetsByTagsQueryResponse, TQueryKey extends QueryKey = FindPetsByTagsQueryKey>(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, options: {
|
|
37
37
|
query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, FindPetsByTags400, TData, TQueryData, TQueryKey>>;
|
|
@@ -10,7 +10,7 @@ import { queryOptions, createQuery } from "@tanstack/svelte-query";
|
|
|
10
10
|
/**
|
|
11
11
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
12
12
|
* @summary Finds Pets by tags
|
|
13
|
-
* @link /pet/findByTags
|
|
13
|
+
* {@link /pet/findByTags}
|
|
14
14
|
*/
|
|
15
15
|
async function findPetsByTags({ headers, params }: {
|
|
16
16
|
headers: FindPetsByTagsHeaderParams;
|
|
@@ -37,7 +37,7 @@ async function findPetsByTags({ headers, params }: {
|
|
|
37
37
|
/**
|
|
38
38
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
39
39
|
* @summary Finds Pets by tags
|
|
40
|
-
* @link /pet/findByTags
|
|
40
|
+
* {@link /pet/findByTags}
|
|
41
41
|
*/
|
|
42
42
|
export function createFindPetsByTags<TData = FindPetsByTagsQueryResponse, TQueryData = FindPetsByTagsQueryResponse, TQueryKey extends QueryKey = FindPetsByTagsQueryKey>({ headers, params }: {
|
|
43
43
|
headers: FindPetsByTagsHeaderParams;
|
|
@@ -10,7 +10,7 @@ import { queryOptions, createQuery } from "@tanstack/svelte-query";
|
|
|
10
10
|
/**
|
|
11
11
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
12
12
|
* @summary Finds Pets by tags
|
|
13
|
-
* @link /pet/findByTags
|
|
13
|
+
* {@link /pet/findByTags}
|
|
14
14
|
*/
|
|
15
15
|
async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
16
16
|
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, headers: { ...headers, ...config.headers }, ...config });
|
|
@@ -31,7 +31,7 @@ async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: Find
|
|
|
31
31
|
/**
|
|
32
32
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
33
33
|
* @summary Finds Pets by tags
|
|
34
|
-
* @link /pet/findByTags
|
|
34
|
+
* {@link /pet/findByTags}
|
|
35
35
|
*/
|
|
36
36
|
export function createFindPetsByTags<TData = FindPetsByTagsQueryResponse, TQueryData = FindPetsByTagsQueryResponse, TQueryKey extends QueryKey = FindPetsByTagsQueryKey>(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, options: {
|
|
37
37
|
query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, FindPetsByTags400, TData, TQueryData, TQueryKey>>;
|
|
@@ -10,7 +10,7 @@ import { queryOptions, createQuery } from "@tanstack/react-query";
|
|
|
10
10
|
/**
|
|
11
11
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
12
12
|
* @summary Finds Pets by tags
|
|
13
|
-
* @link /pet/findByTags
|
|
13
|
+
* {@link /pet/findByTags}
|
|
14
14
|
*/
|
|
15
15
|
async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
16
16
|
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, headers: { ...headers, ...config.headers }, ...config });
|
|
@@ -31,7 +31,7 @@ async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: Find
|
|
|
31
31
|
/**
|
|
32
32
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
33
33
|
* @summary Finds Pets by tags
|
|
34
|
-
* @link /pet/findByTags
|
|
34
|
+
* {@link /pet/findByTags}
|
|
35
35
|
*/
|
|
36
36
|
export function createFindPetsByTags<TData = FindPetsByTagsQueryResponse, TQueryData = FindPetsByTagsQueryResponse, TQueryKey extends QueryKey = FindPetsByTagsQueryKey>(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, options: {
|
|
37
37
|
query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, FindPetsByTags400, TData, TQueryData, TQueryKey>>;
|
|
@@ -10,7 +10,7 @@ import { queryOptions, createQuery } from "@tanstack/svelte-query";
|
|
|
10
10
|
/**
|
|
11
11
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
12
12
|
* @summary Finds Pets by tags
|
|
13
|
-
* @link /pet/findByTags
|
|
13
|
+
* {@link /pet/findByTags}
|
|
14
14
|
*/
|
|
15
15
|
async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
|
|
16
16
|
const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, headers: { ...headers, ...config.headers }, ...config });
|
|
@@ -31,7 +31,7 @@ async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: Find
|
|
|
31
31
|
/**
|
|
32
32
|
* @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
33
33
|
* @summary Finds Pets by tags
|
|
34
|
-
* @link /pet/findByTags
|
|
34
|
+
* {@link /pet/findByTags}
|
|
35
35
|
*/
|
|
36
36
|
export function createFindPetsByTags<TData = FindPetsByTagsQueryResponse, TQueryData = FindPetsByTagsQueryResponse, TQueryKey extends QueryKey = FindPetsByTagsQueryKey>(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, options: {
|
|
37
37
|
query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, FindPetsByTags400, TData, TQueryData, TQueryKey>>;
|
|
@@ -9,7 +9,7 @@ import { queryOptions, createQuery } from "custom-query";
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @summary Updates a pet in the store with form data
|
|
12
|
-
* @link /pet/:petId
|
|
12
|
+
* {@link /pet/:petId}
|
|
13
13
|
*/
|
|
14
14
|
async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], data?: UpdatePetWithFormMutationRequest, params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> = {}) {
|
|
15
15
|
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, UpdatePetWithFormMutationRequest>({ method: "POST", url: `/pet/${petId}`, params, data, ...config });
|
|
@@ -30,7 +30,7 @@ async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], da
|
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* @summary Updates a pet in the store with form data
|
|
33
|
-
* @link /pet/:petId
|
|
33
|
+
* {@link /pet/:petId}
|
|
34
34
|
*/
|
|
35
35
|
export function createUpdatePetWithForm<TData = UpdatePetWithFormMutationResponse, TQueryData = UpdatePetWithFormMutationResponse, TQueryKey extends QueryKey = UpdatePetWithFormQueryKey>(petId: UpdatePetWithFormPathParams["petId"], data?: UpdatePetWithFormMutationRequest, params?: UpdatePetWithFormQueryParams, options: {
|
|
36
36
|
query?: Partial<CreateBaseQueryOptions<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, TData, TQueryData, TQueryKey>>;
|
|
@@ -9,7 +9,7 @@ import { createMutation } from "@tanstack/svelte-query";
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @summary Updates a pet in the store with form data
|
|
12
|
-
* @link /pet/:petId
|
|
12
|
+
* {@link /pet/:petId}
|
|
13
13
|
*/
|
|
14
14
|
async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], data?: UpdatePetWithFormMutationRequest, params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> = {}) {
|
|
15
15
|
const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, UpdatePetWithFormMutationRequest>({ method: "POST", url: `/pet/${petId}`, params, data, ...config });
|
|
@@ -18,7 +18,7 @@ async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], da
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @summary Updates a pet in the store with form data
|
|
21
|
-
* @link /pet/:petId
|
|
21
|
+
* {@link /pet/:petId}
|
|
22
22
|
*/
|
|
23
23
|
export function createUpdatePetWithForm(options: {
|
|
24
24
|
mutation?: CreateMutationOptions<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, {
|
|
@@ -9,7 +9,7 @@ import { createMutation } from "@tanstack/svelte-query";
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @summary Updates a pet in the store with form data
|
|
12
|
-
* @link /pet/:petId
|
|
12
|
+
* {@link /pet/:petId}
|
|
13
13
|
*/
|
|
14
14
|
async function updatePetWithForm({ petId }: {
|
|
15
15
|
petId: UpdatePetWithFormPathParams["petId"];
|
|
@@ -20,7 +20,7 @@ async function updatePetWithForm({ petId }: {
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @summary Updates a pet in the store with form data
|
|
23
|
-
* @link /pet/:petId
|
|
23
|
+
* {@link /pet/:petId}
|
|
24
24
|
*/
|
|
25
25
|
export function createUpdatePetWithForm(options: {
|
|
26
26
|
mutation?: CreateMutationOptions<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, {
|