@povio/openapi-codegen-cli 0.8.0 → 0.8.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/README.md CHANGED
@@ -47,7 +47,6 @@ yarn openapi-codegen generate --input http://localhost:3001/docs-json --standalo
47
47
  --axiosRequestConfig Include Axios request config parameters in query hooks (default: false)
48
48
  --infiniteQueries Generate infinite queries for paginated API endpoints (default: false)
49
49
  --invalidateQueryOptions Add query invalidation options to mutation hooks (default: true)
50
- --fileActions Add query file actions to query hooks for `x-file-*` operations (default: true)
51
50
 
52
51
  --standalone Generate any missing supporting classes/types, e.g., REST client class, React Query type extensions, etc. (default: false)
53
52
  --baseUrl (Requires `--standalone`) Base URL for the REST client; falls back to the OpenAPI spec if not provided
@@ -3,5 +3,5 @@ export type GenerateParams = {
3
3
  excludeTags: string;
4
4
  prettier: boolean;
5
5
  verbose: boolean;
6
- } & Pick<GenerateOptions, "input" | "output" | "tsNamespaces" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath" | "extractEnums" | "standalone" | "baseUrl" | "replaceOptionalWithNullish" | "infiniteQueries" | "axiosRequestConfig" | "invalidateQueryOptions" | "fileActions">;
6
+ } & Pick<GenerateOptions, "input" | "output" | "tsNamespaces" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath" | "extractEnums" | "standalone" | "baseUrl" | "replaceOptionalWithNullish" | "infiniteQueries" | "axiosRequestConfig" | "invalidateQueryOptions">;
7
7
  export declare function generate({ input, excludeTags, prettier, verbose, ...params }: GenerateParams): Promise<void>;
@@ -23,8 +23,3 @@ export declare const INVALIDATE_QUERIES: {
23
23
  };
24
24
  export declare const INVALIDATE_QUERY_OPTIONS_FILE: GenerateFile;
25
25
  export declare const QUERY_MODULES_FILE: GenerateFile;
26
- export declare const FILE_ACTION_QUERY_OPTIONS: {
27
- optionsType: string;
28
- functionName: string;
29
- };
30
- export declare const FILE_ACTION_OPTIONS_FILE: GenerateFile;
@@ -1,5 +1,5 @@
1
1
  import { Endpoint } from "../../types/endpoint";
2
- export declare const getQueryName: (endpoint: Endpoint) => string;
2
+ export declare const getQueryName: (endpoint: Endpoint, mutation?: boolean) => string;
3
3
  export declare const getInfiniteQueryName: (endpoint: Endpoint) => string;
4
4
  export declare const getTagModuleName: (tag: string) => string;
5
5
  export declare const getTagKeys: (tag: string) => string;
@@ -17,5 +17,4 @@ export declare const getNamespaceName: ({ type, tag, options, }: {
17
17
  export declare function getAppRestClientImportPath(options: GenerateOptions): string;
18
18
  export declare function getQueryTypesImportPath(options: GenerateOptions): string;
19
19
  export declare function getInvalidateQueriesImportPath(options: GenerateOptions): string;
20
- export declare function getFileActionImportPath(options: GenerateOptions): string;
21
20
  export {};
@@ -1,4 +1,4 @@
1
1
  import { Endpoint } from "../types/endpoint";
2
2
  export declare const isQuery: (endpoint: Endpoint) => boolean;
3
3
  export declare const isMutation: (endpoint: Endpoint) => boolean;
4
- export declare const isInfiniteQuery: (endpoint: Endpoint, infiniteQueryParams: string[]) => boolean;
4
+ export declare const isInfiniteQuery: (endpoint: Endpoint, infiniteQueryParams?: string[]) => boolean;