vona-module-test-vona 5.0.48 → 5.0.49

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.
@@ -1,5 +1,6 @@
1
1
  import type { TypeEntityMeta, TypeModelsClassLikeGeneral, TypeSymbolKeyFieldsMore, IModelRelationHasOne, IModelRelationBelongsTo, IModelRelationHasMany, IModelRelationBelongsToMany } from 'vona-module-a-orm';
2
2
  import type { TypeEntityOptionsFields, TypeControllerOptionsActions } from 'vona-module-a-openapi';
3
+ import type { TableIdentity } from 'table-identity';
3
4
  /** aop: begin */
4
5
  export * from '../bean/aop.regExp.ts';
5
6
  export * from '../bean/aop.simple.ts';
@@ -352,7 +353,7 @@ declare module 'vona' {
352
353
  }
353
354
  /** model: end */
354
355
  /** model: begin */
355
- import type { IModelGetOptions, IModelMethodOptions, IModelSelectParams, TableIdentity, TypeModelSelectAndCount, TypeModelRelationResult, TypeModelWhere, IModelInsertOptions, TypeModelMutateRelationData, IModelDeleteOptions, IModelUpdateOptions, IModelMutateOptions, IModelSelectCountParams, IModelSelectAggrParams, TypeModelAggrRelationResult, IModelSelectGroupParams, TypeModelGroupRelationResult } from 'vona-module-a-orm';
356
+ import type { IModelGetOptions, IModelMethodOptions, IModelSelectParams, TypeModelSelectAndCount, TypeModelRelationResult, TypeModelWhere, IModelInsertOptions, TypeModelMutateRelationData, IModelDeleteOptions, IModelUpdateOptions, IModelMutateOptions, IModelSelectCountParams, IModelSelectAggrParams, TypeModelAggrRelationResult, IModelSelectGroupParams, TypeModelGroupRelationResult } from 'vona-module-a-orm';
356
357
  import { SymbolKeyEntity, SymbolKeyEntityMeta, SymbolKeyModelOptions } from 'vona-module-a-orm';
