vona-module-test-vona 5.0.43 → 5.0.45
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 +32 -0
- package/dist/controller/captcha.d.ts +8 -0
- package/dist/dto/signin.d.ts +7 -0
- package/dist/index.js +615 -432
- package/dist/service/category.d.ts +1 -0
- package/dist/service/post.d.ts +24 -10
- package/dist/service/product.d.ts +3 -0
- package/dist/service/user.d.ts +13 -0
- package/package.json +1 -1
- package/src/.metadata/index.ts +43 -0
- package/src/controller/captcha.ts +18 -0
- package/src/dto/signin.ts +14 -0
- package/src/service/category.ts +88 -0
- package/src/service/order.ts +14 -10
- package/src/service/post.ts +53 -14
- package/src/service/product.ts +6 -0
- package/src/service/user.ts +39 -8
- package/test/captcha.test.ts +80 -0
|
@@ -738,6 +738,7 @@ export * from '../service/caching.ts';
|
|
|
738
738
|
export * from '../service/category.ts';
|
|
739
739
|
export * from '../service/order.ts';
|
|
740
740
|
export * from '../service/post.ts';
|
|
741
|
+
export * from '../service/product.ts';
|
|
741
742
|
export * from '../service/test.ts';
|
|
742
743
|
export * from '../service/testApp.ts';
|
|
743
744
|
export * from '../service/testClass.ts';
|
|
@@ -752,6 +753,7 @@ declare module 'vona-module-a-bean' {
|
|
|
752
753
|
'test-vona:category': never;
|
|
753
754
|
'test-vona:order': never;
|
|
754
755
|
'test-vona:post': never;
|
|
756
|
+
'test-vona:product': never;
|
|
755
757
|
'test-vona:test': never;
|
|
756
758
|
'test-vona:testApp': never;
|
|
757
759
|
'test-vona:testClass': never;
|
|
@@ -791,6 +793,12 @@ declare module 'vona-module-test-vona' {
|
|
|
791
793
|
get $beanFullName(): 'test-vona.service.post';
|
|
792
794
|
get $onionName(): 'test-vona:post';
|
|
793
795
|
}
|
|
796
|
+
interface ServiceProduct {
|
|
797
|
+
}
|
|
798
|
+
interface ServiceProduct {
|
|
799
|
+
get $beanFullName(): 'test-vona.service.product';
|
|
800
|
+
get $onionName(): 'test-vona:product';
|
|
801
|
+
}
|
|
794
802
|
interface ServiceTest {
|
|
795
803
|
}
|
|
796
804
|
interface ServiceTest {
|
|
@@ -835,6 +843,7 @@ import type { ServiceCaching } from '../service/caching.ts';
|
|
|
835
843
|
import type { ServiceCategory } from '../service/category.ts';
|
|
836
844
|
import type { ServiceOrder } from '../service/order.ts';
|
|
837
845
|
import type { ServicePost } from '../service/post.ts';
|
|
846
|
+
import type { ServiceProduct } from '../service/product.ts';
|
|
838
847
|
import type { ServiceTest } from '../service/test.ts';
|
|
839
848
|
import type { ServiceTestApp } from '../service/testApp.ts';
|
|
840
849
|
import type { ServiceTestClass } from '../service/testClass.ts';
|
|
@@ -847,6 +856,7 @@ export interface IModuleService {
|
|
|
847
856
|
'category': ServiceCategory;
|
|
848
857
|
'order': ServiceOrder;
|
|
849
858
|
'post': ServicePost;
|
|
859
|
+
'product': ServiceProduct;
|
|
850
860
|
'test': ServiceTest;
|
|
851
861
|
'testApp': ServiceTestApp;
|
|
852
862
|
'testClass': ServiceTestClass;
|
|
@@ -864,6 +874,7 @@ declare module 'vona' {
|
|
|
864
874
|
'test-vona.service.category': ServiceCategory;
|
|
865
875
|
'test-vona.service.order': ServiceOrder;
|
|
866
876
|
'test-vona.service.post': ServicePost;
|
|
877
|
+
'test-vona.service.product': ServiceProduct;
|
|
867
878
|
'test-vona.service.test': ServiceTest;
|
|
868
879
|
'test-vona.service.testApp': ServiceTestApp;
|
|
869
880
|
'test-vona.service.testClass': ServiceTestClass;
|
|
@@ -1094,6 +1105,7 @@ export * from '../dto/orderUpdate.ts';
|
|
|
1094
1105
|
export * from '../dto/postCreate.ts';
|
|
1095
1106
|
export * from '../dto/profile.ts';
|
|
1096
1107
|
export * from '../dto/roleLazy.ts';
|
|
1108
|
+
export * from '../dto/signin.ts';
|
|
1097
1109
|
export * from '../dto/user.ts';
|
|
1098
1110
|
export * from '../dto/userCreate.ts';
|
|
1099
1111
|
export * from '../dto/userLazy.ts';
|
|
@@ -1105,6 +1117,7 @@ import type { IDtoOptionsOrderUpdate } from '../dto/orderUpdate.ts';
|
|
|
1105
1117
|
import type { IDtoOptionsPostCreate } from '../dto/postCreate.ts';
|
|
1106
1118
|
import type { IDtoOptionsProfile } from '../dto/profile.ts';
|
|
1107
1119
|
import type { IDtoOptionsRoleLazy } from '../dto/roleLazy.ts';
|
|
1120
|
+
import type { IDtoOptionsSignin } from '../dto/signin.ts';
|
|
1108
1121
|
import type { IDtoOptionsUser } from '../dto/user.ts';
|
|
1109
1122
|
import type { IDtoOptionsUserCreate } from '../dto/userCreate.ts';
|
|
1110
1123
|
import type { IDtoOptionsUserLazy } from '../dto/userLazy.ts';
|
|
@@ -1119,6 +1132,7 @@ declare module 'vona-module-a-web' {
|
|
|
1119
1132
|
'test-vona:postCreate': IDtoOptionsPostCreate;
|
|
1120
1133
|
'test-vona:profile': IDtoOptionsProfile;
|
|
1121
1134
|
'test-vona:roleLazy': IDtoOptionsRoleLazy;
|
|
1135
|
+
'test-vona:signin': IDtoOptionsSignin;
|
|
1122
1136
|
'test-vona:user': IDtoOptionsUser;
|
|
1123
1137
|
'test-vona:userCreate': IDtoOptionsUserCreate;
|
|
1124
1138
|
'test-vona:userLazy': IDtoOptionsUserLazy;
|
|
@@ -1136,6 +1150,7 @@ import type { DtoOrderUpdate } from '../dto/orderUpdate.ts';
|
|
|
1136
1150
|
import type { DtoPostCreate } from '../dto/postCreate.ts';
|
|
1137
1151
|
import type { DtoProfile } from '../dto/profile.ts';
|
|
1138
1152
|
import type { DtoRoleLazy } from '../dto/roleLazy.ts';
|
|
1153
|
+
import type { DtoSignin } from '../dto/signin.ts';
|
|
1139
1154
|
import type { DtoUser } from '../dto/user.ts';
|
|
1140
1155
|
import type { DtoUserCreate } from '../dto/userCreate.ts';
|
|
1141
1156
|
import type { DtoUserLazy } from '../dto/userLazy.ts';
|
|
@@ -1162,6 +1177,9 @@ declare module 'vona-module-test-vona' {
|
|
|
1162
1177
|
interface IDtoOptionsRoleLazy {
|
|
1163
1178
|
fields?: TypeEntityOptionsFields<DtoRoleLazy, IDtoOptionsRoleLazy[TypeSymbolKeyFieldsMore]>;
|
|
1164
1179
|
}
|
|
1180
|
+
interface IDtoOptionsSignin {
|
|
1181
|
+
fields?: TypeEntityOptionsFields<DtoSignin, IDtoOptionsSignin[TypeSymbolKeyFieldsMore]>;
|
|
1182
|
+
}
|
|
1165
1183
|
interface IDtoOptionsUser {
|
|
1166
1184
|
fields?: TypeEntityOptionsFields<DtoUser, IDtoOptionsUser[TypeSymbolKeyFieldsMore]>;
|
|
1167
1185
|
}
|
|
@@ -1180,6 +1198,7 @@ declare module 'vona-module-test-vona' {
|
|
|
1180
1198
|
export * from '../controller/bean.ts';
|
|
1181
1199
|
export * from '../controller/cacheMem.ts';
|
|
1182
1200
|
export * from '../controller/cacheRedis.ts';
|
|
1201
|
+
export * from '../controller/captcha.ts';
|
|
1183
1202
|
export * from '../controller/dtoTest.ts';
|
|
1184
1203
|
export * from '../controller/guardPassport.ts';
|
|
1185
1204
|
export * from '../controller/onion.ts';
|
|
@@ -1193,6 +1212,7 @@ export * from '../controller/upload.ts';
|
|
|
1193
1212
|
import type { IControllerOptionsBean } from '../controller/bean.ts';
|
|
1194
1213
|
import type { IControllerOptionsCacheMem } from '../controller/cacheMem.ts';
|
|
1195
1214
|
import type { IControllerOptionsCacheRedis } from '../controller/cacheRedis.ts';
|
|
1215
|
+
import type { IControllerOptionsCaptcha } from '../controller/captcha.ts';
|
|
1196
1216
|
import type { IControllerOptionsDtoTest } from '../controller/dtoTest.ts';
|
|
1197
1217
|
import type { IControllerOptionsGuardPassport } from '../controller/guardPassport.ts';
|
|
1198
1218
|
import type { IControllerOptionsOnion } from '../controller/onion.ts';
|
|
@@ -1209,6 +1229,7 @@ declare module 'vona-module-a-web' {
|
|
|
1209
1229
|
'test-vona:bean': IControllerOptionsBean;
|
|
1210
1230
|
'test-vona:cacheMem': IControllerOptionsCacheMem;
|
|
1211
1231
|
'test-vona:cacheRedis': IControllerOptionsCacheRedis;
|
|
1232
|
+
'test-vona:captcha': IControllerOptionsCaptcha;
|
|
1212
1233
|
'test-vona:dtoTest': IControllerOptionsDtoTest;
|
|
1213
1234
|
'test-vona:guardPassport': IControllerOptionsGuardPassport;
|
|
1214
1235
|
'test-vona:onion': IControllerOptionsOnion;
|
|
@@ -1240,6 +1261,12 @@ declare module 'vona-module-test-vona' {
|
|
|
1240
1261
|
get $beanFullName(): 'test-vona.controller.cacheRedis';
|
|
1241
1262
|
get $onionName(): 'test-vona:cacheRedis';
|
|
1242
1263
|
}
|
|
1264
|
+
interface ControllerCaptcha {
|
|
1265
|
+
}
|
|
1266
|
+
interface ControllerCaptcha {
|
|
1267
|
+
get $beanFullName(): 'test-vona.controller.captcha';
|
|
1268
|
+
get $onionName(): 'test-vona:captcha';
|
|
1269
|
+
}
|
|
1243
1270
|
interface ControllerDtoTest {
|
|
1244
1271
|
}
|
|
1245
1272
|
interface ControllerDtoTest {
|
|
@@ -1306,6 +1333,7 @@ declare module 'vona-module-test-vona' {
|
|
|
1306
1333
|
import '../controller/bean.ts';
|
|
1307
1334
|
import '../controller/cacheMem.ts';
|
|
1308
1335
|
import '../controller/cacheRedis.ts';
|
|
1336
|
+
import '../controller/captcha.ts';
|
|
1309
1337
|
import '../controller/dtoTest.ts';
|
|
1310
1338
|
import '../controller/guardPassport.ts';
|
|
1311
1339
|
import '../controller/onion.ts';
|
|
@@ -1326,6 +1354,9 @@ declare module 'vona-module-test-vona' {
|
|
|
1326
1354
|
interface IControllerOptionsCacheRedis {
|
|
1327
1355
|
actions?: TypeControllerOptionsActions<ControllerCacheRedis>;
|
|
1328
1356
|
}
|
|
1357
|
+
interface IControllerOptionsCaptcha {
|
|
1358
|
+
actions?: TypeControllerOptionsActions<ControllerCaptcha>;
|
|
1359
|
+
}
|
|
1329
1360
|
interface IControllerOptionsDtoTest {
|
|
1330
1361
|
actions?: TypeControllerOptionsActions<ControllerDtoTest>;
|
|
1331
1362
|
}
|
|
@@ -1381,6 +1412,7 @@ declare module 'vona-module-a-web' {
|
|
|
1381
1412
|
interface IApiPathPostRecord {
|
|
1382
1413
|
'/test/vona/cacheMem': undefined;
|
|
1383
1414
|
'/test/vona/cacheRedis': undefined;
|
|
1415
|
+
'/test/vona/captcha/signin': undefined;
|
|
1384
1416
|
'/test/vona/dtoTest/createUser': undefined;
|
|
1385
1417
|
'//echo': undefined;
|
|
1386
1418
|
'/test/vona/onion/echo2/:userId/:userName': undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
+
import { BeanBase } from 'vona';
|
|
3
|
+
import { DtoSignin } from '../dto/signin.ts';
|
|
4
|
+
export interface IControllerOptionsCaptcha extends IDecoratorControllerOptions {
|
|
5
|
+
}
|
|
6
|
+
export declare class ControllerCaptcha extends BeanBase {
|
|
7
|
+
signin(_user: DtoSignin): Promise<void>;
|
|
8
|
+
}
|