@kubb/plugin-svelte-query 0.0.0-canary-20250122180027 → 0.0.0-canary-20250124174549

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.
Files changed (35) hide show
  1. package/dist/{chunk-LWISIPQK.cjs → chunk-2B4GECXR.cjs} +15 -15
  2. package/dist/chunk-2B4GECXR.cjs.map +1 -0
  3. package/dist/{chunk-4S7R5Q4P.js → chunk-LW5OG36B.js} +5 -5
  4. package/dist/chunk-LW5OG36B.js.map +1 -0
  5. package/dist/{chunk-O6G62ZNB.cjs → chunk-OGHDM5HE.cjs} +19 -14
  6. package/dist/chunk-OGHDM5HE.cjs.map +1 -0
  7. package/dist/{chunk-KYRMPWIG.js → chunk-W7B6VUD4.js} +19 -14
  8. package/dist/chunk-W7B6VUD4.js.map +1 -0
  9. package/dist/components.cjs +6 -6
  10. package/dist/components.js +1 -1
  11. package/dist/generators.cjs +4 -4
  12. package/dist/generators.js +2 -2
  13. package/dist/index.cjs +5 -5
  14. package/dist/index.js +2 -2
  15. package/package.json +12 -12
  16. package/src/components/Mutation.tsx +1 -1
  17. package/src/components/Query.tsx +2 -2
  18. package/src/components/QueryOptions.tsx +6 -2
  19. package/src/generators/__snapshots__/clientDataReturnTypeFull.ts +16 -6
  20. package/src/generators/__snapshots__/clientGetImportPath.ts +16 -6
  21. package/src/generators/__snapshots__/clientPostImportPath.ts +6 -4
  22. package/src/generators/__snapshots__/findByTags.ts +16 -6
  23. package/src/generators/__snapshots__/findByTagsObject.ts +8 -6
  24. package/src/generators/__snapshots__/findByTagsPathParamsObject.ts +16 -6
  25. package/src/generators/__snapshots__/findByTagsWithCustomQueryKey.ts +16 -6
  26. package/src/generators/__snapshots__/findByTagsWithZod.ts +16 -6
  27. package/src/generators/__snapshots__/postAsQuery.ts +7 -5
  28. package/src/generators/__snapshots__/updatePetById.ts +6 -4
  29. package/src/generators/__snapshots__/updatePetByIdPathParamsObject.ts +6 -4
  30. package/src/generators/mutationGenerator.tsx +1 -1
  31. package/src/generators/queryGenerator.tsx +1 -1
  32. package/dist/chunk-4S7R5Q4P.js.map +0 -1
  33. package/dist/chunk-KYRMPWIG.js.map +0 -1
  34. package/dist/chunk-LWISIPQK.cjs.map +0 -1
  35. package/dist/chunk-O6G62ZNB.cjs.map +0 -1
@@ -12,18 +12,28 @@ export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
12
12
  * @summary Finds Pets by tags
13
13
  * {@link /pet/findByTags}
14
14
  */
15
- export async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
16
- const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
15
+ export async function findPetsByTags(
16
+ headers: FindPetsByTagsHeaderParams,
17
+ params?: FindPetsByTagsQueryParams,
18
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
19
+ ) {
20
+ const { client: request = client, ...requestConfig } = config
21
+
22
+ const res = await request<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
17
23
  method: 'GET',
18
24
  url: `/pet/findByTags`,
19
25
  params,
20
- headers: { ...headers, ...config.headers },
21
- ...config,
26
+ headers: { ...headers, ...requestConfig.headers },
27
+ ...requestConfig,
22
28
  })
23
29
  return { ...res, data: findPetsByTagsQueryResponse.parse(res.data) }
24
30
  }
25
31
 
26
- export function findPetsByTagsQueryOptions(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
32
+ export function findPetsByTagsQueryOptions(
33
+ headers: FindPetsByTagsHeaderParams,
34
+ params?: FindPetsByTagsQueryParams,
35
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
36
+ ) {
27
37
  const queryKey = findPetsByTagsQueryKey(params)
28
38
  return queryOptions<
29
39
  ResponseConfig<FindPetsByTagsQueryResponse>,
@@ -53,7 +63,7 @@ export function createFindPetsByTags<
53
63
  params?: FindPetsByTagsQueryParams,
54
64
  options: {
55
65
  query?: Partial<CreateBaseQueryOptions<ResponseConfig<FindPetsByTagsQueryResponse>, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>>
56
- client?: Partial<RequestConfig>
66
+ client?: Partial<RequestConfig> & { client?: typeof client }
57
67
  } = {},
58
68
  ) {
59
69
  const { query: queryOptions, client: config = {} } = options ?? {}
@@ -12,18 +12,28 @@ export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
12
12
  * @summary Finds Pets by tags
13
13
  * {@link /pet/findByTags}
14
14
  */
15
- export async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
16
- const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
15
+ export async function findPetsByTags(
16
+ headers: FindPetsByTagsHeaderParams,
17
+ params?: FindPetsByTagsQueryParams,
18
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
19
+ ) {
20
+ const { client: request = client, ...requestConfig } = config
21
+
22
+ const res = await request<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
17
23
  method: 'GET',
18
24
  url: `/pet/findByTags`,
19
25
  params,
20
- headers: { ...headers, ...config.headers },
21
- ...config,
26
+ headers: { ...headers, ...requestConfig.headers },
27
+ ...requestConfig,
22
28
  })
23
29
  return findPetsByTagsQueryResponse.parse(res.data)
24
30
  }
