vona-module-a-web 5.0.12 → 5.0.14
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.
|
@@ -11,7 +11,7 @@ export default async function (options: IMetadataCustomGenerateOptions): Promise
|
|
|
11
11
|
contentImports.push(`import type { ${className} } from '${fileNameJSRelative}';`);
|
|
12
12
|
contentFields.push(`
|
|
13
13
|
export interface ${opionsName} {
|
|
14
|
-
fields?: TypeEntityOptionsFields<${className}, ${opionsName}['
|
|
14
|
+
fields?: TypeEntityOptionsFields<${className}, ${opionsName}['_fieldsMore_']>;
|
|
15
15
|
}`);
|
|
16
16
|
}
|
|
17
17
|
if (contentFields.length === 0) return '';
|
package/dist/index.js
CHANGED
|
@@ -523,10 +523,13 @@ function Controller(path, options) {
|
|
|
523
523
|
options = path || {};
|
|
524
524
|
}
|
|
525
525
|
return createBeanDecorator('controller', options, false, false, target => {
|
|
526
|
+
// beanOptions
|
|
527
|
+
const beanOptions = appResource.getBean(target);
|
|
526
528
|
// IOpenApiOptions
|
|
527
529
|
const optionsMeta = appMetadata.getOwnMetadataMap(false, SymbolOpenApiOptions, target);
|
|
528
530
|
for (const key of ['exclude', 'tags']) {
|
|
529
|
-
|
|
531
|
+
const option = cast(beanOptions?.options)[key];
|
|
532
|
+
if (option !== undefined) optionsMeta[key] = option;
|
|
530
533
|
}
|
|
531
534
|
// IOpenApiOptions
|
|
532
535
|
mergeActionsOpenAPIMetadata(target);
|
|
@@ -4,5 +4,5 @@ import type { IDecoratorDtoOptions } from '../../types/dto.ts';
|
|
|
4
4
|
export declare function Controller<T extends IDecoratorControllerOptions>(options?: T): ClassDecorator;
|
|
5
5
|
export declare function Controller<T extends IDecoratorControllerOptions>(path?: string, options?: Omit<T, 'path'>): ClassDecorator;
|
|
6
6
|
export declare function Service(): ClassDecorator;
|
|
7
|
-
export declare function Dto<T extends IDecoratorDtoOptions<any>>(options?: T): ClassDecorator;
|
|
7
|
+
export declare function Dto<T extends IDecoratorDtoOptions<any>>(options?: Omit<T, '_fieldsMore_'>): ClassDecorator;
|
|
8
8
|
export declare function mergeActionsOpenAPIMetadata(target: Constructable): void;
|
package/dist/types/dto.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface IDtoRecord {
|
|
|
6
6
|
export interface IDecoratorDtoOptions<FieldsMore = never> {
|
|
7
7
|
independent?: boolean;
|
|
8
8
|
openapi?: TypeOpenAPIMetadata;
|
|
9
|
-
|
|
9
|
+
_fieldsMore_?: FieldsMore;
|
|
10
10
|
}
|
|
11
11
|
declare module 'vona-module-a-onion' {
|
|
12
12
|
interface BeanOnion {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-module-a-web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.14",
|
|
5
5
|
"title": "a-web",
|
|
6
6
|
"vonaModule": {
|
|
7
7
|
"capabilities": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"onions": {
|
|
12
12
|
"dto": {
|
|
13
13
|
"sceneIsolate": true,
|
|
14
|
+
"optionsCustomInterfaceTemplate": "Omit<{{optionsCustomInterface}}, '_fieldsMore_'>",
|
|
14
15
|
"optionsGlobalInterfaceName": "IDecoratorDtoOptions",
|
|
15
16
|
"optionsGlobalInterfaceFrom": "vona-module-a-web",
|
|
16
17
|
"boilerplate": "cli/dto/boilerplate",
|