@povio/openapi-codegen-cli 0.13.1 → 0.13.3

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/README.md CHANGED
@@ -45,12 +45,15 @@ yarn openapi-codegen generate --input http://localhost:3001/docs-json --standalo
45
45
  --importPath Module import style for generated files (default: 'ts'; options: 'ts' | 'relative' | 'absolute')
46
46
  --removeOperationPrefixEndingWith Remove operation name prefixes that end with the specified string (Default: 'Controller_')
47
47
  --extractEnums Extract enums into separate Zod schemas (default: true)
48
+ --branded Apply branded types to ambiguous Zod schemas (default: true)
48
49
  --replaceOptionalWithNullish Replace `.optional()` chains with `.nullish()` in generated Zod schemas (default: false)
49
50
 
50
51
  --axiosRequestConfig Include Axios request config parameters in query hooks (default: false)
51
52
  --infiniteQueries Generate infinite queries for paginated API endpoints (default: false)
52
53
  --mutationEffects Add mutation effects options to mutation hooks (default: true)
53
54
  --parseRequestParams Add Zod parsing to API endpoints (default: false)
55
+
56
+ --acl Generate ACL related files (default: true)
54
57
  --checkAcl Add ACL check to queries (default: false)
55
58
 
56
59
  --standalone Generate any missing supporting classes/types, e.g., REST client class, React Query type extensions, etc. (default: false)
@@ -4,5 +4,5 @@ export type GenerateParams = {
4
4
  monorepo: boolean;
5
5
  prettier: boolean;
6
6
  verbose: boolean;
7
- } & Pick<GenerateOptions, "input" | "output" | "tsNamespaces" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath" | "extractEnums" | "standalone" | "baseUrl" | "replaceOptionalWithNullish" | "infiniteQueries" | "axiosRequestConfig" | "mutationEffects" | "parseRequestParams" | "checkAcl">;
7
+ } & Pick<GenerateOptions, "input" | "output" | "tsNamespaces" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath" | "extractEnums" | "acl" | "checkAcl" | "standalone" | "baseUrl" | "branded" | "replaceOptionalWithNullish" | "infiniteQueries" | "axiosRequestConfig" | "mutationEffects" | "parseRequestParams">;
8
8
  export declare function generate({ input, excludeTags, monorepo, prettier, verbose, ...params }: GenerateParams): Promise<void>;
@@ -1,4 +1,4 @@
1
1
  import { SchemaResolver } from "../core/SchemaResolver.class";
2
2
  import { GenerateTypeParams } from "../types/generate";
3
3
  export declare function generateAcl({ resolver, data, tag }: GenerateTypeParams): string | undefined;
4
- export declare function generateAppAcl(resolver: SchemaResolver, tags: string[]): string | undefined;
4
+ export declare function generateAppAcl(resolver: SchemaResolver, tags: string[]): string;