@povio/openapi-codegen-cli 0.2.9 → 0.3.1
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/dist/commands/generate.d.ts +2 -1
- package/dist/generators/core/endpoints/getEndpointBody.d.ts +2 -1
- package/dist/generators/core/endpoints/getEndpointParameter.d.ts +2 -1
- package/dist/generators/types/metadata.d.ts +13 -13
- package/dist/generators/utils/generate/generate.imports.utils.d.ts +1 -1
- package/dist/generators/utils/openapi.utils.d.ts +1 -0
- package/dist/generators/utils/ts.utils.d.ts +4 -4
- package/dist/generators/utils/zod-schema.utils.d.ts +1 -0
- package/dist/index.js +37 -37
- package/dist/sh.js +57 -57
- package/package.json +1 -1
- package/src/generators/templates/partials/query-use-mutation.hbs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const {{queryName endpoint}} = (options?: AppMutationOptions<typeof {{importedEndpointName endpoint}}, { {{{genEndpointParams endpoint}}} }>) => {
|
|
2
2
|
return {{queryHook}}({
|
|
3
|
-
mutationFn: ({ {{{endpointArgs endpoint}}} }) => {{importedEndpointName endpoint}}({{{endpointArgs endpoint}}}),
|
|
3
|
+
mutationFn: ({{#if (endpointParams endpoint)}} { {{{endpointArgs endpoint}}} } {{/if}}) => {{importedEndpointName endpoint}}({{{endpointArgs endpoint}}}),
|
|
4
4
|
...options,
|
|
5
5
|
});
|
|
6
6
|
};
|