这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions dev/openapi-ts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default defineConfig(() => {
// 'circular.yaml',
// 'dutchie.json',
// 'invalid',
// 'full.yaml',
'full.yaml',
// 'openai.yaml',
'opencode.yaml',
// 'opencode.yaml',
// 'sdk-instance.yaml',
// 'string-with-format.yaml',
// 'transformers.json',
Expand Down Expand Up @@ -319,9 +319,10 @@ export default defineConfig(() => {
},
},
name: '@tanstack/react-query',
// queryKeys: {
// name: '{{name}}QK',
// },
queryKeys: {
// name: '{{name}}QK',
tags: true,
},
// queryOptions: false,
queryOptions: {
// meta() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
];
};

export const getFooQueryKey = (options?: Options<GetFooData>) => createQueryKey('getFoo', options);
export const getFooQueryKey = (options?: Options<GetFooData>) => createQueryKey("getFoo", options);

export const getFooOptions = (options?: Options<GetFooData>) => queryOptions<GetFooResponse, DefaultError, GetFooResponse, ReturnType<typeof getFooQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -84,7 +84,7 @@ export const fooPutMutation = (options?: Partial<Options<FooPutData>>): Mutation
return mutationOptions;
};

export const getFooBarQueryKey = (options?: Options<GetFooBarData>) => createQueryKey('getFooBar', options);
export const getFooBarQueryKey = (options?: Options<GetFooBarData>) => createQueryKey("getFooBar", options);

export const getFooBarOptions = (options?: Options<GetFooBarData>) => queryOptions<GetFooBarResponse, DefaultError, GetFooBarResponse, ReturnType<typeof getFooBarQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
];
};

export const serviceWithEmptyTagQueryKey = (options?: Options<ServiceWithEmptyTagData>) => createQueryKey('serviceWithEmptyTag', options);
export const serviceWithEmptyTagQueryKey = (options?: Options<ServiceWithEmptyTagData>) => createQueryKey("serviceWithEmptyTag", options);

export const serviceWithEmptyTagOptions = (options?: Options<ServiceWithEmptyTagData>) => queryOptions<unknown, AxiosError<DefaultError>, unknown, ReturnType<typeof serviceWithEmptyTagQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -99,7 +99,7 @@ export const deleteCallWithoutParametersAndResponseMutation = (options?: Partial
return mutationOptions;
};

export const getCallWithoutParametersAndResponseQueryKey = (options?: Options<GetCallWithoutParametersAndResponseData>) => createQueryKey('getCallWithoutParametersAndResponse', options);
export const getCallWithoutParametersAndResponseQueryKey = (options?: Options<GetCallWithoutParametersAndResponseData>) => createQueryKey("getCallWithoutParametersAndResponse", options);

export const getCallWithoutParametersAndResponseOptions = (options?: Options<GetCallWithoutParametersAndResponseData>) => queryOptions<unknown, AxiosError<DefaultError>, unknown, ReturnType<typeof getCallWithoutParametersAndResponseQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -198,7 +198,7 @@ export const callWithWeirdParameterNamesMutation = (options?: Partial<Options<Ca
return mutationOptions;
};

export const callWithDefaultParametersQueryKey = (options: Options<CallWithDefaultParametersData>) => createQueryKey('callWithDefaultParameters', options);
export const callWithDefaultParametersQueryKey = (options: Options<CallWithDefaultParametersData>) => createQueryKey("callWithDefaultParameters", options);

export const callWithDefaultParametersOptions = (options: Options<CallWithDefaultParametersData>) => queryOptions<unknown, AxiosError<DefaultError>, unknown, ReturnType<typeof callWithDefaultParametersQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -255,7 +255,7 @@ export const duplicateNameMutation = (options?: Partial<Options<DuplicateNameDat
return mutationOptions;
};

export const duplicateName2QueryKey = (options?: Options<DuplicateName2Data>) => createQueryKey('duplicateName2', options);
export const duplicateName2QueryKey = (options?: Options<DuplicateName2Data>) => createQueryKey("duplicateName2", options);

export const duplicateName2Options = (options?: Options<DuplicateName2Data>) => queryOptions<unknown, AxiosError<DefaultError>, unknown, ReturnType<typeof duplicateName2QueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -298,7 +298,7 @@ export const duplicateName4Mutation = (options?: Partial<Options<DuplicateName4D
return mutationOptions;
};