25
31
 
26
- export function findPetsByTagsQueryOptions(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
32
+ export function findPetsByTagsQueryOptions(
33
+ headers: FindPetsByTagsHeaderParams,
34
+ params?: FindPetsByTagsQueryParams,
35
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
36
+ ) {
27
37
  const queryKey = findPetsByTagsQueryKey(params)
28
38
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
29
39
  queryKey,
@@ -48,7 +58,7 @@ export function createFindPetsByTags<
48
58
  params?: FindPetsByTagsQueryParams,
49
59
  options: {
50
60
  query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>>
51
- client?: Partial<RequestConfig>
61
+ client?: Partial<RequestConfig> & { client?: typeof client }
52
62
  } = {},
53
63
  ) {
54
64
  const { query: queryOptions, client: config = {} } = options ?? {}
@@ -15,14 +15,16 @@ export async function updatePetWithForm(
15
15
  petId: UpdatePetWithFormPathParams['petId'],
16
16
  data?: UpdatePetWithFormMutationRequest,
17
17
  params?: UpdatePetWithFormQueryParams,
18
- config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> = {},
18
+ config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof client } = {},
19
19
  ) {
20
- const res = await client<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationRequest>({
20
+ const { client: request = client, ...requestConfig } = config
21
+
22
+ const res = await request<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationRequest>({
21
23
  method: 'POST',
22
24
  url: `/pet/${petId}`,
23
25
  params,
24
26
  data,
25
- ...config,
27
+ ...requestConfig,
26
28
  })
27
29
  return updatePetWithFormMutationResponse.parse(res.data)
28
30
  }
@@ -38,7 +40,7 @@ export function createUpdatePetWithForm(
38
40
  ResponseErrorConfig<UpdatePetWithForm405>,
39
41
  { petId: UpdatePetWithFormPathParams['petId']; data?: UpdatePetWithFormMutationRequest; params?: UpdatePetWithFormQueryParams }
40
42
  >
41
- client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>>
43
+ client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof client }
42
44
  } = {},
43
45
  ) {
44
46
  const { mutation: mutationOptions, client: config = {} } = options ?? {}
@@ -12,18 +12,28 @@ export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
12
12
  * @summary Finds Pets by tags
13
13
  * {@link /pet/findByTags}
14
14
  */
15
- export async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
16
- const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
15
+ export async function findPetsByTags(
16
+ headers: FindPetsByTagsHeaderParams,
17
+ params?: FindPetsByTagsQueryParams,
18
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
19
+ ) {
20
+ const { client: request = client, ...requestConfig } = config
21
+
22
+ const res = await request<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
17
23
  method: 'GET',
18
24
  url: `/pet/findByTags`,
19
25
  params,
20
- headers: { ...headers, ...config.headers },
21
- ...config,
26
+ headers: { ...headers, ...requestConfig.headers },
27
+ ...requestConfig,
22
28
  })
23
29
  return findPetsByTagsQueryResponse.parse(res.data)
24
30
  }
25
31
 
26
- export function findPetsByTagsQueryOptions(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
32
+ export function findPetsByTagsQueryOptions(
33
+ headers: FindPetsByTagsHeaderParams,
34
+ params?: FindPetsByTagsQueryParams,
35
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
36
+ ) {
27
37
  const queryKey = findPetsByTagsQueryKey(params)
28
38
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
29
39
  queryKey,
@@ -48,7 +58,7 @@ export function createFindPetsByTags<
48
58
  params?: FindPetsByTagsQueryParams,
49
59
  options: {
50
60
  query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>>
51
- client?: Partial<RequestConfig>
61
+ client?: Partial<RequestConfig> & { client?: typeof client }
52
62
  } = {},
53
63
  ) {
54
64
  const { query: queryOptions, client: config = {} } = options ?? {}
@@ -14,21 +14,23 @@ export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
14
14
  */
15
15
  export async function findPetsByTags(
16
16
  { headers, params }: { headers: FindPetsByTagsHeaderParams; params?: FindPetsByTagsQueryParams },
17
- config: Partial<RequestConfig> = {},
17
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
18
18
  ) {
19
- const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
19
+ const { client: request = client, ...requestConfig } = config
20
+
21
+ const res = await request<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
20
22
  method: 'GET',
21
23
  url: `/pet/findByTags`,
22
24
  params,
23
- headers: { ...headers, ...config.headers },
24
- ...config,
25
+ headers: { ...headers, ...requestConfig.headers },
26
+ ...requestConfig,
25
27
  })
26
28
  return findPetsByTagsQueryResponse.parse(res.data)
27
29
  }
