vona-module-test-vona 5.0.47 → 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 +16 -1
- package/dist/controller/dtoTest.d.ts +1 -1
- package/dist/controller/order.d.ts +8 -0
- 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 +369 -356
- package/package.json +1 -1
- package/src/.metadata/index.ts +22 -1
- package/src/controller/dtoTest.ts +2 -1
- package/src/controller/order.ts +20 -0
- 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 {
|
|
@@ -1230,6 +1231,7 @@ export * from '../controller/captcha.ts';
|
|
|
1230
1231
|
export * from '../controller/dtoTest.ts';
|
|
1231
1232
|
export * from '../controller/guardPassport.ts';
|
|
1232
1233
|
export * from '../controller/onion.ts';
|
|
1234
|
+
export * from '../controller/order.ts';
|
|
1233
1235
|
export * from '../controller/passport.ts';
|
|
1234
1236
|
export * from '../controller/performAction.ts';
|
|
1235
1237
|
export * from '../controller/post.ts';
|
|
@@ -1245,6 +1247,7 @@ import type { IControllerOptionsCaptcha } from '../controller/captcha.ts';
|
|
|
1245
1247
|
import type { IControllerOptionsDtoTest } from '../controller/dtoTest.ts';
|
|
1246
1248
|
import type { IControllerOptionsGuardPassport } from '../controller/guardPassport.ts';
|
|
1247
1249
|
import type { IControllerOptionsOnion } from '../controller/onion.ts';
|
|
1250
|
+
import type { IControllerOptionsOrder } from '../controller/order.ts';
|
|
1248
1251
|
import type { IControllerOptionsPassport } from '../controller/passport.ts';
|
|
1249
1252
|
import type { IControllerOptionsPerformAction } from '../controller/performAction.ts';
|
|
1250
1253
|
import type { IControllerOptionsPost } from '../controller/post.ts';
|
|
@@ -1263,6 +1266,7 @@ declare module 'vona-module-a-web' {
|
|
|
1263
1266
|
'test-vona:dtoTest': IControllerOptionsDtoTest;
|
|
1264
1267
|
'test-vona:guardPassport': IControllerOptionsGuardPassport;
|
|
1265
1268
|
'test-vona:onion': IControllerOptionsOnion;
|
|
1269
|
+
'test-vona:order': IControllerOptionsOrder;
|
|
1266
1270
|
'test-vona:passport': IControllerOptionsPassport;
|
|
1267
1271
|
'test-vona:performAction': IControllerOptionsPerformAction;
|
|
1268
1272
|
'test-vona:post': IControllerOptionsPost;
|
|
@@ -1316,6 +1320,12 @@ declare module 'vona-module-test-vona' {
|
|
|
1316
1320
|
get $beanFullName(): 'test-vona.controller.onion';
|
|
1317
1321
|
get $onionName(): 'test-vona:onion';
|
|
1318
1322
|
}
|
|
1323
|
+
interface ControllerOrder {
|
|
1324
|
+
}
|
|
1325
|
+
interface ControllerOrder {
|
|
1326
|
+
get $beanFullName(): 'test-vona.controller.order';
|
|
1327
|
+
get $onionName(): 'test-vona:order';
|
|
1328
|
+
}
|
|
1319
1329
|
interface ControllerPassport {
|
|
1320
1330
|
}
|
|
1321
1331
|
interface ControllerPassport {
|
|
@@ -1374,6 +1384,7 @@ import '../controller/captcha.ts';
|
|
|
1374
1384
|
import '../controller/dtoTest.ts';
|
|
1375
1385
|
import '../controller/guardPassport.ts';
|
|
1376
1386
|
import '../controller/onion.ts';
|
|
1387
|
+
import '../controller/order.ts';
|
|
1377
1388
|
import '../controller/passport.ts';
|
|
1378
1389
|
import '../controller/performAction.ts';
|
|
1379
1390
|
import '../controller/post.ts';
|
|
@@ -1404,6 +1415,9 @@ declare module 'vona-module-test-vona' {
|
|
|
1404
1415
|
interface IControllerOptionsOnion {
|
|
1405
1416
|
actions?: TypeControllerOptionsActions<ControllerOnion>;
|
|
1406
1417
|
}
|
|
1418
|
+
interface IControllerOptionsOrder {
|
|
1419
|
+
actions?: TypeControllerOptionsActions<ControllerOrder>;
|
|
1420
|
+
}
|
|
1407
1421
|
interface IControllerOptionsPassport {
|
|
1408
1422
|
actions?: TypeControllerOptionsActions<ControllerPassport>;
|
|
1409
1423
|
}
|
|
@@ -1447,6 +1461,7 @@ declare module 'vona-module-a-web' {
|
|
|
1447
1461
|
'/test/vona/onion/echo3/:userId': undefined;
|
|
1448
1462
|
'/test/vona/onion/echo5': undefined;
|
|
1449
1463
|
'/test/vona/onion/echo6': undefined;
|
|
1464
|
+
'/test/vona/order/findAll': undefined;
|
|
1450
1465
|
'/test/vona/passport/echo/:name': undefined;
|
|
1451
1466
|
'/test/vona/passport/isAuthenticated': undefined;
|
|
1452
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';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
+
import { BeanBase } from 'vona';
|
|
3
|
+
import { DtoOrderResult } from '../dto/orderResult.ts';
|
|
4
|
+
export interface IControllerOptionsOrder extends IDecoratorControllerOptions {
|
|
5
|
+
}
|
|
6
|
+
export declare class ControllerOrder extends BeanBase {
|
|
7
|
+
findAll(): Promise<DtoOrderResult[]>;
|
|
8
|
+
}
|
|
@@ -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
|
}
|