export const callWithNoContentResponseQueryKey = (options?: Options<CallWithNoContentResponseData>) => createQueryKey('callWithNoContentResponse', options);
export const callWithNoContentResponseQueryKey = (options?: Options<CallWithNoContentResponseData>) => createQueryKey("callWithNoContentResponse", options);

export const callWithNoContentResponseOptions = (options?: Options<CallWithNoContentResponseData>) => queryOptions<unknown, AxiosError<DefaultError>, unknown, ReturnType<typeof callWithNoContentResponseQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -313,7 +313,7 @@ export const callWithNoContentResponseOptions = (options?: Options<CallWithNoCon
queryKey: callWithNoContentResponseQueryKey(options)
});

export const callWithResponseAndNoContentResponseQueryKey = (options?: Options<CallWithResponseAndNoContentResponseData>) => createQueryKey('callWithResponseAndNoContentResponse', options);
export const callWithResponseAndNoContentResponseQueryKey = (options?: Options<CallWithResponseAndNoContentResponseData>) => createQueryKey("callWithResponseAndNoContentResponse", options);

export const callWithResponseAndNoContentResponseOptions = (options?: Options<CallWithResponseAndNoContentResponseData>) => queryOptions<CallWithResponseAndNoContentResponseResponse, AxiosError<DefaultError>, CallWithResponseAndNoContentResponseResponse, ReturnType<typeof callWithResponseAndNoContentResponseQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -328,7 +328,7 @@ export const callWithResponseAndNoContentResponseOptions = (options?: Options<Ca
queryKey: callWithResponseAndNoContentResponseQueryKey(options)
});

export const dummyAQueryKey = (options?: Options<DummyAData>) => createQueryKey('dummyA', options);
export const dummyAQueryKey = (options?: Options<DummyAData>) => createQueryKey("dummyA", options);

export const dummyAOptions = (options?: Options<DummyAData>) => queryOptions<unknown, AxiosError<DefaultError>, unknown, ReturnType<typeof dummyAQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -343,7 +343,7 @@ export const dummyAOptions = (options?: Options<DummyAData>) => queryOptions<unk
queryKey: dummyAQueryKey(options)
});

export const dummyBQueryKey = (options?: Options<DummyBData>) => createQueryKey('dummyB', options);
export const dummyBQueryKey = (options?: Options<DummyBData>) => createQueryKey("dummyB", options);

export const dummyBOptions = (options?: Options<DummyBData>) => queryOptions<unknown, AxiosError<DefaultError>, unknown, ReturnType<typeof dummyBQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -358,7 +358,7 @@ export const dummyBOptions = (options?: Options<DummyBData>) => queryOptions<unk
queryKey: dummyBQueryKey(options)
});

export const callWithResponseQueryKey = (options?: Options<CallWithResponseData>) => createQueryKey('callWithResponse', options);
export const callWithResponseQueryKey = (options?: Options<CallWithResponseData>) => createQueryKey("callWithResponse", options);

export const callWithResponseOptions = (options?: Options<CallWithResponseData>) => queryOptions<CallWithResponseResponse, AxiosError<DefaultError>, CallWithResponseResponse, ReturnType<typeof callWithResponseQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -401,7 +401,7 @@ export const callWithResponsesMutation = (options?: Partial<Options<CallWithResp
return mutationOptions;
};

export const collectionFormatQueryKey = (options: Options<CollectionFormatData>) => createQueryKey('collectionFormat', options);
export const collectionFormatQueryKey = (options: Options<CollectionFormatData>) => createQueryKey("collectionFormat", options);

export const collectionFormatOptions = (options: Options<CollectionFormatData>) => queryOptions<unknown, AxiosError<DefaultError>, unknown, ReturnType<typeof collectionFormatQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -416,7 +416,7 @@ export const collectionFormatOptions = (options: Options<CollectionFormatData>)
queryKey: collectionFormatQueryKey(options)
});

export const typesQueryKey = (options: Options<TypesData>) => createQueryKey('types', options);
export const typesQueryKey = (options: Options<TypesData>) => createQueryKey("types", options);

export const typesOptions = (options: Options<TypesData>) => queryOptions<TypesResponse, AxiosError<DefaultError>, TypesResponse, ReturnType<typeof typesQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -431,7 +431,7 @@ export const typesOptions = (options: Options<TypesData>) => queryOptions<TypesR
queryKey: typesQueryKey(options)
});

export const complexTypesQueryKey = (options: Options<ComplexTypesData>) => createQueryKey('complexTypes', options);
export const complexTypesQueryKey = (options: Options<ComplexTypesData>) => createQueryKey("complexTypes", options);

