vona-module-test-vona 5.0.11 → 5.0.13
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 +551 -0
- package/dist/.metadata/index.js +109 -0
- package/dist/.metadata/this.d.ts +2 -0
- package/dist/.metadata/this.js +2 -0
- package/dist/bean/aop.regExp.d.ts +7 -0
- package/dist/bean/aop.regExp.js +35 -0
- package/dist/bean/aop.simple.d.ts +14 -0
- package/dist/bean/aop.simple.js +59 -0
- package/dist/bean/aopMethod.test.d.ts +13 -0
- package/dist/bean/aopMethod.test.js +42 -0
- package/dist/bean/bean.testCtx.d.ts +21 -0
- package/dist/bean/bean.testCtx.js +54 -0
- package/dist/bean/broadcast.test.d.ts +8 -0
- package/dist/bean/broadcast.test.js +23 -0
- package/dist/bean/cacheMem.test.d.ts +5 -0
- package/dist/bean/cacheMem.test.js +13 -0
- package/dist/bean/cacheRedis.test.d.ts +5 -0
- package/dist/bean/cacheRedis.test.js +13 -0
- package/dist/bean/event.helloEcho.d.ts +7 -0
- package/dist/bean/event.helloEcho.js +13 -0
- package/dist/bean/eventListener.helloEcho.d.ts +9 -0
- package/dist/bean/eventListener.helloEcho.js +19 -0
- package/dist/bean/meta.version.d.ts +5 -0
- package/dist/bean/meta.version.js +25 -0
- package/dist/bean/queue.test.d.ts +10 -0
- package/dist/bean/queue.test.js +16 -0
- package/dist/bean/schedule.test.d.ts +5 -0
- package/dist/bean/schedule.test.js +17 -0
- package/dist/bean/schedule.test3.d.ts +5 -0
- package/dist/bean/schedule.test3.js +17 -0
- package/dist/bean/summerCache.test.d.ts +12 -0
- package/dist/bean/summerCache.test.js +28 -0
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.js +3 -0
- package/dist/config/locale/en-us.d.ts +12 -0
- package/dist/config/locale/en-us.js +11 -0
- package/dist/config/locale/zh-cn.d.ts +10 -0
- package/dist/config/locale/zh-cn.js +9 -0
- package/dist/controller/bean.d.ts +8 -0
- package/dist/controller/bean.js +93 -0
- package/dist/controller/cacheMem.d.ts +7 -0
- package/dist/controller/cacheMem.js +60 -0
- package/dist/controller/cacheRedis.d.ts +7 -0
- package/dist/controller/cacheRedis.js +60 -0
- package/dist/controller/onion.d.ts +15 -0
- package/dist/controller/onion.js +132 -0
- package/dist/controller/passport.d.ts +16 -0
- package/dist/controller/passport.js +82 -0
- package/dist/controller/performAction.d.ts +10 -0
- package/dist/controller/performAction.js +35 -0
- package/dist/controller/queue.d.ts +8 -0
- package/dist/controller/queue.js +42 -0
- package/dist/controller/summer.d.ts +7 -0
- package/dist/controller/summer.js +120 -0
- package/dist/controller/tail.d.ts +7 -0
- package/dist/controller/tail.js +43 -0
- package/dist/controller/transaction.d.ts +8 -0
- package/dist/controller/transaction.js +51 -0
- package/dist/controller/upload.d.ts +10 -0
- package/dist/controller/upload.js +80 -0
- package/dist/dto/profile.d.ts +7 -0
- package/dist/dto/profile.js +27 -0
- package/dist/dto/user.d.ts +10 -0
- package/dist/dto/user.js +33 -0
- package/dist/entity/test.d.ts +8 -0
- package/dist/entity/test.js +27 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/model/test.d.ts +4 -0
- package/dist/model/test.js +14 -0
- package/dist/service/aopMethod.d.ts +12 -0
- package/dist/service/aopMethod.js +63 -0
- package/dist/service/test.d.ts +4 -0
- package/dist/service/test.js +17 -0
- package/dist/service/testApp.d.ts +5 -0
- package/dist/service/testApp.js +20 -0
- package/dist/service/testClass.d.ts +8 -0
- package/dist/service/testClass.js +22 -0
- package/dist/service/transaction.d.ts +5 -0
- package/dist/service/transaction.js +39 -0
- package/package.json +7 -3
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
import type { BeanScopeUtil, TypeLocaleBase, TypeModuleConfig, TypeModuleLocales } from 'vona';
|
|
2
|
+
import type { IDecoratorAopOptions } from 'vona-module-a-aspect';
|
|
3
|
+
import type { IDecoratorBroadcastOptions } from 'vona-module-a-broadcast';
|
|
4
|
+
import type { IDecoratorCacheMemOptions } from 'vona-module-a-cache';
|
|
5
|
+
import type { IDecoratorCacheRedisOptions } from 'vona-module-a-cache';
|
|
6
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-database';
|
|
7
|
+
import type { EventOn } from 'vona-module-a-event';
|
|
8
|
+
import type { IDecoratorEventListenerOptions } from 'vona-module-a-event';
|
|
9
|
+
import type { TypeControllerOptionsActions } from 'vona-module-a-openapi';
|
|
10
|
+
import type { TypeEntityOptionsFields } from 'vona-module-a-openapi';
|
|
11
|
+
import type { IDecoratorQueueOptions } from 'vona-module-a-queue';
|
|
12
|
+
import type { IDecoratorScheduleOptions } from 'vona-module-a-schedule';
|
|
13
|
+
import type { IDecoratorSummerCacheOptions } from 'vona-module-a-summer';
|
|
14
|
+
import type { IAopMethodOptionsTest } from '../bean/aopMethod.test.ts';
|
|
15
|
+
/** bean: end */
|
|
16
|
+
/** bean: begin */
|
|
17
|
+
import type { BeanTestCtx } from '../bean/bean.testCtx.ts';
|
|
18
|
+
/** broadcast: end */
|
|
19
|
+
/** broadcast: begin */
|
|
20
|
+
import type { BroadcastTest } from '../bean/broadcast.test.ts';
|
|
21
|
+
/** cacheMem: end */
|
|
22
|
+
/** cacheMem: begin */
|
|
23
|
+
import type { CacheMemTest } from '../bean/cacheMem.test.ts';
|
|
24
|
+
/** cacheRedis: end */
|
|
25
|
+
/** cacheRedis: begin */
|
|
26
|
+
import type { CacheRedisTest } from '../bean/cacheRedis.test.ts';
|
|
27
|
+
/** event: end */
|
|
28
|
+
/** event: begin */
|
|
29
|
+
import type { EventHelloEcho } from '../bean/event.helloEcho.ts';
|
|
30
|
+
/** event: end */
|
|
31
|
+
/** event: begin */
|
|
32
|
+
import type { TypeEventHelloEchoData, TypeEventHelloEchoResult } from '../bean/event.helloEcho.ts';
|
|
33
|
+
/** queue: end */
|
|
34
|
+
/** queue: begin */
|
|
35
|
+
import type { QueueTest } from '../bean/queue.test.ts';
|
|
36
|
+
/** summerCache: end */
|
|
37
|
+
/** summerCache: begin */
|
|
38
|
+
import type { SummerCacheTest } from '../bean/summerCache.test.ts';
|
|
39
|
+
import type { config } from '../config/config.ts';
|
|
40
|
+
import type { IControllerOptionsBean } from '../controller/bean.ts';
|
|
41
|
+
/** controller: end */
|
|
42
|
+
/** controller: begin */
|
|
43
|
+
import '../controller/bean.ts';
|
|
44
|
+
import type { IControllerOptionsCacheMem } from '../controller/cacheMem.ts';
|
|
45
|
+
import '../controller/cacheMem.ts';
|
|
46
|
+
import type { IControllerOptionsCacheRedis } from '../controller/cacheRedis.ts';
|
|
47
|
+
import '../controller/cacheRedis.ts';
|
|
48
|
+
import type { IControllerOptionsOnion } from '../controller/onion.ts';
|
|
49
|
+
import '../controller/onion.ts';
|
|
50
|
+
import type { IControllerOptionsPassport } from '../controller/passport.ts';
|
|
51
|
+
import '../controller/passport.ts';
|
|
52
|
+
import type { IControllerOptionsPerformAction } from '../controller/performAction.ts';
|
|
53
|
+
import '../controller/performAction.ts';
|
|
54
|
+
import type { IControllerOptionsQueue } from '../controller/queue.ts';
|
|
55
|
+
import '../controller/queue.ts';
|
|
56
|
+
import type { IControllerOptionsSummer } from '../controller/summer.ts';
|
|
57
|
+
import '../controller/summer.ts';
|
|
58
|
+
import type { IControllerOptionsTail } from '../controller/tail.ts';
|
|
59
|
+
import '../controller/tail.ts';
|
|
60
|
+
/** service: end */
|
|
61
|
+
/** service: begin */
|
|
62
|
+
import type { IControllerOptionsTransaction } from '../controller/transaction.ts';
|
|
63
|
+
import '../controller/transaction.ts';
|
|
64
|
+
import type { IControllerOptionsUpload } from '../controller/upload.ts';
|
|
65
|
+
import '../controller/upload.ts';
|
|
66
|
+
import type { IDtoOptionsProfile } from '../dto/profile.ts';
|
|
67
|
+
/** dto: end */
|
|
68
|
+
/** dto: begin */
|
|
69
|
+
import type { DtoProfile } from '../dto/profile.ts';
|
|
70
|
+
import type { IDtoOptionsUser } from '../dto/user.ts';
|
|
71
|
+
import type { DtoUser } from '../dto/user.ts';
|
|
72
|
+
import type { IEntityOptionsTest } from '../entity/test.ts';
|
|
73
|
+
/** entity: end */
|
|
74
|
+
/** entity: begin */
|
|
75
|
+
import type { EntityTest } from '../entity/test.ts';
|
|
76
|
+
/** model: end */
|
|
77
|
+
/** model: begin */
|
|
78
|
+
import type { ModelTest } from '../model/test.ts';
|
|
79
|
+
/** service: end */
|
|
80
|
+
/** service: begin */
|
|
81
|
+
import type { ServiceAopMethod } from '../service/aopMethod.ts';
|
|
82
|
+
import type { ServiceTest } from '../service/test.ts';
|
|
83
|
+
import type { ServiceTestApp } from '../service/testApp.ts';
|
|
84
|
+
import type { ServiceTestClass } from '../service/testClass.ts';
|
|
85
|
+
import type { ServiceTransaction } from '../service/transaction.ts';
|
|
86
|
+
/** locale: end */
|
|
87
|
+
/** scope: begin */
|
|
88
|
+
import { BeanScopeBase } from 'vona';
|
|
89
|
+
import 'vona';
|
|
90
|
+
import 'vona';
|
|
91
|
+
import 'vona';
|
|
92
|
+
import 'vona';
|
|
93
|
+
import 'vona';
|
|
94
|
+
import 'vona';
|
|
95
|
+
import 'vona';
|
|
96
|
+
import 'vona';
|
|
97
|
+
import 'vona';
|
|
98
|
+
import 'vona';
|
|
99
|
+
import 'vona';
|
|
100
|
+
/** aop: begin */
|
|
101
|
+
export * from '../bean/aop.regExp.ts';
|
|
102
|
+
export * from '../bean/aop.simple.ts';
|
|
103
|
+
declare module 'vona-module-a-aspect' {
|
|
104
|
+
interface IAopRecord {
|
|
105
|
+
'test-vona:regExp': IDecoratorAopOptions;
|
|
106
|
+
'test-vona:simple': IDecoratorAopOptions;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
declare module 'vona-module-test-vona' {
|
|
110
|
+
interface AopRegExp {
|
|
111
|
+
}
|
|
112
|
+
interface AopSimple {
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/** aop: end */
|
|
116
|
+
/** aopMethod: begin */
|
|
117
|
+
export * from '../bean/aopMethod.test.ts';
|
|
118
|
+
declare module 'vona-module-a-aspect' {
|
|
119
|
+
interface IAopMethodRecord {
|
|
120
|
+
'test-vona:test': IAopMethodOptionsTest;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
declare module 'vona-module-test-vona' {
|
|
124
|
+
interface AopMethodTest {
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/** model: end */
|
|
128
|
+
/** bean: begin */
|
|
129
|
+
export * from '../bean/bean.testCtx.ts';
|
|
130
|
+
declare module 'vona-module-a-database' {
|
|
131
|
+
interface IEntityRecord {
|
|
132
|
+
'test-vona:test': IEntityOptionsTest;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
declare module 'vona-module-test-vona' {
|
|
136
|
+
}
|
|
137
|
+
export interface IModuleEntity {
|
|
138
|
+
test: EntityTest;
|
|
139
|
+
}
|
|
140
|
+
/** entity: end */
|
|
141
|
+
/** entity: begin */
|
|
142
|
+
declare module 'vona-module-test-vona' {
|
|
143
|
+
interface EntityTest {
|
|
144
|
+
$column: <K extends keyof Omit<EntityTest, '$column' | '$columns' | '$table'>>(column: K) => K;
|
|
145
|
+
$columns: <K extends keyof Omit<EntityTest, '$column' | '$columns' | '$table'>>(...columns: K[]) => K[];
|
|
146
|
+
}
|
|
147
|
+
interface IEntityOptionsTest {
|
|
148
|
+
fields?: TypeEntityOptionsFields<EntityTest, IEntityOptionsTest['fieldsMore']>;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
/** bean: end */
|
|
152
|
+
/** broadcast: begin */
|
|
153
|
+
export * from '../bean/broadcast.test.ts';
|
|
154
|
+
declare module 'vona-module-a-database' {
|
|
155
|
+
interface IModelRecord {
|
|
156
|
+
'test-vona:test': IDecoratorModelOptions;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
declare module 'vona-module-test-vona' {
|
|
160
|
+
interface ModelTest {
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
export interface IModuleModel {
|
|
164
|
+
test: ModelTest;
|
|
165
|
+
}
|
|
166
|
+
/** broadcast: end */
|
|
167
|
+
/** cacheMem: begin */
|
|
168
|
+
export * from '../bean/cacheMem.test.ts';
|
|
169
|
+
declare module 'vona' {
|
|
170
|
+
}
|
|
171
|
+
declare module 'vona-module-test-vona' {
|
|
172
|
+
interface BeanTestCtx {
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
declare module 'vona' {
|
|
176
|
+
interface IBeanRecordGlobal {
|
|
177
|
+
testCtx: BeanTestCtx;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/** cacheMem: end */
|
|
181
|
+
/** cacheRedis: begin */
|
|
182
|
+
export * from '../bean/cacheRedis.test.ts';
|
|
183
|
+
declare module 'vona-module-a-broadcast' {
|
|
184
|
+
interface IBroadcastRecord {
|
|
185
|
+
'test-vona:test': IDecoratorBroadcastOptions;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
declare module 'vona-module-test-vona' {
|
|
189
|
+
interface BroadcastTest {
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
export interface IModuleBroadcast {
|
|
193
|
+
test: BroadcastTest;
|
|
194
|
+
}
|
|
195
|
+
/** cacheRedis: end */
|
|
196
|
+
/** event: begin */
|
|
197
|
+
export * from '../bean/event.helloEcho.ts';
|
|
198
|
+
declare module 'vona-module-a-cache' {
|
|
199
|
+
interface ICacheMemRecord {
|
|
200
|
+
'test-vona:test': IDecoratorCacheMemOptions;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
declare module 'vona-module-test-vona' {
|
|
204
|
+
interface CacheMemTest {
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
export interface IModuleCacheMem {
|
|
208
|
+
test: CacheMemTest;
|
|
209
|
+
}
|
|
210
|
+
/** event: end */
|
|
211
|
+
/** eventListener: begin */
|
|
212
|
+
export * from '../bean/eventListener.helloEcho.ts';
|
|
213
|
+
declare module 'vona-module-a-cache' {
|
|
214
|
+
interface ICacheRedisRecord {
|
|
215
|
+
'test-vona:test': IDecoratorCacheRedisOptions;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
declare module 'vona-module-test-vona' {
|
|
219
|
+
interface CacheRedisTest {
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
export interface IModuleCacheRedis {
|
|
223
|
+
test: CacheRedisTest;
|
|
224
|
+
}
|
|
225
|
+
/** eventListener: end */
|
|
226
|
+
/** meta: begin */
|
|
227
|
+
export * from '../bean/meta.version.ts';
|
|
228
|
+
declare module 'vona' {
|
|
229
|
+
}
|
|
230
|
+
declare module 'vona-module-test-vona' {
|
|
231
|
+
interface EventHelloEcho {
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
export interface IModuleEvent {
|
|
235
|
+
helloEcho: EventHelloEcho;
|
|
236
|
+
}
|
|
237
|
+
declare module 'vona-module-a-event' {
|
|
238
|
+
interface IEventRecord {
|
|
239
|
+
'test-vona:helloEcho': EventOn<TypeEventHelloEchoData, TypeEventHelloEchoResult>;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
/** meta: end */
|
|
243
|
+
/** queue: begin */
|
|
244
|
+
export * from '../bean/queue.test.ts';
|
|
245
|
+
declare module 'vona-module-a-event' {
|
|
246
|
+
interface IEventListenerRecord {
|
|
247
|
+
'test-vona:helloEcho': IDecoratorEventListenerOptions;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
declare module 'vona-module-test-vona' {
|
|
251
|
+
interface EventListenerHelloEcho {
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
export * from '../bean/schedule.test3.ts';
|
|
255
|
+
declare module 'vona' {
|
|
256
|
+
interface IMetaRecord {
|
|
257
|
+
'test-vona:version': never;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
declare module 'vona-module-test-vona' {
|
|
261
|
+
interface MetaVersion {
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
/** queue: end */
|
|
265
|
+
/** schedule: begin */
|
|
266
|
+
export * from '../bean/schedule.test.ts';
|
|
267
|
+
declare module 'vona-module-a-queue' {
|
|
268
|
+
interface IQueueRecord {
|
|
269
|
+
'test-vona:test': IDecoratorQueueOptions;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
declare module 'vona-module-test-vona' {
|
|
273
|
+
interface QueueTest {
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
export interface IModuleQueue {
|
|
277
|
+
test: QueueTest;
|
|
278
|
+
}
|
|
279
|
+
/** schedule: end */
|
|
280
|
+
/** summerCache: begin */
|
|
281
|
+
export * from '../bean/summerCache.test.ts';
|
|
282
|
+
/** controller: end */
|
|
283
|
+
/** config: begin */
|
|
284
|
+
export * from '../config/config.ts';
|
|
285
|
+
declare module 'vona-module-a-schedule' {
|
|
286
|
+
interface IScheduleRecord {
|
|
287
|
+
'test-vona:test': IDecoratorScheduleOptions;
|
|
288
|
+
'test-vona:test3': IDecoratorScheduleOptions;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
declare module 'vona-module-test-vona' {
|
|
292
|
+
interface ScheduleTest {
|
|
293
|
+
}
|
|
294
|
+
interface ScheduleTest3 {
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
/** service: end */
|
|
298
|
+
/** controller: begin */
|
|
299
|
+
export * from '../controller/bean.ts';
|
|
300
|
+
declare module 'vona-module-a-summer' {
|
|
301
|
+
interface ISummerCacheRecord {
|
|
302
|
+
'test-vona:test': IDecoratorSummerCacheOptions;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
declare module 'vona-module-test-vona' {
|
|
306
|
+
interface SummerCacheTest {
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
export interface IModuleSummerCache {
|
|
310
|
+
test: SummerCacheTest;
|
|
311
|
+
}
|
|
312
|
+
export * from '../controller/cacheMem.ts';
|
|
313
|
+
export * from '../controller/cacheRedis.ts';
|
|
314
|
+
declare module 'vona-module-a-web' {
|
|
315
|
+
interface IDtoRecord {
|
|
316
|
+
'test-vona:profile': IDtoOptionsProfile;
|
|
317
|
+
'test-vona:user': IDtoOptionsUser;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
declare module 'vona-module-test-vona' {
|
|
321
|
+
}
|
|
322
|
+
declare module 'vona-module-test-vona' {
|
|
323
|
+
interface IDtoOptionsProfile {
|
|
324
|
+
fields?: TypeEntityOptionsFields<DtoProfile, IDtoOptionsProfile['fieldsMore']>;
|
|
325
|
+
}
|
|
326
|
+
interface IDtoOptionsUser {
|
|
327
|
+
fields?: TypeEntityOptionsFields<DtoUser, IDtoOptionsUser['fieldsMore']>;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
export * from '../controller/onion.ts';
|
|
331
|
+
export * from '../controller/passport.ts';
|
|
332
|
+
export * from '../controller/performAction.ts';
|
|
333
|
+
export * from '../controller/queue.ts';
|
|
334
|
+
export * from '../controller/summer.ts';
|
|
335
|
+
declare module 'vona-module-a-web' {
|
|
336
|
+
interface IServiceRecord {
|
|
337
|
+
'test-vona:aopMethod': never;
|
|
338
|
+
'test-vona:test': never;
|
|
339
|
+
'test-vona:testApp': never;
|
|
340
|
+
'test-vona:testClass': never;
|
|
341
|
+
'test-vona:transaction': never;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
declare module 'vona-module-test-vona' {
|
|
345
|
+
interface ServiceAopMethod {
|
|
346
|
+
}
|
|
347
|
+
interface ServiceTest {
|
|
348
|
+
}
|
|
349
|
+
interface ServiceTestApp {
|
|
350
|
+
}
|
|
351
|
+
interface ServiceTestClass {
|
|
352
|
+
}
|
|
353
|
+
interface ServiceTransaction {
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
export interface IModuleService {
|
|
357
|
+
aopMethod: ServiceAopMethod;
|
|
358
|
+
test: ServiceTest;
|
|
359
|
+
testApp: ServiceTestApp;
|
|
360
|
+
testClass: ServiceTestClass;
|
|
361
|
+
transaction: ServiceTransaction;
|
|
362
|
+
}
|
|
363
|
+
declare module 'vona' {
|
|
364
|
+
interface IBeanRecordGeneral {
|
|
365
|
+
'test-vona.service.aopMethod': ServiceAopMethod;
|
|
366
|
+
'test-vona.service.test': ServiceTest;
|
|
367
|
+
'test-vona.service.testApp': ServiceTestApp;
|
|
368
|
+
'test-vona.service.testClass': ServiceTestClass;
|
|
369
|
+
'test-vona.service.transaction': ServiceTransaction;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
export * from '../controller/tail.ts';
|
|
373
|
+
export * from '../controller/transaction.ts';
|
|
374
|
+
export * from '../controller/upload.ts';
|
|
375
|
+
/** summerCache: end */
|
|
376
|
+
/** dto: begin */
|
|
377
|
+
export * from '../dto/profile.ts';
|
|
378
|
+
export * from '../dto/user.ts';
|
|
379
|
+
/** aopMethod: end */
|
|
380
|
+
/** entity: begin */
|
|
381
|
+
export * from '../entity/test.ts';
|
|
382
|
+
/** entity: end */
|
|
383
|
+
/** model: begin */
|
|
384
|
+
export * from '../model/test.ts';
|
|
385
|
+
/** dto: end */
|
|
386
|
+
/** service: begin */
|
|
387
|
+
export * from '../service/aopMethod.ts';
|
|
388
|
+
export * from '../service/test.ts';
|
|
389
|
+
export * from '../service/testApp.ts';
|
|
390
|
+
export * from '../service/testClass.ts';
|
|
391
|
+
declare module 'vona-module-a-web' {
|
|
392
|
+
interface IControllerRecord {
|
|
393
|
+
'test-vona:bean': IControllerOptionsBean;
|
|
394
|
+
'test-vona:cacheMem': IControllerOptionsCacheMem;
|
|
395
|
+
'test-vona:cacheRedis': IControllerOptionsCacheRedis;
|
|
396
|
+
'test-vona:onion': IControllerOptionsOnion;
|
|
397
|
+
'test-vona:passport': IControllerOptionsPassport;
|
|
398
|
+
'test-vona:performAction': IControllerOptionsPerformAction;
|
|
399
|
+
'test-vona:queue': IControllerOptionsQueue;
|
|
400
|
+
'test-vona:summer': IControllerOptionsSummer;
|
|
401
|
+
'test-vona:tail': IControllerOptionsTail;
|
|
402
|
+
'test-vona:transaction': IControllerOptionsTransaction;
|
|
403
|
+
'test-vona:upload': IControllerOptionsUpload;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
declare module 'vona-module-test-vona' {
|
|
407
|
+
interface ControllerBean {
|
|
408
|
+
}
|
|
409
|
+
interface ControllerCacheMem {
|
|
410
|
+
}
|
|
411
|
+
interface ControllerCacheRedis {
|
|
412
|
+
}
|
|
413
|
+
interface ControllerOnion {
|
|
414
|
+
}
|
|
415
|
+
interface ControllerPassport {
|
|
416
|
+
}
|
|
417
|
+
interface ControllerPerformAction {
|
|
418
|
+
}
|
|
419
|
+
interface ControllerQueue {
|
|
420
|
+
}
|
|
421
|
+
interface ControllerSummer {
|
|
422
|
+
}
|
|
423
|
+
interface ControllerTail {
|
|
424
|
+
}
|
|
425
|
+
interface ControllerTransaction {
|
|
426
|
+
}
|
|
427
|
+
interface ControllerUpload {
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
declare module 'vona-module-test-vona' {
|
|
431
|
+
interface IControllerOptionsBean {
|
|
432
|
+
actions?: TypeControllerOptionsActions<ControllerBean>;
|
|
433
|
+
}
|
|
434
|
+
interface IControllerOptionsCacheMem {
|
|
435
|
+
actions?: TypeControllerOptionsActions<ControllerCacheMem>;
|
|
436
|
+
}
|
|
437
|
+
interface IControllerOptionsCacheRedis {
|
|
438
|
+
actions?: TypeControllerOptionsActions<ControllerCacheRedis>;
|
|
439
|
+
}
|
|
440
|
+
interface IControllerOptionsOnion {
|
|
441
|
+
actions?: TypeControllerOptionsActions<ControllerOnion>;
|
|
442
|
+
}
|
|
443
|
+
interface IControllerOptionsPassport {
|
|
444
|
+
actions?: TypeControllerOptionsActions<ControllerPassport>;
|
|
445
|
+
}
|
|
446
|
+
interface IControllerOptionsPerformAction {
|
|
447
|
+
actions?: TypeControllerOptionsActions<ControllerPerformAction>;
|
|
448
|
+
}
|
|
449
|
+
interface IControllerOptionsQueue {
|
|
450
|
+
actions?: TypeControllerOptionsActions<ControllerQueue>;
|
|
451
|
+
}
|
|
452
|
+
interface IControllerOptionsSummer {
|
|
453
|
+
actions?: TypeControllerOptionsActions<ControllerSummer>;
|
|
454
|
+
}
|
|
455
|
+
interface IControllerOptionsTail {
|
|
456
|
+
actions?: TypeControllerOptionsActions<ControllerTail>;
|
|
457
|
+
}
|
|
458
|
+
interface IControllerOptionsTransaction {
|
|
459
|
+
actions?: TypeControllerOptionsActions<ControllerTransaction>;
|
|
460
|
+
}
|
|
461
|
+
interface IControllerOptionsUpload {
|
|
462
|
+
actions?: TypeControllerOptionsActions<ControllerUpload>;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
declare module 'vona-module-a-web' {
|
|
466
|
+
interface IApiPathGetRecord {
|
|
467
|
+
'/test/vona/bean/test': undefined;
|
|
468
|
+
'/test/vona/bean/service': undefined;
|
|
469
|
+
'/': undefined;
|
|
470
|
+
'/test/vona/onion/echo3/:userId': undefined;
|
|
471
|
+
'/test/vona/onion/echo5': undefined;
|
|
472
|
+
'/test/vona/onion/echo6': undefined;
|
|
473
|
+
'/test/vona/passport/echo/:name': undefined;
|
|
474
|
+
'/test/vona/passport/isAuthenticated': undefined;
|
|
475
|
+
}
|
|
476
|
+
interface IApiPathPostRecord {
|
|
477
|
+
'/test/vona/cacheMem': undefined;
|
|
478
|
+
'/test/vona/cacheRedis': undefined;
|
|
479
|
+
'//echo': undefined;
|
|
480
|
+
'/test/vona/onion/echo2/:userId/:userName': undefined;
|
|
481
|
+
'/test/vona/onion/echo4': undefined;
|
|
482
|
+
'/test/vona/passport/login': undefined;
|
|
483
|
+
'/test/vona/passport/refresh': undefined;
|
|
484
|
+
'/test/vona/passport/logout': undefined;
|
|
485
|
+
'/test/vona/performAction/echo': undefined;
|
|
486
|
+
'/test/vona/queue/pushAsync': undefined;
|
|
487
|
+
'/test/vona/queue/push': undefined;
|
|
488
|
+
'/test/vona/summer': undefined;
|
|
489
|
+
'/test/vona/tail': undefined;
|
|
490
|
+
'/test/vona/transaction/fail': undefined;
|
|
491
|
+
'/test/vona/transaction/success': undefined;
|
|
492
|
+
'/test/vona/upload/fields': undefined;
|
|
493
|
+
'/test/vona/upload/file': undefined;
|
|
494
|
+
'/test/vona/upload/files': undefined;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
export * from '../service/transaction.ts';
|
|
498
|
+
export declare const locales: {
|
|
499
|
+
'en-us': {
|
|
500
|
+
User: string;
|
|
501
|
+
UserId: string;
|
|
502
|
+
TestHelloWorld: string;
|
|
503
|
+
TestApples: string;
|
|
504
|
+
TestApples_0: string;
|
|
505
|
+
TestApples_1: string;
|
|
506
|
+
TestNameApples_: string;
|
|
507
|
+
TestNameApples_0_1: string;
|
|
508
|
+
TestNameApples_1_1: string;
|
|
509
|
+
};
|
|
510
|
+
'zh-cn': {
|
|
511
|
+
User: string;
|
|
512
|
+
UserId: string;
|
|
513
|
+
TestHelloWorld: string;
|
|
514
|
+
TestApples: string;
|
|
515
|
+
TestApples_0: string;
|
|
516
|
+
TestNameApples_: string;
|
|
517
|
+
TestNameApples_0_1: string;
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
export declare class ScopeModuleTestVona extends BeanScopeBase {
|
|
521
|
+
}
|
|
522
|
+
export interface ScopeModuleTestVona {
|
|
523
|
+
util: BeanScopeUtil;
|
|
524
|
+
config: TypeModuleConfig<typeof config>;
|
|
525
|
+
locale: TypeModuleLocales<(typeof locales)[TypeLocaleBase]>;
|
|
526
|
+
entity: IModuleEntity;
|
|
527
|
+
model: IModuleModel;
|
|
528
|
+
broadcast: IModuleBroadcast;
|
|
529
|
+
cacheMem: IModuleCacheMem;
|
|
530
|
+
cacheRedis: IModuleCacheRedis;
|
|
531
|
+
event: IModuleEvent;
|
|
532
|
+
queue: IModuleQueue;
|
|
533
|
+
summerCache: IModuleSummerCache;
|
|
534
|
+
service: IModuleService;
|
|
535
|
+
}
|
|
536
|
+
declare module 'vona' {
|
|
537
|
+
interface IBeanScopeRecord {
|
|
538
|
+
'test-vona': ScopeModuleTestVona;
|
|
539
|
+
}
|
|
540
|
+
interface IBeanScopeContainer {
|
|
541
|
+
testVona: ScopeModuleTestVona;
|
|
542
|
+
}
|
|
543
|
+
interface IBeanScopeConfig {
|
|
544
|
+
'test-vona': ReturnType<typeof config>;
|
|
545
|
+
}
|
|
546
|
+
interface IBeanScopeLocale {
|
|
547
|
+
'test-vona': (typeof locales)[TypeLocaleBase];
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `test-vona::${K}`;
|
|
551
|
+
/** scope: end */
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
/** locale: end */
|
|
8
|
+
/** scope: begin */
|
|
9
|
+
import { BeanScopeBase } from 'vona';
|
|
10
|
+
import { Scope } from 'vona-module-a-bean';
|
|
11
|
+
/** config: end */
|
|
12
|
+
/** locale: begin */
|
|
13
|
+
import locale_en_us from "../config/locale/en-us.js";
|
|
14
|
+
import locale_zh_cn from "../config/locale/zh-cn.js";
|
|
15
|
+
import 'vona';
|
|
16
|
+
import 'vona';
|
|
17
|
+
import 'vona';
|
|
18
|
+
import 'vona';
|
|
19
|
+
import 'vona';
|
|
20
|
+
import 'vona';
|
|
21
|
+
import 'vona';
|
|
22
|
+
import 'vona';
|
|
23
|
+
import 'vona';
|
|
24
|
+
import 'vona';
|
|
25
|
+
import 'vona';
|
|
26
|
+
/** aop: begin */
|
|
27
|
+
export * from "../bean/aop.regExp.js";
|
|
28
|
+
export * from "../bean/aop.simple.js";
|
|
29
|
+
/** aop: end */
|
|
30
|
+
/** aopMethod: begin */
|
|
31
|
+
export * from "../bean/aopMethod.test.js";
|
|
32
|
+
/** model: end */
|
|
33
|
+
/** bean: begin */
|
|
34
|
+
export * from "../bean/bean.testCtx.js";
|
|
35
|
+
/** bean: end */
|
|
36
|
+
/** broadcast: begin */
|
|
37
|
+
export * from "../bean/broadcast.test.js";
|
|
38
|
+
/** broadcast: end */
|
|
39
|
+
/** cacheMem: begin */
|
|
40
|
+
export * from "../bean/cacheMem.test.js";
|
|
41
|
+
/** cacheMem: end */
|
|
42
|
+
/** cacheRedis: begin */
|
|
43
|
+
export * from "../bean/cacheRedis.test.js";
|
|
44
|
+
/** cacheRedis: end */
|
|
45
|
+
/** event: begin */
|
|
46
|
+
export * from "../bean/event.helloEcho.js";
|
|
47
|
+
/** event: end */
|
|
48
|
+
/** eventListener: begin */
|
|
49
|
+
export * from "../bean/eventListener.helloEcho.js";
|
|
50
|
+
/** eventListener: end */
|
|
51
|
+
/** meta: begin */
|
|
52
|
+
export * from "../bean/meta.version.js";
|
|
53
|
+
/** meta: end */
|
|
54
|
+
/** queue: begin */
|
|
55
|
+
export * from "../bean/queue.test.js";
|
|
56
|
+
export * from "../bean/schedule.test3.js";
|
|
57
|
+
/** queue: end */
|
|
58
|
+
/** schedule: begin */
|
|
59
|
+
export * from "../bean/schedule.test.js";
|
|
60
|
+
/** schedule: end */
|
|
61
|
+
/** summerCache: begin */
|
|
62
|
+
export * from "../bean/summerCache.test.js";
|
|
63
|
+
/** controller: end */
|
|
64
|
+
/** config: begin */
|
|
65
|
+
export * from "../config/config.js";
|
|
66
|
+
/** service: end */
|
|
67
|
+
/** controller: begin */
|
|
68
|
+
export * from "../controller/bean.js";
|
|
69
|
+
export * from "../controller/cacheMem.js";
|
|
70
|
+
export * from "../controller/cacheRedis.js";
|
|
71
|
+
export * from "../controller/onion.js";
|
|
72
|
+
export * from "../controller/passport.js";
|
|
73
|
+
export * from "../controller/performAction.js";
|
|
74
|
+
export * from "../controller/queue.js";
|
|
75
|
+
export * from "../controller/summer.js";
|
|
76
|
+
export * from "../controller/tail.js";
|
|
77
|
+
export * from "../controller/transaction.js";
|
|
78
|
+
export * from "../controller/upload.js";
|
|
79
|
+
/** summerCache: end */
|
|
80
|
+
/** dto: begin */
|
|
81
|
+
export * from "../dto/profile.js";
|
|
82
|
+
export * from "../dto/user.js";
|
|
83
|
+
/** aopMethod: end */
|
|
84
|
+
/** entity: begin */
|
|
85
|
+
export * from "../entity/test.js";
|
|
86
|
+
/** entity: end */
|
|
87
|
+
/** model: begin */
|
|
88
|
+
export * from "../model/test.js";
|
|
89
|
+
/** dto: end */
|
|
90
|
+
/** service: begin */
|
|
91
|
+
export * from "../service/aopMethod.js";
|
|
92
|
+
export * from "../service/test.js";
|
|
93
|
+
export * from "../service/testApp.js";
|
|
94
|
+
export * from "../service/testClass.js";
|
|
95
|
+
export * from "../service/transaction.js";
|
|
96
|
+
export const locales = {
|
|
97
|
+
'en-us': locale_en_us,
|
|
98
|
+
'zh-cn': locale_zh_cn,
|
|
99
|
+
};
|
|
100
|
+
let ScopeModuleTestVona = class ScopeModuleTestVona extends BeanScopeBase {
|
|
101
|
+
};
|
|
102
|
+
ScopeModuleTestVona = __decorate([
|
|
103
|
+
Scope()
|
|
104
|
+
], ScopeModuleTestVona);
|
|
105
|
+
export { ScopeModuleTestVona };
|
|
106
|
+
export function $locale(key) {
|
|
107
|
+
return `test-vona::${key}`;
|
|
108
|
+
}
|
|
109
|
+
/** scope: end */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BeanAopBase } from 'vona';
|
|
2
|
+
export declare class AopRegExp extends BeanAopBase {
|
|
3
|
+
__get_name__(next: any): string;
|
|
4
|
+
__set_name__(value: any, next: any): any;
|
|
5
|
+
actionSync(_args: any, next: any): string;
|
|
6
|
+
actionAsync(_args: any, next: any): Promise<string>;
|
|
7
|
+
}
|