28
30
 
29
31
  export function findPetsByTagsQueryOptions(
30
32
  { headers, params }: { headers: FindPetsByTagsHeaderParams; params?: FindPetsByTagsQueryParams },
31
- config: Partial<RequestConfig> = {},
33
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
32
34
  ) {
33
35
  const queryKey = findPetsByTagsQueryKey(params)
34
36
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -53,7 +55,7 @@ export function createFindPetsByTags<
53
55
  { headers, params }: { headers: FindPetsByTagsHeaderParams; params?: FindPetsByTagsQueryParams },
54
56
  options: {
55
57
  query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>>
56
- client?: Partial<RequestConfig>
58
+ client?: Partial<RequestConfig> & { client?: typeof client }
57
59
  } = {},
58
60
  ) {
59
61
  const { query: queryOptions, client: config = {} } = options ?? {}
@@ -12,18 +12,28 @@ export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
12
12
  * @summary Finds Pets by tags
13
13
  * {@link /pet/findByTags}
14
14
  */
15
- export async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
16
- const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
15
+ export async function findPetsByTags(
16
+ headers: FindPetsByTagsHeaderParams,
17
+ params?: FindPetsByTagsQueryParams,
18
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
19
+ ) {
20
+ const { client: request = client, ...requestConfig } = config
21
+
22
+ const res = await request<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
17
23
  method: 'GET',
18
24
  url: `/pet/findByTags`,
19
25
  params,
20
- headers: { ...headers, ...config.headers },
21
- ...config,
26
+ headers: { ...headers, ...requestConfig.headers },
27
+ ...requestConfig,
22
28
  })
23
29
  return findPetsByTagsQueryResponse.parse(res.data)
24
30
  }
25
31
 
26
- export function findPetsByTagsQueryOptions(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
32
+ export function findPetsByTagsQueryOptions(
33
+ headers: FindPetsByTagsHeaderParams,
34
+ params?: FindPetsByTagsQueryParams,
35
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
36
+ ) {
27
37
  const queryKey = findPetsByTagsQueryKey(params)
28
38
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
29
39
  queryKey,
@@ -48,7 +58,7 @@ export function createFindPetsByTags<
48
58
  params?: FindPetsByTagsQueryParams,
49
59
  options: {
50
60
  query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>>
51
- client?: Partial<RequestConfig>
61
+ client?: Partial<RequestConfig> & { client?: typeof client }
52
62
  } = {},
53
63
  ) {
54
64
  const { query: queryOptions, client: config = {} } = options ?? {}
@@ -12,18 +12,28 @@ export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
12
12
  * @summary Finds Pets by tags
13
13
  * {@link /pet/findByTags}
14
14
  */
15
- export async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
16
- const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
15
+ export async function findPetsByTags(
16
+ headers: FindPetsByTagsHeaderParams,
17
+ params?: FindPetsByTagsQueryParams,
18
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
19
+ ) {
20
+ const { client: request = client, ...requestConfig } = config
21
+
22
+ const res = await request<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
17
23
  method: 'GET',
18
24
  url: `/pet/findByTags`,
19
25
  params,
20
- headers: { ...headers, ...config.headers },
21
- ...config,
26
+ headers: { ...headers, ...requestConfig.headers },
27
+ ...requestConfig,
22
28
  })
23
29
  return findPetsByTagsQueryResponse.parse(res.data)
24
30
  }
25
31
 