export const complexTypesOptions = (options: Options<ComplexTypesData>) => queryOptions<ComplexTypesResponse, AxiosError<DefaultError>, ComplexTypesResponse, ReturnType<typeof complexTypesQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
];
};

export const serviceWithEmptyTagQueryKey = (options?: Options<ServiceWithEmptyTagData>) => createQueryKey('serviceWithEmptyTag', options);
export const serviceWithEmptyTagQueryKey = (options?: Options<ServiceWithEmptyTagData>) => createQueryKey("serviceWithEmptyTag", options);

export const serviceWithEmptyTagOptions = (options?: Options<ServiceWithEmptyTagData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof serviceWithEmptyTagQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -98,7 +98,7 @@ export const deleteCallWithoutParametersAndResponseMutation = (options?: Partial
return mutationOptions;
};

export const getCallWithoutParametersAndResponseQueryKey = (options?: Options<GetCallWithoutParametersAndResponseData>) => createQueryKey('getCallWithoutParametersAndResponse', options);
export const getCallWithoutParametersAndResponseQueryKey = (options?: Options<GetCallWithoutParametersAndResponseData>) => createQueryKey("getCallWithoutParametersAndResponse", options);

export const getCallWithoutParametersAndResponseOptions = (options?: Options<GetCallWithoutParametersAndResponseData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof getCallWithoutParametersAndResponseQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -197,7 +197,7 @@ export const callWithWeirdParameterNamesMutation = (options?: Partial<Options<Ca
return mutationOptions;
};

export const callWithDefaultParametersQueryKey = (options: Options<CallWithDefaultParametersData>) => createQueryKey('callWithDefaultParameters', options);
export const callWithDefaultParametersQueryKey = (options: Options<CallWithDefaultParametersData>) => createQueryKey("callWithDefaultParameters", options);

export const callWithDefaultParametersOptions = (options: Options<CallWithDefaultParametersData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof callWithDefaultParametersQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -254,7 +254,7 @@ export const duplicateNameMutation = (options?: Partial<Options<DuplicateNameDat
return mutationOptions;
};

export const duplicateName2QueryKey = (options?: Options<DuplicateName2Data>) => createQueryKey('duplicateName2', options);
export const duplicateName2QueryKey = (options?: Options<DuplicateName2Data>) => createQueryKey("duplicateName2", options);

export const duplicateName2Options = (options?: Options<DuplicateName2Data>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof duplicateName2QueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -297,7 +297,7 @@ export const duplicateName4Mutation = (options?: Partial<Options<DuplicateName4D
return mutationOptions;
};

export const callWithNoContentResponseQueryKey = (options?: Options<CallWithNoContentResponseData>) => createQueryKey('callWithNoContentResponse', options);
export const callWithNoContentResponseQueryKey = (options?: Options<CallWithNoContentResponseData>) => createQueryKey("callWithNoContentResponse", options);

export const callWithNoContentResponseOptions = (options?: Options<CallWithNoContentResponseData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof callWithNoContentResponseQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -312,7 +312,7 @@ export const callWithNoContentResponseOptions = (options?: Options<CallWithNoCon
queryKey: callWithNoContentResponseQueryKey(options)
});

export const callWithResponseAndNoContentResponseQueryKey = (options?: Options<CallWithResponseAndNoContentResponseData>) => createQueryKey('callWithResponseAndNoContentResponse', options);
export const callWithResponseAndNoContentResponseQueryKey = (options?: Options<CallWithResponseAndNoContentResponseData>) => createQueryKey("callWithResponseAndNoContentResponse", options);

export const callWithResponseAndNoContentResponseOptions = (options?: Options<CallWithResponseAndNoContentResponseData>) => queryOptions<CallWithResponseAndNoContentResponseResponse, DefaultError, CallWithResponseAndNoContentResponseResponse, ReturnType<typeof callWithResponseAndNoContentResponseQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -327,7 +327,7 @@ export const callWithResponseAndNoContentResponseOptions = (options?: Options<Ca
queryKey: callWithResponseAndNoContentResponseQueryKey(options)
});

export const dummyAQueryKey = (options?: Options<DummyAData>) => createQueryKey('dummyA', options);
export const dummyAQueryKey = (options?: Options<DummyAData>) => createQueryKey("dummyA", options);

export const dummyAOptions = (options?: Options<DummyAData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof dummyAQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -342,7 +342,7 @@ export const dummyAOptions = (options?: Options<DummyAData>) => queryOptions<unk
queryKey: dummyAQueryKey(options)
});

export const dummyBQueryKey = (options?: Options<DummyBData>) => createQueryKey('dummyB', options);
export const dummyBQueryKey = (options?: Options<DummyBData>) => createQueryKey("dummyB", options);

export const dummyBOptions = (options?: Options<DummyBData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof dummyBQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -357,7 +357,7 @@ export const dummyBOptions = (options?: Options<DummyBData>) => queryOptions<unk
queryKey: dummyBQueryKey(options)
});

export const callWithResponseQueryKey = (options?: Options<CallWithResponseData>) => createQueryKey('callWithResponse', options);
export const callWithResponseQueryKey = (options?: Options<CallWithResponseData>) => createQueryKey("callWithResponse", options);

export const callWithResponseOptions = (options?: Options<CallWithResponseData>) => queryOptions<CallWithResponseResponse, DefaultError, CallWithResponseResponse, ReturnType<typeof callWithResponseQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -400,7 +400,7 @@ export const callWithResponsesMutation = (options?: Partial<Options<CallWithResp
return mutationOptions;
};

export const collectionFormatQueryKey = (options: Options<CollectionFormatData>) => createQueryKey('collectionFormat', options);
export const collectionFormatQueryKey = (options: Options<CollectionFormatData>) => createQueryKey("collectionFormat", options);

export const collectionFormatOptions = (options: Options<CollectionFormatData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof collectionFormatQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -415,7 +415,7 @@ export const collectionFormatOptions = (options: Options<CollectionFormatData>)
queryKey: collectionFormatQueryKey(options)
});

