@povio/openapi-codegen-cli 0.13.5 → 0.13.6
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/generators/utils/generate/generate.acl.utils.d.ts +2 -0
- package/dist/generators/utils/generate/generate.imports.utils.d.ts +5 -0
- package/dist/generators/utils/hbs/hbs.acl.utils.d.ts +2 -1
- package/dist/index.js +46 -46
- package/dist/sh.js +66 -66
- package/package.json +1 -1
- package/src/generators/templates/partials/acl-check-call.hbs +1 -0
- package/src/generators/templates/partials/query-use-infinite-query.hbs +1 -1
- package/src/generators/templates/partials/query-use-mutation.hbs +1 -1
- package/src/generators/templates/partials/query-use-query.hbs +1 -1
- package/src/generators/templates/queries.hbs +4 -0
- package/src/generators/templates/partials/acl-check-params.hbs +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { GenerateOptions } from "src/generators/types/options";
|
|
1
2
|
import { Endpoint } from "../../types/endpoint";
|
|
2
3
|
export declare const getAbilityTypeName: (endpoint: Endpoint) => string;
|
|
3
4
|
export declare const getAbilityFunctionName: (endpoint: Endpoint) => string;
|
|
5
|
+
export declare const getImportedAbilityFunctionName: (endpoint: Endpoint, options: GenerateOptions) => string;
|
|
4
6
|
export declare const getAbilityAction: (endpoint: Endpoint) => string | undefined;
|
|
5
7
|
export declare const getAbilitySubject: (endpoint: Endpoint) => string | undefined;
|
|
6
8
|
export declare const hasAbilityConditions: (endpoint: Endpoint) => boolean;
|
|
@@ -13,6 +13,11 @@ export declare function getEndpointsImports({ tag, endpoints, options, }: {
|
|
|
13
13
|
endpoints: Endpoint[];
|
|
14
14
|
options: GenerateOptions;
|
|
15
15
|
}): Import[];
|
|
16
|
+
export declare function getAclImports({ tag, endpoints, options, }: {
|
|
17
|
+
tag: string;
|
|
18
|
+
endpoints: Endpoint[];
|
|
19
|
+
options: GenerateOptions;
|
|
20
|
+
}): Import[];
|
|
16
21
|
export declare function getEntityImports({ tags, entityName, getAliasEntityName, type, options, }: {
|
|
17
22
|
tags: string[];
|
|
18
23
|
entityName: string;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { SchemaResolver } from "src/generators/core/SchemaResolver.class";
|
|
2
|
+
export declare function registerAclHbsHelpers(resolver: SchemaResolver): void;
|