vona-module-test-vona 5.0.31 → 5.0.33
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 +43 -0
- package/dist/controller/dtoTest.d.ts +2 -2
- package/dist/dto/postCreate.d.ts +8 -0
- package/dist/dto/userCreate.d.ts +3 -6
- package/dist/dto/userUpdate.d.ts +3 -7
- package/dist/entity/category.d.ts +1 -1
- package/dist/index.js +193 -174
- package/dist/model/categoryChain.d.ts +7 -0
- package/package.json +1 -1
|
@@ -143,6 +143,7 @@ declare module 'vona-module-test-vona' {
|
|
|
143
143
|
/** entity: end */
|
|
144
144
|
/** model: begin */
|
|
145
145
|
export * from '../model/category.ts';
|
|
146
|
+
export * from '../model/categoryChain.ts';
|
|
146
147
|
export * from '../model/post.ts';
|
|
147
148
|
export * from '../model/postContent.ts';
|
|
148
149
|
export * from '../model/role.ts';
|
|
@@ -153,6 +154,7 @@ export * from '../model/user.ts';
|
|
|
153
154
|
export * from '../model/userStats.ts';
|
|
154
155
|
export * from '../model/userStatsGroup.ts';
|
|
155
156
|
import type { IModelOptionsCategory } from '../model/category.ts';
|
|
157
|
+
import type { IModelOptionsCategoryChain } from '../model/categoryChain.ts';
|
|
156
158
|
import type { IModelOptionsPost } from '../model/post.ts';
|
|
157
159
|
import type { IModelOptionsPostContent } from '../model/postContent.ts';
|
|
158
160
|
import type { IModelOptionsRole } from '../model/role.ts';
|
|
@@ -166,6 +168,7 @@ import 'vona';
|
|
|
166
168
|
declare module 'vona-module-a-orm' {
|
|
167
169
|
interface IModelRecord {
|
|
168
170
|
'test-vona:category': IModelOptionsCategory;
|
|
171
|
+
'test-vona:categoryChain': IModelOptionsCategoryChain;
|
|
169
172
|
'test-vona:post': IModelOptionsPost;
|
|
170
173
|
'test-vona:postContent': IModelOptionsPostContent;
|
|
171
174
|
'test-vona:role': IModelOptionsRole;
|
|
@@ -184,6 +187,12 @@ declare module 'vona-module-test-vona' {
|
|
|
184
187
|
get $beanFullName(): 'test-vona.model.category';
|
|
185
188
|
get $onionName(): 'test-vona:category';
|
|
186
189
|
}
|
|
190
|
+
interface ModelCategoryChain {
|
|
191
|
+
}
|
|
192
|
+
interface ModelCategoryChain {
|
|
193
|
+
get $beanFullName(): 'test-vona.model.categoryChain';
|
|
194
|
+
get $onionName(): 'test-vona:categoryChain';
|
|
195
|
+
}
|
|
187
196
|
interface ModelPost {
|
|
188
197
|
}
|
|
189
198
|
interface ModelPost {
|
|
@@ -242,6 +251,7 @@ declare module 'vona-module-test-vona' {
|
|
|
242
251
|
/** model: end */
|
|
243
252
|
/** model: begin */
|
|
244
253
|
import type { ModelCategory } from '../model/category.ts';
|
|
254
|
+
import type { ModelCategoryChain } from '../model/categoryChain.ts';
|
|
245
255
|
import type { ModelPost } from '../model/post.ts';
|
|
246
256
|
import type { ModelPostContent } from '../model/postContent.ts';
|
|
247
257
|
import type { ModelRole } from '../model/role.ts';
|
|
@@ -253,6 +263,7 @@ import type { ModelUserStats } from '../model/userStats.ts';
|
|
|
253
263
|
import type { ModelUserStatsGroup } from '../model/userStatsGroup.ts';
|
|
254
264
|
export interface IModuleModel {
|
|
255
265
|
'category': ModelCategory;
|
|
266
|
+
'categoryChain': ModelCategoryChain;
|
|
256
267
|
'post': ModelPost;
|
|
257
268
|
'postContent': ModelPostContent;
|
|
258
269
|
'role': ModelRole;
|
|
@@ -273,6 +284,11 @@ declare module 'vona-module-test-vona' {
|
|
|
273
284
|
children: IModelRelationHasMany<ModelCategory, true, 'id' | 'name', undefined, undefined, undefined>;
|
|
274
285
|
};
|
|
275
286
|
}
|
|
287
|
+
interface IModelOptionsCategoryChain {
|
|
288
|
+
relations: {
|
|
289
|
+
parent: IModelRelationBelongsTo<ModelCategoryChain, ModelCategoryChain, true, 'id' | 'name' | 'categoryIdParent'>;
|
|
290
|
+
};
|
|
291
|
+
}
|
|
276
292
|
interface IModelOptionsPost {
|
|
277
293
|
relations: {
|
|
278
294
|
postContent: IModelRelationHasOne<'test-vona:postContent', false, 'id' | 'content'>;
|
|
@@ -336,6 +352,25 @@ declare module 'vona-module-test-vona' {
|
|
|
336
352
|
aggregate<T extends IModelSelectAggrParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
337
353
|
group<T extends IModelSelectGroupParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityCategory, T>[]>;
|
|
338
354
|
}
|
|
355
|
+
interface ModelCategoryChain {
|
|
356
|
+
[SymbolKeyEntity]: EntityCategory;
|
|
357
|
+
[SymbolKeyEntityMeta]: EntityCategoryMeta;
|
|
358
|
+
[SymbolKeyModelOptions]: IModelOptionsCategoryChain;
|
|
359
|
+
get<T extends IModelGetOptions<EntityCategory, ModelCategoryChain>>(where: TypeModelWhere<EntityCategory>, options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategoryChain, T> | undefined>;
|
|
360
|
+
mget<T extends IModelGetOptions<EntityCategory, ModelCategoryChain>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategoryChain, T>[]>;
|
|
361
|
+
select<T extends IModelSelectParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityCategory, ModelCategoryChain, T>[]>;
|
|
362
|
+
insert<T extends IModelInsertOptions<EntityCategory, ModelCategoryChain>>(data?: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>>>;
|
|
363
|
+
insertBulk<T extends IModelInsertOptions<EntityCategory, ModelCategoryChain>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>>[]>;
|
|
364
|
+
update<T extends IModelUpdateOptions<EntityCategory, ModelCategoryChain>>(data: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>, options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>>;
|
|
365
|
+
updateBulk<T extends IModelUpdateOptions<EntityCategory, ModelCategoryChain>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[]>;
|
|
366
|
+
delete<T extends IModelDeleteOptions<EntityCategory, ModelCategoryChain>>(where?: TypeModelWhere<EntityCategory>, options?: T): Promise<void>;
|
|
367
|
+
deleteBulk<T extends IModelDeleteOptions<EntityCategory, ModelCategoryChain>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
368
|
+
mutate<T extends IModelMutateOptions<EntityCategory, ModelCategoryChain>>(data?: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>, options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>>;
|
|
369
|
+
mutateBulk<T extends IModelMutateOptions<EntityCategory, ModelCategoryChain>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[]>;
|
|
370
|
+
count<T extends IModelSelectCountParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
371
|
+
aggregate<T extends IModelSelectAggrParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
372
|
+
group<T extends IModelSelectGroupParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityCategory, T>[]>;
|
|
373
|
+
}
|
|
339
374
|
interface ModelPost {
|
|
340
375
|
[SymbolKeyEntity]: EntityPost;
|
|
341
376
|
[SymbolKeyEntityMeta]: EntityPostMeta;
|
|
@@ -511,6 +546,7 @@ declare module 'vona-module-test-vona' {
|
|
|
511
546
|
declare module 'vona-module-a-orm' {
|
|
512
547
|
interface IModelClassRecord {
|
|
513
548
|
'test-vona:category': ModelCategory;
|
|
549
|
+
'test-vona:categoryChain': ModelCategoryChain;
|
|
514
550
|
'test-vona:post': ModelPost;
|
|
515
551
|
'test-vona:postContent': ModelPostContent;
|
|
516
552
|
'test-vona:role': ModelRole;
|
|
@@ -844,6 +880,7 @@ export interface IModuleSummerCache {
|
|
|
844
880
|
/** summerCache: end */
|
|
845
881
|
/** dto: begin */
|
|
846
882
|
export * from '../dto/categoryTree.ts';
|
|
883
|
+
export * from '../dto/postCreate.ts';
|
|
847
884
|
export * from '../dto/profile.ts';
|
|
848
885
|
export * from '../dto/roleLazy.ts';
|
|
849
886
|
export * from '../dto/user.ts';
|
|
@@ -851,6 +888,7 @@ export * from '../dto/userCreate.ts';
|
|
|
851
888
|
export * from '../dto/userLazy.ts';
|
|
852
889
|
export * from '../dto/userUpdate.ts';
|
|
853
890
|
import type { IDtoOptionsCategoryTree } from '../dto/categoryTree.ts';
|
|
891
|
+
import type { IDtoOptionsPostCreate } from '../dto/postCreate.ts';
|
|
854
892
|
import type { IDtoOptionsProfile } from '../dto/profile.ts';
|
|
855
893
|
import type { IDtoOptionsRoleLazy } from '../dto/roleLazy.ts';
|
|
856
894
|
import type { IDtoOptionsUser } from '../dto/user.ts';
|
|
@@ -861,6 +899,7 @@ import 'vona';
|
|
|
861
899
|
declare module 'vona-module-a-web' {
|
|
862
900
|
interface IDtoRecord {
|
|
863
901
|
'test-vona:categoryTree': IDtoOptionsCategoryTree;
|
|
902
|
+
'test-vona:postCreate': IDtoOptionsPostCreate;
|
|
864
903
|
'test-vona:profile': IDtoOptionsProfile;
|
|
865
904
|
'test-vona:roleLazy': IDtoOptionsRoleLazy;
|
|
866
905
|
'test-vona:user': IDtoOptionsUser;
|
|
@@ -874,6 +913,7 @@ declare module 'vona-module-test-vona' {
|
|
|
874
913
|
/** dto: end */
|
|
875
914
|
/** dto: begin */
|
|
876
915
|
import type { DtoCategoryTree } from '../dto/categoryTree.ts';
|
|
916
|
+
import type { DtoPostCreate } from '../dto/postCreate.ts';
|
|
877
917
|
import type { DtoProfile } from '../dto/profile.ts';
|
|
878
918
|
import type { DtoRoleLazy } from '../dto/roleLazy.ts';
|
|
879
919
|
import type { DtoUser } from '../dto/user.ts';
|
|
@@ -884,6 +924,9 @@ declare module 'vona-module-test-vona' {
|
|
|
884
924
|
interface IDtoOptionsCategoryTree {
|
|
885
925
|
fields?: TypeEntityOptionsFields<DtoCategoryTree, IDtoOptionsCategoryTree[TypeSymbolKeyFieldsMore]>;
|
|
886
926
|
}
|
|
927
|
+
interface IDtoOptionsPostCreate {
|
|
928
|
+
fields?: TypeEntityOptionsFields<DtoPostCreate, IDtoOptionsPostCreate[TypeSymbolKeyFieldsMore]>;
|
|
929
|
+
}
|
|
887
930
|
interface IDtoOptionsProfile {
|
|
888
931
|
fields?: TypeEntityOptionsFields<DtoProfile, IDtoOptionsProfile[TypeSymbolKeyFieldsMore]>;
|
|
889
932
|
}
|
|
@@ -19,8 +19,8 @@ export declare class ControllerDtoTest extends BeanBase {
|
|
|
19
19
|
}>>;
|
|
20
20
|
getCategoryTree(): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityCategory, import("vona-module-test-vona").ModelCategory, {
|
|
21
21
|
columns: ("name" | "id")[];
|
|
22
|
-
}, undefined>[]>;
|
|
22
|
+
}, undefined, 50>[]>;
|
|
23
23
|
getCategoryTree2(): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityCategory, import("vona-module-test-vona").ModelCategory, {
|
|
24
24
|
columns: ("name" | "id")[];
|
|
25
|
-
}, undefined>[]>;
|
|
25
|
+
}, undefined, 50>[]>;
|
|
26
26
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import { ModelPost } from '../model/post.ts';
|
|
3
|
+
export interface IDtoOptionsPostCreate extends IDecoratorDtoOptions {
|
|
4
|
+
}
|
|
5
|
+
declare const DtoPostCreate_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoMutateResult<ModelPost, undefined, "create", "iid" | "id" | "createdAt" | "updatedAt" | "deleted", true>>;
|
|
6
|
+
export declare class DtoPostCreate extends DtoPostCreate_base {
|
|
7
|
+
}
|
|
8
|
+
export {};
|
package/dist/dto/userCreate.d.ts
CHANGED
|
@@ -3,13 +3,10 @@ export interface IDtoOptionsUserCreate extends IDecoratorDtoOptions {
|
|
|
3
3
|
}
|
|
4
4
|
declare const DtoUserCreate_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoMutateResult<"test-vona:user", {
|
|
5
5
|
include: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
user: false;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
6
|
+
roles: true;
|
|
7
|
+
posts: true;
|
|
11
8
|
};
|
|
12
|
-
}>>;
|
|
9
|
+
}, "create", "iid" | "id" | "createdAt" | "updatedAt" | "deleted", true>>;
|
|
13
10
|
export declare class DtoUserCreate extends DtoUserCreate_base {
|
|
14
11
|
}
|
|
15
12
|
export {};
|
package/dist/dto/userUpdate.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
2
|
export interface IDtoOptionsUserUpdate extends IDecoratorDtoOptions {
|
|
3
3
|
}
|
|
4
|
-
declare const DtoUserUpdate_base: import("vona-core").Constructable<
|
|
4
|
+
declare const DtoUserUpdate_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoMutateResult<"test-vona:user", {
|
|
5
5
|
include: {
|
|
6
|
-
posts:
|
|
7
|
-
include: {
|
|
8
|
-
user: false;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
6
|
+
posts: true;
|
|
11
7
|
};
|
|
12
|
-
}
|
|
8
|
+
}, "update", "iid" | "id" | "createdAt" | "updatedAt" | "deleted", true>>;
|
|
13
9
|
export declare class DtoUserUpdate extends DtoUserUpdate_base {
|
|
14
10
|
}
|
|
15
11
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { BeanInfo, BeanAopBase, BeanAopMethodBase, BeanBase, cast, retry, BeanSc
|
|
|
2
2
|
import { Aop, AopMethod, Aspect } from 'vona-module-a-aspect';
|
|
3
3
|
import { Api, v, Arg } from 'vona-module-a-openapi';
|
|
4
4
|
import { Entity, EntityBase, Model, $relation, BeanModelBase, Database, $Dto, TableIdentity as TableIdentity$1 } from 'vona-module-a-orm';
|
|
5
|
+
import { ModelCategoryChain as ModelCategoryChain$1 } from 'vona-module-test-vona';
|
|
5
6
|
import moment from 'moment';
|
|
6
7
|
import { Bean, Service, Scope } from 'vona-module-a-bean';
|
|
7
8
|
import { getKeyHash, CacheMem, BeanCacheMemBase, CacheRedis, BeanCacheRedisBase } from 'vona-module-a-cache';
|
|
@@ -21,15 +22,15 @@ import { z } from 'zod';
|
|
|
21
22
|
import { DtoJwtToken } from 'vona-module-a-jwt';
|
|
22
23
|
import { SymbolUploadValue } from 'vona-module-a-upload';
|
|
23
24
|
|
|
24
|
-
var _dec$
|
|
25
|
-
let AopRegExp = (_dec$
|
|
25
|
+
var _dec$Y, _dec2$Y, _class$Y;
|
|
26
|
+
let AopRegExp = (_dec$Y = Aop({
|
|
26
27
|
match: [/^test-vona\.service\.test\w+$/, 'testCtx'],
|
|
27
28
|
meta: {
|
|
28
29
|
mode: 'test'
|
|
29
30
|
}
|
|
30
|
-
}), _dec2$
|
|
31
|
+
}), _dec2$Y = BeanInfo({
|
|
31
32
|
module: "test-vona"
|
|
32
|
-
}), _dec$
|
|
33
|
+
}), _dec$Y(_class$Y = _dec2$Y(_class$Y = class AopRegExp extends BeanAopBase {
|
|
33
34
|
__get_name__(next) {
|
|
34
35
|
const value = next();
|
|
35
36
|
return `${value}:regexpaop`;
|
|
@@ -51,24 +52,24 @@ let AopRegExp = (_dec$W = Aop({
|
|
|
51
52
|
const result = await next();
|
|
52
53
|
return `${result}:regexpaop`;
|
|
53
54
|
}
|
|
54
|
-
}) || _class$
|
|
55
|
+
}) || _class$Y) || _class$Y);
|
|
55
56
|
|
|
56
|
-
var _dec$
|
|
57
|
+
var _dec$X, _dec2$X, _class$X;
|
|
57
58
|
class AopSimpleBase extends BeanAopBase {
|
|
58
59
|
actionSync(_args, next) {
|
|
59
60
|
const result = next();
|
|
60
61
|
return `${result}:simpleaop`;
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
let AopSimple = (_dec$
|
|
64
|
+
let AopSimple = (_dec$X = Aop({
|
|
64
65
|
match: 'testCtx',
|
|
65
66
|
dependencies: 'test-vona:regExp',
|
|
66
67
|
meta: {
|
|
67
68
|
mode: 'test'
|
|
68
69
|
}
|
|
69
|
-
}), _dec2$
|
|
70
|
+
}), _dec2$X = BeanInfo({
|
|
70
71
|
module: "test-vona"
|
|
71
|
-
}), _dec$
|
|
72
|
+
}), _dec$X(_class$X = _dec2$X(_class$X = class AopSimple extends AopSimpleBase {
|
|
72
73
|
// magic
|
|
73
74
|
__get__(prop, next) {
|
|
74
75
|
const value = next();
|
|
@@ -108,14 +109,14 @@ let AopSimple = (_dec$V = Aop({
|
|
|
108
109
|
const result = await next();
|
|
109
110
|
return `${result}:simpleaop`;
|
|
110
111
|
}
|
|
111
|
-
}) || _class$
|
|
112
|
+
}) || _class$X) || _class$X);
|
|
112
113
|
|
|
113
|
-
var _dec$
|
|
114
|
-
let AopMethodTest = (_dec$
|
|
114
|
+
var _dec$W, _dec2$W, _class$W;
|
|
115
|
+
let AopMethodTest = (_dec$W = AopMethod({
|
|
115
116
|
wrapper: ''
|
|
116
|
-
}), _dec2$
|
|
117
|
+
}), _dec2$W = BeanInfo({
|
|
117
118
|
module: "test-vona"
|
|
118
|
-
}), _dec$
|
|
119
|
+
}), _dec$W(_class$W = _dec2$W(_class$W = class AopMethodTest extends BeanAopMethodBase {
|
|
119
120
|
get(options, next, _receiver, _prop) {
|
|
120
121
|
const res = next();
|
|
121
122
|
return this._wrapper(options.wrapper, res);
|
|
@@ -142,7 +143,7 @@ let AopMethodTest = (_dec$U = AopMethod({
|
|
|
142
143
|
if (index === data.length - wrapper.length) data = data.substring(0, index);
|
|
143
144
|
return data;
|
|
144
145
|
}
|
|
145
|
-
}) || _class$
|
|
146
|
+
}) || _class$W) || _class$W);
|
|
146
147
|
|
|
147
148
|
function _applyDecoratedDescriptor(i, e, r, n, l) {
|
|
148
149
|
var a = {};
|
|
@@ -161,10 +162,10 @@ function _initializerDefineProperty(e, i, r, l) {
|
|
|
161
162
|
});
|
|
162
163
|
}
|
|
163
164
|
|
|
164
|
-
var _dec$
|
|
165
|
-
let EntityCategory = (_dec$
|
|
165
|
+
var _dec$V, _dec2$V, _dec3$q, _dec4$q, _dec5$p, _dec6$p, _class$V, _class2$q, _descriptor$a, _descriptor2$9;
|
|
166
|
+
let EntityCategory = (_dec$V = Entity('testVonaCategory'), _dec2$V = BeanInfo({
|
|
166
167
|
module: "test-vona"
|
|
167
|
-
}), _dec3$q = Api.field(), _dec4$q = Reflect.metadata("design:type", String), _dec5$p = Api.field(v.tableIdentity()), _dec6$p = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$
|
|
168
|
+
}), _dec3$q = Api.field(), _dec4$q = Reflect.metadata("design:type", String), _dec5$p = Api.field(v.optional(), v.tableIdentity()), _dec6$p = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$V(_class$V = _dec2$V(_class$V = (_class2$q = class EntityCategory extends EntityBase {
|
|
168
169
|
constructor(...args) {
|
|
169
170
|
super(...args);
|
|
170
171
|
_initializerDefineProperty(this, "name", _descriptor$a, this);
|
|
@@ -180,12 +181,12 @@ let EntityCategory = (_dec$T = Entity('testVonaCategory'), _dec2$T = BeanInfo({
|
|
|
180
181
|
enumerable: true,
|
|
181
182
|
writable: true,
|
|
182
183
|
initializer: null
|
|
183
|
-
}), _class2$q)) || _class$
|
|
184
|
+
}), _class2$q)) || _class$V) || _class$V);
|
|
184
185
|
|
|
185
|
-
var _dec$
|
|
186
|
-
let EntityPost = (_dec$
|
|
186
|
+
var _dec$U, _dec2$U, _dec3$p, _dec4$p, _dec5$o, _dec6$o, _dec7$k, _dec8$g, _class$U, _class2$p, _descriptor$9, _descriptor2$8, _descriptor3$4;
|
|
187
|
+
let EntityPost = (_dec$U = Entity('testVonaPost'), _dec2$U = BeanInfo({
|
|
187
188
|
module: "test-vona"
|
|
188
|
-
}), _dec3$p = Api.field(), _dec4$p = Reflect.metadata("design:type", String), _dec5$o = Api.field(v.tableIdentity()), _dec6$o = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec7$k = Api.field(v.optional()), _dec8$g = Reflect.metadata("design:type", Number), _dec$
|
|
189
|
+
}), _dec3$p = Api.field(), _dec4$p = Reflect.metadata("design:type", String), _dec5$o = Api.field(v.tableIdentity()), _dec6$o = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec7$k = Api.field(v.optional()), _dec8$g = Reflect.metadata("design:type", Number), _dec$U(_class$U = _dec2$U(_class$U = (_class2$p = class EntityPost extends EntityBase {
|
|
189
190
|
constructor(...args) {
|
|
190
191
|
super(...args);
|
|
191
192
|
_initializerDefineProperty(this, "title", _descriptor$9, this);
|
|
@@ -207,12 +208,12 @@ let EntityPost = (_dec$S = Entity('testVonaPost'), _dec2$S = BeanInfo({
|
|
|
207
208
|
enumerable: true,
|
|
208
209
|
writable: true,
|
|
209
210
|
initializer: null
|
|
210
|
-
}), _class2$p)) || _class$
|
|
211
|
+
}), _class2$p)) || _class$U) || _class$U);
|
|
211
212
|
|
|
212
|
-
var _dec$
|
|
213
|
-
let EntityPostContent = (_dec$
|
|
213
|
+
var _dec$T, _dec2$T, _dec3$o, _dec4$o, _dec5$n, _dec6$n, _class$T, _class2$o, _descriptor$8, _descriptor2$7;
|
|
214
|
+
let EntityPostContent = (_dec$T = Entity('testVonaPostContent'), _dec2$T = BeanInfo({
|
|
214
215
|
module: "test-vona"
|
|
215
|
-
}), _dec3$o = Api.field(), _dec4$o = Reflect.metadata("design:type", String), _dec5$n = Api.field(v.tableIdentity()), _dec6$n = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$
|
|
216
|
+
}), _dec3$o = Api.field(), _dec4$o = Reflect.metadata("design:type", String), _dec5$n = Api.field(v.tableIdentity()), _dec6$n = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$T(_class$T = _dec2$T(_class$T = (_class2$o = class EntityPostContent extends EntityBase {
|
|
216
217
|
constructor(...args) {
|
|
217
218
|
super(...args);
|
|
218
219
|
_initializerDefineProperty(this, "content", _descriptor$8, this);
|
|
@@ -228,12 +229,12 @@ let EntityPostContent = (_dec$R = Entity('testVonaPostContent'), _dec2$R = BeanI
|
|
|
228
229
|
enumerable: true,
|
|
229
230
|
writable: true,
|
|
230
231
|
initializer: null
|
|
231
|
-
}), _class2$o)) || _class$
|
|
232
|
+
}), _class2$o)) || _class$T) || _class$T);
|
|
232
233
|
|
|
233
|
-
var _dec$
|
|
234
|
-
let EntityRole = (_dec$
|
|
234
|
+
var _dec$S, _dec2$S, _dec3$n, _dec4$n, _class$S, _class2$n, _descriptor$7;
|
|
235
|
+
let EntityRole = (_dec$S = Entity('testVonaRole'), _dec2$S = BeanInfo({
|
|
235
236
|
module: "test-vona"
|
|
236
|
-
}), _dec3$n = Api.field(), _dec4$n = Reflect.metadata("design:type", String), _dec$
|
|
237
|
+
}), _dec3$n = Api.field(), _dec4$n = Reflect.metadata("design:type", String), _dec$S(_class$S = _dec2$S(_class$S = (_class2$n = class EntityRole extends EntityBase {
|
|
237
238
|
constructor(...args) {
|
|
238
239
|
super(...args);
|
|
239
240
|
_initializerDefineProperty(this, "name", _descriptor$7, this);
|
|
@@ -243,12 +244,12 @@ let EntityRole = (_dec$Q = Entity('testVonaRole'), _dec2$Q = BeanInfo({
|
|
|
243
244
|
enumerable: true,
|
|
244
245
|
writable: true,
|
|
245
246
|
initializer: null
|
|
246
|
-
}), _class2$n)) || _class$
|
|
247
|
+
}), _class2$n)) || _class$S) || _class$S);
|
|
247
248
|
|
|
248
|
-
var _dec$
|
|
249
|
-
let EntityRoleUser = (_dec$
|
|
249
|
+
var _dec$R, _dec2$R, _dec3$m, _dec4$m, _dec5$m, _dec6$m, _class$R, _class2$m, _descriptor$6, _descriptor2$6;
|
|
250
|
+
let EntityRoleUser = (_dec$R = Entity('testVonaRoleUser'), _dec2$R = BeanInfo({
|
|
250
251
|
module: "test-vona"
|
|
251
|
-
}), _dec3$m = Api.field(v.tableIdentity()), _dec4$m = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec5$m = Api.field(v.tableIdentity()), _dec6$m = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$
|
|
252
|
+
}), _dec3$m = Api.field(v.tableIdentity()), _dec4$m = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec5$m = Api.field(v.tableIdentity()), _dec6$m = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$R(_class$R = _dec2$R(_class$R = (_class2$m = class EntityRoleUser extends EntityBase {
|
|
252
253
|
constructor(...args) {
|
|
253
254
|
super(...args);
|
|
254
255
|
_initializerDefineProperty(this, "userId", _descriptor$6, this);
|
|
@@ -264,18 +265,18 @@ let EntityRoleUser = (_dec$P = Entity('testVonaRoleUser'), _dec2$P = BeanInfo({
|
|
|
264
265
|
enumerable: true,
|
|
265
266
|
writable: true,
|
|
266
267
|
initializer: null
|
|
267
|
-
}), _class2$m)) || _class$
|
|
268
|
+
}), _class2$m)) || _class$R) || _class$R);
|
|
268
269
|
|
|
269
|
-
var _dec$
|
|
270
|
-
let EntityTest = (_dec$
|
|
270
|
+
var _dec$Q, _dec2$Q, _dec3$l, _dec4$l, _dec5$l, _dec6$l, _dec7$j, _dec8$f, _class$Q, _class2$l, _descriptor$5, _descriptor2$5, _descriptor3$3;
|
|
271
|
+
let EntityTest = (_dec$Q = Entity('testVonaTest', {
|
|
271
272
|
openapi: {
|
|
272
273
|
title: $locale('Test')
|
|
273
274
|
}
|
|
274
|
-
}), _dec2$
|
|
275
|
+
}), _dec2$Q = BeanInfo({
|
|
275
276
|
module: "test-vona"
|
|
276
277
|
}), _dec3$l = Api.field(v.title($locale('Test'))), _dec4$l = Reflect.metadata("design:type", String), _dec5$l = Api.field(), _dec6$l = Reflect.metadata("design:type", String), _dec7$j = Api.field(v.default(() => {
|
|
277
278
|
return new Date();
|
|
278
|
-
})), _dec8$f = Reflect.metadata("design:type", typeof Date === "undefined" ? Object : Date), _dec$
|
|
279
|
+
})), _dec8$f = Reflect.metadata("design:type", typeof Date === "undefined" ? Object : Date), _dec$Q(_class$Q = _dec2$Q(_class$Q = (_class2$l = class EntityTest extends EntityBase {
|
|
279
280
|
constructor(...args) {
|
|
280
281
|
super(...args);
|
|
281
282
|
_initializerDefineProperty(this, "title", _descriptor$5, this);
|
|
@@ -297,12 +298,12 @@ let EntityTest = (_dec$O = Entity('testVonaTest', {
|
|
|
297
298
|
enumerable: true,
|
|
298
299
|
writable: true,
|
|
299
300
|
initializer: null
|
|
300
|
-
}), _class2$l)) || _class$
|
|
301
|
+
}), _class2$l)) || _class$Q) || _class$Q);
|
|
301
302
|
|
|
302
|
-
var _dec$
|
|
303
|
-
let EntityUser = (_dec$
|
|
303
|
+
var _dec$P, _dec2$P, _dec3$k, _dec4$k, _dec5$k, _dec6$k, _dec7$i, _dec8$e, _class$P, _class2$k, _descriptor$4, _descriptor2$4, _descriptor3$2;
|
|
304
|
+
let EntityUser = (_dec$P = Entity('testVonaUser'), _dec2$P = BeanInfo({
|
|
304
305
|
module: "test-vona"
|
|
305
|
-
}), _dec3$k = Api.field(), _dec4$k = Reflect.metadata("design:type", String), _dec5$k = Api.field(v.optional()), _dec6$k = Reflect.metadata("design:type", Number), _dec7$i = Api.field(v.optional()), _dec8$e = Reflect.metadata("design:type", Number), _dec$
|
|
306
|
+
}), _dec3$k = Api.field(), _dec4$k = Reflect.metadata("design:type", String), _dec5$k = Api.field(v.optional()), _dec6$k = Reflect.metadata("design:type", Number), _dec7$i = Api.field(v.optional()), _dec8$e = Reflect.metadata("design:type", Number), _dec$P(_class$P = _dec2$P(_class$P = (_class2$k = class EntityUser extends EntityBase {
|
|
306
307
|
constructor(...args) {
|
|
307
308
|
super(...args);
|
|
308
309
|
_initializerDefineProperty(this, "name", _descriptor$4, this);
|
|
@@ -324,23 +325,39 @@ let EntityUser = (_dec$N = Entity('testVonaUser'), _dec2$N = BeanInfo({
|
|
|
324
325
|
enumerable: true,
|
|
325
326
|
writable: true,
|
|
326
327
|
initializer: null
|
|
327
|
-
}), _class2$k)) || _class$
|
|
328
|
+
}), _class2$k)) || _class$P) || _class$P);
|
|
328
329
|
|
|
329
|
-
var _dec$
|
|
330
|
-
let ModelCategory = (_dec$
|
|
330
|
+
var _dec$O, _dec2$O, _class$O;
|
|
331
|
+
let ModelCategory = (_dec$O = Model({
|
|
331
332
|
entity: EntityCategory,
|
|
332
333
|
relations: {
|
|
333
334
|
children: $relation.hasMany(() => ModelCategory, 'categoryIdParent', {
|
|
334
335
|
autoload: true,
|
|
335
336
|
columns: ['id', 'name']
|
|
336
337
|
})
|
|
338
|
+
},
|
|
339
|
+
cache: {
|
|
340
|
+
modelsClear: () => ModelCategoryChain$1
|
|
337
341
|
}
|
|
338
|
-
}), _dec2$
|
|
342
|
+
}), _dec2$O = BeanInfo({
|
|
339
343
|
module: "test-vona"
|
|
340
|
-
}), _dec$
|
|
344
|
+
}), _dec$O(_class$O = _dec2$O(_class$O = class ModelCategory extends BeanModelBase {}) || _class$O) || _class$O);
|
|
341
345
|
|
|
342
|
-
var _dec$
|
|
343
|
-
let
|
|
346
|
+
var _dec$N, _dec2$N, _class$N;
|
|
347
|
+
let ModelCategoryChain = (_dec$N = Model({
|
|
348
|
+
entity: EntityCategory,
|
|
349
|
+
relations: {
|
|
350
|
+
parent: $relation.belongsTo(() => ModelCategoryChain, () => ModelCategoryChain, 'categoryIdParent', {
|
|
351
|
+
autoload: true,
|
|
352
|
+
columns: ['id', 'name', 'categoryIdParent']
|
|
353
|
+
})
|
|
354
|
+
}
|
|
355
|
+
}), _dec2$N = BeanInfo({
|
|
356
|
+
module: "test-vona"
|
|
357
|
+
}), _dec$N(_class$N = _dec2$N(_class$N = class ModelCategoryChain extends BeanModelBase {}) || _class$N) || _class$N);
|
|
358
|
+
|
|
359
|
+
var _dec$M, _dec2$M, _class$M;
|
|
360
|
+
let ModelPostContent = (_dec$M = Model({
|
|
344
361
|
entity: EntityPostContent,
|
|
345
362
|
relations: {
|
|
346
363
|
post: $relation.belongsTo(ModelPostContent, () => ModelPost, 'postId')
|
|
@@ -348,12 +365,12 @@ let ModelPostContent = (_dec$L = Model({
|
|
|
348
365
|
cache: {
|
|
349
366
|
modelsClear: () => ModelPost
|
|
350
367
|
}
|
|
351
|
-
}), _dec2$
|
|
368
|
+
}), _dec2$M = BeanInfo({
|
|
352
369
|
module: "test-vona"
|
|
353
|
-
}), _dec$
|
|
370
|
+
}), _dec$M(_class$M = _dec2$M(_class$M = class ModelPostContent extends BeanModelBase {}) || _class$M) || _class$M);
|
|
354
371
|
|
|
355
|
-
var _dec$
|
|
356
|
-
let ModelUserStats = (_dec$
|
|
372
|
+
var _dec$L, _dec2$L, _class$L;
|
|
373
|
+
let ModelUserStats = (_dec$L = Model({
|
|
357
374
|
entity: EntityUser,
|
|
358
375
|
relations: {
|
|
359
376
|
posts: $relation.hasMany(() => ModelPost, 'userId', {
|
|
@@ -369,12 +386,12 @@ let ModelUserStats = (_dec$K = Model({
|
|
|
369
386
|
}
|
|
370
387
|
})
|
|
371
388
|
}
|
|
372
|
-
}), _dec2$
|
|
389
|
+
}), _dec2$L = BeanInfo({
|
|
373
390
|
module: "test-vona"
|
|
374
|
-
}), _dec$
|
|
391
|
+
}), _dec$L(_class$L = _dec2$L(_class$L = class ModelUserStats extends BeanModelBase {}) || _class$L) || _class$L);
|
|
375
392
|
|
|
376
|
-
var _dec$
|
|
377
|
-
let ModelUserStatsGroup = (_dec$
|
|
393
|
+
var _dec$K, _dec2$K, _class$K;
|
|
394
|
+
let ModelUserStatsGroup = (_dec$K = Model({
|
|
378
395
|
entity: EntityUser,
|
|
379
396
|
relations: {
|
|
380
397
|
posts: $relation.hasMany(() => ModelPost, 'userId', {
|
|
@@ -394,12 +411,12 @@ let ModelUserStatsGroup = (_dec$J = Model({
|
|
|
394
411
|
orders: [['name', 'asc']]
|
|
395
412
|
}, undefined, true)
|
|
396
413
|
}
|
|
397
|
-
}), _dec2$
|
|
414
|
+
}), _dec2$K = BeanInfo({
|
|
398
415
|
module: "test-vona"
|
|
399
|
-
}), _dec$
|
|
416
|
+
}), _dec$K(_class$K = _dec2$K(_class$K = class ModelUserStatsGroup extends BeanModelBase {}) || _class$K) || _class$K);
|
|
400
417
|
|
|
401
|
-
var _dec$
|
|
402
|
-
let ModelUser = (_dec$
|
|
418
|
+
var _dec$J, _dec2$J, _class$J;
|
|
419
|
+
let ModelUser = (_dec$J = Model({
|
|
403
420
|
entity: EntityUser,
|
|
404
421
|
relations: {
|
|
405
422
|
posts: $relation.hasMany(() => ModelPost, 'userId', {
|
|
@@ -412,12 +429,12 @@ let ModelUser = (_dec$I = Model({
|
|
|
412
429
|
cache: {
|
|
413
430
|
modelsClear: [() => ModelUserStats, () => ModelUserStatsGroup]
|
|
414
431
|
}
|
|
415
|
-
}), _dec2$
|
|
432
|
+
}), _dec2$J = BeanInfo({
|
|
416
433
|
module: "test-vona"
|
|
417
|
-
}), _dec$
|
|
434
|
+
}), _dec$J(_class$J = _dec2$J(_class$J = class ModelUser extends BeanModelBase {}) || _class$J) || _class$J);
|
|
418
435
|
|
|
419
|
-
var _dec$
|
|
420
|
-
let ModelPost = (_dec$
|
|
436
|
+
var _dec$I, _dec2$I, _class$I;
|
|
437
|
+
let ModelPost = (_dec$I = Model({
|
|
421
438
|
entity: EntityPost,
|
|
422
439
|
relations: {
|
|
423
440
|
postContent: $relation.hasOne('test-vona:postContent', 'postId', {
|
|
@@ -428,39 +445,39 @@ let ModelPost = (_dec$H = Model({
|
|
|
428
445
|
columns: ['id', 'name']
|
|
429
446
|
})
|
|
430
447
|
}
|
|
431
|
-
}), _dec2$
|
|
448
|
+
}), _dec2$I = BeanInfo({
|
|
432
449
|
module: "test-vona"
|
|
433
|
-
}), _dec$
|
|
450
|
+
}), _dec$I(_class$I = _dec2$I(_class$I = class ModelPost extends BeanModelBase {}) || _class$I) || _class$I);
|
|
434
451
|
|
|
435
|
-
var _dec$
|
|
436
|
-
let ModelRoleUser = (_dec$
|
|
452
|
+
var _dec$H, _dec2$H, _class$H;
|
|
453
|
+
let ModelRoleUser = (_dec$H = Model({
|
|
437
454
|
entity: EntityRoleUser
|
|
438
|
-
}), _dec2$
|
|
455
|
+
}), _dec2$H = BeanInfo({
|
|
439
456
|
module: "test-vona"
|
|
440
|
-
}), _dec$
|
|
457
|
+
}), _dec$H(_class$H = _dec2$H(_class$H = class ModelRoleUser extends BeanModelBase {}) || _class$H) || _class$H);
|
|
441
458
|
|
|
442
|
-
var _dec$
|
|
443
|
-
let ModelRole = (_dec$
|
|
459
|
+
var _dec$G, _dec2$G, _class$G;
|
|
460
|
+
let ModelRole = (_dec$G = Model({
|
|
444
461
|
entity: EntityRole,
|
|
445
462
|
relations: {
|
|
446
463
|
users: $relation.belongsToMany(() => ModelRoleUser, () => ModelUser, 'roleId', 'userId', {
|
|
447
464
|
columns: ['id', 'name']
|
|
448
465
|
})
|
|
449
466
|
}
|
|
450
|
-
}), _dec2$
|
|
467
|
+
}), _dec2$G = BeanInfo({
|
|
451
468
|
module: "test-vona"
|
|
452
|
-
}), _dec$
|
|
469
|
+
}), _dec$G(_class$G = _dec2$G(_class$G = class ModelRole extends BeanModelBase {}) || _class$G) || _class$G);
|
|
453
470
|
|
|
454
|
-
var _dec$
|
|
455
|
-
let ModelTest = (_dec$
|
|
471
|
+
var _dec$F, _dec2$F, _class$F;
|
|
472
|
+
let ModelTest = (_dec$F = Model({
|
|
456
473
|
entity: EntityTest,
|
|
457
474
|
client: 'default'
|
|
458
|
-
}), _dec2$
|
|
475
|
+
}), _dec2$F = BeanInfo({
|
|
459
476
|
module: "test-vona"
|
|
460
|
-
}), _dec$
|
|
477
|
+
}), _dec$F(_class$F = _dec2$F(_class$F = class ModelTest extends BeanModelBase {}) || _class$F) || _class$F);
|
|
461
478
|
|
|
462
|
-
var _dec$
|
|
463
|
-
let ModelTestDynamicTable = (_dec$
|
|
479
|
+
var _dec$E, _dec2$E, _class$E;
|
|
480
|
+
let ModelTestDynamicTable = (_dec$E = Model({
|
|
464
481
|
entity: EntityTest,
|
|
465
482
|
table(ctx, defaultTable) {
|
|
466
483
|
if (ctx.instanceName !== '') return defaultTable;
|
|
@@ -471,11 +488,11 @@ let ModelTestDynamicTable = (_dec$D = Model({
|
|
|
471
488
|
// do nothing
|
|
472
489
|
}
|
|
473
490
|
}
|
|
474
|
-
}), _dec2$
|
|
491
|
+
}), _dec2$E = BeanInfo({
|
|
475
492
|
module: "test-vona"
|
|
476
|
-
}), _dec$
|
|
493
|
+
}), _dec$E(_class$E = _dec2$E(_class$E = class ModelTestDynamicTable extends BeanModelBase {}) || _class$E) || _class$E);
|
|
477
494
|
|
|
478
|
-
var _dec$
|
|
495
|
+
var _dec$D, _dec2$D, _class$D;
|
|
479
496
|
class TestCtx0 extends BeanBase {
|
|
480
497
|
constructor(...args) {
|
|
481
498
|
super(...args);
|
|
@@ -537,20 +554,20 @@ class TestCtx1 extends TestCtx0 {
|
|
|
537
554
|
});
|
|
538
555
|
}
|
|
539
556
|
}
|
|
540
|
-
let BeanTestCtx = (_dec$
|
|
557
|
+
let BeanTestCtx = (_dec$D = Bean(), _dec2$D = BeanInfo({
|
|
541
558
|
module: "test-vona"
|
|
542
|
-
}), _dec$
|
|
559
|
+
}), _dec$D(_class$D = _dec2$D(_class$D = class BeanTestCtx extends TestCtx1 {}) || _class$D) || _class$D);
|
|
543
560
|
|
|
544
|
-
var _dec$
|
|
545
|
-
let ServiceAopMethodBase = (_dec$
|
|
561
|
+
var _dec$C, _dec2$C, _dec3$j, _dec4$j, _class$C, _dec5$j, _dec6$j, _dec7$h, _dec8$d, _dec9$9, _dec0$9, _dec1$9, _dec10$7, _dec11$7, _dec12$7, _dec13$7, _dec14$6, _dec15$6, _dec16$6, _class2$j, _class3;
|
|
562
|
+
let ServiceAopMethodBase = (_dec$C = Aspect.aopMethod('test-vona:test', {
|
|
546
563
|
wrapper: '+'
|
|
547
|
-
}), _dec2$
|
|
564
|
+
}), _dec2$C = Aspect.aopMethod('test-vona:test', {
|
|
548
565
|
wrapper: '-'
|
|
549
|
-
}), _dec3$j = Reflect.metadata("design:type", Function), _dec4$j = Reflect.metadata("design:paramtypes", []), _class$
|
|
566
|
+
}), _dec3$j = Reflect.metadata("design:type", Function), _dec4$j = Reflect.metadata("design:paramtypes", []), _class$C = class ServiceAopMethodBase extends BeanBase {
|
|
550
567
|
testSyncBase() {
|
|
551
568
|
return 'hello';
|
|
552
569
|
}
|
|
553
|
-
}, _applyDecoratedDescriptor(_class$
|
|
570
|
+
}, _applyDecoratedDescriptor(_class$C.prototype, "testSyncBase", [_dec$C, _dec2$C, _dec3$j, _dec4$j], Object.getOwnPropertyDescriptor(_class$C.prototype, "testSyncBase"), _class$C.prototype), _class$C);
|
|
554
571
|
let ServiceAopMethod = (_dec5$j = Service(), _dec6$j = BeanInfo({
|
|
555
572
|
module: "test-vona"
|
|
556
573
|
}), _dec7$h = Aspect.aopMethod('test-vona:test', {
|
|
@@ -584,11 +601,11 @@ let ServiceAopMethod = (_dec5$j = Service(), _dec6$j = BeanInfo({
|
|
|
584
601
|
}
|
|
585
602
|
}, _applyDecoratedDescriptor(_class3.prototype, "testSync", [_dec7$h, _dec8$d, _dec9$9, _dec0$9], Object.getOwnPropertyDescriptor(_class3.prototype, "testSync"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, "testAsync", [_dec1$9, _dec10$7, _dec11$7, _dec12$7], Object.getOwnPropertyDescriptor(_class3.prototype, "testAsync"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, "name", [_dec13$7, _dec14$6, _dec15$6, _dec16$6], Object.getOwnPropertyDescriptor(_class3.prototype, "name"), _class3.prototype), _class3)) || _class2$j) || _class2$j);
|
|
586
603
|
|
|
587
|
-
var _dec$
|
|
604
|
+
var _dec$B, _dec2$B, _dec3$i, _dec4$i, _dec5$i, _dec6$i, _dec7$g, _dec8$c, _dec9$8, _dec0$8, _dec1$8, _dec10$6, _dec11$6, _dec12$6, _dec13$6, _dec14$5, _dec15$5, _dec16$5, _dec17$4, _dec18$4, _dec19$4, _dec20$4, _dec21$4, _dec22$4, _dec23$4, _dec24$4, _dec25$4, _dec26$3, _dec27$3, _class$B, _class2$i;
|
|
588
605
|
function cacheKeyFn(args, prop, options) {
|
|
589
606
|
return `${this.$beanFullName}_${options.cacheProp ?? prop}_${getKeyHash(args)}`;
|
|
590
607
|
}
|
|
591
|
-
let ServiceCaching = (_dec$
|
|
608
|
+
let ServiceCaching = (_dec$B = Service(), _dec2$B = BeanInfo({
|
|
592
609
|
module: "test-vona"
|
|
593
610
|
}), _dec3$i = Caching.get({
|
|
594
611
|
cacheName: 'test-vona:test',
|
|
@@ -624,7 +641,7 @@ let ServiceCaching = (_dec$A = Service(), _dec2$A = BeanInfo({
|
|
|
624
641
|
cacheProp: 'test'
|
|
625
642
|
}), _dec23$4 = Reflect.metadata("design:type", Function), _dec24$4 = Reflect.metadata("design:paramtypes", [Number]), _dec25$4 = Caching.clear({
|
|
626
643
|
cacheName: 'test-vona:test'
|
|
627
|
-
}), _dec26$3 = Reflect.metadata("design:type", Function), _dec27$3 = Reflect.metadata("design:paramtypes", []), _dec$
|
|
644
|
+
}), _dec26$3 = Reflect.metadata("design:type", Function), _dec27$3 = Reflect.metadata("design:paramtypes", []), _dec$B(_class$B = _dec2$B(_class$B = (_class2$i = class ServiceCaching extends BeanBase {
|
|
628
645
|
cacheKey(args, prop, options) {
|
|
629
646
|
return `${this.$beanFullName}_${options.cacheProp ?? prop}_${getKeyHash(args)}`;
|
|
630
647
|
}
|
|
@@ -668,21 +685,21 @@ let ServiceCaching = (_dec$A = Service(), _dec2$A = BeanInfo({
|
|
|
668
685
|
async clear() {
|
|
669
686
|
// do nothing
|
|
670
687
|
}
|
|
671
|
-
}, _applyDecoratedDescriptor(_class2$i.prototype, "get", [_dec3$i, _dec4$i, _dec5$i], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "get2", [_dec6$i, _dec7$g, _dec8$c], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get2"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "get3", [_dec9$8, _dec0$8, _dec1$8], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get3"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "get4", [_dec10$6, _dec11$6, _dec12$6], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get4"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "set", [_dec13$6, _dec14$5, _dec15$5], Object.getOwnPropertyDescriptor(_class2$i.prototype, "set"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "set2", [_dec16$5, _dec17$4, _dec18$4], Object.getOwnPropertyDescriptor(_class2$i.prototype, "set2"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "set3", [_dec19$4, _dec20$4, _dec21$4], Object.getOwnPropertyDescriptor(_class2$i.prototype, "set3"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "del", [_dec22$4, _dec23$4, _dec24$4], Object.getOwnPropertyDescriptor(_class2$i.prototype, "del"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "clear", [_dec25$4, _dec26$3, _dec27$3], Object.getOwnPropertyDescriptor(_class2$i.prototype, "clear"), _class2$i.prototype), _class2$i)) || _class$
|
|
688
|
+
}, _applyDecoratedDescriptor(_class2$i.prototype, "get", [_dec3$i, _dec4$i, _dec5$i], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "get2", [_dec6$i, _dec7$g, _dec8$c], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get2"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "get3", [_dec9$8, _dec0$8, _dec1$8], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get3"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "get4", [_dec10$6, _dec11$6, _dec12$6], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get4"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "set", [_dec13$6, _dec14$5, _dec15$5], Object.getOwnPropertyDescriptor(_class2$i.prototype, "set"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "set2", [_dec16$5, _dec17$4, _dec18$4], Object.getOwnPropertyDescriptor(_class2$i.prototype, "set2"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "set3", [_dec19$4, _dec20$4, _dec21$4], Object.getOwnPropertyDescriptor(_class2$i.prototype, "set3"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "del", [_dec22$4, _dec23$4, _dec24$4], Object.getOwnPropertyDescriptor(_class2$i.prototype, "del"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "clear", [_dec25$4, _dec26$3, _dec27$3], Object.getOwnPropertyDescriptor(_class2$i.prototype, "clear"), _class2$i.prototype), _class2$i)) || _class$B) || _class$B);
|
|
672
689
|
|
|
673
|
-
var _dec$
|
|
674
|
-
let ServiceTest = (_dec$
|
|
690
|
+
var _dec$A, _dec2$A, _class$A;
|
|
691
|
+
let ServiceTest = (_dec$A = Service(), _dec2$A = BeanInfo({
|
|
675
692
|
module: "test-vona"
|
|
676
|
-
}), _dec$
|
|
693
|
+
}), _dec$A(_class$A = _dec2$A(_class$A = class ServiceTest extends BeanBase {
|
|
677
694
|
get name() {
|
|
678
695
|
return 'serviceTest';
|
|
679
696
|
}
|
|
680
|
-
}) || _class$
|
|
697
|
+
}) || _class$A) || _class$A);
|
|
681
698
|
|
|
682
|
-
var _dec$
|
|
683
|
-
let ServiceTestApp = (_dec$
|
|
699
|
+
var _dec$z, _dec2$z, _class$z;
|
|
700
|
+
let ServiceTestApp = (_dec$z = Service(), _dec2$z = BeanInfo({
|
|
684
701
|
module: "test-vona"
|
|
685
|
-
}), _dec$
|
|
702
|
+
}), _dec$z(_class$z = _dec2$z(_class$z = class ServiceTestApp extends BeanBase {
|
|
686
703
|
actionSync({
|
|
687
704
|
a,
|
|
688
705
|
b
|
|
@@ -695,9 +712,9 @@ let ServiceTestApp = (_dec$y = Service(), _dec2$y = BeanInfo({
|
|
|
695
712
|
}) {
|
|
696
713
|
return Promise.resolve(a + b);
|
|
697
714
|
}
|
|
698
|
-
}) || _class$
|
|
715
|
+
}) || _class$z) || _class$z);
|
|
699
716
|
|
|
700
|
-
var _dec$
|
|
717
|
+
var _dec$y, _dec2$y, _class$y;
|
|
701
718
|
class ClassBeanBase extends BeanBase {
|
|
702
719
|
actionSync({
|
|
703
720
|
a,
|
|
@@ -706,21 +723,21 @@ class ClassBeanBase extends BeanBase {
|
|
|
706
723
|
return a + b;
|
|
707
724
|
}
|
|
708
725
|
}
|
|
709
|
-
let ServiceTestClass = (_dec$
|
|
726
|
+
let ServiceTestClass = (_dec$y = Service(), _dec2$y = BeanInfo({
|
|
710
727
|
module: "test-vona"
|
|
711
|
-
}), _dec$
|
|
728
|
+
}), _dec$y(_class$y = _dec2$y(_class$y = class ServiceTestClass extends ClassBeanBase {
|
|
712
729
|
async actionAsync({
|
|
713
730
|
a,
|
|
714
731
|
b
|
|
715
732
|
}) {
|
|
716
733
|
return Promise.resolve(a + b);
|
|
717
734
|
}
|
|
718
|
-
}) || _class$
|
|
735
|
+
}) || _class$y) || _class$y);
|
|
719
736
|
|
|
720
|
-
var _dec$
|
|
721
|
-
let ServiceTestData = (_dec$
|
|
737
|
+
var _dec$x, _dec2$x, _class$x;
|
|
738
|
+
let ServiceTestData = (_dec$x = Service(), _dec2$x = BeanInfo({
|
|
722
739
|
module: "test-vona"
|
|
723
|
-
}), _dec$
|
|
740
|
+
}), _dec$x(_class$x = _dec2$x(_class$x = class ServiceTestData extends BeanBase {
|
|
724
741
|
async create(prefix) {
|
|
725
742
|
const scopeTest = this.scope;
|
|
726
743
|
const userTom = await scopeTest.model.user.insert({
|
|
@@ -807,14 +824,14 @@ let ServiceTestData = (_dec$w = Service(), _dec2$w = BeanInfo({
|
|
|
807
824
|
id: userJimmy.id
|
|
808
825
|
});
|
|
809
826
|
}
|
|
810
|
-
}) || _class$
|
|
827
|
+
}) || _class$x) || _class$x);
|
|
811
828
|
|
|
812
|
-
var _dec$
|
|
829
|
+
var _dec$w, _dec2$w, _dec3$h, _dec4$h, _dec5$h, _dec6$h, _dec7$f, _dec8$b, _class$w, _class2$h;
|
|
813
830
|
const tableNameFail$1 = '__tempTransactionFail';
|
|
814
831
|
const tableNameSuccess$1 = '__tempTransactionSuccess';
|
|
815
|
-
let ServiceTransaction = (_dec$
|
|
832
|
+
let ServiceTransaction = (_dec$w = Service(), _dec2$w = BeanInfo({
|
|
816
833
|
module: "test-vona"
|
|
817
|
-
}), _dec3$h = Database.transaction(), _dec4$h = Reflect.metadata("design:type", Function), _dec5$h = Reflect.metadata("design:paramtypes", [Object]), _dec6$h = Database.transaction(), _dec7$f = Reflect.metadata("design:type", Function), _dec8$b = Reflect.metadata("design:paramtypes", [Object]), _dec$
|
|
834
|
+
}), _dec3$h = Database.transaction(), _dec4$h = Reflect.metadata("design:type", Function), _dec5$h = Reflect.metadata("design:paramtypes", [Object]), _dec6$h = Database.transaction(), _dec7$f = Reflect.metadata("design:type", Function), _dec8$b = Reflect.metadata("design:paramtypes", [Object]), _dec$w(_class$w = _dec2$w(_class$w = (_class2$h = class ServiceTransaction extends BeanBase {
|
|
818
835
|
async fail(item) {
|
|
819
836
|
await this.bean.model.update(`${tableNameFail$1}`, item);
|
|
820
837
|
await this.bean.model.update(`${tableNameFail$1}error`, item);
|
|
@@ -822,56 +839,56 @@ let ServiceTransaction = (_dec$v = Service(), _dec2$v = BeanInfo({
|
|
|
822
839
|
async success(item) {
|
|
823
840
|
await this.bean.model.update(tableNameSuccess$1, item);
|
|
824
841
|
}
|
|
825
|
-
}, _applyDecoratedDescriptor(_class2$h.prototype, "fail", [_dec3$h, _dec4$h, _dec5$h], Object.getOwnPropertyDescriptor(_class2$h.prototype, "fail"), _class2$h.prototype), _applyDecoratedDescriptor(_class2$h.prototype, "success", [_dec6$h, _dec7$f, _dec8$b], Object.getOwnPropertyDescriptor(_class2$h.prototype, "success"), _class2$h.prototype), _class2$h)) || _class$
|
|
842
|
+
}, _applyDecoratedDescriptor(_class2$h.prototype, "fail", [_dec3$h, _dec4$h, _dec5$h], Object.getOwnPropertyDescriptor(_class2$h.prototype, "fail"), _class2$h.prototype), _applyDecoratedDescriptor(_class2$h.prototype, "success", [_dec6$h, _dec7$f, _dec8$b], Object.getOwnPropertyDescriptor(_class2$h.prototype, "success"), _class2$h.prototype), _class2$h)) || _class$w) || _class$w);
|
|
826
843
|
|
|
827
|
-
var _dec$
|
|
828
|
-
let BroadcastTest = (_dec$
|
|
844
|
+
var _dec$v, _dec2$v, _class$v;
|
|
845
|
+
let BroadcastTest = (_dec$v = Broadcast(), _dec2$v = BeanInfo({
|
|
829
846
|
module: "test-vona"
|
|
830
|
-
}), _dec$
|
|
847
|
+
}), _dec$v(_class$v = _dec2$v(_class$v = class BroadcastTest extends BeanBroadcastBase {
|
|
831
848
|
async execute(data, isEmitter) {
|
|
832
849
|
// locale
|
|
833
850
|
assert.equal(this.ctx.locale, 'zh-cn');
|
|
834
851
|
// data
|
|
835
852
|
assert.equal(data.message, 'hello');
|
|
836
853
|
}
|
|
837
|
-
}) || _class$
|
|
854
|
+
}) || _class$v) || _class$v);
|
|
855
|
+
|
|
856
|
+
var _dec$u, _dec2$u, _class$u;
|
|
857
|
+
let CacheMemTest = (_dec$u = CacheMem({
|
|
858
|
+
ttl: 1 * 1000
|
|
859
|
+
}), _dec2$u = BeanInfo({
|
|
860
|
+
module: "test-vona"
|
|
861
|
+
}), _dec$u(_class$u = _dec2$u(_class$u = class CacheMemTest extends BeanCacheMemBase {}) || _class$u) || _class$u);
|
|
838
862
|
|
|
839
863
|
var _dec$t, _dec2$t, _class$t;
|
|
840
|
-
let
|
|
864
|
+
let CacheRedisTest = (_dec$t = CacheRedis({
|
|
841
865
|
ttl: 1 * 1000
|
|
842
866
|
}), _dec2$t = BeanInfo({
|
|
843
867
|
module: "test-vona"
|
|
844
|
-
}), _dec$t(_class$t = _dec2$t(_class$t = class
|
|
868
|
+
}), _dec$t(_class$t = _dec2$t(_class$t = class CacheRedisTest extends BeanCacheRedisBase {}) || _class$t) || _class$t);
|
|
845
869
|
|
|
846
870
|
var _dec$s, _dec2$s, _class$s;
|
|
847
|
-
let
|
|
848
|
-
ttl: 1 * 1000
|
|
849
|
-
}), _dec2$s = BeanInfo({
|
|
871
|
+
let EventHelloEcho = (_dec$s = Event(), _dec2$s = BeanInfo({
|
|
850
872
|
module: "test-vona"
|
|
851
|
-
}), _dec$s(_class$s = _dec2$s(_class$s = class
|
|
873
|
+
}), _dec$s(_class$s = _dec2$s(_class$s = class EventHelloEcho extends BeanEventBase {}) || _class$s) || _class$s);
|
|
852
874
|
|
|
853
875
|
var _dec$r, _dec2$r, _class$r;
|
|
854
|
-
let
|
|
855
|
-
module: "test-vona"
|
|
856
|
-
}), _dec$r(_class$r = _dec2$r(_class$r = class EventHelloEcho extends BeanEventBase {}) || _class$r) || _class$r);
|
|
857
|
-
|
|
858
|
-
var _dec$q, _dec2$q, _class$q;
|
|
859
|
-
let EventListenerHelloEcho = (_dec$q = EventListener({
|
|
876
|
+
let EventListenerHelloEcho = (_dec$r = EventListener({
|
|
860
877
|
match: 'test-vona:helloEcho'
|
|
861
|
-
}), _dec2$
|
|
878
|
+
}), _dec2$r = BeanInfo({
|
|
862
879
|
module: "test-vona"
|
|
863
|
-
}), _dec$
|
|
880
|
+
}), _dec$r(_class$r = _dec2$r(_class$r = class EventListenerHelloEcho extends BeanBase {
|
|
864
881
|
async execute(data, next) {
|
|
865
882
|
// next
|
|
866
883
|
const result = await next();
|
|
867
884
|
return `${data.text} ${result}`;
|
|
868
885
|
}
|
|
869
|
-
}) || _class$
|
|
886
|
+
}) || _class$r) || _class$r);
|
|
870
887
|
|
|
871
|
-
var _dec$
|
|
872
|
-
let MetaVersion = (_dec$
|
|
888
|
+
var _dec$q, _dec2$q, _class$q;
|
|
889
|
+
let MetaVersion = (_dec$q = Meta(), _dec2$q = BeanInfo({
|
|
873
890
|
module: "test-vona"
|
|
874
|
-
}), _dec$
|
|
891
|
+
}), _dec$q(_class$q = _dec2$q(_class$q = class MetaVersion extends BeanBase {
|
|
875
892
|
async update(options) {
|
|
876
893
|
if (options.version === 1) {
|
|
877
894
|
// testVonaTest
|
|
@@ -927,47 +944,47 @@ let MetaVersion = (_dec$p = Meta(), _dec2$p = BeanInfo({
|
|
|
927
944
|
});
|
|
928
945
|
}
|
|
929
946
|
}
|
|
930
|
-
}) || _class$
|
|
947
|
+
}) || _class$q) || _class$q);
|
|
931
948
|
|
|
932
|
-
var _dec$
|
|
933
|
-
let QueueTest = (_dec$
|
|
949
|
+
var _dec$p, _dec2$p, _class$p;
|
|
950
|
+
let QueueTest = (_dec$p = Queue(), _dec2$p = BeanInfo({
|
|
934
951
|
module: "test-vona"
|
|
935
|
-
}), _dec$
|
|
952
|
+
}), _dec$p(_class$p = _dec2$p(_class$p = class QueueTest extends BeanQueueBase {
|
|
936
953
|
async execute(data, _options) {
|
|
937
954
|
return data.a + data.b;
|
|
938
955
|
}
|
|
939
|
-
}) || _class$
|
|
956
|
+
}) || _class$p) || _class$p);
|
|
940
957
|
|
|
941
|
-
var _dec$
|
|
942
|
-
let ScheduleTest = (_dec$
|
|
958
|
+
var _dec$o, _dec2$o, _class$o;
|
|
959
|
+
let ScheduleTest = (_dec$o = Schedule({
|
|
943
960
|
enable: false,
|
|
944
961
|
repeat: {
|
|
945
962
|
every: 3000
|
|
946
963
|
}
|
|
947
|
-
}), _dec2$
|
|
964
|
+
}), _dec2$o = BeanInfo({
|
|
948
965
|
module: "test-vona"
|
|
949
|
-
}), _dec$
|
|
966
|
+
}), _dec$o(_class$o = _dec2$o(_class$o = class ScheduleTest extends BeanBase {
|
|
950
967
|
async execute(job) {
|
|
951
968
|
this.$logger.silly(`Schedule Test: iid=${this.ctx.instance.id}, every=${job?.data.options?.jobOptions?.repeat?.every}, ${new Date()}`);
|
|
952
969
|
}
|
|
953
|
-
}) || _class$
|
|
970
|
+
}) || _class$o) || _class$o);
|
|
954
971
|
|
|
955
|
-
var _dec$
|
|
956
|
-
let ScheduleTest3 = (_dec$
|
|
972
|
+
var _dec$n, _dec2$n, _class$n;
|
|
973
|
+
let ScheduleTest3 = (_dec$n = Schedule({
|
|
957
974
|
enable: false,
|
|
958
975
|
repeat: {
|
|
959
976
|
every: 5000
|
|
960
977
|
}
|
|
961
|
-
}), _dec2$
|
|
978
|
+
}), _dec2$n = BeanInfo({
|
|
962
979
|
module: "test-vona"
|
|
963
|
-
}), _dec$
|
|
980
|
+
}), _dec$n(_class$n = _dec2$n(_class$n = class ScheduleTest3 extends BeanBase {
|
|
964
981
|
async execute(job) {
|
|
965
982
|
this.$logger.silly(`Schedule Test3: iid=${this.ctx.instance.id}, every=${job?.data.options?.jobOptions?.repeat?.every}, ${new Date()}`);
|
|
966
983
|
}
|
|
967
|
-
}) || _class$
|
|
984
|
+
}) || _class$n) || _class$n);
|
|
968
985
|
|
|
969
|
-
var _dec$
|
|
970
|
-
let SummerCacheTest = (_dec$
|
|
986
|
+
var _dec$m, _dec2$m, _class$m;
|
|
987
|
+
let SummerCacheTest = (_dec$m = SummerCache({
|
|
971
988
|
mode: 'all',
|
|
972
989
|
mem: {
|
|
973
990
|
max: 2,
|
|
@@ -976,23 +993,30 @@ let SummerCacheTest = (_dec$l = SummerCache({
|
|
|
976
993
|
redis: {
|
|
977
994
|
ttl: 3 * 1000
|
|
978
995
|
}
|
|
979
|
-
}), _dec2$
|
|
996
|
+
}), _dec2$m = BeanInfo({
|
|
980
997
|
module: "test-vona"
|
|
981
|
-
}), _dec$
|
|
998
|
+
}), _dec$m(_class$m = _dec2$m(_class$m = class SummerCacheTest extends BeanSummerCacheBase {
|
|
982
999
|
async getNative(key, _options) {
|
|
983
1000
|
return {
|
|
984
1001
|
id: key.id,
|
|
985
1002
|
name: `name_${key.id}`
|
|
986
1003
|
};
|
|
987
1004
|
}
|
|
988
|
-
}) || _class$
|
|
1005
|
+
}) || _class$m) || _class$m);
|
|
989
1006
|
|
|
990
|
-
var _dec$
|
|
991
|
-
let DtoCategoryTree = (_dec$
|
|
1007
|
+
var _dec$l, _dec2$l, _class$l;
|
|
1008
|
+
let DtoCategoryTree = (_dec$l = Dto(), _dec2$l = BeanInfo({
|
|
992
1009
|
module: "test-vona"
|
|
993
|
-
}), _dec$
|
|
1010
|
+
}), _dec$l(_class$l = _dec2$l(_class$l = class DtoCategoryTree extends $Dto.get('test-vona:category', {
|
|
994
1011
|
columns: ['id', 'name']
|
|
995
|
-
}) {}) || _class$
|
|
1012
|
+
}) {}) || _class$l) || _class$l);
|
|
1013
|
+
|
|
1014
|
+
var _dec$k, _dec2$k, _class$k;
|
|
1015
|
+
let DtoPostCreate = (_dec$k = Dto({
|
|
1016
|
+
independent: true
|
|
1017
|
+
}), _dec2$k = BeanInfo({
|
|
1018
|
+
module: "test-vona"
|
|
1019
|
+
}), _dec$k(_class$k = _dec2$k(_class$k = class DtoPostCreate extends $Dto.create(() => ModelPost) {}) || _class$k) || _class$k);
|
|
996
1020
|
|
|
997
1021
|
var _dec$j, _dec2$j, _dec3$g, _dec4$g, _dec5$g, _dec6$g, _class$j, _class2$g, _descriptor$3, _descriptor2$3;
|
|
998
1022
|
let DtoProfile = (_dec$j = Dto(), _dec2$j = BeanInfo({
|
|
@@ -1091,15 +1115,14 @@ let DtoUser = (_dec$g = Dto({
|
|
|
1091
1115
|
}), _class2$d)) || _class$g) || _class$g);
|
|
1092
1116
|
|
|
1093
1117
|
var _dec$f, _dec2$f, _class$f;
|
|
1094
|
-
let DtoUserCreate = (_dec$f = Dto(
|
|
1118
|
+
let DtoUserCreate = (_dec$f = Dto({
|
|
1119
|
+
independent: true
|
|
1120
|
+
}), _dec2$f = BeanInfo({
|
|
1095
1121
|
module: "test-vona"
|
|
1096
1122
|
}), _dec$f(_class$f = _dec2$f(_class$f = class DtoUserCreate extends $Dto.create('test-vona:user', {
|
|
1097
1123
|
include: {
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
user: false
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1124
|
+
roles: true,
|
|
1125
|
+
posts: true
|
|
1103
1126
|
}
|
|
1104
1127
|
}) {}) || _class$f) || _class$f);
|
|
1105
1128
|
|
|
@@ -1108,11 +1131,7 @@ let DtoUserUpdate = (_dec$e = Dto(), _dec2$e = BeanInfo({
|
|
|
1108
1131
|
module: "test-vona"
|
|
1109
1132
|
}), _dec$e(_class$e = _dec2$e(_class$e = class DtoUserUpdate extends $Dto.update('test-vona:user', {
|
|
1110
1133
|
include: {
|
|
1111
|
-
posts:
|
|
1112
|
-
include: {
|
|
1113
|
-
user: false
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1134
|
+
posts: true
|
|
1116
1135
|
}
|
|
1117
1136
|
}) {}) || _class$e) || _class$e);
|
|
1118
1137
|
|
|
@@ -1885,4 +1904,4 @@ function $locale(key) {
|
|
|
1885
1904
|
}
|
|
1886
1905
|
/** scope: end */
|
|
1887
1906
|
|
|
1888
|
-
export { $locale, AopMethodTest, AopRegExp, AopSimple, BeanTestCtx, BroadcastTest, CacheMemTest, CacheRedisTest, ControllerBean, ControllerCacheMem, ControllerCacheRedis, ControllerDtoTest, ControllerGuardPassport, ControllerOnion, ControllerPassport, ControllerPerformAction, ControllerQueue, ControllerSummer, ControllerTail, ControllerTransaction, ControllerUpload, DtoCategoryTree, DtoProfile, DtoRoleLazy, DtoUser, DtoUserCreate, DtoUserLazy, DtoUserUpdate, EntityCategory, EntityPost, EntityPostContent, EntityRole, EntityRoleUser, EntityTest, EntityUser, EventHelloEcho, EventListenerHelloEcho, MetaVersion, ModelCategory, ModelPost, ModelPostContent, ModelRole, ModelRoleUser, ModelTest, ModelTestDynamicTable, ModelUser, ModelUserStats, ModelUserStatsGroup, QueueTest, ScheduleTest, ScheduleTest3, ScopeModuleTestVona, ServiceAopMethod, ServiceCaching, ServiceTest, ServiceTestApp, ServiceTestClass, ServiceTestData, ServiceTransaction, SummerCacheTest, config, locales };
|
|
1907
|
+
export { $locale, AopMethodTest, AopRegExp, AopSimple, BeanTestCtx, BroadcastTest, CacheMemTest, CacheRedisTest, ControllerBean, ControllerCacheMem, ControllerCacheRedis, ControllerDtoTest, ControllerGuardPassport, ControllerOnion, ControllerPassport, ControllerPerformAction, ControllerQueue, ControllerSummer, ControllerTail, ControllerTransaction, ControllerUpload, DtoCategoryTree, DtoPostCreate, DtoProfile, DtoRoleLazy, DtoUser, DtoUserCreate, DtoUserLazy, DtoUserUpdate, EntityCategory, EntityPost, EntityPostContent, EntityRole, EntityRoleUser, EntityTest, EntityUser, EventHelloEcho, EventListenerHelloEcho, MetaVersion, ModelCategory, ModelCategoryChain, ModelPost, ModelPostContent, ModelRole, ModelRoleUser, ModelTest, ModelTestDynamicTable, ModelUser, ModelUserStats, ModelUserStatsGroup, QueueTest, ScheduleTest, ScheduleTest3, ScopeModuleTestVona, ServiceAopMethod, ServiceCaching, ServiceTest, ServiceTestApp, ServiceTestClass, ServiceTestData, ServiceTransaction, SummerCacheTest, config, locales };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityCategory } from '../entity/category.ts';
|
|
4
|
+
export interface IModelOptionsCategoryChain extends IDecoratorModelOptions<EntityCategory> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelCategoryChain extends BeanModelBase<EntityCategory> {
|
|
7
|
+
}
|