@povio/openapi-codegen-cli 1.0.1 → 1.0.2
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.
|
@@ -4,5 +4,5 @@ export type GenerateParams = {
|
|
|
4
4
|
excludeTags?: string;
|
|
5
5
|
prettier?: boolean;
|
|
6
6
|
verbose?: boolean;
|
|
7
|
-
} & Partial<Pick<GenerateOptions, "input" | "output" | "tsNamespaces" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath" | "extractEnums" | "acl" | "checkAcl" | "standalone" | "baseUrl" | "replaceOptionalWithNullish" | "infiniteQueries" | "axiosRequestConfig" | "mutationEffects" | "parseRequestParams">>;
|
|
7
|
+
} & Partial<Pick<GenerateOptions, "input" | "output" | "tsNamespaces" | "tsPath" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath" | "extractEnums" | "acl" | "checkAcl" | "standalone" | "baseUrl" | "replaceOptionalWithNullish" | "infiniteQueries" | "axiosRequestConfig" | "mutationEffects" | "parseRequestParams">>;
|
|
8
8
|
export declare function generate({ prettier, verbose, config: configParam, ...params }: GenerateParams): Promise<void>;
|
|
@@ -21,7 +21,12 @@ interface QueriesGenerateOptions {
|
|
|
21
21
|
axiosRequestConfig?: boolean;
|
|
22
22
|
infiniteQueries?: boolean;
|
|
23
23
|
mutationEffects?: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface ACLOptions {
|
|
26
|
+
acl: boolean;
|
|
24
27
|
checkAcl?: boolean;
|
|
28
|
+
abilityContextImportPath: string;
|
|
29
|
+
abilityContextGenericAppAbilities: boolean;
|
|
25
30
|
}
|
|
26
31
|
interface GenerateConfig {
|
|
27
32
|
outputFileNameSuffix: string;
|
|
@@ -36,13 +41,11 @@ interface BaseGenerateOptions {
|
|
|
36
41
|
excludePathRegex: string;
|
|
37
42
|
excludeRedundantZodSchemas: boolean;
|
|
38
43
|
tsNamespaces: boolean;
|
|
44
|
+
tsPath: string;
|
|
39
45
|
importPath: "ts" | "relative" | "absolute";
|
|
40
46
|
configs: Record<GenerateType, GenerateConfig>;
|
|
41
|
-
acl: boolean;
|
|
42
47
|
standalone: boolean;
|
|
43
48
|
baseUrl: string;
|
|
44
|
-
abilityContextImportPath: string;
|
|
45
|
-
abilityContextGenericAppAbilities: boolean;
|
|
46
49
|
}
|
|
47
|
-
export type GenerateOptions = BaseGenerateOptions & ZodGenerateOptions & EndpointsGenerateOptions & QueriesGenerateOptions;
|
|
50
|
+
export type GenerateOptions = BaseGenerateOptions & ZodGenerateOptions & EndpointsGenerateOptions & QueriesGenerateOptions & ACLOptions;
|
|
48
51
|
export {};
|
|
@@ -25,5 +25,5 @@ export declare function getEntityImports({ tags, entityName, getAliasEntityName,
|
|
|
25
25
|
type: GenerateType;
|
|
26
26
|
options: GenerateOptions;
|
|
27
27
|
}): Import[];
|
|
28
|
-
export declare function getImportPath(options: Pick<GenerateOptions, "output" | "importPath">): string;
|
|
28
|
+
export declare function getImportPath(options: Pick<GenerateOptions, "output" | "importPath" | "tsPath">): string;
|
|
29
29
|
export declare function mergeImports(options: GenerateOptions, ...importArrs: Import[][]): Import[];
|