26
- export function findPetsByTagsQueryOptions(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
32
+ export function findPetsByTagsQueryOptions(
33
+ headers: FindPetsByTagsHeaderParams,
34
+ params?: FindPetsByTagsQueryParams,
35
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
36
+ ) {
27
37
  const queryKey = findPetsByTagsQueryKey(params)
28
38
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
29
39
  queryKey,
@@ -48,7 +58,7 @@ export function createFindPetsByTags<
48
58
  params?: FindPetsByTagsQueryParams,
49
59
  options: {
50
60
  query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>>
51
- client?: Partial<RequestConfig>
61
+ client?: Partial<RequestConfig> & { client?: typeof client }
52
62
  } = {},
53
63
  ) {
54
64
  const { query: queryOptions, client: config = {} } = options ?? {}
@@ -12,18 +12,28 @@ export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
12
12
  * @summary Finds Pets by tags
13
13
  * {@link /pet/findByTags}
14
14
  */
15
- export async function findPetsByTags(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
16
- const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
15
+ export async function findPetsByTags(
16
+ headers: FindPetsByTagsHeaderParams,
17
+ params?: FindPetsByTagsQueryParams,
18
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
19
+ ) {
20
+ const { client: request = client, ...requestConfig } = config
21
+
22
+ const res = await request<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
17
23
  method: 'GET',
18
24
  url: `/pet/findByTags`,
19
25
  params,
20
- headers: { ...headers, ...config.headers },
21
- ...config,
26
+ headers: { ...headers, ...requestConfig.headers },
27
+ ...requestConfig,
22
28
  })
23
29
  return findPetsByTagsQueryResponse.parse(res.data)
24
30
  }
25
31
 
26
- export function findPetsByTagsQueryOptions(headers: FindPetsByTagsHeaderParams, params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
32
+ export function findPetsByTagsQueryOptions(
33
+ headers: FindPetsByTagsHeaderParams,
34
+ params?: FindPetsByTagsQueryParams,
35
+ config: Partial<RequestConfig> & { client?: typeof client } = {},
36
+ ) {
27
37
  const queryKey = findPetsByTagsQueryKey(params)
28
38
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
29
39
  queryKey,
@@ -48,7 +58,7 @@ export function createFindPetsByTags<
48
58
  params?: FindPetsByTagsQueryParams,
49
59
  options: {
50
60
  query?: Partial<CreateBaseQueryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>>
51
- client?: Partial<RequestConfig>
61
+ client?: Partial<RequestConfig> & { client?: typeof client }
52
62
  } = {},
53
63
  ) {
54
64
  const { query: queryOptions, client: config = {} } = options ?? {}
@@ -19,14 +19,16 @@ export async function updatePetWithForm(
19
19
  petId: UpdatePetWithFormPathParams['petId'],
20
20
  data?: UpdatePetWithFormMutationRequest,
21
21
  params?: UpdatePetWithFormQueryParams,
22
- config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> = {},
22
+ config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof client } = {},
23
23
  ) {
24
- const res = await client<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationRequest>({
24
+ const { client: request = client, ...requestConfig } = config
25
+
26
+ const res = await request<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationRequest>({
25
27
  method: 'POST',
26
28
  url: `/pet/${petId}`,
27
29
  params,
28
30
  data,
29
- ...config,
31
+ ...requestConfig,
30
32
  })
31
33
  return updatePetWithFormMutationResponse.parse(res.data)
32
34
  }
@@ -35,7 +37,7 @@ export function updatePetWithFormQueryOptions(
35
37
  petId: UpdatePetWithFormPathParams['petId'],
36
38
  data?: UpdatePetWithFormMutationRequest,
37
39
  params?: UpdatePetWithFormQueryParams,
38
- config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> = {},
40
+ config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof client } = {},
39
41
  ) {
40
42
  const queryKey = updatePetWithFormQueryKey(petId, data, params)
41
43
  return queryOptions<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationResponse, typeof queryKey>({
@@ -62,7 +64,7 @@ export function createUpdatePetWithForm<
62
64
  params?: UpdatePetWithFormQueryParams,
63
65
  options: {
64
66
  query?: Partial<CreateBaseQueryOptions<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, TData, TQueryData, TQueryKey>>
65
- client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>>
67
+ client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof client }
66
68
  } = {},
67
69
  ) {
68
70
  const { query: queryOptions, client: config = {} } = options ?? {}
@@ -15,14 +15,16 @@ export async function updatePetWithForm(
15
15
  petId: UpdatePetWithFormPathParams['petId'],
16
16
  data?: UpdatePetWithFormMutationRequest,
17
17
  params?: UpdatePetWithFormQueryParams,
18
- config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> = {},
18
+ config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof client } = {},
19
19
  ) {
20
- const res = await client<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationRequest>({
20
+ const { client: request = client, ...requestConfig } = config
21
+
22
+ const res = await request<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationRequest>({
21
23
  method: 'POST',
22
24
  url: `/pet/${petId}`,
23
25
  params,
24
26
  data,
25
- ...config,
27
+ ...requestConfig,
26
28
  })
27
29
  return updatePetWithFormMutationResponse.parse(res.data)
28
30
  }
@@ -38,7 +40,7 @@ export function createUpdatePetWithForm(
38
40
  ResponseErrorConfig<UpdatePetWithForm405>,
39
41
  { petId: UpdatePetWithFormPathParams['petId']; data?: UpdatePetWithFormMutationRequest; params?: UpdatePetWithFormQueryParams }
40
42
  >
41
- client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>>
43
+ client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof client }
42
44
  } = {},
43
45
  ) {
44
46
  const { mutation: mutationOptions, client: config = {} } = options ?? {}
@@ -15,14 +15,16 @@ export async function updatePetWithForm(
15
15
  { petId }: { petId: UpdatePetWithFormPathParams['petId'] },
16
16
  data?: UpdatePetWithFormMutationRequest,
17
17
  params?: UpdatePetWithFormQueryParams,
18
- config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> = {},
18
+ config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof client } = {},
19
19
  ) {
20
- const res = await client<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationRequest>({
20
+ const { client: request = client, ...requestConfig } = config
21
+
22
+ const res = await request<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationRequest>({
21
23
  method: 'POST',
22
24
  url: `/pet/${petId}`,
23
25
  params,
24
26
  data,
25
- ...config,
27
+ ...requestConfig,
26
28
  })
27
29
  return updatePetWithFormMutationResponse.parse(res.data)
28
30
  }
@@ -38,7 +40,7 @@ export function createUpdatePetWithForm(
38
40
  ResponseErrorConfig<UpdatePetWithForm405>,
39
41
  { petId: UpdatePetWithFormPathParams['petId']; data?: UpdatePetWithFormMutationRequest; params?: UpdatePetWithFormQueryParams }
40
42
  >
41
- client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>>
43
+ client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof client }
42
44
  } = {},
43
45
  ) {
44
46
  const { mutation: mutationOptions, client: config = {} } = options ?? {}
@@ -77,7 +77,7 @@ export const mutationGenerator = createReactGenerator<PluginSvelteQuery>({
77
77
  footer={getFooter({ oas, output })}
78
78
  >
79
79
  {options.parser === 'zod' && <File.Import name={[zod.schemas.response.name]} root={mutation.file.path} path={zod.file.path} />}
80
- {!hasClientPlugin && <File.Import name={'client'} path={options.client.importPath} />}
80
+ <File.Import name={'client'} path={options.client.importPath} />
81
81
  {!!hasClientPlugin && <File.Import name={[client.name]} root={mutation.file.path} path={client.file.path} />}
82
82
  <File.Import name={['RequestConfig', 'ResponseConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />
83
83
  <File.Import
@@ -80,7 +80,7 @@ export const queryGenerator = createReactGenerator<PluginSvelteQuery>({
80
80
  footer={getFooter({ oas, output })}
81
81
  >
82
82
  {options.parser === 'zod' && <File.Import name={[zod.schemas.response.name]} root={query.file.path} path={zod.file.path} />}
83
- {!hasClientPlugin && <File.Import name={'client'} path={options.client.importPath} />}
83
+ <File.Import name={'client'} path={options.client.importPath} />
84
84
  {!!hasClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}
85
85
  <File.Import name={['RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />
86
86
  {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../plugin-client/src/generators/clientGenerator.tsx","../../plugin-client/src/generators/operationsGenerator.tsx","../../plugin-client/src/generators/groupedClientGenerator.tsx","../../plugin-client/src/plugin.ts","../src/generators/queryGenerator.tsx","../src/generators/mutationGenerator.tsx"],"names":["createReactGenerator","useApp","useOas","jsx","File","getBanner","getFooter","useOperationManager","jsxs","pluginZodName","options","camelCase","baseURL","pluginTsName","difference","Fragment"],"mappings":";;;;;;;;;;;;;AAUO,IAAM,kBAAkB,oBAAmC,CAAA;AAAA,EAChE,IAAM,EAAA,QAAA;AAAA,EACN,SAAU,CAAA,EAAE,OAAS,EAAA,SAAA,EAAa,EAAA;AAChC,IAAM,MAAA;AAAA,MACJ,MAAQ,EAAA;AAAA,QACN,OAAA,EAAS,EAAE,MAAO;AAAA;AACpB,QACE,MAAqB,EAAA;AACzB,IAAA,MAAM,MAAM,MAAO,EAAA;AACnB,IAAA,MAAM,EAAE,UAAA,EAAY,OAAS,EAAA,OAA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OAAQ,CAAA,UAAA;AAAA,cACpB,gBAAgB,OAAQ,CAAA,cAAA;AAAA,cACxB,QAAQ,OAAQ,CAAA;AAAA;AAAA,WAClB;AAAA,UAED,OAAQ,CAAA,QAAA,oBACPK,IAAAA,CAAAO,UAAA,EACE,QAAA,EAAA;AAAA,4BAAAZ,GAAAA,CAACC,KAAK,MAAL,EAAA,EAAY,MAAM,CAAC,gBAAgB,CAAG,EAAA,IAAA,EAAM,UAAY,EAAA,CAAA;AAAA,4BACzDD,GAAAA,CAACC,IAAK,CAAA,MAAA,EAAL,EAAY,IAAA,EAAM,CAAC,uBAAA,EAAyB,sBAAsB,CAAA,EAAG,IAAM,EAAA,UAAA,EAAY,YAAU,IAAC,EAAA,CAAA;AAAA,4BACnGD,GAAAA;AAAA,cAAC,QAAA;AAAA,cAAA;AAAA,gBACC,MAAM,QAAS,CAAA,IAAA;AAAA,gBACf,YAAY,MAAO,CAAA,IAAA;AAAA,gBACnB,UAAU,QAAS,CAAA,QAAA;AAAA,gBACnB,aAAa,IAAK,CAAA,OAAA;AAAA,gBAClB,SAAA;AAAA,gBACA,cAAc,OAAQ,CAAA,YAAA;AAAA,gBACtB,cAAA,EAAgB,QAAQ,MAAO,CAAA,cAAA;AAAA,gBAC/B,YAAY,OAAQ,CAAA,UAAA;AAAA,gBACpB,gBAAgB,OAAQ,CAAA,cAAA;AAAA,gBACxB,iBAAiB,WAAY,CAAA;AAAA;AAAA;AAC/B,WACF,EAAA;AAAA;AAAA;AAAA,KAEJ;AAAA;AAGN,CAAC","file":"chunk-4S7R5Q4P.js","sourcesContent":["import { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File, useApp } from '@kubb/react'\nimport { Client } from '../components/Client'\nimport { Url } from '../components/Url.tsx'\nimport type { PluginClient } from '../types'\n\nexport const clientGenerator = createReactGenerator<PluginClient>({\n name: 'client',\n Operation({ options, operation }) {\n const {\n plugin: {\n options: { output },\n },\n } = useApp<PluginClient>()\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager()\n\n const client = {\n name: getName(operation, { type: 'function' }),\n file: getFile(operation),\n }\n\n const url = {\n name: getName(operation, { type: 'function', suffix: 'url', prefix: 'get' }),\n file: getFile(operation),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n schemas: getSchemas(operation, { pluginKey: [pluginTsName], type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: 'function' }),\n }\n\n return (\n <File\n baseName={client.file.baseName}\n path={client.file.path}\n meta={client.file.meta}\n banner={getBanner({ oas, output })}\n footer={getFooter({ oas, output })}\n >\n <File.Import name={'client'} path={options.importPath} />\n <File.Import name={['RequestConfig', 'ResponseErrorConfig']} path={options.importPath} isTypeOnly />\n {options.parser === 'zod' && <File.Import name={[zod.schemas.response.name]} root={client.file.path} path={zod.file.path} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={client.file.path}\n path={type.file.path}\n isTypeOnly\n />\n\n <Url\n name={url.name}\n baseURL={options.baseURL}\n pathParamsType={options.pathParamsType}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n typeSchemas={type.schemas}\n operation={operation}\n />\n\n <Client\n name={client.name}\n urlName={url.name}\n baseURL={options.baseURL}\n dataReturnType={options.dataReturnType}\n pathParamsType={options.pathParamsType}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n typeSchemas={type.schemas}\n operation={operation}\n parser={options.parser}\n zodSchemas={zod.schemas}\n />\n </File>\n )\n },\n})\n","import { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOas } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { File, useApp } from '@kubb/react'\nimport { Operations } from '../components/Operations'\nimport type { PluginClient } from '../types'\n\nexport const operationsGenerator = createReactGenerator<PluginClient>({\n name: 'client',\n Operations({ operations }) {\n const {\n pluginManager,\n plugin: {\n key: pluginKey,\n options: { output },\n },\n } = useApp<PluginClient>()\n const oas = useOas()\n\n const name = 'operations'\n const file = pluginManager.getFile({ name, extname: '.ts', pluginKey })\n\n return (\n <File baseName={file.baseName} path={file.path} meta={file.meta} banner={getBanner({ oas, output })} footer={getFooter({ oas, output })}>\n <Operations name={name} operations={operations} />\n </File>\n )\n },\n})\n","import { camelCase } from '@kubb/core/transformers'\nimport type * as KubbFile from '@kubb/fs/types'\n\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { File, Function, useApp } from '@kubb/react'\nimport type { PluginClient } from '../types'\n\nexport const groupedClientGenerator = createReactGenerator<PluginClient>({\n name: 'groupedClient',\n Operations({ operations }) {\n const {\n pluginManager,\n plugin: { options, key: pluginKey },\n } = useApp<PluginClient>()\n const oas = useOas()\n const { getName, getFile, getGroup } = useOperationManager()\n\n const controllers = operations.reduce(\n (acc, operation) => {\n if (options.group?.type === 'tag') {\n const group = getGroup(operation)\n const name = group?.tag ? options.group?.name?.({ group: camelCase(group.tag) }) : undefined\n\n if (!group?.tag || !name) {\n return acc\n }\n\n const file = pluginManager.getFile({\n name,\n extname: '.ts',\n pluginKey,\n options: { group },\n })\n\n const client = {\n name: getName(operation, { type: 'function' }),\n file: getFile(operation),\n }\n\n const previousFile = acc.find((item) => item.file.path === file.path)\n\n if (previousFile) {\n previousFile.clients.push(client)\n } else {\n acc.push({ name, file, clients: [client] })\n }\n }\n\n return acc\n },\n [] as Array<{ name: string; file: KubbFile.File; clients: Array<{ name: string; file: KubbFile.File }> }>,\n )\n\n return controllers.map(({ name, file, clients }) => {\n return (\n <File\n key={file.path}\n baseName={file.baseName}\n path={file.path}\n meta={file.meta}\n banner={getBanner({ oas, output: options.output })}\n footer={getFooter({ oas, output: options.output })}\n >\n {clients.map((client) => (\n <File.Import key={client.name} name={[client.name]} root={file.path} path={client.file.path} />\n ))}\n\n <File.Source name={name} isExportable isIndexable>\n <Function export name={name}>\n {`return { ${clients.map((client) => client.name).join(', ')} }`}\n </Function>\n </File.Source>\n </File>\n )\n })\n },\n})\n","import path from 'node:path'\n\nimport { FileManager, type Group, PluginManager, createPlugin } from '@kubb/core'\nimport { camelCase } from '@kubb/core/transformers'\nimport { OperationGenerator, pluginOasName } from '@kubb/plugin-oas'\n\nimport type { Plugin } from '@kubb/core'\nimport type { PluginOas as SwaggerPluginOptions } from '@kubb/plugin-oas'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { operationsGenerator } from './generators'\nimport { clientGenerator } from './generators/clientGenerator.tsx'\nimport { groupedClientGenerator } from './generators/groupedClientGenerator.tsx'\nimport type { PluginClient } from './types.ts'\n\nexport const pluginClientName = 'plugin-client' satisfies PluginClient['name']\n\nexport const pluginClient = createPlugin<PluginClient>((options) => {\n const {\n output = { path: 'clients', barrelType: 'named' },\n group,\n exclude = [],\n include,\n override = [],\n transformers = {},\n dataReturnType = 'data',\n pathParamsType = 'inline',\n paramsType = 'inline',\n operations = false,\n baseURL,\n paramsCasing,\n generators = [clientGenerator, group ? groupedClientGenerator : undefined, operations ? operationsGenerator : undefined].filter(Boolean),\n parser = 'client',\n client = 'axios',\n importPath = client === 'fetch' ? '@kubb/plugin-client/clients/fetch' : '@kubb/plugin-client/clients/axios',\n } = options\n\n return {\n name: pluginClientName,\n options: {\n output,\n group,\n parser,\n dataReturnType,\n importPath,\n paramsType,\n paramsCasing,\n pathParamsType: paramsType === 'object' ? 'object' : pathParamsType,\n baseURL,\n },\n pre: [pluginOasName, parser === 'zod' ? pluginZodName : undefined].filter(Boolean),\n resolvePath(baseName, pathMode, options) {\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = pathMode ?? FileManager.getMode(path.resolve(root, output.path))\n\n if (mode === 'single') {\n /**\n * when output is a file then we will always append to the same file(output file), see fileManager.addOrAppend\n * Other plugins then need to call addOrAppend instead of just add from the fileManager class\n */\n return path.resolve(root, output.path)\n }\n\n if (group && (options?.group?.path || options?.group?.tag)) {\n const groupName: Group['name'] = group?.name\n ? group.name\n : (ctx) => {\n if (group?.type === 'path') {\n return `${ctx.group.split('/')[1]}`\n }\n return `${camelCase(ctx.group)}Controller`\n }\n\n return path.resolve(\n root,\n output.path,\n groupName({\n group: group.type === 'path' ? options.group.path! : options.group.tag!,\n }),\n baseName,\n )\n }\n\n return path.resolve(root, output.path, baseName)\n },\n resolveName(name, type) {\n const resolvedName = camelCase(name, { isFile: type === 'file' })\n\n if (type) {\n return transformers?.name?.(resolvedName, type) || resolvedName\n }\n\n return resolvedName\n },\n async buildStart() {\n const [swaggerPlugin]: [Plugin<SwaggerPluginOptions>] = PluginManager.getDependedPlugins<SwaggerPluginOptions>(this.plugins, [pluginOasName])\n\n const oas = await swaggerPlugin.context.getOas()\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = FileManager.getMode(path.resolve(root, output.path))\n const baseURL = await swaggerPlugin.context.getBaseURL()\n\n const operationGenerator = new OperationGenerator(\n baseURL\n ? {\n ...this.plugin.options,\n baseURL,\n }\n : this.plugin.options,\n {\n oas,\n pluginManager: this.pluginManager,\n plugin: this.plugin,\n contentType: swaggerPlugin.context.contentType,\n exclude,\n include,\n override,\n mode,\n },\n )\n\n const files = await operationGenerator.build(...generators)\n\n await this.addFile(...files)\n\n const barrelFiles = await this.fileManager.getBarrelFiles({\n type: output.barrelType ?? 'named',\n root,\n output,\n files: this.fileManager.files,\n meta: {\n pluginKey: this.plugin.key,\n },\n logger: this.logger,\n })\n\n await this.addFile(...barrelFiles)\n },\n }\n})\n","import { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File, useApp } from '@kubb/react'\nimport { difference } from 'remeda'\nimport { Query, QueryKey, QueryOptions } from '../components'\nimport type { PluginSvelteQuery } from '../types'\n\nexport const queryGenerator = createReactGenerator<PluginSvelteQuery>({\n name: 'svelte-query',\n Operation({ options, operation }) {\n const {\n plugin: {\n options: { output },\n },\n pluginManager,\n } = useApp<PluginSvelteQuery>()\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager()\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\n const importPath = options.query ? options.query.importPath : '@tanstack/svelte-query'\n\n const query = {\n name: getName(operation, { type: 'function', prefix: 'create' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'create' }),\n }\n\n const hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n const client = {\n name: hasClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const queryOptions = {\n name: getName(operation, { type: 'function', suffix: 'QueryOptions' }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'QueryKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'QueryKey' }),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginKey: [pluginTsName], type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: 'function' }),\n }\n\n if (!isQuery || isMutation) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && <File.Import name={[zod.schemas.response.name]} root={query.file.path} path={zod.file.path} />}\n {!hasClientPlugin && <File.Import name={'client'} path={options.client.importPath} />}\n {!!hasClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n <File.Import name={['RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={query.file.path}\n path={type.file.path}\n isTypeOnly\n />\n\n <QueryKey\n name={queryKey.name}\n typeName={queryKey.typeName}\n operation={operation}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n transformer={options.queryKey}\n />\n\n {!hasClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n <File.Import name={['queryOptions']} path={importPath} />\n <QueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType}\n />\n {options.query && (\n <>\n <File.Import name={['createQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'CreateBaseQueryOptions', 'CreateQueryResult']} path={importPath} isTypeOnly />\n <Query\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n pathParamsType={options.pathParamsType}\n operation={operation}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n dataReturnType={options.client.dataReturnType}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File, useApp } from '@kubb/react'\nimport { difference } from 'remeda'\nimport { Mutation, MutationKey } from '../components'\nimport type { PluginSvelteQuery } from '../types'\n\nexport const mutationGenerator = createReactGenerator<PluginSvelteQuery>({\n name: 'svelte-query',\n Operation({ options, operation }) {\n const {\n plugin: {\n options: { output },\n },\n pluginManager,\n } = useApp<PluginSvelteQuery>()\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager()\n\n const isQuery = !!options.query && options.query?.methods.some((method) => operation.method === method)\n const isMutation =\n !isQuery &&\n difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some((method) => operation.method === method)\n\n const importPath = options.mutation ? options.mutation.importPath : '@tanstack/svelte-query'\n\n const mutation = {\n name: getName(operation, { type: 'function', prefix: 'create' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'create' }),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginKey: [pluginTsName], type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: 'function' }),\n }\n\n const hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n const client = {\n name: hasClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const mutationKey = {\n name: getName(operation, { type: 'const', suffix: 'MutationKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'MutationKey' }),\n }\n\n if (!isMutation) {\n return null\n }\n\n return (\n <File\n baseName={mutation.file.baseName}\n path={mutation.file.path}\n meta={mutation.file.meta}\n banner={getBanner({ oas, output })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && <File.Import name={[zod.schemas.response.name]} root={mutation.file.path} path={zod.file.path} />}\n {!hasClientPlugin && <File.Import name={'client'} path={options.client.importPath} />}\n {!!hasClientPlugin && <File.Import name={[client.name]} root={mutation.file.path} path={client.file.path} />}\n <File.Import name={['RequestConfig', 'ResponseConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={mutation.file.path}\n path={type.file.path}\n isTypeOnly\n />\n\n <MutationKey\n name={mutationKey.name}\n typeName={mutationKey.typeName}\n operation={operation}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.mutationKey}\n />\n {!hasClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n {options.mutation && (\n <>\n <File.Import name={['createMutation']} path={importPath} />\n <File.Import name={['CreateMutationOptions', 'CreateMutationResult']} path={importPath} isTypeOnly />\n <Mutation\n name={mutation.name}\n clientName={client.name}\n typeName={mutation.typeName}\n typeSchemas={type.schemas}\n operation={operation}\n paramsCasing={options.paramsCasing}\n dataReturnType={options.client.dataReturnType}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n mutationKeyName={mutationKey.name}\n />\n </>\n )}\n </File>\n )\n },\n})\n"]}