vona-cli-set-api 1.0.82 → 1.0.85
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/cli/templates/create/project/basic/boilerplate/package.original.json +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/dist/.metadata/index.d.ts +13 -24
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/tsconfig.build.tsbuildinfo +1 -1
- package/dist/lib/bean/cli.create.module.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BeanScopeUtil, TypeModuleConfig } from 'vona';
|
|
2
|
+
import type { TypeMetaEntity } from 'vona-module-a-database';
|
|
2
3
|
import type { IDecoratorModelOptions } from 'vona-module-a-database';
|
|
3
4
|
import type { IMetaOptionsIndex } from 'vona-module-a-index';
|
|
4
5
|
import type { TypeControllerOptionsActions } from 'vona-module-a-openapi';
|
|
@@ -56,36 +57,24 @@ export * from '../bean/meta.version.ts';
|
|
|
56
57
|
export * from '../config/config.ts';
|
|
57
58
|
declare module 'vona-module-a-database' {
|
|
58
59
|
interface IEntityRecord {
|
|
59
|
-
'home-user:role': IEntityOptionsRole
|
|
60
|
-
'home-user:user': IEntityOptionsUser
|
|
61
|
-
'home-user:userRole': IEntityOptionsUserRole
|
|
60
|
+
'home-user:role': Omit<IEntityOptionsRole, '_fieldsMore_'>;
|
|
61
|
+
'home-user:user': Omit<IEntityOptionsUser, '_fieldsMore_'>;
|
|
62
|
+
'home-user:userRole': Omit<IEntityOptionsUserRole, '_fieldsMore_'>;
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
declare module 'vona-module-home-user' {
|
|
65
66
|
}
|
|
66
67
|
export interface IModuleEntity {
|
|
67
|
-
role: EntityRole
|
|
68
|
-
user: EntityUser
|
|
69
|
-
userRole: EntityUserRole
|
|
68
|
+
role: TypeMetaEntity<EntityRole, EntityRoleTableName>;
|
|
69
|
+
user: TypeMetaEntity<EntityUser, EntityUserTableName>;
|
|
70
|
+
userRole: TypeMetaEntity<EntityUserRole, EntityUserRoleTableName>;
|
|
70
71
|
}
|
|
71
72
|
/** entity: end */
|
|
72
73
|
/** entity: begin */
|
|
74
|
+
export type EntityRoleTableName = 'homeRole';
|
|
75
|
+
export type EntityUserTableName = 'homeUser';
|
|
76
|
+
export type EntityUserRoleTableName = 'homeUserRole';
|
|
73
77
|
declare module 'vona-module-home-user' {
|
|
74
|
-
interface EntityRole {
|
|
75
|
-
get $table(): 'homeRole';
|
|
76
|
-
$column: <K extends keyof Omit<EntityRole, '$column' | '$columns' | '$table'>>(column: K) => K;
|
|
77
|
-
$columns: <K extends keyof Omit<EntityRole, '$column' | '$columns' | '$table'>>(...columns: K[]) => K[];
|
|
78
|
-
}
|
|
79
|
-
interface EntityUser {
|
|
80
|
-
get $table(): 'homeUser';
|
|
81
|
-
$column: <K extends keyof Omit<EntityUser, '$column' | '$columns' | '$table'>>(column: K) => K;
|
|
82
|
-
$columns: <K extends keyof Omit<EntityUser, '$column' | '$columns' | '$table'>>(...columns: K[]) => K[];
|
|
83
|
-
}
|
|
84
|
-
interface EntityUserRole {
|
|
85
|
-
get $table(): 'homeUserRole';
|
|
86
|
-
$column: <K extends keyof Omit<EntityUserRole, '$column' | '$columns' | '$table'>>(column: K) => K;
|
|
87
|
-
$columns: <K extends keyof Omit<EntityUserRole, '$column' | '$columns' | '$table'>>(...columns: K[]) => K[];
|
|
88
|
-
}
|
|
89
78
|
interface IEntityOptionsRole {
|
|
90
79
|
fields?: TypeEntityOptionsFields<EntityRole, IEntityOptionsRole['_fieldsMore_']>;
|
|
91
80
|
}
|
|
@@ -145,9 +134,9 @@ export * from '../entity/userRole.ts';
|
|
|
145
134
|
export * from '../model/role.ts';
|
|
146
135
|
declare module 'vona-module-a-web' {
|
|
147
136
|
interface IDtoRecord {
|
|
148
|
-
'home-user:auth': IDtoOptionsAuth
|
|
149
|
-
'home-user:passport': IDtoOptionsPassport
|
|
150
|
-
'home-user:passportJwt': IDtoOptionsPassportJwt
|
|
137
|
+
'home-user:auth': Omit<IDtoOptionsAuth, '_fieldsMore_'>;
|
|
138
|
+
'home-user:passport': Omit<IDtoOptionsPassport, '_fieldsMore_'>;
|
|
139
|
+
'home-user:passportJwt': Omit<IDtoOptionsPassportJwt, '_fieldsMore_'>;
|
|
151
140
|
}
|
|
152
141
|
}
|
|
153
142
|
declare module 'vona-module-home-user' {
|