vona-module-test-vona 5.0.17 → 5.0.19
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/.metadata/index.d.ts +8 -9
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import type { IDecoratorAopOptions } from 'vona-module-a-aspect';
|
|
|
3
3
|
import type { IDecoratorBroadcastOptions } from 'vona-module-a-broadcast';
|
|
4
4
|
import type { IDecoratorCacheMemOptions } from 'vona-module-a-cache';
|
|
5
5
|
import type { IDecoratorCacheRedisOptions } from 'vona-module-a-cache';
|
|
6
|
+
import type { TypeMetaEntity } from 'vona-module-a-database';
|
|
6
7
|
import type { IDecoratorModelOptions } from 'vona-module-a-database';
|
|
7
8
|
import type { EventOn } from 'vona-module-a-event';
|
|
8
9
|
import type { IDecoratorEventListenerOptions } from 'vona-module-a-event';
|
|
@@ -131,24 +132,22 @@ declare module 'vona-module-test-vona' {
|
|
|
131
132
|
export * from '../bean/bean.testCtx.ts';
|
|
132
133
|
declare module 'vona-module-a-database' {
|
|
133
134
|
interface IEntityRecord {
|
|
134
|
-
'test-vona:test': IEntityOptionsTest
|
|
135
|
+
'test-vona:test': Omit<IEntityOptionsTest, '_fieldsMore_'>;
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
declare module 'vona-module-test-vona' {
|
|
138
139
|
}
|
|
139
140
|
export interface IModuleEntity {
|
|
140
|
-
test: EntityTest
|
|
141
|
+
test: TypeMetaEntity<EntityTest>;
|
|
141
142
|
}
|
|
142
143
|
/** entity: end */
|
|
143
144
|
/** entity: begin */
|
|
144
145
|
declare module 'vona-module-test-vona' {
|
|
145
146
|
interface EntityTest {
|
|
146
147
|
get $table(): 'testVona';
|
|
147
|
-
$column: <K extends keyof Omit<EntityTest, '$column' | '$columns' | '$table'>>(column: K) => K;
|
|
148
|
-
$columns: <K extends keyof Omit<EntityTest, '$column' | '$columns' | '$table'>>(...columns: K[]) => K[];
|
|
149
148
|
}
|
|
150
149
|
interface IEntityOptionsTest {
|
|
151
|
-
fields?: TypeEntityOptionsFields<EntityTest, IEntityOptionsTest['
|
|
150
|
+
fields?: TypeEntityOptionsFields<EntityTest, IEntityOptionsTest['_fieldsMore_']>;
|
|
152
151
|
}
|
|
153
152
|
}
|
|
154
153
|
/** bean: end */
|
|
@@ -316,18 +315,18 @@ export * from '../controller/cacheMem.ts';
|
|
|
316
315
|
export * from '../controller/cacheRedis.ts';
|
|
317
316
|
declare module 'vona-module-a-web' {
|
|
318
317
|
interface IDtoRecord {
|
|
319
|
-
'test-vona:profile': IDtoOptionsProfile
|
|
320
|
-
'test-vona:user': IDtoOptionsUser
|
|
318
|
+
'test-vona:profile': Omit<IDtoOptionsProfile, '_fieldsMore_'>;
|
|
319
|
+
'test-vona:user': Omit<IDtoOptionsUser, '_fieldsMore_'>;
|
|
321
320
|
}
|
|
322
321
|
}
|
|
323
322
|
declare module 'vona-module-test-vona' {
|
|
324
323
|
}
|
|
325
324
|
declare module 'vona-module-test-vona' {
|
|
326
325
|
interface IDtoOptionsProfile {
|
|
327
|
-
fields?: TypeEntityOptionsFields<DtoProfile, IDtoOptionsProfile['
|
|
326
|
+
fields?: TypeEntityOptionsFields<DtoProfile, IDtoOptionsProfile['_fieldsMore_']>;
|
|
328
327
|
}
|
|
329
328
|
interface IDtoOptionsUser {
|
|
330
|
-
fields?: TypeEntityOptionsFields<DtoUser, IDtoOptionsUser['
|
|
329
|
+
fields?: TypeEntityOptionsFields<DtoUser, IDtoOptionsUser['_fieldsMore_']>;
|
|
331
330
|
}
|
|
332
331
|
}
|
|
333
332
|
export * from '../controller/guardPassport.ts';
|
package/dist/index.js
CHANGED
|
@@ -284,8 +284,8 @@ let MetaVersion = (_dec$q = Meta(), _dec2$q = BeanInfo({
|
|
|
284
284
|
const entity = this.scope.entity.test;
|
|
285
285
|
await this.bean.model.createTable(entity.$table, table => {
|
|
286
286
|
table.basicFields();
|
|
287
|
-
table.string(entity
|
|
288
|
-
table.string(entity
|
|
287
|
+
table.string(entity.title, 255);
|
|
288
|
+
table.string(entity.description, 255);
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
}
|