export const typesQueryKey = (options: Options<TypesData>) => createQueryKey('types', options);
export const typesQueryKey = (options: Options<TypesData>) => createQueryKey("types", options);

export const typesOptions = (options: Options<TypesData>) => queryOptions<TypesResponse, DefaultError, TypesResponse, ReturnType<typeof typesQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand All @@ -430,7 +430,7 @@ export const typesOptions = (options: Options<TypesData>) => queryOptions<TypesR
queryKey: typesQueryKey(options)
});

export const complexTypesQueryKey = (options: Options<ComplexTypesData>) => createQueryKey('complexTypes', options);
export const complexTypesQueryKey = (options: Options<ComplexTypesData>) => createQueryKey("complexTypes", options);

export const complexTypesOptions = (options: Options<ComplexTypesData>) => queryOptions<ComplexTypesResponse, DefaultError, ComplexTypesResponse, ReturnType<typeof complexTypesQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
];
};

export const getFooD = (options?: Options<GetFooData>) => createQueryKey('getFoo', options);
export const getFooD = (options?: Options<GetFooData>) => createQueryKey("getFoo", options);

export const getFooE = (options?: Options<GetFooData>) => queryOptions<GetFooResponse, DefaultError, GetFooResponse, ReturnType<typeof getFooD>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -84,7 +84,7 @@ export const fooPutC = (options?: Partial<Options<FooPutData>>): MutationOptions
return mutationOptions;
};

export const getFooBarD = (options?: Options<GetFooBarData>) => createQueryKey('getFooBar', options);
export const getFooBarD = (options?: Options<GetFooBarData>) => createQueryKey("getFooBar", options);

export const getFooBarE = (options?: Options<GetFooBarData>) => queryOptions<GetFooBarResponse, DefaultError, GetFooBarResponse, ReturnType<typeof getFooBarD>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
];
};

export const getFooQueryKey = (options?: Options<GetFooData>) => createQueryKey('getFoo', options);
export const getFooQueryKey = (options?: Options<GetFooData>) => createQueryKey("getFoo", options);

export const getFooOptions = (options?: Options<GetFooData>) => queryOptions<GetFooResponse, DefaultError, GetFooResponse, ReturnType<typeof getFooQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down Expand Up @@ -84,7 +84,7 @@ export const fooPutMutation = (options?: Partial<Options<FooPutData>>): UseMutat
return mutationOptions;
};

export const getFooBarQueryKey = (options?: Options<GetFooBarData>) => createQueryKey('getFooBar', options);
export const getFooBarQueryKey = (options?: Options<GetFooBarData>) => createQueryKey("getFooBar", options);

export const getFooBarOptions = (options?: Options<GetFooBarData>) => queryOptions<GetFooBarResponse, DefaultError, GetFooBarResponse, ReturnType<typeof getFooBarQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
Expand Down
Loading
Loading