vona-module-test-vona 5.0.38 → 5.0.41
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 +22 -1
- package/dist/bean/cacheRedis.post.d.ts +7 -0
- package/dist/index.js +499 -268
- package/dist/service/order.d.ts +4 -0
- package/dist/service/post.d.ts +20 -0
- package/package.json +4 -2
- package/src/.metadata/index.ts +1741 -0
- package/src/.metadata/this.ts +2 -0
- package/src/bean/aop.regExp.ts +30 -0
- package/src/bean/aop.simple.ts +58 -0
- package/src/bean/aopMethod.test.ts +42 -0
- package/src/bean/bean.testCtx.ts +55 -0
- package/src/bean/broadcast.test.ts +22 -0
- package/src/bean/cacheMem.test.ts +7 -0
- package/src/bean/cacheRedis.post.ts +10 -0
- package/src/bean/cacheRedis.test.ts +7 -0
- package/src/bean/event.helloEcho.ts +8 -0
- package/src/bean/eventListener.helloEcho.ts +21 -0
- package/src/bean/meta.version.ts +81 -0
- package/src/bean/queue.test.ts +18 -0
- package/src/bean/schedule.test.ts +12 -0
- package/src/bean/schedule.test3.ts +12 -0
- package/src/bean/summerCache.test.ts +29 -0
- package/src/config/config.ts +5 -0
- package/src/config/locale/en-us.ts +19 -0
- package/src/config/locale/zh-cn.ts +17 -0
- package/src/controller/bean.ts +95 -0
- package/src/controller/cacheMem.ts +63 -0
- package/src/controller/cacheRedis.ts +55 -0
- package/src/controller/dtoTest.ts +63 -0
- package/src/controller/guardPassport.ts +25 -0
- package/src/controller/onion.ts +92 -0
- package/src/controller/passport.ts +48 -0
- package/src/controller/performAction.ts +18 -0
- package/src/controller/queue.ts +25 -0
- package/src/controller/summer.ts +125 -0
- package/src/controller/tail.ts +32 -0
- package/src/controller/transaction.ts +29 -0
- package/src/controller/upload.ts +57 -0
- package/src/dto/categoryTree.ts +8 -0
- package/src/dto/orderCreate.ts +10 -0
- package/src/dto/orderResult.ts +9 -0
- package/src/dto/orderUpdate.ts +9 -0
- package/src/dto/postCreate.ts +9 -0
- package/src/dto/profile.ts +14 -0
- package/src/dto/roleLazy.ts +15 -0
- package/src/dto/user.ts +19 -0
- package/src/dto/userCreate.ts +8 -0
- package/src/dto/userLazy.ts +18 -0
- package/src/dto/userUpdate.ts +8 -0
- package/src/entity/category.ts +14 -0
- package/src/entity/order.ts +18 -0
- package/src/entity/post.ts +17 -0
- package/src/entity/postContent.ts +14 -0
- package/src/entity/product.ts +24 -0
- package/src/entity/role.ts +11 -0
- package/src/entity/roleUser.ts +14 -0
- package/src/entity/test.ts +18 -0
- package/src/entity/user.ts +17 -0
- package/src/index.ts +1 -0
- package/src/model/category.ts +17 -0
- package/src/model/categoryChain.ts +16 -0
- package/src/model/order.ts +26 -0
- package/src/model/orderStats.ts +27 -0
- package/src/model/post.ts +16 -0
- package/src/model/postContent.ts +17 -0
- package/src/model/product.ts +8 -0
- package/src/model/role.ts +15 -0
- package/src/model/roleUser.ts +8 -0
- package/src/model/test.ts +8 -0
- package/src/model/testDynamicTable.ts +21 -0
- package/src/model/user.ts +21 -0
- package/src/model/userStats.ts +15 -0
- package/src/model/userStatsGroup.ts +15 -0
- package/src/service/aopMethod.ts +38 -0
- package/src/service/caching.ts +75 -0
- package/src/service/order.ts +65 -0
- package/src/service/post.ts +219 -0
- package/src/service/test.ts +9 -0
- package/src/service/testApp.ts +13 -0
- package/src/service/testClass.ts +15 -0
- package/src/service/testData.ts +67 -0
- package/src/service/transaction.ts +20 -0
- package/test/aopMethod.test.ts +21 -0
- package/test/authSimple.test.ts +45 -0
- package/test/bean.test.ts +16 -0
- package/test/broadcast.test.ts +17 -0
- package/test/cache/cacheMem.test.ts +10 -0
- package/test/cache/cacheRedis.test.ts +10 -0
- package/test/cache/caching.test.ts +58 -0
- package/test/cache/summer.test.ts +10 -0
- package/test/database/database.test.ts +127 -0
- package/test/database/dtoAggregate.test.ts +44 -0
- package/test/database/dtoGet.test.ts +61 -0
- package/test/database/dtoGroup.test.ts +44 -0
- package/test/database/dtoLazy.test.ts +45 -0
- package/test/database/dtoMutate.test.ts +56 -0
- package/test/database/modelAggregate.test.ts +197 -0
- package/test/database/modelCache.test.ts +37 -0
- package/test/database/modelGeneral.test.ts +18 -0
- package/test/database/modelGroup.test.ts +211 -0
- package/test/database/modelRelations.test.ts +203 -0
- package/test/database/modelRelationsJoins.test.ts +39 -0
- package/test/database/modelRelationsMutate.test.ts +354 -0
- package/test/database/modelWhere.test.ts +138 -0
- package/test/database/orm.test.ts +22 -0
- package/test/database/transaction.test.ts +142 -0
- package/test/event.test.ts +14 -0
- package/test/guardPassport.test.ts +44 -0
- package/test/jwt.test.ts +27 -0
- package/test/locale.test.ts +51 -0
- package/test/passport.test.ts +57 -0
- package/test/queue.test.ts +11 -0
- package/test/tail.test.ts +21 -0
- package/test/upload.test.ts +58 -0
- package/test/utils/cabloyUtils.test.ts +22 -0
- package/test/utils/celjs.test.ts +26 -0
- package/test/utils/mappedTypes.test.ts +65 -0
- package/test/utils/performAction.test.ts +28 -0
|
@@ -385,7 +385,7 @@ declare module 'vona-module-test-vona' {
|
|
|
385
385
|
}
|
|
386
386
|
interface IModelOptionsPost {
|
|
387
387
|
relations: {
|
|
388
|
-
postContent: IModelRelationHasOne<
|
|
388
|
+
postContent: IModelRelationHasOne<ModelPostContent, false, 'id' | 'content'>;
|
|
389
389
|
user: IModelRelationBelongsTo<ModelPost, ModelUser, true, 'id' | 'name'>;
|
|
390
390
|
};
|
|
391
391
|
}
|
|
@@ -735,6 +735,7 @@ declare module 'vona' {
|
|
|
735
735
|
/** service: begin */
|
|
736
736
|
export * from '../service/aopMethod.ts';
|
|
737
737
|
export * from '../service/caching.ts';
|
|
738
|
+
export * from '../service/order.ts';
|
|
738
739
|
export * from '../service/post.ts';
|
|
739
740
|
export * from '../service/test.ts';
|
|
740
741
|
export * from '../service/testApp.ts';
|
|
@@ -746,6 +747,7 @@ declare module 'vona-module-a-bean' {
|
|
|
746
747
|
interface IServiceRecord {
|
|
747
748
|
'test-vona:aopMethod': never;
|
|
748
749
|
'test-vona:caching': never;
|
|
750
|
+
'test-vona:order': never;
|
|
749
751
|
'test-vona:post': never;
|
|
750
752
|
'test-vona:test': never;
|
|
751
753
|
'test-vona:testApp': never;
|
|
@@ -767,6 +769,12 @@ declare module 'vona-module-test-vona' {
|
|
|
767
769
|
get $beanFullName(): 'test-vona.service.caching';
|
|
768
770
|
get $onionName(): 'test-vona:caching';
|
|
769
771
|
}
|
|
772
|
+
interface ServiceOrder {
|
|
773
|
+
}
|
|
774
|
+
interface ServiceOrder {
|
|
775
|
+
get $beanFullName(): 'test-vona.service.order';
|
|
776
|
+
get $onionName(): 'test-vona:order';
|
|
777
|
+
}
|
|
770
778
|
interface ServicePost {
|
|
771
779
|
}
|
|
772
780
|
interface ServicePost {
|
|
@@ -808,6 +816,7 @@ declare module 'vona-module-test-vona' {
|
|
|
808
816
|
/** service: begin */
|
|
809
817
|
import type { ServiceAopMethod } from '../service/aopMethod.ts';
|
|
810
818
|
import type { ServiceCaching } from '../service/caching.ts';
|
|
819
|
+
import type { ServiceOrder } from '../service/order.ts';
|
|
811
820
|
import type { ServicePost } from '../service/post.ts';
|
|
812
821
|
import type { ServiceTest } from '../service/test.ts';
|
|
813
822
|
import type { ServiceTestApp } from '../service/testApp.ts';
|
|
@@ -817,6 +826,7 @@ import type { ServiceTransaction } from '../service/transaction.ts';
|
|
|
817
826
|
export interface IModuleService {
|
|
818
827
|
'aopMethod': ServiceAopMethod;
|
|
819
828
|
'caching': ServiceCaching;
|
|
829
|
+
'order': ServiceOrder;
|
|
820
830
|
'post': ServicePost;
|
|
821
831
|
'test': ServiceTest;
|
|
822
832
|
'testApp': ServiceTestApp;
|
|
@@ -831,6 +841,7 @@ declare module 'vona' {
|
|
|
831
841
|
interface IBeanRecordGeneral {
|
|
832
842
|
'test-vona.service.aopMethod': ServiceAopMethod;
|
|
833
843
|
'test-vona.service.caching': ServiceCaching;
|
|
844
|
+
'test-vona.service.order': ServiceOrder;
|
|
834
845
|
'test-vona.service.post': ServicePost;
|
|
835
846
|
'test-vona.service.test': ServiceTest;
|
|
836
847
|
'test-vona.service.testApp': ServiceTestApp;
|
|
@@ -887,14 +898,22 @@ export interface IModuleCacheMem {
|
|
|
887
898
|
}
|
|
888
899
|
/** cacheMem: end */
|
|
889
900
|
/** cacheRedis: begin */
|
|
901
|
+
export * from '../bean/cacheRedis.post.ts';
|
|
890
902
|
export * from '../bean/cacheRedis.test.ts';
|
|
891
903
|
import { type IDecoratorCacheRedisOptions } from 'vona-module-a-cache';
|
|
892
904
|
declare module 'vona-module-a-cache' {
|
|
893
905
|
interface ICacheRedisRecord {
|
|
906
|
+
'test-vona:post': IDecoratorCacheRedisOptions;
|
|
894
907
|
'test-vona:test': IDecoratorCacheRedisOptions;
|
|
895
908
|
}
|
|
896
909
|
}
|
|
897
910
|
declare module 'vona-module-test-vona' {
|
|
911
|
+
interface CacheRedisPost {
|
|
912
|
+
}
|
|
913
|
+
interface CacheRedisPost {
|
|
914
|
+
get $beanFullName(): 'test-vona.cacheRedis.post';
|
|
915
|
+
get $onionName(): 'test-vona:post';
|
|
916
|
+
}
|
|
898
917
|
interface CacheRedisTest {
|
|
899
918
|
}
|
|
900
919
|
interface CacheRedisTest {
|
|
@@ -904,8 +923,10 @@ declare module 'vona-module-test-vona' {
|
|
|
904
923
|
}
|
|
905
924
|
/** cacheRedis: end */
|
|
906
925
|
/** cacheRedis: begin */
|
|
926
|
+
import type { CacheRedisPost } from '../bean/cacheRedis.post.ts';
|
|
907
927
|
import type { CacheRedisTest } from '../bean/cacheRedis.test.ts';
|
|
908
928
|
export interface IModuleCacheRedis {
|
|
929
|
+
'post': CacheRedisPost;
|
|
909
930
|
'test': CacheRedisTest;
|
|
910
931
|
}
|
|
911
932
|
/** cacheRedis: end */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
2
|
+
import type { EntityPost } from '../entity/post.ts';
|
|
3
|
+
import { BeanCacheRedisBase } from 'vona-module-a-cache';
|
|
4
|
+
export type TCacheRedisPostKey = TableIdentity;
|
|
5
|
+
export type TCacheRedisPostData = Partial<EntityPost>;
|
|
6
|
+
export declare class CacheRedisPost extends BeanCacheRedisBase<TCacheRedisPostKey, TCacheRedisPostData> {
|
|
7
|
+
}
|