vona-module-test-vona 5.0.45 → 5.0.46
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 +44 -1
- package/dist/bean/meta.version.d.ts +3 -2
- package/dist/controller/post.d.ts +66 -0
- package/dist/dto/postQuery.d.ts +9 -0
- package/dist/dto/postQueryRes.d.ts +12 -0
- package/dist/index.js +468 -385
- package/dist/service/post.d.ts +58 -0
- package/package.json +1 -1
- package/src/.metadata/index.ts +52 -1
- package/src/bean/meta.version.ts +17 -2
- package/src/controller/captcha.ts +1 -2
- package/src/controller/dtoTest.ts +2 -2
- package/src/controller/onion.ts +2 -2
- package/src/controller/passport.ts +2 -2
- package/src/controller/performAction.ts +2 -2
- package/src/controller/post.ts +31 -0
- package/src/controller/transaction.ts +2 -2
- package/src/controller/upload.ts +2 -2
- package/src/dto/postQuery.ts +23 -0
- package/src/dto/postQueryRes.ts +9 -0
- package/src/service/post.ts +10 -0
- package/test/database/dtoAggregate.test.ts +28 -30
- package/test/database/dtoGet.test.ts +37 -41
- package/test/database/dtoGroup.test.ts +28 -30
- package/test/database/dtoMutate.test.ts +40 -42
- package/test/database/dtoQuery.test.ts +55 -0
- package/test/database/modelRelationsJoins.test.ts +11 -0
- package/test/utils/performAction.test.ts +1 -1
|
@@ -352,7 +352,7 @@ declare module 'vona' {
|
|
|
352
352
|
}
|
|
353
353
|
/** model: end */
|
|
354
354
|
/** model: begin */
|
|
355
|
-
import type { IModelGetOptions, IModelMethodOptions, IModelSelectParams, TableIdentity, TypeModelRelationResult, TypeModelWhere, IModelInsertOptions, TypeModelMutateRelationData, IModelDeleteOptions, IModelUpdateOptions, IModelMutateOptions, IModelSelectCountParams, IModelSelectAggrParams, TypeModelAggrRelationResult, IModelSelectGroupParams, TypeModelGroupRelationResult } from 'vona-module-a-orm';
|
|
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
356
|
import { SymbolKeyEntity, SymbolKeyEntityMeta, SymbolKeyModelOptions } from 'vona-module-a-orm';
|
|
357
357
|
declare module 'vona-module-test-vona' {
|
|
358
358
|
interface IModelOptionsCategory {
|
|
@@ -433,6 +433,7 @@ declare module 'vona-module-test-vona' {
|
|
|
433
433
|
[SymbolKeyModelOptions]: IModelOptionsCategory;
|
|
434
434
|
get<T extends IModelGetOptions<EntityCategory, ModelCategory>>(where: TypeModelWhere<EntityCategory>, options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategory, T> | undefined>;
|
|
435
435
|
mget<T extends IModelGetOptions<EntityCategory, ModelCategory>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategory, T>[]>;
|
|
436
|
+
selectAndCount<T extends IModelSelectParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityCategory, ModelCategory, T>>;
|
|
436
437
|
select<T extends IModelSelectParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityCategory, ModelCategory, T>[]>;
|
|
437
438
|
insert<T extends IModelInsertOptions<EntityCategory, ModelCategory>>(data?: TypeModelMutateRelationData<EntityCategory, ModelCategory, T>, options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategory, T, true>>;
|
|
438
439
|
insertBulk<T extends IModelInsertOptions<EntityCategory, ModelCategory>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategory, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategory, T, true>[]>;
|
|
@@ -452,6 +453,7 @@ declare module 'vona-module-test-vona' {
|
|
|
452
453
|
[SymbolKeyModelOptions]: IModelOptionsCategoryChain;
|
|
453
454
|
get<T extends IModelGetOptions<EntityCategory, ModelCategoryChain>>(where: TypeModelWhere<EntityCategory>, options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategoryChain, T> | undefined>;
|
|
454
455
|
mget<T extends IModelGetOptions<EntityCategory, ModelCategoryChain>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategoryChain, T>[]>;
|
|
456
|
+
selectAndCount<T extends IModelSelectParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityCategory, ModelCategoryChain, T>>;
|
|
455
457
|
select<T extends IModelSelectParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityCategory, ModelCategoryChain, T>[]>;
|
|
456
458
|
insert<T extends IModelInsertOptions<EntityCategory, ModelCategoryChain>>(data?: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>, options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T, true>>;
|
|
457
459
|
insertBulk<T extends IModelInsertOptions<EntityCategory, ModelCategoryChain>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T, true>[]>;
|
|
@@ -471,6 +473,7 @@ declare module 'vona-module-test-vona' {
|
|
|
471
473
|
[SymbolKeyModelOptions]: IModelOptionsOrder;
|
|
472
474
|
get<T extends IModelGetOptions<EntityOrder, ModelOrder>>(where: TypeModelWhere<EntityOrder>, options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T> | undefined>;
|
|
473
475
|
mget<T extends IModelGetOptions<EntityOrder, ModelOrder>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T>[]>;
|
|
476
|
+
selectAndCount<T extends IModelSelectParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityOrder, ModelOrder, T>>;
|
|
474
477
|
select<T extends IModelSelectParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T>[]>;
|
|
475
478
|
insert<T extends IModelInsertOptions<EntityOrder, ModelOrder>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T, true>>;
|
|
476
479
|
insertBulk<T extends IModelInsertOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T, true>[]>;
|
|
@@ -490,6 +493,7 @@ declare module 'vona-module-test-vona' {
|
|
|
490
493
|
[SymbolKeyModelOptions]: IModelOptionsOrderStats;
|
|
491
494
|
get<T extends IModelGetOptions<EntityOrder, ModelOrderStats>>(where: TypeModelWhere<EntityOrder>, options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T> | undefined>;
|
|
492
495
|
mget<T extends IModelGetOptions<EntityOrder, ModelOrderStats>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T>[]>;
|
|
496
|
+
selectAndCount<T extends IModelSelectParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityOrder, ModelOrderStats, T>>;
|
|
493
497
|
select<T extends IModelSelectParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T>[]>;
|
|
494
498
|
insert<T extends IModelInsertOptions<EntityOrder, ModelOrderStats>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T, true>>;
|
|
495
499
|
insertBulk<T extends IModelInsertOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T, true>[]>;
|
|
@@ -509,6 +513,7 @@ declare module 'vona-module-test-vona' {
|
|
|
509
513
|
[SymbolKeyModelOptions]: IModelOptionsPost;
|
|
510
514
|
get<T extends IModelGetOptions<EntityPost, ModelPost>>(where: TypeModelWhere<EntityPost>, options?: T): Promise<TypeModelRelationResult<EntityPost, ModelPost, T> | undefined>;
|
|
511
515
|
mget<T extends IModelGetOptions<EntityPost, ModelPost>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityPost, ModelPost, T>[]>;
|
|
516
|
+
selectAndCount<T extends IModelSelectParams<EntityPost, ModelPost, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityPost, ModelPost, T>>;
|
|
512
517
|
select<T extends IModelSelectParams<EntityPost, ModelPost, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityPost, ModelPost, T>[]>;
|
|
513
518
|
insert<T extends IModelInsertOptions<EntityPost, ModelPost>>(data?: TypeModelMutateRelationData<EntityPost, ModelPost, T>, options?: T): Promise<TypeModelMutateRelationData<EntityPost, ModelPost, T, true>>;
|
|
514
519
|
insertBulk<T extends IModelInsertOptions<EntityPost, ModelPost>>(items: TypeModelMutateRelationData<EntityPost, ModelPost, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityPost, ModelPost, T, true>[]>;
|
|
@@ -528,6 +533,7 @@ declare module 'vona-module-test-vona' {
|
|
|
528
533
|
[SymbolKeyModelOptions]: IModelOptionsPostContent;
|
|
529
534
|
get<T extends IModelGetOptions<EntityPostContent, ModelPostContent>>(where: TypeModelWhere<EntityPostContent>, options?: T): Promise<TypeModelRelationResult<EntityPostContent, ModelPostContent, T> | undefined>;
|
|
530
535
|
mget<T extends IModelGetOptions<EntityPostContent, ModelPostContent>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityPostContent, ModelPostContent, T>[]>;
|
|
536
|
+
selectAndCount<T extends IModelSelectParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityPostContent, ModelPostContent, T>>;
|
|
531
537
|
select<T extends IModelSelectParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityPostContent, ModelPostContent, T>[]>;
|
|
532
538
|
insert<T extends IModelInsertOptions<EntityPostContent, ModelPostContent>>(data?: TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>, options?: T): Promise<TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T, true>>;
|
|
533
539
|
insertBulk<T extends IModelInsertOptions<EntityPostContent, ModelPostContent>>(items: TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T, true>[]>;
|
|
@@ -547,6 +553,7 @@ declare module 'vona-module-test-vona' {
|
|
|
547
553
|
[SymbolKeyModelOptions]: IModelOptionsProduct;
|
|
548
554
|
get<T extends IModelGetOptions<EntityProduct, ModelProduct>>(where: TypeModelWhere<EntityProduct>, options?: T): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T> | undefined>;
|
|
549
555
|
mget<T extends IModelGetOptions<EntityProduct, ModelProduct>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T>[]>;
|
|
556
|
+
selectAndCount<T extends IModelSelectParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityProduct, ModelProduct, T>>;
|
|
550
557
|
select<T extends IModelSelectParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T>[]>;
|
|
551
558
|
insert<T extends IModelInsertOptions<EntityProduct, ModelProduct>>(data?: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T, true>>;
|
|
552
559
|
insertBulk<T extends IModelInsertOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T, true>[]>;
|
|
@@ -566,6 +573,7 @@ declare module 'vona-module-test-vona' {
|
|
|
566
573
|
[SymbolKeyModelOptions]: IModelOptionsRole;
|
|
567
574
|
get<T extends IModelGetOptions<EntityRole, ModelRole>>(where: TypeModelWhere<EntityRole>, options?: T): Promise<TypeModelRelationResult<EntityRole, ModelRole, T> | undefined>;
|
|
568
575
|
mget<T extends IModelGetOptions<EntityRole, ModelRole>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityRole, ModelRole, T>[]>;
|
|
576
|
+
selectAndCount<T extends IModelSelectParams<EntityRole, ModelRole, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityRole, ModelRole, T>>;
|
|
569
577
|
select<T extends IModelSelectParams<EntityRole, ModelRole, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityRole, ModelRole, T>[]>;
|
|
570
578
|
insert<T extends IModelInsertOptions<EntityRole, ModelRole>>(data?: TypeModelMutateRelationData<EntityRole, ModelRole, T>, options?: T): Promise<TypeModelMutateRelationData<EntityRole, ModelRole, T, true>>;
|
|
571
579
|
insertBulk<T extends IModelInsertOptions<EntityRole, ModelRole>>(items: TypeModelMutateRelationData<EntityRole, ModelRole, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityRole, ModelRole, T, true>[]>;
|
|
@@ -585,6 +593,7 @@ declare module 'vona-module-test-vona' {
|
|
|
585
593
|
[SymbolKeyModelOptions]: IModelOptionsRoleUser;
|
|
586
594
|
get<T extends IModelGetOptions<EntityRoleUser, ModelRoleUser>>(where: TypeModelWhere<EntityRoleUser>, options?: T): Promise<TypeModelRelationResult<EntityRoleUser, ModelRoleUser, T> | undefined>;
|
|
587
595
|
mget<T extends IModelGetOptions<EntityRoleUser, ModelRoleUser>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityRoleUser, ModelRoleUser, T>[]>;
|
|
596
|
+
selectAndCount<T extends IModelSelectParams<EntityRoleUser, ModelRoleUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityRoleUser, ModelRoleUser, T>>;
|
|
588
597
|
select<T extends IModelSelectParams<EntityRoleUser, ModelRoleUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityRoleUser, ModelRoleUser, T>[]>;
|
|
589
598
|
insert<T extends IModelInsertOptions<EntityRoleUser, ModelRoleUser>>(data?: TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>, options?: T): Promise<TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T, true>>;
|
|
590
599
|
insertBulk<T extends IModelInsertOptions<EntityRoleUser, ModelRoleUser>>(items: TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T, true>[]>;
|
|
@@ -604,6 +613,7 @@ declare module 'vona-module-test-vona' {
|
|
|
604
613
|
[SymbolKeyModelOptions]: IModelOptionsTest;
|
|
605
614
|
get<T extends IModelGetOptions<EntityTest, ModelTest>>(where: TypeModelWhere<EntityTest>, options?: T): Promise<TypeModelRelationResult<EntityTest, ModelTest, T> | undefined>;
|
|
606
615
|
mget<T extends IModelGetOptions<EntityTest, ModelTest>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityTest, ModelTest, T>[]>;
|
|
616
|
+
selectAndCount<T extends IModelSelectParams<EntityTest, ModelTest, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityTest, ModelTest, T>>;
|
|
607
617
|
select<T extends IModelSelectParams<EntityTest, ModelTest, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityTest, ModelTest, T>[]>;
|
|
608
618
|
insert<T extends IModelInsertOptions<EntityTest, ModelTest>>(data?: TypeModelMutateRelationData<EntityTest, ModelTest, T>, options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTest, T, true>>;
|
|
609
619
|
insertBulk<T extends IModelInsertOptions<EntityTest, ModelTest>>(items: TypeModelMutateRelationData<EntityTest, ModelTest, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTest, T, true>[]>;
|
|
@@ -623,6 +633,7 @@ declare module 'vona-module-test-vona' {
|
|
|
623
633
|
[SymbolKeyModelOptions]: IModelOptionsTestDynamicTable;
|
|
624
634
|
get<T extends IModelGetOptions<EntityTest, ModelTestDynamicTable>>(where: TypeModelWhere<EntityTest>, options?: T): Promise<TypeModelRelationResult<EntityTest, ModelTestDynamicTable, T> | undefined>;
|
|
625
635
|
mget<T extends IModelGetOptions<EntityTest, ModelTestDynamicTable>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityTest, ModelTestDynamicTable, T>[]>;
|
|
636
|
+
selectAndCount<T extends IModelSelectParams<EntityTest, ModelTestDynamicTable, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityTest, ModelTestDynamicTable, T>>;
|
|
626
637
|
select<T extends IModelSelectParams<EntityTest, ModelTestDynamicTable, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityTest, ModelTestDynamicTable, T>[]>;
|
|
627
638
|
insert<T extends IModelInsertOptions<EntityTest, ModelTestDynamicTable>>(data?: TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>, options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T, true>>;
|
|
628
639
|
insertBulk<T extends IModelInsertOptions<EntityTest, ModelTestDynamicTable>>(items: TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T, true>[]>;
|
|
@@ -642,6 +653,7 @@ declare module 'vona-module-test-vona' {
|
|
|
642
653
|
[SymbolKeyModelOptions]: IModelOptionsUser;
|
|
643
654
|
get<T extends IModelGetOptions<EntityUser, ModelUser>>(where: TypeModelWhere<EntityUser>, options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUser, T> | undefined>;
|
|
644
655
|
mget<T extends IModelGetOptions<EntityUser, ModelUser>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUser, T>[]>;
|
|
656
|
+
selectAndCount<T extends IModelSelectParams<EntityUser, ModelUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityUser, ModelUser, T>>;
|
|
645
657
|
select<T extends IModelSelectParams<EntityUser, ModelUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityUser, ModelUser, T>[]>;
|
|
646
658
|
insert<T extends IModelInsertOptions<EntityUser, ModelUser>>(data?: TypeModelMutateRelationData<EntityUser, ModelUser, T>, options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUser, T, true>>;
|
|
647
659
|
insertBulk<T extends IModelInsertOptions<EntityUser, ModelUser>>(items: TypeModelMutateRelationData<EntityUser, ModelUser, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUser, T, true>[]>;
|
|
@@ -661,6 +673,7 @@ declare module 'vona-module-test-vona' {
|
|
|
661
673
|
[SymbolKeyModelOptions]: IModelOptionsUserStats;
|
|
662
674
|
get<T extends IModelGetOptions<EntityUser, ModelUserStats>>(where: TypeModelWhere<EntityUser>, options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUserStats, T> | undefined>;
|
|
663
675
|
mget<T extends IModelGetOptions<EntityUser, ModelUserStats>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUserStats, T>[]>;
|
|
676
|
+
selectAndCount<T extends IModelSelectParams<EntityUser, ModelUserStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityUser, ModelUserStats, T>>;
|
|
664
677
|
select<T extends IModelSelectParams<EntityUser, ModelUserStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityUser, ModelUserStats, T>[]>;
|
|
665
678
|
insert<T extends IModelInsertOptions<EntityUser, ModelUserStats>>(data?: TypeModelMutateRelationData<EntityUser, ModelUserStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStats, T, true>>;
|
|
666
679
|
insertBulk<T extends IModelInsertOptions<EntityUser, ModelUserStats>>(items: TypeModelMutateRelationData<EntityUser, ModelUserStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStats, T, true>[]>;
|
|
@@ -680,6 +693,7 @@ declare module 'vona-module-test-vona' {
|
|
|
680
693
|
[SymbolKeyModelOptions]: IModelOptionsUserStatsGroup;
|
|
681
694
|
get<T extends IModelGetOptions<EntityUser, ModelUserStatsGroup>>(where: TypeModelWhere<EntityUser>, options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUserStatsGroup, T> | undefined>;
|
|
682
695
|
mget<T extends IModelGetOptions<EntityUser, ModelUserStatsGroup>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUserStatsGroup, T>[]>;
|
|
696
|
+
selectAndCount<T extends IModelSelectParams<EntityUser, ModelUserStatsGroup, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelSelectAndCount<EntityUser, ModelUserStatsGroup, T>>;
|
|
683
697
|
select<T extends IModelSelectParams<EntityUser, ModelUserStatsGroup, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityUser, ModelUserStatsGroup, T>[]>;
|
|
684
698
|
insert<T extends IModelInsertOptions<EntityUser, ModelUserStatsGroup>>(data?: TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>, options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T, true>>;
|
|
685
699
|
insertBulk<T extends IModelInsertOptions<EntityUser, ModelUserStatsGroup>>(items: TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T, true>[]>;
|
|
@@ -1103,6 +1117,8 @@ export * from '../dto/orderCreate.ts';
|
|
|
1103
1117
|
export * from '../dto/orderResult.ts';
|
|
1104
1118
|
export * from '../dto/orderUpdate.ts';
|
|
1105
1119
|
export * from '../dto/postCreate.ts';
|
|
1120
|
+
export * from '../dto/postQuery.ts';
|
|
1121
|
+
export * from '../dto/postQueryRes.ts';
|
|
1106
1122
|
export * from '../dto/profile.ts';
|
|
1107
1123
|
export * from '../dto/roleLazy.ts';
|
|
1108
1124
|
export * from '../dto/signin.ts';
|
|
@@ -1115,6 +1131,8 @@ import type { IDtoOptionsOrderCreate } from '../dto/orderCreate.ts';
|
|
|
1115
1131
|
import type { IDtoOptionsOrderResult } from '../dto/orderResult.ts';
|
|
1116
1132
|
import type { IDtoOptionsOrderUpdate } from '../dto/orderUpdate.ts';
|
|
1117
1133
|
import type { IDtoOptionsPostCreate } from '../dto/postCreate.ts';
|
|
1134
|
+
import type { IDtoOptionsPostQuery } from '../dto/postQuery.ts';
|
|
1135
|
+
import type { IDtoOptionsPostQueryRes } from '../dto/postQueryRes.ts';
|
|
1118
1136
|
import type { IDtoOptionsProfile } from '../dto/profile.ts';
|
|
1119
1137
|
import type { IDtoOptionsRoleLazy } from '../dto/roleLazy.ts';
|
|
1120
1138
|
import type { IDtoOptionsSignin } from '../dto/signin.ts';
|
|
@@ -1130,6 +1148,8 @@ declare module 'vona-module-a-web' {
|
|
|
1130
1148
|
'test-vona:orderResult': IDtoOptionsOrderResult;
|
|
1131
1149
|
'test-vona:orderUpdate': IDtoOptionsOrderUpdate;
|
|
1132
1150
|
'test-vona:postCreate': IDtoOptionsPostCreate;
|
|
1151
|
+
'test-vona:postQuery': IDtoOptionsPostQuery;
|
|
1152
|
+
'test-vona:postQueryRes': IDtoOptionsPostQueryRes;
|
|
1133
1153
|
'test-vona:profile': IDtoOptionsProfile;
|
|
1134
1154
|
'test-vona:roleLazy': IDtoOptionsRoleLazy;
|
|
1135
1155
|
'test-vona:signin': IDtoOptionsSignin;
|
|
@@ -1148,6 +1168,8 @@ import type { DtoOrderCreate } from '../dto/orderCreate.ts';
|
|
|
1148
1168
|
import type { DtoOrderResult } from '../dto/orderResult.ts';
|
|
1149
1169
|
import type { DtoOrderUpdate } from '../dto/orderUpdate.ts';
|
|
1150
1170
|
import type { DtoPostCreate } from '../dto/postCreate.ts';
|
|
1171
|
+
import type { DtoPostQuery } from '../dto/postQuery.ts';
|
|
1172
|
+
import type { DtoPostQueryRes } from '../dto/postQueryRes.ts';
|
|
1151
1173
|
import type { DtoProfile } from '../dto/profile.ts';
|
|
1152
1174
|
import type { DtoRoleLazy } from '../dto/roleLazy.ts';
|
|
1153
1175
|
import type { DtoSignin } from '../dto/signin.ts';
|
|
@@ -1171,6 +1193,12 @@ declare module 'vona-module-test-vona' {
|
|
|
1171
1193
|
interface IDtoOptionsPostCreate {
|
|
1172
1194
|
fields?: TypeEntityOptionsFields<DtoPostCreate, IDtoOptionsPostCreate[TypeSymbolKeyFieldsMore]>;
|
|
1173
1195
|
}
|
|
1196
|
+
interface IDtoOptionsPostQuery {
|
|
1197
|
+
fields?: TypeEntityOptionsFields<DtoPostQuery, IDtoOptionsPostQuery[TypeSymbolKeyFieldsMore]>;
|
|
1198
|
+
}
|
|
1199
|
+
interface IDtoOptionsPostQueryRes {
|
|
1200
|
+
fields?: TypeEntityOptionsFields<DtoPostQueryRes, IDtoOptionsPostQueryRes[TypeSymbolKeyFieldsMore]>;
|
|
1201
|
+
}
|
|
1174
1202
|
interface IDtoOptionsProfile {
|
|
1175
1203
|
fields?: TypeEntityOptionsFields<DtoProfile, IDtoOptionsProfile[TypeSymbolKeyFieldsMore]>;
|
|
1176
1204
|
}
|
|
@@ -1204,6 +1232,7 @@ export * from '../controller/guardPassport.ts';
|
|
|
1204
1232
|
export * from '../controller/onion.ts';
|
|
1205
1233
|
export * from '../controller/passport.ts';
|
|
1206
1234
|
export * from '../controller/performAction.ts';
|
|
1235
|
+
export * from '../controller/post.ts';
|
|
1207
1236
|
export * from '../controller/queue.ts';
|
|
1208
1237
|
export * from '../controller/summer.ts';
|
|
1209
1238
|
export * from '../controller/tail.ts';
|
|
@@ -1218,6 +1247,7 @@ import type { IControllerOptionsGuardPassport } from '../controller/guardPasspor
|
|
|
1218
1247
|
import type { IControllerOptionsOnion } from '../controller/onion.ts';
|
|
1219
1248
|
import type { IControllerOptionsPassport } from '../controller/passport.ts';
|
|
1220
1249
|
import type { IControllerOptionsPerformAction } from '../controller/performAction.ts';
|
|
1250
|
+
import type { IControllerOptionsPost } from '../controller/post.ts';
|
|
1221
1251
|
import type { IControllerOptionsQueue } from '../controller/queue.ts';
|
|
1222
1252
|
import type { IControllerOptionsSummer } from '../controller/summer.ts';
|
|
1223
1253
|
import type { IControllerOptionsTail } from '../controller/tail.ts';
|
|
@@ -1235,6 +1265,7 @@ declare module 'vona-module-a-web' {
|
|
|
1235
1265
|
'test-vona:onion': IControllerOptionsOnion;
|
|
1236
1266
|
'test-vona:passport': IControllerOptionsPassport;
|
|
1237
1267
|
'test-vona:performAction': IControllerOptionsPerformAction;
|
|
1268
|
+
'test-vona:post': IControllerOptionsPost;
|
|
1238
1269
|
'test-vona:queue': IControllerOptionsQueue;
|
|
1239
1270
|
'test-vona:summer': IControllerOptionsSummer;
|
|
1240
1271
|
'test-vona:tail': IControllerOptionsTail;
|
|
@@ -1297,6 +1328,12 @@ declare module 'vona-module-test-vona' {
|
|
|
1297
1328
|
get $beanFullName(): 'test-vona.controller.performAction';
|
|
1298
1329
|
get $onionName(): 'test-vona:performAction';
|
|
1299
1330
|
}
|
|
1331
|
+
interface ControllerPost {
|
|
1332
|
+
}
|
|
1333
|
+
interface ControllerPost {
|
|
1334
|
+
get $beanFullName(): 'test-vona.controller.post';
|
|
1335
|
+
get $onionName(): 'test-vona:post';
|
|
1336
|
+
}
|
|
1300
1337
|
interface ControllerQueue {
|
|
1301
1338
|
}
|
|
1302
1339
|
interface ControllerQueue {
|
|
@@ -1339,6 +1376,7 @@ import '../controller/guardPassport.ts';
|
|
|
1339
1376
|
import '../controller/onion.ts';
|
|
1340
1377
|
import '../controller/passport.ts';
|
|
1341
1378
|
import '../controller/performAction.ts';
|
|
1379
|
+
import '../controller/post.ts';
|
|
1342
1380
|
import '../controller/queue.ts';
|
|
1343
1381
|
import '../controller/summer.ts';
|
|
1344
1382
|
import '../controller/tail.ts';
|
|
@@ -1372,6 +1410,9 @@ declare module 'vona-module-test-vona' {
|
|
|
1372
1410
|
interface IControllerOptionsPerformAction {
|
|
1373
1411
|
actions?: TypeControllerOptionsActions<ControllerPerformAction>;
|
|
1374
1412
|
}
|
|
1413
|
+
interface IControllerOptionsPost {
|
|
1414
|
+
actions?: TypeControllerOptionsActions<ControllerPost>;
|
|
1415
|
+
}
|
|
1375
1416
|
interface IControllerOptionsQueue {
|
|
1376
1417
|
actions?: TypeControllerOptionsActions<ControllerQueue>;
|
|
1377
1418
|
}
|
|
@@ -1408,6 +1449,8 @@ declare module 'vona-module-a-web' {
|
|
|
1408
1449
|
'/test/vona/onion/echo6': undefined;
|
|
1409
1450
|
'/test/vona/passport/echo/:name': undefined;
|
|
1410
1451
|
'/test/vona/passport/isAuthenticated': undefined;
|
|
1452
|
+
'/test/vona/post/findManyEcho': undefined;
|
|
1453
|
+
'/test/vona/post/findMany': undefined;
|
|
1411
1454
|
}
|
|
1412
1455
|
interface IApiPathPostRecord {
|
|
1413
1456
|
'/test/vona/cacheMem': undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { IMetaVersionUpdate, IMetaVersionUpdateOptions } from 'vona-module-a-version';
|
|
1
|
+
import type { IMetaVersionTest, IMetaVersionTestOptions, IMetaVersionUpdate, IMetaVersionUpdateOptions } from 'vona-module-a-version';
|
|
2
2
|
import { BeanBase } from 'vona';
|
|
3
|
-
export declare class MetaVersion extends BeanBase implements IMetaVersionUpdate {
|
|
3
|
+
export declare class MetaVersion extends BeanBase implements IMetaVersionUpdate, IMetaVersionTest {
|
|
4
4
|
update(options: IMetaVersionUpdateOptions): Promise<void>;
|
|
5
|
+
test(_options: IMetaVersionTestOptions): Promise<void>;
|
|
5
6
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { IQueryParams } from 'vona-module-a-orm';
|
|
2
|
+
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
3
|
+
import type { ModelPost } from '../model/post.ts';
|
|
4
|
+
import { BeanBase } from 'vona';
|
|
5
|
+
export interface IControllerOptionsPost extends IDecoratorControllerOptions {
|
|
6
|
+
}
|
|
7
|
+
export declare class ControllerPost extends BeanBase {
|
|
8
|
+
findManyEcho(params: IQueryParams<ModelPost>): IQueryParams<ModelPost>;
|
|
9
|
+
findMany(params: IQueryParams<ModelPost>): Promise<import("vona-module-a-orm").TypeModelSelectAndCount<import("vona-module-test-vona").EntityPost, ModelPost, {
|
|
10
|
+
include: {
|
|
11
|
+
postContent: true;
|
|
12
|
+
};
|
|
13
|
+
with?: Record<string, unknown>;
|
|
14
|
+
distinct?: boolean | keyof import("vona-module-test-vona").EntityPost | (keyof import("vona-module-test-vona").EntityPost)[] | undefined;
|
|
15
|
+
columns?: "iid" | "id" | "createdAt" | "updatedAt" | "deleted" | "*" | "title" | "userId" | "stars" | ("iid" | "id" | "createdAt" | "updatedAt" | "deleted" | "*" | "title" | "userId" | "stars")[] | undefined;
|
|
16
|
+
where?: import("vona-module-a-orm").TypeModelWhereInner<{
|
|
17
|
+
"testVonaPostContent.content": string;
|
|
18
|
+
"testVonaPostContent.postId": import("vona-module-a-orm").TableIdentity;
|
|
19
|
+
"testVonaPostContent.id": import("vona-module-a-orm").TableIdentity;
|
|
20
|
+
"testVonaPostContent.createdAt": Date;
|
|
21
|
+
"testVonaPostContent.updatedAt": Date;
|
|
22
|
+
"testVonaPostContent.deleted": boolean;
|
|
23
|
+
"testVonaPostContent.iid": number;
|
|
24
|
+
} & {
|
|
25
|
+
"testVonaPost.title": string;
|
|
26
|
+
"testVonaPost.userId": import("vona-module-a-orm").TableIdentity;
|
|
27
|
+
"testVonaPost.stars"?: number | undefined;
|
|
28
|
+
"testVonaPost.id": import("vona-module-a-orm").TableIdentity;
|
|
29
|
+
"testVonaPost.createdAt": Date;
|
|
30
|
+
"testVonaPost.updatedAt": Date;
|
|
31
|
+
"testVonaPost.deleted": boolean;
|
|
32
|
+
"testVonaPost.iid": number;
|
|
33
|
+
} & import("vona-module-test-vona").EntityPost> | import("vona-module-a-orm").TypeModelWhereInner<{
|
|
34
|
+
"testVonaUser.name": string;
|
|
35
|
+
"testVonaUser.age"?: number | undefined;
|
|
36
|
+
"testVonaUser.scores"?: number | undefined;
|
|
37
|
+
"testVonaUser.id": import("vona-module-a-orm").TableIdentity;
|
|
38
|
+
"testVonaUser.createdAt": Date;
|
|
39
|
+
"testVonaUser.updatedAt": Date;
|
|
40
|
+
"testVonaUser.deleted": boolean;
|
|
41
|
+
"testVonaUser.iid": number;
|
|
42
|
+
} & {
|
|
43
|
+
"testVonaPost.title": string;
|
|
44
|
+
"testVonaPost.userId": import("vona-module-a-orm").TableIdentity;
|
|
45
|
+
"testVonaPost.stars"?: number | undefined;
|
|
46
|
+
"testVonaPost.id": import("vona-module-a-orm").TableIdentity;
|
|
47
|
+
"testVonaPost.createdAt": Date;
|
|
48
|
+
"testVonaPost.updatedAt": Date;
|
|
49
|
+
"testVonaPost.deleted": boolean;
|
|
50
|
+
"testVonaPost.iid": number;
|
|
51
|
+
} & import("vona-module-test-vona").EntityPost> | undefined;
|
|
52
|
+
joins?: import("vona-module-a-orm").IModelSelectParamsJoin<import("vona-module-test-vona").EntityPost, import("vona").TypeRecordValues<{
|
|
53
|
+
postContent: "testVonaPostContent";
|
|
54
|
+
user: "testVonaUser";
|
|
55
|
+
}>, import("vona-module-a-orm").TypeEntityTableColumnNamesOfModelSelf<ModelPost> | import("vona").TypeRecordValues<{
|
|
56
|
+
postContent: "testVonaPostContent.content" | "testVonaPostContent.postId" | "testVonaPostContent.id" | "testVonaPostContent.createdAt" | "testVonaPostContent.updatedAt" | "testVonaPostContent.deleted" | "testVonaPostContent.iid";
|
|
57
|
+
user: "testVonaUser.name" | "testVonaUser.age" | "testVonaUser.scores" | "testVonaUser.id" | "testVonaUser.createdAt" | "testVonaUser.updatedAt" | "testVonaUser.deleted" | "testVonaUser.iid";
|
|
58
|
+
}>>[] | undefined;
|
|
59
|
+
orders?: import("vona-module-a-orm").IModelSelectParamsOrder<import("vona-module-a-orm").TypeEntityTableColumnNamesOfModelSelf<ModelPost> | import("vona").TypeRecordValues<{
|
|
60
|
+
postContent: "testVonaPostContent.content" | "testVonaPostContent.postId" | "testVonaPostContent.id" | "testVonaPostContent.createdAt" | "testVonaPostContent.updatedAt" | "testVonaPostContent.deleted" | "testVonaPostContent.iid";
|
|
61
|
+
user: "testVonaUser.name" | "testVonaUser.age" | "testVonaUser.scores" | "testVonaUser.id" | "testVonaUser.createdAt" | "testVonaUser.updatedAt" | "testVonaUser.deleted" | "testVonaUser.iid";
|
|
62
|
+
}>>[] | undefined;
|
|
63
|
+
limit?: number;
|
|
64
|
+
offset?: number;
|
|
65
|
+
}, undefined, undefined, undefined, 50>>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import { EntityPost } from '../entity/post.ts';
|
|
3
|
+
export interface IDtoOptionsPostQuery extends IDecoratorDtoOptions {
|
|
4
|
+
}
|
|
5
|
+
declare const DtoPostQuery_base: new (...args: any[]) => import("vona-module-a-orm").DtoQueryPageBase & Partial<Pick<EntityPost, "title">>;
|
|
6
|
+
export declare class DtoPostQuery extends DtoPostQuery_base {
|
|
7
|
+
userName?: string;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import { ModelPost } from '../model/post.ts';
|
|
3
|
+
export interface IDtoOptionsPostQueryRes extends IDecoratorDtoOptions {
|
|
4
|
+
}
|
|
5
|
+
declare const DtoPostQueryRes_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoSelectAndCountResult<ModelPost, {
|
|
6
|
+
include: {
|
|
7
|
+
postContent: true;
|
|
8
|
+
};
|
|
9
|
+
}>>;
|
|
10
|
+
export declare class DtoPostQueryRes extends DtoPostQueryRes_base {
|
|
11
|
+
}
|
|
12
|
+
export {};
|