@povio/openapi-codegen-cli 2.0.8-rc.4 → 2.0.8-rc.40
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/generator.js +41 -41
- package/dist/generators/utils/generate/generate.endpoints.utils.d.ts +2 -0
- package/dist/sh.js +150 -150
- package/package.json +9 -10
- package/src/assets/useMutationEffects.ts +30 -25
- package/src/generators/templates/partials/query-use-infinite-query.hbs +3 -2
- package/src/generators/templates/partials/query-use-query.hbs +4 -3
|
@@ -23,6 +23,8 @@ export declare function mapEndpointParamsToFunctionParams(resolver: SchemaResolv
|
|
|
23
23
|
parameterObject: import('../../types/openapi').ParameterObject | undefined;
|
|
24
24
|
bodyObject: OpenAPIV3.RequestBodyObject | undefined;
|
|
25
25
|
}[];
|
|
26
|
+
/** True when the endpoint has at least one mapped param and every mapped param is optional (safe `= {}` default on the params object). */
|
|
27
|
+
export declare function endpointParamsAllOptional(resolver: SchemaResolver, endpoint: Endpoint, mapOptions?: Parameters<typeof mapEndpointParamsToFunctionParams>[2]): boolean;
|
|
26
28
|
export declare function getEndpointConfig(endpoint: Endpoint): {
|
|
27
29
|
headers?: Record<string, string> | undefined;
|
|
28
30
|
params?: {
|