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.
@@ -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['fieldsMore']>;
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['fieldsMore']>;
326
+ fields?: TypeEntityOptionsFields<DtoProfile, IDtoOptionsProfile['_fieldsMore_']>;
328
327
  }
329
328
  interface IDtoOptionsUser {
330
- fields?: TypeEntityOptionsFields<DtoUser, IDtoOptionsUser['fieldsMore']>;
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.$column('title'), 255);
288
- table.string(entity.$column('description'), 255);
287
+ table.string(entity.title, 255);
288
+ table.string(entity.description, 255);
289
289
  });
290
290
  }
291
291
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-test-vona",
3
3
  "type": "module",
4
- "version": "5.0.17",
4
+ "version": "5.0.19",
5
5
  "title": "test-vona",
6
6
  "vonaModule": {
7
7
  "fileVersion": 1,