357
358
  declare module 'vona-module-test-vona' {
358
359
  interface IModelOptionsCategory {
@@ -1460,6 +1461,7 @@ declare module 'vona-module-a-web' {
1460
1461
  '/test/vona/onion/echo3/:userId': undefined;
1461
1462
  '/test/vona/onion/echo5': undefined;
1462
1463
  '/test/vona/onion/echo6': undefined;
1464
+ '/test/vona/order/findAll': undefined;
1463
1465
  '/test/vona/passport/echo/:name': undefined;
1464
1466
  '/test/vona/passport/isAuthenticated': undefined;
1465
1467
  '/test/vona/post/findManyEcho': undefined;
@@ -1,6 +1,6 @@
1
+ import type { TableIdentity } from 'table-identity';
1
2
  import type { IDecoratorControllerOptions } from 'vona-module-a-web';
2
3
  import { BeanBase } from 'vona';
3
- import { TableIdentity } from 'vona-module-a-orm';
4
4
  import { DtoUserCreate } from '../dto/userCreate.ts';
5
5
  import { DtoUserLazy } from '../dto/userLazy.ts';
6
6
  import { DtoUserUpdate } from '../dto/userUpdate.ts';
@@ -15,17 +15,17 @@ export declare class ControllerPost extends BeanBase {
15
15
  columns?: "iid" | "id" | "createdAt" | "updatedAt" | "deleted" | "*" | "title" | "userId" | "stars" | ("iid" | "id" | "createdAt" | "updatedAt" | "deleted" | "*" | "title" | "userId" | "stars")[] | undefined;
16
16
  where?: import("vona-module-a-orm").TypeModelWhereInner<{
17
17
  "testVonaPostContent.content": string;
18
- "testVonaPostContent.postId": import("vona-module-a-orm").TableIdentity;
19
- "testVonaPostContent.id": import("vona-module-a-orm").TableIdentity;
18
+ "testVonaPostContent.postId": import("table-identity").TableIdentity;
19
+ "testVonaPostContent.id": import("table-identity").TableIdentity;
20
20
  "testVonaPostContent.createdAt": Date;
21
21
  "testVonaPostContent.updatedAt": Date;
22
22
  "testVonaPostContent.deleted": boolean;
23
23
  "testVonaPostContent.iid": number;
24
24
  } & {
25
25
  "testVonaPost.title": string;
26
- "testVonaPost.userId": import("vona-module-a-orm").TableIdentity;
26
+ "testVonaPost.userId": import("table-identity").TableIdentity;
27
27
  "testVonaPost.stars"?: number | undefined;
28
- "testVonaPost.id": import("vona-module-a-orm").TableIdentity;
28
+ "testVonaPost.id": import("table-identity").TableIdentity;
29
29
  "testVonaPost.createdAt": Date;
30
30
  "testVonaPost.updatedAt": Date;
31
31
  "testVonaPost.deleted": boolean;
@@ -34,16 +34,16 @@ export declare class ControllerPost extends BeanBase {
34
34
  "testVonaUser.name": string;
35
35
  "testVonaUser.age"?: number | undefined;
36
36
  "testVonaUser.scores"?: number | undefined;
37
- "testVonaUser.id": import("vona-module-a-orm").TableIdentity;
37
+ "testVonaUser.id": import("table-identity").TableIdentity;
38
38
  "testVonaUser.createdAt": Date;
39
39
  "testVonaUser.updatedAt": Date;
40
40
  "testVonaUser.deleted": boolean;
41
41
  "testVonaUser.iid": number;
42
42
  } & {
43
43
  "testVonaPost.title": string;
44
- "testVonaPost.userId": import("vona-module-a-orm").TableIdentity;
44
+ "testVonaPost.userId": import("table-identity").TableIdentity;
45
45
  "testVonaPost.stars"?: number | undefined;
46
- "testVonaPost.id": import("vona-module-a-orm").TableIdentity;
46
+ "testVonaPost.id": import("table-identity").TableIdentity;
47
47
  "testVonaPost.createdAt": Date;
48
48
  "testVonaPost.updatedAt": Date;
49
49
  "testVonaPost.deleted": boolean;
@@ -1,4 +1,4 @@
1
- import type { TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
2
  import type { IDecoratorDtoOptions } from 'vona-module-a-web';
3
3
  import '../.metadata/index.ts';
4
4
  export interface IDtoOptionsUser extends IDecoratorDtoOptions {
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { EntityBase } from 'vona-module-a-orm';
3
4
  export interface IEntityOptionsCategory extends IDecoratorEntityOptions {
4
5
  }
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { EntityBase } from 'vona-module-a-orm';
3
4
  import '../.metadata/index.ts';
4
5
  export interface IEntityOptionsOrder extends IDecoratorEntityOptions {
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { EntityBase } from 'vona-module-a-orm';
3
4
  export interface IEntityOptionsPost extends IDecoratorEntityOptions {
4
5
  }
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { EntityBase } from 'vona-module-a-orm';
3
4
  export interface IEntityOptionsPostContent extends IDecoratorEntityOptions {
4
5
  }
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { EntityBase } from 'vona-module-a-orm';
3
4
  import '../.metadata/index.ts';
4
5
  export interface IEntityOptionsProduct extends IDecoratorEntityOptions {
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { EntityBase } from 'vona-module-a-orm';
3
4
  export interface IEntityOptionsRoleUser extends IDecoratorEntityOptions {
4
5
  }
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { BeanInfo, BeanAopBase, BeanAopMethodBase, BeanBase, cast, retry, BeanScopeBase } from 'vona';
2
2
  import { Aop, AopMethod, Aspect } from 'vona-module-a-aspect';
3
3
  import { Api, v } from 'vona-module-a-openapi';
4
- import { Entity, EntityBase, Model, $relation, BeanModelBase, $relationDynamic, Database, $Dto, TableIdentity as TableIdentity$1 } from 'vona-module-a-orm';
4
+ import { Entity, EntityBase, Model, $relation, BeanModelBase, $relationDynamic, Database, $Dto } from 'vona-module-a-orm';
5
5
  import { ModelCategoryChain as ModelCategoryChain$1 } from 'vona-module-test-vona';
6
6
  import moment from 'moment';
7
7
  import { Bean, Service, Scope } from 'vona-module-a-bean';
@@ -2181,7 +2181,7 @@ let ControllerDtoTest = (_dec$c = Controller('dtoTest', {
2181
2181
  return Arg.param('id')(target, key, 0);
2182
2182
  }, _dec22$3 = function (target, key) {
2183
2183
  return Arg.body(v.object(DtoUserUpdate))(target, key, 1);
2184
- }, _dec23$3 = Reflect.metadata("design:type", Function), _dec24$3 = Reflect.metadata("design:paramtypes", [typeof TableIdentity$1 === "undefined" ? Object : TableIdentity$1, typeof DtoUserUpdate === "undefined" ? Object : DtoUserUpdate]), _dec25$3 = Web.get('getCategoryTree'), _dec26$2 = Api.body(v.array($Dto.get('test-vona:category', {
2184
+ }, _dec23$3 = Reflect.metadata("design:type", Function), _dec24$3 = Reflect.metadata("design:paramtypes", [typeof TableIdentity === "undefined" ? Object : TableIdentity, typeof DtoUserUpdate === "undefined" ? Object : DtoUserUpdate]), _dec25$3 = Web.get('getCategoryTree'), _dec26$2 = Api.body(v.array($Dto.get('test-vona:category', {
2185
2185
  columns: ['id', 'name']
2186
2186
  }))), _dec27$2 = Reflect.metadata("design:type", Function), _dec28$1 = Reflect.metadata("design:paramtypes", []), _dec29$1 = Web.get('getCategoryTree2'), _dec30$1 = Api.body(v.array(DtoCategoryTree)), _dec31$1 = Reflect.metadata("design:type", Function), _dec32$1 = Reflect.metadata("design:paramtypes", []), _dec$c(_class$c = _dec2$c(_class$c = (_class2$b = class ControllerDtoTest extends BeanBase {
2187
2187
  getUserLazy() {
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.48",
4
+ "version": "5.0.49",
5
5
  "title": "test-vona",
6
6
  "vonaModule": {
7
7
  "fileVersion": 1,
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { TypeEntityMeta,TypeModelsClassLikeGeneral,TypeSymbolKeyFieldsMore,IModelRelationHasOne,IModelRelationBelongsTo,IModelRelationHasMany,IModelRelationBelongsToMany } from 'vona-module-a-orm';
3
3
  import type { TypeEntityOptionsFields,TypeControllerOptionsActions } from 'vona-module-a-openapi';
4
+ import type { TableIdentity } from 'table-identity';
4
5
  /** aop: begin */
5
6
  export * from '../bean/aop.regExp.ts';
6
7
  export * from '../bean/aop.simple.ts';
@@ -445,7 +446,7 @@ declare module 'vona' {
445
446
  }
446
447
  /** model: end */
447
448
  /** model: begin */
448
- import type { IModelGetOptions, IModelMethodOptions, IModelSelectParams, TableIdentity, TypeModelSelectAndCount, TypeModelRelationResult, TypeModelWhere, IModelInsertOptions, TypeModelMutateRelationData, IModelDeleteOptions, IModelUpdateOptions, IModelMutateOptions, IModelSelectCountParams, IModelSelectAggrParams, TypeModelAggrRelationResult, IModelSelectGroupParams, TypeModelGroupRelationResult } from 'vona-module-a-orm';
449
+ import type { IModelGetOptions, IModelMethodOptions, IModelSelectParams, TypeModelSelectAndCount, TypeModelRelationResult, TypeModelWhere, IModelInsertOptions, TypeModelMutateRelationData, IModelDeleteOptions, IModelUpdateOptions, IModelMutateOptions, IModelSelectCountParams, IModelSelectAggrParams, TypeModelAggrRelationResult, IModelSelectGroupParams, TypeModelGroupRelationResult } from 'vona-module-a-orm';
449
450
  import { SymbolKeyEntity, SymbolKeyEntityMeta, SymbolKeyModelOptions } from 'vona-module-a-orm';
450
451
  declare module 'vona-module-test-vona' {
451
452
  export interface IModelOptionsCategory {
@@ -1792,6 +1793,7 @@ declare module 'vona-module-a-web' {
1792
1793
  '/test/vona/onion/echo3/:userId': undefined;
1793
1794
  '/test/vona/onion/echo5': undefined;
1794
1795
  '/test/vona/onion/echo6': undefined;
1796
+ '/test/vona/order/findAll': undefined;
1795
1797
  '/test/vona/passport/echo/:name': undefined;
1796
1798
  '/test/vona/passport/isAuthenticated': undefined;
1797
1799
  '/test/vona/post/findManyEcho': undefined;
@@ -1,7 +1,8 @@
1
+ import type { TableIdentity } from 'table-identity';
1
2
  import type { IDecoratorControllerOptions } from 'vona-module-a-web';
2
3
  import { BeanBase } from 'vona';
3
4
  import { Api, v } from 'vona-module-a-openapi';
4
- import { $Dto, TableIdentity } from 'vona-module-a-orm';
5
+ import { $Dto } from 'vona-module-a-orm';
5
6
  import { Arg, Controller, Web } from 'vona-module-a-web';
6
7
  import { DtoCategoryTree } from '../dto/categoryTree.ts';
7
8
  import { DtoUserCreate } from '../dto/userCreate.ts';
package/src/dto/user.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
2
  import type { IDecoratorDtoOptions } from 'vona-module-a-web';
3
3
  import { Api, v } from 'vona-module-a-openapi';
4
4
  import { Dto } from 'vona-module-a-web';
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { Api, v } from 'vona-module-a-openapi';
3
4
  import { Entity, EntityBase } from 'vona-module-a-orm';
4
5
 
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { Api, v } from 'vona-module-a-openapi';
3
4
  import { Entity, EntityBase } from 'vona-module-a-orm';
4
5
  import { $locale } from '../.metadata/index.ts';
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { Api, v } from 'vona-module-a-openapi';
3
4
  import { Entity, EntityBase } from 'vona-module-a-orm';
4
5
 
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { Api, v } from 'vona-module-a-openapi';
3
4
  import { Entity, EntityBase } from 'vona-module-a-orm';
4
5
 
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { Api, v } from 'vona-module-a-openapi';
3
4
  import { Entity, EntityBase } from 'vona-module-a-orm';
4
5
  import { $locale } from '../.metadata/index.ts';
@@ -1,4 +1,5 @@
1
- import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
3
  import { Api, v } from 'vona-module-a-openapi';
3
4
  import { Entity, EntityBase } from 'vona-module-a-orm';
4
5