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.
- package/dist/.metadata/index.d.ts +3 -1
- package/dist/controller/dtoTest.d.ts +1 -1
- package/dist/controller/post.d.ts +7 -7
- package/dist/dto/user.d.ts +1 -1
- package/dist/entity/category.d.ts +2 -1
- package/dist/entity/order.d.ts +2 -1
- package/dist/entity/post.d.ts +2 -1
- package/dist/entity/postContent.d.ts +2 -1
- package/dist/entity/product.d.ts +2 -1
- package/dist/entity/roleUser.d.ts +2 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/.metadata/index.ts +3 -1
- package/src/controller/dtoTest.ts +2 -1
- package/src/dto/user.ts +1 -1
- package/src/entity/category.ts +2 -1
- package/src/entity/order.ts +2 -1
- package/src/entity/post.ts +2 -1
- package/src/entity/postContent.ts +2 -1
- package/src/entity/product.ts +2 -1
- package/src/entity/roleUser.ts +2 -1
|
@@ -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,
|
|
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("
|
|
19
|
-
"testVonaPostContent.id": import("
|
|
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("
|
|
26
|
+
"testVonaPost.userId": import("table-identity").TableIdentity;
|
|
27
27
|
"testVonaPost.stars"?: number | undefined;
|
|
28
|
-
"testVonaPost.id": import("
|
|
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("
|
|
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("
|
|
44
|
+
"testVonaPost.userId": import("table-identity").TableIdentity;
|
|
45
45
|
"testVonaPost.stars"?: number | undefined;
|
|
46
|
-
"testVonaPost.id": import("
|
|
46
|
+
"testVonaPost.id": import("table-identity").TableIdentity;
|
|
47
47
|
"testVonaPost.createdAt": Date;
|
|
48
48
|
"testVonaPost.updatedAt": Date;
|
|
49
49
|
"testVonaPost.deleted": boolean;
|
package/dist/dto/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TableIdentity } from '
|
|
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 {
|
|
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
|
}
|
package/dist/entity/order.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
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 {
|
package/dist/entity/post.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
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 {
|
|
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
|
}
|
package/dist/entity/product.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
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 {
|
|
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
|
|
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
|
|
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
package/src/.metadata/index.ts
CHANGED
|
@@ -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,
|
|
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
|
|
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
package/src/entity/category.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
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
|
|
package/src/entity/order.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
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';
|
package/src/entity/post.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
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 {
|
|
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
|
|
package/src/entity/product.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
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';
|
package/src/entity/roleUser.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
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
|
|