11// This file is auto-generated by @hey-api/openapi-ts
22
3- import { type DefaultError , type MutationOptions , queryOptions } from '@tanstack/angular-query-experimental' ;
3+ import { type DefaultError , type MutationOptions , queryOptions , skipToken } from '@tanstack/angular-query-experimental' ;
44import type { AxiosError } from 'axios' ;
55
66import { client } from '../client.gen' ;
@@ -42,8 +42,8 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
4242
4343export const serviceWithEmptyTagQueryKey = ( options ?: Options < ServiceWithEmptyTagData > ) => createQueryKey ( 'serviceWithEmptyTag' , options ) ;
4444
45- export const serviceWithEmptyTagOptions = ( options ?: Options < ServiceWithEmptyTagData > ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof serviceWithEmptyTagQueryKey > > ( {
46- queryFn : async ( { queryKey, signal } ) => {
45+ export const serviceWithEmptyTagOptions = ( options ?: Options < ServiceWithEmptyTagData > | typeof skipToken ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof serviceWithEmptyTagQueryKey > > ( {
46+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
4747 const { data } = await serviceWithEmptyTag ( {
4848 ...options ,
4949 ...queryKey [ 0 ] ,
@@ -52,7 +52,7 @@ export const serviceWithEmptyTagOptions = (options?: Options<ServiceWithEmptyTag
5252 } ) ;
5353 return data ;
5454 } ,
55- queryKey : serviceWithEmptyTagQueryKey ( options )
55+ queryKey : serviceWithEmptyTagQueryKey ( options === skipToken ? undefined as never : options )
5656} ) ;
5757
5858export const patchApiVbyApiVersionNoTagMutation = ( options ?: Partial < Options < PatchApiVbyApiVersionNoTagData > > ) : MutationOptions < unknown , AxiosError < DefaultError > , Options < PatchApiVbyApiVersionNoTagData > > => {
@@ -99,8 +99,8 @@ export const deleteCallWithoutParametersAndResponseMutation = (options?: Partial
9999
100100export const getCallWithoutParametersAndResponseQueryKey = ( options ?: Options < GetCallWithoutParametersAndResponseData > ) => createQueryKey ( 'getCallWithoutParametersAndResponse' , options ) ;
101101
102- export const getCallWithoutParametersAndResponseOptions = ( options ?: Options < GetCallWithoutParametersAndResponseData > ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof getCallWithoutParametersAndResponseQueryKey > > ( {
103- queryFn : async ( { queryKey, signal } ) => {
102+ export const getCallWithoutParametersAndResponseOptions = ( options ?: Options < GetCallWithoutParametersAndResponseData > | typeof skipToken ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof getCallWithoutParametersAndResponseQueryKey > > ( {
103+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
104104 const { data } = await getCallWithoutParametersAndResponse ( {
105105 ...options ,
106106 ...queryKey [ 0 ] ,
@@ -109,7 +109,7 @@ export const getCallWithoutParametersAndResponseOptions = (options?: Options<Get
109109 } ) ;
110110 return data ;
111111 } ,
112- queryKey : getCallWithoutParametersAndResponseQueryKey ( options )
112+ queryKey : getCallWithoutParametersAndResponseQueryKey ( options === skipToken ? undefined as never : options )
113113} ) ;
114114
115115export const patchCallWithoutParametersAndResponseMutation = ( options ?: Partial < Options < PatchCallWithoutParametersAndResponseData > > ) : MutationOptions < unknown , AxiosError < DefaultError > , Options < PatchCallWithoutParametersAndResponseData > > => {
@@ -198,8 +198,8 @@ export const callWithWeirdParameterNamesMutation = (options?: Partial<Options<Ca
198198
199199export const callWithDefaultParametersQueryKey = ( options : Options < CallWithDefaultParametersData > ) => createQueryKey ( 'callWithDefaultParameters' , options ) ;
200200
201- export const callWithDefaultParametersOptions = ( options : Options < CallWithDefaultParametersData > ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof callWithDefaultParametersQueryKey > > ( {
202- queryFn : async ( { queryKey, signal } ) => {
201+ export const callWithDefaultParametersOptions = ( options : Options < CallWithDefaultParametersData > | typeof skipToken ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof callWithDefaultParametersQueryKey > > ( {
202+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
203203 const { data } = await callWithDefaultParameters ( {
204204 ...options ,
205205 ...queryKey [ 0 ] ,
@@ -208,7 +208,7 @@ export const callWithDefaultParametersOptions = (options: Options<CallWithDefaul
208208 } ) ;
209209 return data ;
210210 } ,
211- queryKey : callWithDefaultParametersQueryKey ( options )
211+ queryKey : callWithDefaultParametersQueryKey ( options === skipToken ? undefined as never : options )
212212} ) ;
213213
214214export const callWithDefaultOptionalParametersMutation = ( options ?: Partial < Options < CallWithDefaultOptionalParametersData > > ) : MutationOptions < unknown , AxiosError < DefaultError > , Options < CallWithDefaultOptionalParametersData > > => {
@@ -255,8 +255,8 @@ export const duplicateNameMutation = (options?: Partial<Options<DuplicateNameDat
255255
256256export const duplicateName2QueryKey = ( options ?: Options < DuplicateName2Data > ) => createQueryKey ( 'duplicateName2' , options ) ;
257257
258- export const duplicateName2Options = ( options ?: Options < DuplicateName2Data > ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof duplicateName2QueryKey > > ( {
259- queryFn : async ( { queryKey, signal } ) => {
258+ export const duplicateName2Options = ( options ?: Options < DuplicateName2Data > | typeof skipToken ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof duplicateName2QueryKey > > ( {
259+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
260260 const { data } = await duplicateName2 ( {
261261 ...options ,
262262 ...queryKey [ 0 ] ,
@@ -265,7 +265,7 @@ export const duplicateName2Options = (options?: Options<DuplicateName2Data>) =>
265265 } ) ;
266266 return data ;
267267 } ,
268- queryKey : duplicateName2QueryKey ( options )
268+ queryKey : duplicateName2QueryKey ( options === skipToken ? undefined as never : options )
269269} ) ;
270270
271271export const duplicateName3Mutation = ( options ?: Partial < Options < DuplicateName3Data > > ) : MutationOptions < unknown , AxiosError < DefaultError > , Options < DuplicateName3Data > > => {
@@ -298,8 +298,8 @@ export const duplicateName4Mutation = (options?: Partial<Options<DuplicateName4D
298298
299299export const callWithNoContentResponseQueryKey = ( options ?: Options < CallWithNoContentResponseData > ) => createQueryKey ( 'callWithNoContentResponse' , options ) ;
300300
301- export const callWithNoContentResponseOptions = ( options ?: Options < CallWithNoContentResponseData > ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof callWithNoContentResponseQueryKey > > ( {
302- queryFn : async ( { queryKey, signal } ) => {
301+ export const callWithNoContentResponseOptions = ( options ?: Options < CallWithNoContentResponseData > | typeof skipToken ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof callWithNoContentResponseQueryKey > > ( {
302+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
303303 const { data } = await callWithNoContentResponse ( {
304304 ...options ,
305305 ...queryKey [ 0 ] ,
@@ -308,13 +308,13 @@ export const callWithNoContentResponseOptions = (options?: Options<CallWithNoCon
308308 } ) ;
309309 return data ;
310310 } ,
311- queryKey : callWithNoContentResponseQueryKey ( options )
311+ queryKey : callWithNoContentResponseQueryKey ( options === skipToken ? undefined as never : options )
312312} ) ;
313313
314314export const callWithResponseAndNoContentResponseQueryKey = ( options ?: Options < CallWithResponseAndNoContentResponseData > ) => createQueryKey ( 'callWithResponseAndNoContentResponse' , options ) ;
315315
316- export const callWithResponseAndNoContentResponseOptions = ( options ?: Options < CallWithResponseAndNoContentResponseData > ) => queryOptions < CallWithResponseAndNoContentResponseResponse , AxiosError < DefaultError > , CallWithResponseAndNoContentResponseResponse , ReturnType < typeof callWithResponseAndNoContentResponseQueryKey > > ( {
317- queryFn : async ( { queryKey, signal } ) => {
316+ export const callWithResponseAndNoContentResponseOptions = ( options ?: Options < CallWithResponseAndNoContentResponseData > | typeof skipToken ) => queryOptions < CallWithResponseAndNoContentResponseResponse , AxiosError < DefaultError > , CallWithResponseAndNoContentResponseResponse , ReturnType < typeof callWithResponseAndNoContentResponseQueryKey > > ( {
317+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
318318 const { data } = await callWithResponseAndNoContentResponse ( {
319319 ...options ,
320320 ...queryKey [ 0 ] ,
@@ -323,13 +323,13 @@ export const callWithResponseAndNoContentResponseOptions = (options?: Options<Ca
323323 } ) ;
324324 return data ;
325325 } ,
326- queryKey : callWithResponseAndNoContentResponseQueryKey ( options )
326+ queryKey : callWithResponseAndNoContentResponseQueryKey ( options === skipToken ? undefined as never : options )
327327} ) ;
328328
329329export const dummyAQueryKey = ( options ?: Options < DummyAData > ) => createQueryKey ( 'dummyA' , options ) ;
330330
331- export const dummyAOptions = ( options ?: Options < DummyAData > ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof dummyAQueryKey > > ( {
332- queryFn : async ( { queryKey, signal } ) => {
331+ export const dummyAOptions = ( options ?: Options < DummyAData > | typeof skipToken ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof dummyAQueryKey > > ( {
332+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
333333 const { data } = await dummyA ( {
334334 ...options ,
335335 ...queryKey [ 0 ] ,
@@ -338,13 +338,13 @@ export const dummyAOptions = (options?: Options<DummyAData>) => queryOptions<unk
338338 } ) ;
339339 return data ;
340340 } ,
341- queryKey : dummyAQueryKey ( options )
341+ queryKey : dummyAQueryKey ( options === skipToken ? undefined as never : options )
342342} ) ;
343343
344344export const dummyBQueryKey = ( options ?: Options < DummyBData > ) => createQueryKey ( 'dummyB' , options ) ;
345345
346- export const dummyBOptions = ( options ?: Options < DummyBData > ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof dummyBQueryKey > > ( {
347- queryFn : async ( { queryKey, signal } ) => {
346+ export const dummyBOptions = ( options ?: Options < DummyBData > | typeof skipToken ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof dummyBQueryKey > > ( {
347+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
348348 const { data } = await dummyB ( {
349349 ...options ,
350350 ...queryKey [ 0 ] ,
@@ -353,13 +353,13 @@ export const dummyBOptions = (options?: Options<DummyBData>) => queryOptions<unk
353353 } ) ;
354354 return data ;
355355 } ,
356- queryKey : dummyBQueryKey ( options )
356+ queryKey : dummyBQueryKey ( options === skipToken ? undefined as never : options )
357357} ) ;
358358
359359export const callWithResponseQueryKey = ( options ?: Options < CallWithResponseData > ) => createQueryKey ( 'callWithResponse' , options ) ;
360360
361- export const callWithResponseOptions = ( options ?: Options < CallWithResponseData > ) => queryOptions < CallWithResponseResponse , AxiosError < DefaultError > , CallWithResponseResponse , ReturnType < typeof callWithResponseQueryKey > > ( {
362- queryFn : async ( { queryKey, signal } ) => {
361+ export const callWithResponseOptions = ( options ?: Options < CallWithResponseData > | typeof skipToken ) => queryOptions < CallWithResponseResponse , AxiosError < DefaultError > , CallWithResponseResponse , ReturnType < typeof callWithResponseQueryKey > > ( {
362+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
363363 const { data } = await callWithResponse ( {
364364 ...options ,
365365 ...queryKey [ 0 ] ,
@@ -368,7 +368,7 @@ export const callWithResponseOptions = (options?: Options<CallWithResponseData>)
368368 } ) ;
369369 return data ;
370370 } ,
371- queryKey : callWithResponseQueryKey ( options )
371+ queryKey : callWithResponseQueryKey ( options === skipToken ? undefined as never : options )
372372} ) ;
373373
374374export const callWithDuplicateResponsesMutation = ( options ?: Partial < Options < CallWithDuplicateResponsesData > > ) : MutationOptions < CallWithDuplicateResponsesResponse , AxiosError < CallWithDuplicateResponsesError > , Options < CallWithDuplicateResponsesData > > => {
@@ -401,8 +401,8 @@ export const callWithResponsesMutation = (options?: Partial<Options<CallWithResp
401401
402402export const collectionFormatQueryKey = ( options : Options < CollectionFormatData > ) => createQueryKey ( 'collectionFormat' , options ) ;
403403
404- export const collectionFormatOptions = ( options : Options < CollectionFormatData > ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof collectionFormatQueryKey > > ( {
405- queryFn : async ( { queryKey, signal } ) => {
404+ export const collectionFormatOptions = ( options : Options < CollectionFormatData > | typeof skipToken ) => queryOptions < unknown , AxiosError < DefaultError > , unknown , ReturnType < typeof collectionFormatQueryKey > > ( {
405+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
406406 const { data } = await collectionFormat ( {
407407 ...options ,
408408 ...queryKey [ 0 ] ,
@@ -411,13 +411,13 @@ export const collectionFormatOptions = (options: Options<CollectionFormatData>)
411411 } ) ;
412412 return data ;
413413 } ,
414- queryKey : collectionFormatQueryKey ( options )
414+ queryKey : collectionFormatQueryKey ( options === skipToken ? undefined as never : options )
415415} ) ;
416416
417417export const typesQueryKey = ( options : Options < TypesData > ) => createQueryKey ( 'types' , options ) ;
418418
419- export const typesOptions = ( options : Options < TypesData > ) => queryOptions < TypesResponse , AxiosError < DefaultError > , TypesResponse , ReturnType < typeof typesQueryKey > > ( {
420- queryFn : async ( { queryKey, signal } ) => {
419+ export const typesOptions = ( options : Options < TypesData > | typeof skipToken ) => queryOptions < TypesResponse , AxiosError < DefaultError > , TypesResponse , ReturnType < typeof typesQueryKey > > ( {
420+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
421421 const { data } = await types ( {
422422 ...options ,
423423 ...queryKey [ 0 ] ,
@@ -426,13 +426,13 @@ export const typesOptions = (options: Options<TypesData>) => queryOptions<TypesR
426426 } ) ;
427427 return data ;
428428 } ,
429- queryKey : typesQueryKey ( options )
429+ queryKey : typesQueryKey ( options === skipToken ? undefined as never : options )
430430} ) ;
431431
432432export const complexTypesQueryKey = ( options : Options < ComplexTypesData > ) => createQueryKey ( 'complexTypes' , options ) ;
433433
434- export const complexTypesOptions = ( options : Options < ComplexTypesData > ) => queryOptions < ComplexTypesResponse , AxiosError < DefaultError > , ComplexTypesResponse , ReturnType < typeof complexTypesQueryKey > > ( {
435- queryFn : async ( { queryKey, signal } ) => {
434+ export const complexTypesOptions = ( options : Options < ComplexTypesData > | typeof skipToken ) => queryOptions < ComplexTypesResponse , AxiosError < DefaultError > , ComplexTypesResponse , ReturnType < typeof complexTypesQueryKey > > ( {
435+ queryFn : options === skipToken ? skipToken : async ( { queryKey, signal } ) => {
436436 const { data } = await complexTypes ( {
437437 ...options ,
438438 ...queryKey [ 0 ] ,
@@ -441,7 +441,7 @@ export const complexTypesOptions = (options: Options<ComplexTypesData>) => query
441441 } ) ;
442442 return data ;
443443 } ,
444- queryKey : complexTypesQueryKey ( options )
444+ queryKey : complexTypesQueryKey ( options === skipToken ? undefined as never : options )
445445} ) ;
446446
447447export const callWithResultFromHeaderMutation = ( options ?: Partial < Options < CallWithResultFromHeaderData > > ) : MutationOptions < unknown , AxiosError < DefaultError > , Options < CallWithResultFromHeaderData > > => {
0 commit comments