vona-module-test-vona 5.0.12 → 5.0.14
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/this.d.ts +2 -0
- package/dist/bean/aop.regExp.d.ts +7 -0
- package/dist/bean/aop.simple.d.ts +14 -0
- package/dist/bean/aopMethod.test.d.ts +13 -0
- package/dist/bean/bean.testCtx.d.ts +21 -0
- package/dist/bean/broadcast.test.d.ts +8 -0
- package/dist/bean/cacheMem.test.d.ts +5 -0
- package/dist/bean/cacheRedis.test.d.ts +5 -0
- package/dist/bean/event.helloEcho.d.ts +7 -0
- package/dist/bean/eventListener.helloEcho.d.ts +9 -0
- package/dist/bean/meta.version.d.ts +5 -0
- package/dist/bean/queue.test.d.ts +10 -0
- package/dist/bean/schedule.test.d.ts +5 -0
- package/dist/bean/schedule.test3.d.ts +5 -0
- package/dist/bean/summerCache.test.d.ts +12 -0
- package/dist/config/config.d.ts +2 -0
- package/dist/config/locale/en-us.d.ts +12 -0
- package/dist/config/locale/zh-cn.d.ts +10 -0
- package/dist/controller/bean.d.ts +8 -0
- package/dist/controller/cacheMem.d.ts +7 -0
- package/dist/controller/cacheRedis.d.ts +7 -0
- package/dist/controller/onion.d.ts +15 -0
- package/dist/controller/passport.d.ts +16 -0
- package/dist/controller/performAction.d.ts +10 -0
- package/dist/controller/queue.d.ts +8 -0
- package/dist/controller/summer.d.ts +7 -0
- package/dist/controller/tail.d.ts +7 -0
- package/dist/controller/transaction.d.ts +8 -0
- package/dist/controller/upload.d.ts +10 -0
- package/dist/dto/profile.d.ts +7 -0
- package/dist/dto/user.d.ts +10 -0
- package/dist/entity/test.d.ts +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1220 -0
- package/dist/model/test.d.ts +4 -0
- package/dist/service/aopMethod.d.ts +12 -0
- package/dist/service/test.d.ts +4 -0
- package/dist/service/testApp.d.ts +5 -0
- package/dist/service/testClass.d.ts +8 -0
- package/dist/service/transaction.d.ts +5 -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,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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Next } from 'vona';
|
|
2
|
+
import type { BeanTestCtx } from 'vona-module-test-vona';
|
|
3
|
+
import { BeanAopBase } from 'vona';
|
|
4
|
+
declare class AopSimpleBase extends BeanAopBase {
|
|
5
|
+
actionSync(_args: any, next: any): string;
|
|
6
|
+
}
|
|
7
|
+
export declare class AopSimple extends AopSimpleBase {
|
|
8
|
+
__get__(prop: any, next: any): any;
|
|
9
|
+
__set__(prop: any, value: any, next: any): boolean;
|
|
10
|
+
__get_name__(next: any): string;
|
|
11
|
+
__set_name__(value: any, next: any): boolean;
|
|
12
|
+
actionAsync(_args: Parameters<BeanTestCtx['actionAsync']>, next: Next, _receiver: BeanTestCtx): Promise<string>;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Next, NextSync } from 'vona';
|
|
2
|
+
import type { IAopMethodExecute, IAopMethodGet, IAopMethodSet, IDecoratorAopMethodOptions } from 'vona-module-a-aspect';
|
|
3
|
+
import { BeanAopMethodBase } from 'vona';
|
|
4
|
+
export interface IAopMethodOptionsTest extends IDecoratorAopMethodOptions {
|
|
5
|
+
wrapper: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class AopMethodTest extends BeanAopMethodBase implements IAopMethodGet, IAopMethodSet, IAopMethodExecute {
|
|
8
|
+
get(options: IAopMethodOptionsTest, next: NextSync, _receiver: any, _prop: string): string;
|
|
9
|
+
set(options: IAopMethodOptionsTest, value: string, next: NextSync, _receiver: any, _prop: string): boolean;
|
|
10
|
+
execute(options: IAopMethodOptionsTest, _args: [], next: Next | NextSync, _receiver: any, _prop: string): Promise<string> | string;
|
|
11
|
+
_wrapper(wrapper: string, data: string): string;
|
|
12
|
+
_unwrapper(wrapper: string, data: string): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BeanBase } from 'vona';
|
|
2
|
+
declare class TestCtx0 extends BeanBase {
|
|
3
|
+
_name: string;
|
|
4
|
+
protected __init__(moduleName: any): void;
|
|
5
|
+
protected __get__(prop: any): any;
|
|
6
|
+
protected __set__(prop: any, value: any): boolean;
|
|
7
|
+
get name(): string;
|
|
8
|
+
set name(value: string);
|
|
9
|
+
actionSync({ a, b }: any): any;
|
|
10
|
+
actionAsync({ a, b }: {
|
|
11
|
+
a: number;
|
|
12
|
+
b: number;
|
|
13
|
+
}): Promise<number>;
|
|
14
|
+
actionAsync2({ a, b }: any): Promise<string>;
|
|
15
|
+
}
|
|
16
|
+
declare class TestCtx1 extends TestCtx0 {
|
|
17
|
+
actionAsync3({ a, b }: any): Promise<string>;
|
|
18
|
+
}
|
|
19
|
+
export declare class BeanTestCtx extends TestCtx1 {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IBroadcastExecute } from 'vona-module-a-broadcast';
|
|
2
|
+
import { BeanBroadcastBase } from 'vona-module-a-broadcast';
|
|
3
|
+
export interface TypeBroadcastTestJobData {
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class BroadcastTest extends BeanBroadcastBase<TypeBroadcastTestJobData> implements IBroadcastExecute<TypeBroadcastTestJobData> {
|
|
7
|
+
execute(data: TypeBroadcastTestJobData, isEmitter?: boolean): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BeanEventBase } from 'vona-module-a-event';
|
|
2
|
+
export interface TypeEventHelloEchoData {
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
export type TypeEventHelloEchoResult = string;
|
|
6
|
+
export declare class EventHelloEcho extends BeanEventBase<TypeEventHelloEchoData, TypeEventHelloEchoResult> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IEventExecute, NextEvent } from 'vona-module-a-event';
|
|
2
|
+
import type { TypeEventHelloEchoData, TypeEventHelloEchoResult } from './event.helloEcho.ts';
|
|
3
|
+
import { BeanBase } from 'vona';
|
|
4
|
+
type TypeEventData = TypeEventHelloEchoData;
|
|
5
|
+
type TypeEventResult = TypeEventHelloEchoResult;
|
|
6
|
+
export declare class EventListenerHelloEcho extends BeanBase implements IEventExecute<TypeEventData, TypeEventResult> {
|
|
7
|
+
execute(data: TypeEventData, next: NextEvent<TypeEventData, TypeEventResult>): Promise<TypeEventResult>;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IMetaVersionUpdate, IMetaVersionUpdateOptions } from 'vona-module-a-version';
|
|
2
|
+
import { BeanBase } from 'vona';
|
|
3
|
+
export declare class MetaVersion extends BeanBase implements IMetaVersionUpdate {
|
|
4
|
+
update(options: IMetaVersionUpdateOptions): Promise<void>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IQueueExecute, IQueuePushOptions } from 'vona-module-a-queue';
|
|
2
|
+
import { BeanQueueBase } from 'vona-module-a-queue';
|
|
3
|
+
export interface TypeQueueTestJobData {
|
|
4
|
+
a: number;
|
|
5
|
+
b: number;
|
|
6
|
+
}
|
|
7
|
+
export type TypeQueueTestJobResult = number;
|
|
8
|
+
export declare class QueueTest extends BeanQueueBase<TypeQueueTestJobData, TypeQueueTestJobResult> implements IQueueExecute<TypeQueueTestJobData, TypeQueueTestJobResult> {
|
|
9
|
+
execute(data: TypeQueueTestJobData, _options?: IQueuePushOptions): Promise<TypeQueueTestJobResult>;
|
|
10
|
+
}
|