vona-module-test-vona 5.0.27 → 5.0.29
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 +636 -18
- package/dist/bean/cacheMem.test.d.ts +4 -2
- package/dist/config/locale/en-us.d.ts +1 -0
- package/dist/config/locale/zh-cn.d.ts +1 -0
- package/dist/controller/dtoTest.d.ts +26 -0
- package/dist/dto/categoryTree.d.ts +9 -0
- package/dist/dto/roleLazy.d.ts +8 -0
- package/dist/dto/user.d.ts +1 -1
- package/dist/dto/userCreate.d.ts +15 -0
- package/dist/dto/userLazy.d.ts +9 -0
- package/dist/dto/userUpdate.d.ts +15 -0
- package/dist/entity/category.d.ts +8 -0
- package/dist/entity/post.d.ts +9 -0
- package/dist/entity/postContent.d.ts +8 -0
- package/dist/entity/role.d.ts +7 -0
- package/dist/entity/roleUser.d.ts +8 -0
- package/dist/entity/test.d.ts +4 -2
- package/dist/entity/user.d.ts +9 -0
- package/dist/index.js +724 -173
- package/dist/model/category.d.ts +7 -0
- package/dist/model/post.d.ts +7 -0
- package/dist/model/postContent.d.ts +7 -0
- package/dist/model/role.d.ts +7 -0
- package/dist/model/roleUser.d.ts +7 -0
- package/dist/model/test.d.ts +4 -1
- package/dist/model/testDynamicTable.d.ts +4 -1
- package/dist/model/user.d.ts +7 -0
- package/dist/model/userStats.d.ts +7 -0
- package/dist/model/userStatsGroup.d.ts +7 -0
- package/dist/service/testData.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TypeControllerOptionsActions } from 'vona-module-a-openapi';
|
|
3
|
-
import type { TypeEntityOptionsFields } from 'vona-module-a-openapi';
|
|
1
|
+
import type { TypeEntityMeta, TypeModelsClassLikeGeneral, TypeSymbolKeyFieldsMore, IModelRelationHasOne, IModelRelationBelongsTo, IModelRelationHasMany, IModelRelationBelongsToMany } from 'vona-module-a-orm';
|
|
2
|
+
import type { TypeEntityOptionsFields, TypeControllerOptionsActions } from 'vona-module-a-openapi';
|
|
4
3
|
/** aop: begin */
|
|
5
4
|
export * from '../bean/aop.regExp.ts';
|
|
6
5
|
export * from '../bean/aop.simple.ts';
|
|
@@ -14,7 +13,15 @@ declare module 'vona-module-a-aspect' {
|
|
|
14
13
|
declare module 'vona-module-test-vona' {
|
|
15
14
|
interface AopRegExp {
|
|
16
15
|
}
|
|
16
|
+
interface AopRegExp {
|
|
17
|
+
get $beanFullName(): 'test-vona.aop.regExp';
|
|
18
|
+
get $onionName(): 'test-vona:regExp';
|
|
19
|
+
}
|
|
20
|
+
interface AopSimple {
|
|
21
|
+
}
|
|
17
22
|
interface AopSimple {
|
|
23
|
+
get $beanFullName(): 'test-vona.aop.simple';
|
|
24
|
+
get $onionName(): 'test-vona:simple';
|
|
18
25
|
}
|
|
19
26
|
}
|
|
20
27
|
/** aop: end */
|
|
@@ -30,62 +37,490 @@ declare module 'vona-module-a-aspect' {
|
|
|
30
37
|
declare module 'vona-module-test-vona' {
|
|
31
38
|
interface AopMethodTest {
|
|
32
39
|
}
|
|
40
|
+
interface AopMethodTest {
|
|
41
|
+
get $beanFullName(): 'test-vona.aopMethod.test';
|
|
42
|
+
get $onionName(): 'test-vona:test';
|
|
43
|
+
}
|
|
33
44
|
}
|
|
34
45
|
/** aopMethod: end */
|
|
35
46
|
/** entity: begin */
|
|
47
|
+
export * from '../entity/category.ts';
|
|
48
|
+
export * from '../entity/post.ts';
|
|
49
|
+
export * from '../entity/postContent.ts';
|
|
50
|
+
export * from '../entity/role.ts';
|
|
51
|
+
export * from '../entity/roleUser.ts';
|
|
36
52
|
export * from '../entity/test.ts';
|
|
53
|
+
export * from '../entity/user.ts';
|
|
54
|
+
import type { IEntityOptionsCategory } from '../entity/category.ts';
|
|
55
|
+
import type { IEntityOptionsPost } from '../entity/post.ts';
|
|
56
|
+
import type { IEntityOptionsPostContent } from '../entity/postContent.ts';
|
|
57
|
+
import type { IEntityOptionsRole } from '../entity/role.ts';
|
|
58
|
+
import type { IEntityOptionsRoleUser } from '../entity/roleUser.ts';
|
|
37
59
|
import type { IEntityOptionsTest } from '../entity/test.ts';
|
|
60
|
+
import type { IEntityOptionsUser } from '../entity/user.ts';
|
|
38
61
|
import 'vona';
|
|
39
|
-
declare module 'vona-module-a-
|
|
62
|
+
declare module 'vona-module-a-orm' {
|
|
40
63
|
interface IEntityRecord {
|
|
41
|
-
'test-vona:
|
|
64
|
+
'test-vona:category': IEntityOptionsCategory;
|
|
65
|
+
'test-vona:post': IEntityOptionsPost;
|
|
66
|
+
'test-vona:postContent': IEntityOptionsPostContent;
|
|
67
|
+
'test-vona:role': IEntityOptionsRole;
|
|
68
|
+
'test-vona:roleUser': IEntityOptionsRoleUser;
|
|
69
|
+
'test-vona:test': IEntityOptionsTest;
|
|
70
|
+
'test-vona:user': IEntityOptionsUser;
|
|
42
71
|
}
|
|
43
72
|
}
|
|
44
73
|
declare module 'vona-module-test-vona' {
|
|
45
74
|
}
|
|
46
75
|
/** entity: end */
|
|
47
76
|
/** entity: begin */
|
|
77
|
+
import type { EntityCategory } from '../entity/category.ts';
|
|
78
|
+
import type { EntityPost } from '../entity/post.ts';
|
|
79
|
+
import type { EntityPostContent } from '../entity/postContent.ts';
|
|
80
|
+
import type { EntityRole } from '../entity/role.ts';
|
|
81
|
+
import type { EntityRoleUser } from '../entity/roleUser.ts';
|
|
48
82
|
import type { EntityTest } from '../entity/test.ts';
|
|
83
|
+
import type { EntityUser } from '../entity/user.ts';
|
|
49
84
|
export interface IModuleEntity {
|
|
50
|
-
'
|
|
85
|
+
'category': EntityCategoryMeta;
|
|
86
|
+
'post': EntityPostMeta;
|
|
87
|
+
'postContent': EntityPostContentMeta;
|
|
88
|
+
'role': EntityRoleMeta;
|
|
89
|
+
'roleUser': EntityRoleUserMeta;
|
|
90
|
+
'test': EntityTestMeta;
|
|
91
|
+
'user': EntityUserMeta;
|
|
51
92
|
}
|
|
52
93
|
/** entity: end */
|
|
53
94
|
/** entity: begin */
|
|
54
|
-
export type
|
|
55
|
-
|
|
95
|
+
export type EntityCategoryTableName = 'testVonaCategory';
|
|
96
|
+
export type EntityPostTableName = 'testVonaPost';
|
|
97
|
+
export type EntityPostContentTableName = 'testVonaPostContent';
|
|
98
|
+
export type EntityRoleTableName = 'testVonaRole';
|
|
99
|
+
export type EntityRoleUserTableName = 'testVonaRoleUser';
|
|
100
|
+
export type EntityTestTableName = 'testVonaTest';
|
|
101
|
+
export type EntityUserTableName = 'testVonaUser';
|
|
102
|
+
export type EntityCategoryMeta = TypeEntityMeta<EntityCategory, EntityCategoryTableName>;
|
|
103
|
+
export type EntityPostMeta = TypeEntityMeta<EntityPost, EntityPostTableName>;
|
|
104
|
+
export type EntityPostContentMeta = TypeEntityMeta<EntityPostContent, EntityPostContentTableName>;
|
|
105
|
+
export type EntityRoleMeta = TypeEntityMeta<EntityRole, EntityRoleTableName>;
|
|
106
|
+
export type EntityRoleUserMeta = TypeEntityMeta<EntityRoleUser, EntityRoleUserTableName>;
|
|
107
|
+
export type EntityTestMeta = TypeEntityMeta<EntityTest, EntityTestTableName>;
|
|
108
|
+
export type EntityUserMeta = TypeEntityMeta<EntityUser, EntityUserTableName>;
|
|
109
|
+
declare module 'vona-module-a-orm' {
|
|
56
110
|
interface ITableRecord {
|
|
57
|
-
'
|
|
111
|
+
'testVonaCategory': never;
|
|
112
|
+
'testVonaPost': never;
|
|
113
|
+
'testVonaPostContent': never;
|
|
114
|
+
'testVonaRole': never;
|
|
115
|
+
'testVonaRoleUser': never;
|
|
116
|
+
'testVonaTest': never;
|
|
117
|
+
'testVonaUser': never;
|
|
58
118
|
}
|
|
59
119
|
}
|
|
60
120
|
declare module 'vona-module-test-vona' {
|
|
121
|
+
interface IEntityOptionsCategory {
|
|
122
|
+
fields?: TypeEntityOptionsFields<EntityCategory, IEntityOptionsCategory[TypeSymbolKeyFieldsMore]>;
|
|
123
|
+
}
|
|
124
|
+
interface IEntityOptionsPost {
|
|
125
|
+
fields?: TypeEntityOptionsFields<EntityPost, IEntityOptionsPost[TypeSymbolKeyFieldsMore]>;
|
|
126
|
+
}
|
|
127
|
+
interface IEntityOptionsPostContent {
|
|
128
|
+
fields?: TypeEntityOptionsFields<EntityPostContent, IEntityOptionsPostContent[TypeSymbolKeyFieldsMore]>;
|
|
129
|
+
}
|
|
130
|
+
interface IEntityOptionsRole {
|
|
131
|
+
fields?: TypeEntityOptionsFields<EntityRole, IEntityOptionsRole[TypeSymbolKeyFieldsMore]>;
|
|
132
|
+
}
|
|
133
|
+
interface IEntityOptionsRoleUser {
|
|
134
|
+
fields?: TypeEntityOptionsFields<EntityRoleUser, IEntityOptionsRoleUser[TypeSymbolKeyFieldsMore]>;
|
|
135
|
+
}
|
|
61
136
|
interface IEntityOptionsTest {
|
|
62
|
-
fields?: TypeEntityOptionsFields<EntityTest, IEntityOptionsTest[
|
|
137
|
+
fields?: TypeEntityOptionsFields<EntityTest, IEntityOptionsTest[TypeSymbolKeyFieldsMore]>;
|
|
138
|
+
}
|
|
139
|
+
interface IEntityOptionsUser {
|
|
140
|
+
fields?: TypeEntityOptionsFields<EntityUser, IEntityOptionsUser[TypeSymbolKeyFieldsMore]>;
|
|
63
141
|
}
|
|
64
142
|
}
|
|
65
143
|
/** entity: end */
|
|
66
144
|
/** model: begin */
|
|
145
|
+
export * from '../model/category.ts';
|
|
146
|
+
export * from '../model/post.ts';
|
|
147
|
+
export * from '../model/postContent.ts';
|
|
148
|
+
export * from '../model/role.ts';
|
|
149
|
+
export * from '../model/roleUser.ts';
|
|
67
150
|
export * from '../model/test.ts';
|
|
68
151
|
export * from '../model/testDynamicTable.ts';
|
|
69
|
-
|
|
70
|
-
|
|
152
|
+
export * from '../model/user.ts';
|
|
153
|
+
export * from '../model/userStats.ts';
|
|
154
|
+
export * from '../model/userStatsGroup.ts';
|
|
155
|
+
import type { IModelOptionsCategory } from '../model/category.ts';
|
|
156
|
+
import type { IModelOptionsPost } from '../model/post.ts';
|
|
157
|
+
import type { IModelOptionsPostContent } from '../model/postContent.ts';
|
|
158
|
+
import type { IModelOptionsRole } from '../model/role.ts';
|
|
159
|
+
import type { IModelOptionsRoleUser } from '../model/roleUser.ts';
|
|
160
|
+
import type { IModelOptionsTest } from '../model/test.ts';
|
|
161
|
+
import type { IModelOptionsTestDynamicTable } from '../model/testDynamicTable.ts';
|
|
162
|
+
import type { IModelOptionsUser } from '../model/user.ts';
|
|
163
|
+
import type { IModelOptionsUserStats } from '../model/userStats.ts';
|
|
164
|
+
import type { IModelOptionsUserStatsGroup } from '../model/userStatsGroup.ts';
|
|
165
|
+
import 'vona';
|
|
166
|
+
declare module 'vona-module-a-orm' {
|
|
71
167
|
interface IModelRecord {
|
|
72
|
-
'test-vona:
|
|
73
|
-
'test-vona:
|
|
168
|
+
'test-vona:category': IModelOptionsCategory;
|
|
169
|
+
'test-vona:post': IModelOptionsPost;
|
|
170
|
+
'test-vona:postContent': IModelOptionsPostContent;
|
|
171
|
+
'test-vona:role': IModelOptionsRole;
|
|
172
|
+
'test-vona:roleUser': IModelOptionsRoleUser;
|
|
173
|
+
'test-vona:test': IModelOptionsTest;
|
|
174
|
+
'test-vona:testDynamicTable': IModelOptionsTestDynamicTable;
|
|
175
|
+
'test-vona:user': IModelOptionsUser;
|
|
176
|
+
'test-vona:userStats': IModelOptionsUserStats;
|
|
177
|
+
'test-vona:userStatsGroup': IModelOptionsUserStatsGroup;
|
|
74
178
|
}
|
|
75
179
|
}
|
|
76
180
|
declare module 'vona-module-test-vona' {
|
|
181
|
+
interface ModelCategory {
|
|
182
|
+
}
|
|
183
|
+
interface ModelCategory {
|
|
184
|
+
get $beanFullName(): 'test-vona.model.category';
|
|
185
|
+
get $onionName(): 'test-vona:category';
|
|
186
|
+
}
|
|
187
|
+
interface ModelPost {
|
|
188
|
+
}
|
|
189
|
+
interface ModelPost {
|
|
190
|
+
get $beanFullName(): 'test-vona.model.post';
|
|
191
|
+
get $onionName(): 'test-vona:post';
|
|
192
|
+
}
|
|
193
|
+
interface ModelPostContent {
|
|
194
|
+
}
|
|
195
|
+
interface ModelPostContent {
|
|
196
|
+
get $beanFullName(): 'test-vona.model.postContent';
|
|
197
|
+
get $onionName(): 'test-vona:postContent';
|
|
198
|
+
}
|
|
199
|
+
interface ModelRole {
|
|
200
|
+
}
|
|
201
|
+
interface ModelRole {
|
|
202
|
+
get $beanFullName(): 'test-vona.model.role';
|
|
203
|
+
get $onionName(): 'test-vona:role';
|
|
204
|
+
}
|
|
205
|
+
interface ModelRoleUser {
|
|
206
|
+
}
|
|
207
|
+
interface ModelRoleUser {
|
|
208
|
+
get $beanFullName(): 'test-vona.model.roleUser';
|
|
209
|
+
get $onionName(): 'test-vona:roleUser';
|
|
210
|
+
}
|
|
211
|
+
interface ModelTest {
|
|
212
|
+
}
|
|
77
213
|
interface ModelTest {
|
|
214
|
+
get $beanFullName(): 'test-vona.model.test';
|
|
215
|
+
get $onionName(): 'test-vona:test';
|
|
78
216
|
}
|
|
79
217
|
interface ModelTestDynamicTable {
|
|
80
218
|
}
|
|
219
|
+
interface ModelTestDynamicTable {
|
|
220
|
+
get $beanFullName(): 'test-vona.model.testDynamicTable';
|
|
221
|
+
get $onionName(): 'test-vona:testDynamicTable';
|
|
222
|
+
}
|
|
223
|
+
interface ModelUser {
|
|
224
|
+
}
|
|
225
|
+
interface ModelUser {
|
|
226
|
+
get $beanFullName(): 'test-vona.model.user';
|
|
227
|
+
get $onionName(): 'test-vona:user';
|
|
228
|
+
}
|
|
229
|
+
interface ModelUserStats {
|
|
230
|
+
}
|
|
231
|
+
interface ModelUserStats {
|
|
232
|
+
get $beanFullName(): 'test-vona.model.userStats';
|
|
233
|
+
get $onionName(): 'test-vona:userStats';
|
|
234
|
+
}
|
|
235
|
+
interface ModelUserStatsGroup {
|
|
236
|
+
}
|
|
237
|
+
interface ModelUserStatsGroup {
|
|
238
|
+
get $beanFullName(): 'test-vona.model.userStatsGroup';
|
|
239
|
+
get $onionName(): 'test-vona:userStatsGroup';
|
|
240
|
+
}
|
|
81
241
|
}
|
|
82
242
|
/** model: end */
|
|
83
243
|
/** model: begin */
|
|
244
|
+
import type { ModelCategory } from '../model/category.ts';
|
|
245
|
+
import type { ModelPost } from '../model/post.ts';
|
|
246
|
+
import type { ModelPostContent } from '../model/postContent.ts';
|
|
247
|
+
import type { ModelRole } from '../model/role.ts';
|
|
248
|
+
import type { ModelRoleUser } from '../model/roleUser.ts';
|
|
84
249
|
import type { ModelTest } from '../model/test.ts';
|
|
85
250
|
import type { ModelTestDynamicTable } from '../model/testDynamicTable.ts';
|
|
251
|
+
import type { ModelUser } from '../model/user.ts';
|
|
252
|
+
import type { ModelUserStats } from '../model/userStats.ts';
|
|
253
|
+
import type { ModelUserStatsGroup } from '../model/userStatsGroup.ts';
|
|
86
254
|
export interface IModuleModel {
|
|
255
|
+
'category': ModelCategory;
|
|
256
|
+
'post': ModelPost;
|
|
257
|
+
'postContent': ModelPostContent;
|
|
258
|
+
'role': ModelRole;
|
|
259
|
+
'roleUser': ModelRoleUser;
|
|
87
260
|
'test': ModelTest;
|
|
88
261
|
'testDynamicTable': ModelTestDynamicTable;
|
|
262
|
+
'user': ModelUser;
|
|
263
|
+
'userStats': ModelUserStats;
|
|
264
|
+
'userStatsGroup': ModelUserStatsGroup;
|
|
265
|
+
}
|
|
266
|
+
/** model: end */
|
|
267
|
+
/** model: begin */
|
|
268
|
+
import type { IModelGetOptions, IModelMethodOptions, IModelSelectParams, TableIdentity, TypeModelRelationResult, TypeModelWhere, IModelInsertOptions, TypeModelMutateRelationData, IModelDeleteOptions, IModelUpdateOptions, IModelMutateOptions, IModelSelectCountParams, IModelSelectAggrParams, TypeModelAggrRelationResult, IModelSelectGroupParams, TypeModelGroupRelationResult } from 'vona-module-a-orm';
|
|
269
|
+
import { SymbolKeyEntity, SymbolKeyEntityMeta, SymbolKeyModelOptions } from 'vona-module-a-orm';
|
|
270
|
+
declare module 'vona-module-test-vona' {
|
|
271
|
+
interface IModelOptionsCategory {
|
|
272
|
+
relations: {
|
|
273
|
+
children: IModelRelationHasMany<ModelCategory, true, 'id' | 'name', undefined, undefined, undefined>;
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
interface IModelOptionsPost {
|
|
277
|
+
relations: {
|
|
278
|
+
postContent: IModelRelationHasOne<'test-vona:postContent', false, 'id' | 'content'>;
|
|
279
|
+
user: IModelRelationBelongsTo<ModelPost, ModelUser, true, 'id' | 'name'>;
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
interface IModelOptionsPostContent {
|
|
283
|
+
relations: {
|
|
284
|
+
post: IModelRelationBelongsTo<ModelPostContent, ModelPost, false, '*'>;
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
interface IModelOptionsRole {
|
|
288
|
+
relations: {
|
|
289
|
+
users: IModelRelationBelongsToMany<ModelRoleUser, ModelUser, false, 'id' | 'name', undefined, undefined, undefined>;
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
interface IModelOptionsUser {
|
|
293
|
+
relations: {
|
|
294
|
+
posts: IModelRelationHasMany<ModelPost, false, 'id' | 'title', ['test-vona:user', ModelPostContent], undefined, undefined>;
|
|
295
|
+
roles: IModelRelationBelongsToMany<'test-vona:roleUser', 'test-vona:role', false, 'id' | 'name', undefined, undefined, undefined>;
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
interface IModelOptionsUserStats {
|
|
299
|
+
relations: {
|
|
300
|
+
posts: IModelRelationHasMany<ModelPost, true, '*', undefined, {
|
|
301
|
+
count?: '*' | 'title' | Array<'*' | 'title'>;
|
|
302
|
+
sum?: 'stars' | Array<'stars'>;
|
|
303
|
+
}, undefined>;
|
|
304
|
+
roles: IModelRelationBelongsToMany<'test-vona:roleUser', 'test-vona:role', false, '*', undefined, {
|
|
305
|
+
count?: '*' | Array<'*'>;
|
|
306
|
+
}, undefined>;
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
interface IModelOptionsUserStatsGroup {
|
|
310
|
+
relations: {
|
|
311
|
+
posts: IModelRelationHasMany<ModelPost, true, undefined, undefined, {
|
|
312
|
+
count?: '*' | 'title' | Array<'*' | 'title'>;
|
|
313
|
+
sum?: 'stars' | Array<'stars'>;
|
|
314
|
+
}, 'title' | Array<'title'>>;
|
|
315
|
+
roles: IModelRelationBelongsToMany<'test-vona:roleUser', 'test-vona:role', false, undefined, undefined, {
|
|
316
|
+
count?: '*' | Array<'*'>;
|
|
317
|
+
}, 'name' | Array<'name'>>;
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
interface ModelCategory {
|
|
321
|
+
[SymbolKeyEntity]: EntityCategory;
|
|
322
|
+
[SymbolKeyEntityMeta]: EntityCategoryMeta;
|
|
323
|
+
[SymbolKeyModelOptions]: IModelOptionsCategory;
|
|
324
|
+
get<T extends IModelGetOptions<EntityCategory, ModelCategory>>(where: TypeModelWhere<EntityCategory>, options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategory, T> | undefined>;
|
|
325
|
+
mget<T extends IModelGetOptions<EntityCategory, ModelCategory>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategory, T>[]>;
|
|
326
|
+
select<T extends IModelSelectParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityCategory, ModelCategory, T>[]>;
|
|
327
|
+
insert<T extends IModelInsertOptions<EntityCategory, ModelCategory>>(data?: TypeModelMutateRelationData<EntityCategory, ModelCategory, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityCategory, ModelCategory, T>>>;
|
|
328
|
+
insertBulk<T extends IModelInsertOptions<EntityCategory, ModelCategory>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategory, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityCategory, ModelCategory, T>>[]>;
|
|
329
|
+
update<T extends IModelUpdateOptions<EntityCategory, ModelCategory>>(data: TypeModelMutateRelationData<EntityCategory, ModelCategory, T>, options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategory, T>>;
|
|
330
|
+
updateBulk<T extends IModelUpdateOptions<EntityCategory, ModelCategory>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategory, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategory, T>[]>;
|
|
331
|
+
delete<T extends IModelDeleteOptions<EntityCategory, ModelCategory>>(where?: TypeModelWhere<EntityCategory>, options?: T): Promise<void>;
|
|
332
|
+
deleteBulk<T extends IModelDeleteOptions<EntityCategory, ModelCategory>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
333
|
+
mutate<T extends IModelMutateOptions<EntityCategory, ModelCategory>>(data?: TypeModelMutateRelationData<EntityCategory, ModelCategory, T>, options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategory, T>>;
|
|
334
|
+
mutateBulk<T extends IModelMutateOptions<EntityCategory, ModelCategory>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategory, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategory, T>[]>;
|
|
335
|
+
count<T extends IModelSelectCountParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
336
|
+
aggregate<T extends IModelSelectAggrParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
337
|
+
group<T extends IModelSelectGroupParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityCategory, T>[]>;
|
|
338
|
+
}
|
|
339
|
+
interface ModelPost {
|
|
340
|
+
[SymbolKeyEntity]: EntityPost;
|
|
341
|
+
[SymbolKeyEntityMeta]: EntityPostMeta;
|
|
342
|
+
[SymbolKeyModelOptions]: IModelOptionsPost;
|
|
343
|
+
get<T extends IModelGetOptions<EntityPost, ModelPost>>(where: TypeModelWhere<EntityPost>, options?: T): Promise<TypeModelRelationResult<EntityPost, ModelPost, T> | undefined>;
|
|
344
|
+
mget<T extends IModelGetOptions<EntityPost, ModelPost>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityPost, ModelPost, T>[]>;
|
|
345
|
+
select<T extends IModelSelectParams<EntityPost, ModelPost, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityPost, ModelPost, T>[]>;
|
|
346
|
+
insert<T extends IModelInsertOptions<EntityPost, ModelPost>>(data?: TypeModelMutateRelationData<EntityPost, ModelPost, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityPost, ModelPost, T>>>;
|
|
347
|
+
insertBulk<T extends IModelInsertOptions<EntityPost, ModelPost>>(items: TypeModelMutateRelationData<EntityPost, ModelPost, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityPost, ModelPost, T>>[]>;
|
|
348
|
+
update<T extends IModelUpdateOptions<EntityPost, ModelPost>>(data: TypeModelMutateRelationData<EntityPost, ModelPost, T>, options?: T): Promise<TypeModelMutateRelationData<EntityPost, ModelPost, T>>;
|
|
349
|
+
updateBulk<T extends IModelUpdateOptions<EntityPost, ModelPost>>(items: TypeModelMutateRelationData<EntityPost, ModelPost, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityPost, ModelPost, T>[]>;
|
|
350
|
+
delete<T extends IModelDeleteOptions<EntityPost, ModelPost>>(where?: TypeModelWhere<EntityPost>, options?: T): Promise<void>;
|
|
351
|
+
deleteBulk<T extends IModelDeleteOptions<EntityPost, ModelPost>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
352
|
+
mutate<T extends IModelMutateOptions<EntityPost, ModelPost>>(data?: TypeModelMutateRelationData<EntityPost, ModelPost, T>, options?: T): Promise<TypeModelMutateRelationData<EntityPost, ModelPost, T>>;
|
|
353
|
+
mutateBulk<T extends IModelMutateOptions<EntityPost, ModelPost>>(items: TypeModelMutateRelationData<EntityPost, ModelPost, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityPost, ModelPost, T>[]>;
|
|
354
|
+
count<T extends IModelSelectCountParams<EntityPost, ModelPost, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
355
|
+
aggregate<T extends IModelSelectAggrParams<EntityPost, ModelPost, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
356
|
+
group<T extends IModelSelectGroupParams<EntityPost, ModelPost, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityPost, T>[]>;
|
|
357
|
+
}
|
|
358
|
+
interface ModelPostContent {
|
|
359
|
+
[SymbolKeyEntity]: EntityPostContent;
|
|
360
|
+
[SymbolKeyEntityMeta]: EntityPostContentMeta;
|
|
361
|
+
[SymbolKeyModelOptions]: IModelOptionsPostContent;
|
|
362
|
+
get<T extends IModelGetOptions<EntityPostContent, ModelPostContent>>(where: TypeModelWhere<EntityPostContent>, options?: T): Promise<TypeModelRelationResult<EntityPostContent, ModelPostContent, T> | undefined>;
|
|
363
|
+
mget<T extends IModelGetOptions<EntityPostContent, ModelPostContent>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityPostContent, ModelPostContent, T>[]>;
|
|
364
|
+
select<T extends IModelSelectParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityPostContent, ModelPostContent, T>[]>;
|
|
365
|
+
insert<T extends IModelInsertOptions<EntityPostContent, ModelPostContent>>(data?: TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>>>;
|
|
366
|
+
insertBulk<T extends IModelInsertOptions<EntityPostContent, ModelPostContent>>(items: TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>>[]>;
|
|
367
|
+
update<T extends IModelUpdateOptions<EntityPostContent, ModelPostContent>>(data: TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>, options?: T): Promise<TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>>;
|
|
368
|
+
updateBulk<T extends IModelUpdateOptions<EntityPostContent, ModelPostContent>>(items: TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>[]>;
|
|
369
|
+
delete<T extends IModelDeleteOptions<EntityPostContent, ModelPostContent>>(where?: TypeModelWhere<EntityPostContent>, options?: T): Promise<void>;
|
|
370
|
+
deleteBulk<T extends IModelDeleteOptions<EntityPostContent, ModelPostContent>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
371
|
+
mutate<T extends IModelMutateOptions<EntityPostContent, ModelPostContent>>(data?: TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>, options?: T): Promise<TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>>;
|
|
372
|
+
mutateBulk<T extends IModelMutateOptions<EntityPostContent, ModelPostContent>>(items: TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityPostContent, ModelPostContent, T>[]>;
|
|
373
|
+
count<T extends IModelSelectCountParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
374
|
+
aggregate<T extends IModelSelectAggrParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
375
|
+
group<T extends IModelSelectGroupParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityPostContent, T>[]>;
|
|
376
|
+
}
|
|
377
|
+
interface ModelRole {
|
|
378
|
+
[SymbolKeyEntity]: EntityRole;
|
|
379
|
+
[SymbolKeyEntityMeta]: EntityRoleMeta;
|
|
380
|
+
[SymbolKeyModelOptions]: IModelOptionsRole;
|
|
381
|
+
get<T extends IModelGetOptions<EntityRole, ModelRole>>(where: TypeModelWhere<EntityRole>, options?: T): Promise<TypeModelRelationResult<EntityRole, ModelRole, T> | undefined>;
|
|
382
|
+
mget<T extends IModelGetOptions<EntityRole, ModelRole>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityRole, ModelRole, T>[]>;
|
|
383
|
+
select<T extends IModelSelectParams<EntityRole, ModelRole, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityRole, ModelRole, T>[]>;
|
|
384
|
+
insert<T extends IModelInsertOptions<EntityRole, ModelRole>>(data?: TypeModelMutateRelationData<EntityRole, ModelRole, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityRole, ModelRole, T>>>;
|
|
385
|
+
insertBulk<T extends IModelInsertOptions<EntityRole, ModelRole>>(items: TypeModelMutateRelationData<EntityRole, ModelRole, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityRole, ModelRole, T>>[]>;
|
|
386
|
+
update<T extends IModelUpdateOptions<EntityRole, ModelRole>>(data: TypeModelMutateRelationData<EntityRole, ModelRole, T>, options?: T): Promise<TypeModelMutateRelationData<EntityRole, ModelRole, T>>;
|
|
387
|
+
updateBulk<T extends IModelUpdateOptions<EntityRole, ModelRole>>(items: TypeModelMutateRelationData<EntityRole, ModelRole, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityRole, ModelRole, T>[]>;
|
|
388
|
+
delete<T extends IModelDeleteOptions<EntityRole, ModelRole>>(where?: TypeModelWhere<EntityRole>, options?: T): Promise<void>;
|
|
389
|
+
deleteBulk<T extends IModelDeleteOptions<EntityRole, ModelRole>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
390
|
+
mutate<T extends IModelMutateOptions<EntityRole, ModelRole>>(data?: TypeModelMutateRelationData<EntityRole, ModelRole, T>, options?: T): Promise<TypeModelMutateRelationData<EntityRole, ModelRole, T>>;
|
|
391
|
+
mutateBulk<T extends IModelMutateOptions<EntityRole, ModelRole>>(items: TypeModelMutateRelationData<EntityRole, ModelRole, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityRole, ModelRole, T>[]>;
|
|
392
|
+
count<T extends IModelSelectCountParams<EntityRole, ModelRole, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
393
|
+
aggregate<T extends IModelSelectAggrParams<EntityRole, ModelRole, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
394
|
+
group<T extends IModelSelectGroupParams<EntityRole, ModelRole, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityRole, T>[]>;
|
|
395
|
+
}
|
|
396
|
+
interface ModelRoleUser {
|
|
397
|
+
[SymbolKeyEntity]: EntityRoleUser;
|
|
398
|
+
[SymbolKeyEntityMeta]: EntityRoleUserMeta;
|
|
399
|
+
[SymbolKeyModelOptions]: IModelOptionsRoleUser;
|
|
400
|
+
get<T extends IModelGetOptions<EntityRoleUser, ModelRoleUser>>(where: TypeModelWhere<EntityRoleUser>, options?: T): Promise<TypeModelRelationResult<EntityRoleUser, ModelRoleUser, T> | undefined>;
|
|
401
|
+
mget<T extends IModelGetOptions<EntityRoleUser, ModelRoleUser>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityRoleUser, ModelRoleUser, T>[]>;
|
|
402
|
+
select<T extends IModelSelectParams<EntityRoleUser, ModelRoleUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityRoleUser, ModelRoleUser, T>[]>;
|
|
403
|
+
insert<T extends IModelInsertOptions<EntityRoleUser, ModelRoleUser>>(data?: TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>>>;
|
|
404
|
+
insertBulk<T extends IModelInsertOptions<EntityRoleUser, ModelRoleUser>>(items: TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>>[]>;
|
|
405
|
+
update<T extends IModelUpdateOptions<EntityRoleUser, ModelRoleUser>>(data: TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>, options?: T): Promise<TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>>;
|
|
406
|
+
updateBulk<T extends IModelUpdateOptions<EntityRoleUser, ModelRoleUser>>(items: TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>[]>;
|
|
407
|
+
delete<T extends IModelDeleteOptions<EntityRoleUser, ModelRoleUser>>(where?: TypeModelWhere<EntityRoleUser>, options?: T): Promise<void>;
|
|
408
|
+
deleteBulk<T extends IModelDeleteOptions<EntityRoleUser, ModelRoleUser>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
409
|
+
mutate<T extends IModelMutateOptions<EntityRoleUser, ModelRoleUser>>(data?: TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>, options?: T): Promise<TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>>;
|
|
410
|
+
mutateBulk<T extends IModelMutateOptions<EntityRoleUser, ModelRoleUser>>(items: TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityRoleUser, ModelRoleUser, T>[]>;
|
|
411
|
+
count<T extends IModelSelectCountParams<EntityRoleUser, ModelRoleUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
412
|
+
aggregate<T extends IModelSelectAggrParams<EntityRoleUser, ModelRoleUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
413
|
+
group<T extends IModelSelectGroupParams<EntityRoleUser, ModelRoleUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityRoleUser, T>[]>;
|
|
414
|
+
}
|
|
415
|
+
interface ModelTest {
|
|
416
|
+
[SymbolKeyEntity]: EntityTest;
|
|
417
|
+
[SymbolKeyEntityMeta]: EntityTestMeta;
|
|
418
|
+
[SymbolKeyModelOptions]: IModelOptionsTest;
|
|
419
|
+
get<T extends IModelGetOptions<EntityTest, ModelTest>>(where: TypeModelWhere<EntityTest>, options?: T): Promise<TypeModelRelationResult<EntityTest, ModelTest, T> | undefined>;
|
|
420
|
+
mget<T extends IModelGetOptions<EntityTest, ModelTest>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityTest, ModelTest, T>[]>;
|
|
421
|
+
select<T extends IModelSelectParams<EntityTest, ModelTest, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityTest, ModelTest, T>[]>;
|
|
422
|
+
insert<T extends IModelInsertOptions<EntityTest, ModelTest>>(data?: TypeModelMutateRelationData<EntityTest, ModelTest, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityTest, ModelTest, T>>>;
|
|
423
|
+
insertBulk<T extends IModelInsertOptions<EntityTest, ModelTest>>(items: TypeModelMutateRelationData<EntityTest, ModelTest, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityTest, ModelTest, T>>[]>;
|
|
424
|
+
update<T extends IModelUpdateOptions<EntityTest, ModelTest>>(data: TypeModelMutateRelationData<EntityTest, ModelTest, T>, options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTest, T>>;
|
|
425
|
+
updateBulk<T extends IModelUpdateOptions<EntityTest, ModelTest>>(items: TypeModelMutateRelationData<EntityTest, ModelTest, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTest, T>[]>;
|
|
426
|
+
delete<T extends IModelDeleteOptions<EntityTest, ModelTest>>(where?: TypeModelWhere<EntityTest>, options?: T): Promise<void>;
|
|
427
|
+
deleteBulk<T extends IModelDeleteOptions<EntityTest, ModelTest>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
428
|
+
mutate<T extends IModelMutateOptions<EntityTest, ModelTest>>(data?: TypeModelMutateRelationData<EntityTest, ModelTest, T>, options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTest, T>>;
|
|
429
|
+
mutateBulk<T extends IModelMutateOptions<EntityTest, ModelTest>>(items: TypeModelMutateRelationData<EntityTest, ModelTest, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTest, T>[]>;
|
|
430
|
+
count<T extends IModelSelectCountParams<EntityTest, ModelTest, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
431
|
+
aggregate<T extends IModelSelectAggrParams<EntityTest, ModelTest, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
432
|
+
group<T extends IModelSelectGroupParams<EntityTest, ModelTest, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityTest, T>[]>;
|
|
433
|
+
}
|
|
434
|
+
interface ModelTestDynamicTable {
|
|
435
|
+
[SymbolKeyEntity]: EntityTest;
|
|
436
|
+
[SymbolKeyEntityMeta]: EntityTestMeta;
|
|
437
|
+
[SymbolKeyModelOptions]: IModelOptionsTestDynamicTable;
|
|
438
|
+
get<T extends IModelGetOptions<EntityTest, ModelTestDynamicTable>>(where: TypeModelWhere<EntityTest>, options?: T): Promise<TypeModelRelationResult<EntityTest, ModelTestDynamicTable, T> | undefined>;
|
|
439
|
+
mget<T extends IModelGetOptions<EntityTest, ModelTestDynamicTable>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityTest, ModelTestDynamicTable, T>[]>;
|
|
440
|
+
select<T extends IModelSelectParams<EntityTest, ModelTestDynamicTable, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityTest, ModelTestDynamicTable, T>[]>;
|
|
441
|
+
insert<T extends IModelInsertOptions<EntityTest, ModelTestDynamicTable>>(data?: TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>>>;
|
|
442
|
+
insertBulk<T extends IModelInsertOptions<EntityTest, ModelTestDynamicTable>>(items: TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>>[]>;
|
|
443
|
+
update<T extends IModelUpdateOptions<EntityTest, ModelTestDynamicTable>>(data: TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>, options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>>;
|
|
444
|
+
updateBulk<T extends IModelUpdateOptions<EntityTest, ModelTestDynamicTable>>(items: TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>[]>;
|
|
445
|
+
delete<T extends IModelDeleteOptions<EntityTest, ModelTestDynamicTable>>(where?: TypeModelWhere<EntityTest>, options?: T): Promise<void>;
|
|
446
|
+
deleteBulk<T extends IModelDeleteOptions<EntityTest, ModelTestDynamicTable>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
447
|
+
mutate<T extends IModelMutateOptions<EntityTest, ModelTestDynamicTable>>(data?: TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>, options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>>;
|
|
448
|
+
mutateBulk<T extends IModelMutateOptions<EntityTest, ModelTestDynamicTable>>(items: TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityTest, ModelTestDynamicTable, T>[]>;
|
|
449
|
+
count<T extends IModelSelectCountParams<EntityTest, ModelTestDynamicTable, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
450
|
+
aggregate<T extends IModelSelectAggrParams<EntityTest, ModelTestDynamicTable, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
451
|
+
group<T extends IModelSelectGroupParams<EntityTest, ModelTestDynamicTable, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityTest, T>[]>;
|
|
452
|
+
}
|
|
453
|
+
interface ModelUser {
|
|
454
|
+
[SymbolKeyEntity]: EntityUser;
|
|
455
|
+
[SymbolKeyEntityMeta]: EntityUserMeta;
|
|
456
|
+
[SymbolKeyModelOptions]: IModelOptionsUser;
|
|
457
|
+
get<T extends IModelGetOptions<EntityUser, ModelUser>>(where: TypeModelWhere<EntityUser>, options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUser, T> | undefined>;
|
|
458
|
+
mget<T extends IModelGetOptions<EntityUser, ModelUser>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUser, T>[]>;
|
|
459
|
+
select<T extends IModelSelectParams<EntityUser, ModelUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityUser, ModelUser, T>[]>;
|
|
460
|
+
insert<T extends IModelInsertOptions<EntityUser, ModelUser>>(data?: TypeModelMutateRelationData<EntityUser, ModelUser, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityUser, ModelUser, T>>>;
|
|
461
|
+
insertBulk<T extends IModelInsertOptions<EntityUser, ModelUser>>(items: TypeModelMutateRelationData<EntityUser, ModelUser, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityUser, ModelUser, T>>[]>;
|
|
462
|
+
update<T extends IModelUpdateOptions<EntityUser, ModelUser>>(data: TypeModelMutateRelationData<EntityUser, ModelUser, T>, options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUser, T>>;
|
|
463
|
+
updateBulk<T extends IModelUpdateOptions<EntityUser, ModelUser>>(items: TypeModelMutateRelationData<EntityUser, ModelUser, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUser, T>[]>;
|
|
464
|
+
delete<T extends IModelDeleteOptions<EntityUser, ModelUser>>(where?: TypeModelWhere<EntityUser>, options?: T): Promise<void>;
|
|
465
|
+
deleteBulk<T extends IModelDeleteOptions<EntityUser, ModelUser>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
466
|
+
mutate<T extends IModelMutateOptions<EntityUser, ModelUser>>(data?: TypeModelMutateRelationData<EntityUser, ModelUser, T>, options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUser, T>>;
|
|
467
|
+
mutateBulk<T extends IModelMutateOptions<EntityUser, ModelUser>>(items: TypeModelMutateRelationData<EntityUser, ModelUser, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUser, T>[]>;
|
|
468
|
+
count<T extends IModelSelectCountParams<EntityUser, ModelUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
469
|
+
aggregate<T extends IModelSelectAggrParams<EntityUser, ModelUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
470
|
+
group<T extends IModelSelectGroupParams<EntityUser, ModelUser, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityUser, T>[]>;
|
|
471
|
+
}
|
|
472
|
+
interface ModelUserStats {
|
|
473
|
+
[SymbolKeyEntity]: EntityUser;
|
|
474
|
+
[SymbolKeyEntityMeta]: EntityUserMeta;
|
|
475
|
+
[SymbolKeyModelOptions]: IModelOptionsUserStats;
|
|
476
|
+
get<T extends IModelGetOptions<EntityUser, ModelUserStats>>(where: TypeModelWhere<EntityUser>, options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUserStats, T> | undefined>;
|
|
477
|
+
mget<T extends IModelGetOptions<EntityUser, ModelUserStats>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUserStats, T>[]>;
|
|
478
|
+
select<T extends IModelSelectParams<EntityUser, ModelUserStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityUser, ModelUserStats, T>[]>;
|
|
479
|
+
insert<T extends IModelInsertOptions<EntityUser, ModelUserStats>>(data?: TypeModelMutateRelationData<EntityUser, ModelUserStats, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityUser, ModelUserStats, T>>>;
|
|
480
|
+
insertBulk<T extends IModelInsertOptions<EntityUser, ModelUserStats>>(items: TypeModelMutateRelationData<EntityUser, ModelUserStats, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityUser, ModelUserStats, T>>[]>;
|
|
481
|
+
update<T extends IModelUpdateOptions<EntityUser, ModelUserStats>>(data: TypeModelMutateRelationData<EntityUser, ModelUserStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStats, T>>;
|
|
482
|
+
updateBulk<T extends IModelUpdateOptions<EntityUser, ModelUserStats>>(items: TypeModelMutateRelationData<EntityUser, ModelUserStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStats, T>[]>;
|
|
483
|
+
delete<T extends IModelDeleteOptions<EntityUser, ModelUserStats>>(where?: TypeModelWhere<EntityUser>, options?: T): Promise<void>;
|
|
484
|
+
deleteBulk<T extends IModelDeleteOptions<EntityUser, ModelUserStats>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
485
|
+
mutate<T extends IModelMutateOptions<EntityUser, ModelUserStats>>(data?: TypeModelMutateRelationData<EntityUser, ModelUserStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStats, T>>;
|
|
486
|
+
mutateBulk<T extends IModelMutateOptions<EntityUser, ModelUserStats>>(items: TypeModelMutateRelationData<EntityUser, ModelUserStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStats, T>[]>;
|
|
487
|
+
count<T extends IModelSelectCountParams<EntityUser, ModelUserStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
488
|
+
aggregate<T extends IModelSelectAggrParams<EntityUser, ModelUserStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
489
|
+
group<T extends IModelSelectGroupParams<EntityUser, ModelUserStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityUser, T>[]>;
|
|
490
|
+
}
|
|
491
|
+
interface ModelUserStatsGroup {
|
|
492
|
+
[SymbolKeyEntity]: EntityUser;
|
|
493
|
+
[SymbolKeyEntityMeta]: EntityUserMeta;
|
|
494
|
+
[SymbolKeyModelOptions]: IModelOptionsUserStatsGroup;
|
|
495
|
+
get<T extends IModelGetOptions<EntityUser, ModelUserStatsGroup>>(where: TypeModelWhere<EntityUser>, options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUserStatsGroup, T> | undefined>;
|
|
496
|
+
mget<T extends IModelGetOptions<EntityUser, ModelUserStatsGroup>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityUser, ModelUserStatsGroup, T>[]>;
|
|
497
|
+
select<T extends IModelSelectParams<EntityUser, ModelUserStatsGroup, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityUser, ModelUserStatsGroup, T>[]>;
|
|
498
|
+
insert<T extends IModelInsertOptions<EntityUser, ModelUserStatsGroup>>(data?: TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>>>;
|
|
499
|
+
insertBulk<T extends IModelInsertOptions<EntityUser, ModelUserStatsGroup>>(items: TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>>[]>;
|
|
500
|
+
update<T extends IModelUpdateOptions<EntityUser, ModelUserStatsGroup>>(data: TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>, options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>>;
|
|
501
|
+
updateBulk<T extends IModelUpdateOptions<EntityUser, ModelUserStatsGroup>>(items: TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>[]>;
|
|
502
|
+
delete<T extends IModelDeleteOptions<EntityUser, ModelUserStatsGroup>>(where?: TypeModelWhere<EntityUser>, options?: T): Promise<void>;
|
|
503
|
+
deleteBulk<T extends IModelDeleteOptions<EntityUser, ModelUserStatsGroup>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
504
|
+
mutate<T extends IModelMutateOptions<EntityUser, ModelUserStatsGroup>>(data?: TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>, options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>>;
|
|
505
|
+
mutateBulk<T extends IModelMutateOptions<EntityUser, ModelUserStatsGroup>>(items: TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityUser, ModelUserStatsGroup, T>[]>;
|
|
506
|
+
count<T extends IModelSelectCountParams<EntityUser, ModelUserStatsGroup, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
507
|
+
aggregate<T extends IModelSelectAggrParams<EntityUser, ModelUserStatsGroup, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
508
|
+
group<T extends IModelSelectGroupParams<EntityUser, ModelUserStatsGroup, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityUser, T>[]>;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
declare module 'vona-module-a-orm' {
|
|
512
|
+
interface IModelClassRecord {
|
|
513
|
+
'test-vona:category': ModelCategory;
|
|
514
|
+
'test-vona:post': ModelPost;
|
|
515
|
+
'test-vona:postContent': ModelPostContent;
|
|
516
|
+
'test-vona:role': ModelRole;
|
|
517
|
+
'test-vona:roleUser': ModelRoleUser;
|
|
518
|
+
'test-vona:test': ModelTest;
|
|
519
|
+
'test-vona:testDynamicTable': ModelTestDynamicTable;
|
|
520
|
+
'test-vona:user': ModelUser;
|
|
521
|
+
'test-vona:userStats': ModelUserStats;
|
|
522
|
+
'test-vona:userStatsGroup': ModelUserStatsGroup;
|
|
523
|
+
}
|
|
89
524
|
}
|
|
90
525
|
/** model: end */
|
|
91
526
|
/** bean: begin */
|
|
@@ -113,6 +548,7 @@ export * from '../service/caching.ts';
|
|
|
113
548
|
export * from '../service/test.ts';
|
|
114
549
|
export * from '../service/testApp.ts';
|
|
115
550
|
export * from '../service/testClass.ts';
|
|
551
|
+
export * from '../service/testData.ts';
|
|
116
552
|
export * from '../service/transaction.ts';
|
|
117
553
|
import 'vona';
|
|
118
554
|
declare module 'vona-module-a-bean' {
|
|
@@ -122,22 +558,53 @@ declare module 'vona-module-a-bean' {
|
|
|
122
558
|
'test-vona:test': never;
|
|
123
559
|
'test-vona:testApp': never;
|
|
124
560
|
'test-vona:testClass': never;
|
|
561
|
+
'test-vona:testData': never;
|
|
125
562
|
'test-vona:transaction': never;
|
|
126
563
|
}
|
|
127
564
|
}
|
|
128
565
|
declare module 'vona-module-test-vona' {
|
|
129
566
|
interface ServiceAopMethod {
|
|
130
567
|
}
|
|
568
|
+
interface ServiceAopMethod {
|
|
569
|
+
get $beanFullName(): 'test-vona.service.aopMethod';
|
|
570
|
+
get $onionName(): 'test-vona:aopMethod';
|
|
571
|
+
}
|
|
131
572
|
interface ServiceCaching {
|
|
132
573
|
}
|
|
574
|
+
interface ServiceCaching {
|
|
575
|
+
get $beanFullName(): 'test-vona.service.caching';
|
|
576
|
+
get $onionName(): 'test-vona:caching';
|
|
577
|
+
}
|
|
578
|
+
interface ServiceTest {
|
|
579
|
+
}
|
|
133
580
|
interface ServiceTest {
|
|
581
|
+
get $beanFullName(): 'test-vona.service.test';
|
|
582
|
+
get $onionName(): 'test-vona:test';
|
|
583
|
+
}
|
|
584
|
+
interface ServiceTestApp {
|
|
134
585
|
}
|
|
135
586
|
interface ServiceTestApp {
|
|
587
|
+
get $beanFullName(): 'test-vona.service.testApp';
|
|
588
|
+
get $onionName(): 'test-vona:testApp';
|
|
136
589
|
}
|
|
137
590
|
interface ServiceTestClass {
|
|
138
591
|
}
|
|
592
|
+
interface ServiceTestClass {
|
|
593
|
+
get $beanFullName(): 'test-vona.service.testClass';
|
|
594
|
+
get $onionName(): 'test-vona:testClass';
|
|
595
|
+
}
|
|
596
|
+
interface ServiceTestData {
|
|
597
|
+
}
|
|
598
|
+
interface ServiceTestData {
|
|
599
|
+
get $beanFullName(): 'test-vona.service.testData';
|
|
600
|
+
get $onionName(): 'test-vona:testData';
|
|
601
|
+
}
|
|
139
602
|
interface ServiceTransaction {
|
|
140
603
|
}
|
|
604
|
+
interface ServiceTransaction {
|
|
605
|
+
get $beanFullName(): 'test-vona.service.transaction';
|
|
606
|
+
get $onionName(): 'test-vona:transaction';
|
|
607
|
+
}
|
|
141
608
|
}
|
|
142
609
|
/** service: end */
|
|
143
610
|
/** service: begin */
|
|
@@ -146,6 +613,7 @@ import type { ServiceCaching } from '../service/caching.ts';
|
|
|
146
613
|
import type { ServiceTest } from '../service/test.ts';
|
|
147
614
|
import type { ServiceTestApp } from '../service/testApp.ts';
|
|
148
615
|
import type { ServiceTestClass } from '../service/testClass.ts';
|
|
616
|
+
import type { ServiceTestData } from '../service/testData.ts';
|
|
149
617
|
import type { ServiceTransaction } from '../service/transaction.ts';
|
|
150
618
|
export interface IModuleService {
|
|
151
619
|
'aopMethod': ServiceAopMethod;
|
|
@@ -153,6 +621,7 @@ export interface IModuleService {
|
|
|
153
621
|
'test': ServiceTest;
|
|
154
622
|
'testApp': ServiceTestApp;
|
|
155
623
|
'testClass': ServiceTestClass;
|
|
624
|
+
'testData': ServiceTestData;
|
|
156
625
|
'transaction': ServiceTransaction;
|
|
157
626
|
}
|
|
158
627
|
/** service: end */
|
|
@@ -165,6 +634,7 @@ declare module 'vona' {
|
|
|
165
634
|
'test-vona.service.test': ServiceTest;
|
|
166
635
|
'test-vona.service.testApp': ServiceTestApp;
|
|
167
636
|
'test-vona.service.testClass': ServiceTestClass;
|
|
637
|
+
'test-vona.service.testData': ServiceTestData;
|
|
168
638
|
'test-vona.service.transaction': ServiceTransaction;
|
|
169
639
|
}
|
|
170
640
|
}
|
|
@@ -180,6 +650,10 @@ declare module 'vona-module-a-broadcast' {
|
|
|
180
650
|
declare module 'vona-module-test-vona' {
|
|
181
651
|
interface BroadcastTest {
|
|
182
652
|
}
|
|
653
|
+
interface BroadcastTest {
|
|
654
|
+
get $beanFullName(): 'test-vona.broadcast.test';
|
|
655
|
+
get $onionName(): 'test-vona:test';
|
|
656
|
+
}
|
|
183
657
|
}
|
|
184
658
|
/** broadcast: end */
|
|
185
659
|
/** broadcast: begin */
|
|
@@ -199,6 +673,10 @@ declare module 'vona-module-a-cache' {
|
|
|
199
673
|
declare module 'vona-module-test-vona' {
|
|
200
674
|
interface CacheMemTest {
|
|
201
675
|
}
|
|
676
|
+
interface CacheMemTest {
|
|
677
|
+
get $beanFullName(): 'test-vona.cacheMem.test';
|
|
678
|
+
get $onionName(): 'test-vona:test';
|
|
679
|
+
}
|
|
202
680
|
}
|
|
203
681
|
/** cacheMem: end */
|
|
204
682
|
/** cacheMem: begin */
|
|
@@ -218,6 +696,10 @@ declare module 'vona-module-a-cache' {
|
|
|
218
696
|
declare module 'vona-module-test-vona' {
|
|
219
697
|
interface CacheRedisTest {
|
|
220
698
|
}
|
|
699
|
+
interface CacheRedisTest {
|
|
700
|
+
get $beanFullName(): 'test-vona.cacheRedis.test';
|
|
701
|
+
get $onionName(): 'test-vona:test';
|
|
702
|
+
}
|
|
221
703
|
}
|
|
222
704
|
/** cacheRedis: end */
|
|
223
705
|
/** cacheRedis: begin */
|
|
@@ -234,6 +716,10 @@ declare module 'vona' {
|
|
|
234
716
|
declare module 'vona-module-test-vona' {
|
|
235
717
|
interface EventHelloEcho {
|
|
236
718
|
}
|
|
719
|
+
interface EventHelloEcho {
|
|
720
|
+
get $beanFullName(): 'test-vona.event.helloEcho';
|
|
721
|
+
get $onionName(): 'test-vona:helloEcho';
|
|
722
|
+
}
|
|
237
723
|
}
|
|
238
724
|
/** event: end */
|
|
239
725
|
/** event: begin */
|
|
@@ -262,6 +748,10 @@ declare module 'vona-module-a-event' {
|
|
|
262
748
|
declare module 'vona-module-test-vona' {
|
|
263
749
|
interface EventListenerHelloEcho {
|
|
264
750
|
}
|
|
751
|
+
interface EventListenerHelloEcho {
|
|
752
|
+
get $beanFullName(): 'test-vona.eventListener.helloEcho';
|
|
753
|
+
get $onionName(): 'test-vona:helloEcho';
|
|
754
|
+
}
|
|
265
755
|
}
|
|
266
756
|
/** eventListener: end */
|
|
267
757
|
/** meta: begin */
|
|
@@ -275,6 +765,10 @@ declare module 'vona' {
|
|
|
275
765
|
declare module 'vona-module-test-vona' {
|
|
276
766
|
interface MetaVersion {
|
|
277
767
|
}
|
|
768
|
+
interface MetaVersion {
|
|
769
|
+
get $beanFullName(): 'test-vona.meta.version';
|
|
770
|
+
get $onionName(): 'test-vona:version';
|
|
771
|
+
}
|
|
278
772
|
}
|
|
279
773
|
/** meta: end */
|
|
280
774
|
/** queue: begin */
|
|
@@ -288,6 +782,10 @@ declare module 'vona-module-a-queue' {
|
|
|
288
782
|
declare module 'vona-module-test-vona' {
|
|
289
783
|
interface QueueTest {
|
|
290
784
|
}
|
|
785
|
+
interface QueueTest {
|
|
786
|
+
get $beanFullName(): 'test-vona.queue.test';
|
|
787
|
+
get $onionName(): 'test-vona:test';
|
|
788
|
+
}
|
|
291
789
|
}
|
|
292
790
|
/** queue: end */
|
|
293
791
|
/** queue: begin */
|
|
@@ -309,8 +807,16 @@ declare module 'vona-module-a-schedule' {
|
|
|
309
807
|
declare module 'vona-module-test-vona' {
|
|
310
808
|
interface ScheduleTest {
|
|
311
809
|
}
|
|
810
|
+
interface ScheduleTest {
|
|
811
|
+
get $beanFullName(): 'test-vona.schedule.test';
|
|
812
|
+
get $onionName(): 'test-vona:test';
|
|
813
|
+
}
|
|
312
814
|
interface ScheduleTest3 {
|
|
313
815
|
}
|
|
816
|
+
interface ScheduleTest3 {
|
|
817
|
+
get $beanFullName(): 'test-vona.schedule.test3';
|
|
818
|
+
get $onionName(): 'test-vona:test3';
|
|
819
|
+
}
|
|
314
820
|
}
|
|
315
821
|
/** schedule: end */
|
|
316
822
|
/** summerCache: begin */
|
|
@@ -324,6 +830,10 @@ declare module 'vona-module-a-summer' {
|
|
|
324
830
|
declare module 'vona-module-test-vona' {
|
|
325
831
|
interface SummerCacheTest {
|
|
326
832
|
}
|
|
833
|
+
interface SummerCacheTest {
|
|
834
|
+
get $beanFullName(): 'test-vona.summerCache.test';
|
|
835
|
+
get $onionName(): 'test-vona:test';
|
|
836
|
+
}
|
|
327
837
|
}
|
|
328
838
|
/** summerCache: end */
|
|
329
839
|
/** summerCache: begin */
|
|
@@ -333,29 +843,64 @@ export interface IModuleSummerCache {
|
|
|
333
843
|
}
|
|
334
844
|
/** summerCache: end */
|
|
335
845
|
/** dto: begin */
|
|
846
|
+
export * from '../dto/categoryTree.ts';
|
|
336
847
|
export * from '../dto/profile.ts';
|
|
848
|
+
export * from '../dto/roleLazy.ts';
|
|
337
849
|
export * from '../dto/user.ts';
|
|
850
|
+
export * from '../dto/userCreate.ts';
|
|
851
|
+
export * from '../dto/userLazy.ts';
|
|
852
|
+
export * from '../dto/userUpdate.ts';
|
|
853
|
+
import type { IDtoOptionsCategoryTree } from '../dto/categoryTree.ts';
|
|
338
854
|
import type { IDtoOptionsProfile } from '../dto/profile.ts';
|
|
855
|
+
import type { IDtoOptionsRoleLazy } from '../dto/roleLazy.ts';
|
|
339
856
|
import type { IDtoOptionsUser } from '../dto/user.ts';
|
|
857
|
+
import type { IDtoOptionsUserCreate } from '../dto/userCreate.ts';
|
|
858
|
+
import type { IDtoOptionsUserLazy } from '../dto/userLazy.ts';
|
|
859
|
+
import type { IDtoOptionsUserUpdate } from '../dto/userUpdate.ts';
|
|
340
860
|
import 'vona';
|
|
341
861
|
declare module 'vona-module-a-web' {
|
|
342
862
|
interface IDtoRecord {
|
|
343
|
-
'test-vona:
|
|
344
|
-
'test-vona:
|
|
863
|
+
'test-vona:categoryTree': IDtoOptionsCategoryTree;
|
|
864
|
+
'test-vona:profile': IDtoOptionsProfile;
|
|
865
|
+
'test-vona:roleLazy': IDtoOptionsRoleLazy;
|
|
866
|
+
'test-vona:user': IDtoOptionsUser;
|
|
867
|
+
'test-vona:userCreate': IDtoOptionsUserCreate;
|
|
868
|
+
'test-vona:userLazy': IDtoOptionsUserLazy;
|
|
869
|
+
'test-vona:userUpdate': IDtoOptionsUserUpdate;
|
|
345
870
|
}
|
|
346
871
|
}
|
|
347
872
|
declare module 'vona-module-test-vona' {
|
|
348
873
|
}
|
|
349
874
|
/** dto: end */
|
|
350
875
|
/** dto: begin */
|
|
876
|
+
import type { DtoCategoryTree } from '../dto/categoryTree.ts';
|
|
351
877
|
import type { DtoProfile } from '../dto/profile.ts';
|
|
878
|
+
import type { DtoRoleLazy } from '../dto/roleLazy.ts';
|
|
352
879
|
import type { DtoUser } from '../dto/user.ts';
|
|
880
|
+
import type { DtoUserCreate } from '../dto/userCreate.ts';
|
|
881
|
+
import type { DtoUserLazy } from '../dto/userLazy.ts';
|
|
882
|
+
import type { DtoUserUpdate } from '../dto/userUpdate.ts';
|
|
353
883
|
declare module 'vona-module-test-vona' {
|
|
884
|
+
interface IDtoOptionsCategoryTree {
|
|
885
|
+
fields?: TypeEntityOptionsFields<DtoCategoryTree, IDtoOptionsCategoryTree[TypeSymbolKeyFieldsMore]>;
|
|
886
|
+
}
|
|
354
887
|
interface IDtoOptionsProfile {
|
|
355
|
-
fields?: TypeEntityOptionsFields<DtoProfile, IDtoOptionsProfile[
|
|
888
|
+
fields?: TypeEntityOptionsFields<DtoProfile, IDtoOptionsProfile[TypeSymbolKeyFieldsMore]>;
|
|
889
|
+
}
|
|
890
|
+
interface IDtoOptionsRoleLazy {
|
|
891
|
+
fields?: TypeEntityOptionsFields<DtoRoleLazy, IDtoOptionsRoleLazy[TypeSymbolKeyFieldsMore]>;
|
|
356
892
|
}
|
|
357
893
|
interface IDtoOptionsUser {
|
|
358
|
-
fields?: TypeEntityOptionsFields<DtoUser, IDtoOptionsUser[
|
|
894
|
+
fields?: TypeEntityOptionsFields<DtoUser, IDtoOptionsUser[TypeSymbolKeyFieldsMore]>;
|
|
895
|
+
}
|
|
896
|
+
interface IDtoOptionsUserCreate {
|
|
897
|
+
fields?: TypeEntityOptionsFields<DtoUserCreate, IDtoOptionsUserCreate[TypeSymbolKeyFieldsMore]>;
|
|
898
|
+
}
|
|
899
|
+
interface IDtoOptionsUserLazy {
|
|
900
|
+
fields?: TypeEntityOptionsFields<DtoUserLazy, IDtoOptionsUserLazy[TypeSymbolKeyFieldsMore]>;
|
|
901
|
+
}
|
|
902
|
+
interface IDtoOptionsUserUpdate {
|
|
903
|
+
fields?: TypeEntityOptionsFields<DtoUserUpdate, IDtoOptionsUserUpdate[TypeSymbolKeyFieldsMore]>;
|
|
359
904
|
}
|
|
360
905
|
}
|
|
361
906
|
/** dto: end */
|
|
@@ -363,6 +908,7 @@ declare module 'vona-module-test-vona' {
|
|
|
363
908
|
export * from '../controller/bean.ts';
|
|
364
909
|
export * from '../controller/cacheMem.ts';
|
|
365
910
|
export * from '../controller/cacheRedis.ts';
|
|
911
|
+
export * from '../controller/dtoTest.ts';
|
|
366
912
|
export * from '../controller/guardPassport.ts';
|
|
367
913
|
export * from '../controller/onion.ts';
|
|
368
914
|
export * from '../controller/passport.ts';
|
|
@@ -375,6 +921,7 @@ export * from '../controller/upload.ts';
|
|
|
375
921
|
import type { IControllerOptionsBean } from '../controller/bean.ts';
|
|
376
922
|
import type { IControllerOptionsCacheMem } from '../controller/cacheMem.ts';
|
|
377
923
|
import type { IControllerOptionsCacheRedis } from '../controller/cacheRedis.ts';
|
|
924
|
+
import type { IControllerOptionsDtoTest } from '../controller/dtoTest.ts';
|
|
378
925
|
import type { IControllerOptionsGuardPassport } from '../controller/guardPassport.ts';
|
|
379
926
|
import type { IControllerOptionsOnion } from '../controller/onion.ts';
|
|
380
927
|
import type { IControllerOptionsPassport } from '../controller/passport.ts';
|
|
@@ -390,6 +937,7 @@ declare module 'vona-module-a-web' {
|
|
|
390
937
|
'test-vona:bean': IControllerOptionsBean;
|
|
391
938
|
'test-vona:cacheMem': IControllerOptionsCacheMem;
|
|
392
939
|
'test-vona:cacheRedis': IControllerOptionsCacheRedis;
|
|
940
|
+
'test-vona:dtoTest': IControllerOptionsDtoTest;
|
|
393
941
|
'test-vona:guardPassport': IControllerOptionsGuardPassport;
|
|
394
942
|
'test-vona:onion': IControllerOptionsOnion;
|
|
395
943
|
'test-vona:passport': IControllerOptionsPassport;
|
|
@@ -404,27 +952,81 @@ declare module 'vona-module-a-web' {
|
|
|
404
952
|
declare module 'vona-module-test-vona' {
|
|
405
953
|
interface ControllerBean {
|
|
406
954
|
}
|
|
955
|
+
interface ControllerBean {
|
|
956
|
+
get $beanFullName(): 'test-vona.controller.bean';
|
|
957
|
+
get $onionName(): 'test-vona:bean';
|
|
958
|
+
}
|
|
959
|
+
interface ControllerCacheMem {
|
|
960
|
+
}
|
|
407
961
|
interface ControllerCacheMem {
|
|
962
|
+
get $beanFullName(): 'test-vona.controller.cacheMem';
|
|
963
|
+
get $onionName(): 'test-vona:cacheMem';
|
|
408
964
|
}
|
|
409
965
|
interface ControllerCacheRedis {
|
|
410
966
|
}
|
|
967
|
+
interface ControllerCacheRedis {
|
|
968
|
+
get $beanFullName(): 'test-vona.controller.cacheRedis';
|
|
969
|
+
get $onionName(): 'test-vona:cacheRedis';
|
|
970
|
+
}
|
|
971
|
+
interface ControllerDtoTest {
|
|
972
|
+
}
|
|
973
|
+
interface ControllerDtoTest {
|
|
974
|
+
get $beanFullName(): 'test-vona.controller.dtoTest';
|
|
975
|
+
get $onionName(): 'test-vona:dtoTest';
|
|
976
|
+
}
|
|
411
977
|
interface ControllerGuardPassport {
|
|
412
978
|
}
|
|
979
|
+
interface ControllerGuardPassport {
|
|
980
|
+
get $beanFullName(): 'test-vona.controller.guardPassport';
|
|
981
|
+
get $onionName(): 'test-vona:guardPassport';
|
|
982
|
+
}
|
|
983
|
+
interface ControllerOnion {
|
|
984
|
+
}
|
|
413
985
|
interface ControllerOnion {
|
|
986
|
+
get $beanFullName(): 'test-vona.controller.onion';
|
|
987
|
+
get $onionName(): 'test-vona:onion';
|
|
414
988
|
}
|
|
415
989
|
interface ControllerPassport {
|
|
416
990
|
}
|
|
991
|
+
interface ControllerPassport {
|
|
992
|
+
get $beanFullName(): 'test-vona.controller.passport';
|
|
993
|
+
get $onionName(): 'test-vona:passport';
|
|
994
|
+
}
|
|
417
995
|
interface ControllerPerformAction {
|
|
418
996
|
}
|
|
997
|
+
interface ControllerPerformAction {
|
|
998
|
+
get $beanFullName(): 'test-vona.controller.performAction';
|
|
999
|
+
get $onionName(): 'test-vona:performAction';
|
|
1000
|
+
}
|
|
1001
|
+
interface ControllerQueue {
|
|
1002
|
+
}
|
|
419
1003
|
interface ControllerQueue {
|
|
1004
|
+
get $beanFullName(): 'test-vona.controller.queue';
|
|
1005
|
+
get $onionName(): 'test-vona:queue';
|
|
420
1006
|
}
|
|
421
1007
|
interface ControllerSummer {
|
|
422
1008
|
}
|
|
1009
|
+
interface ControllerSummer {
|
|
1010
|
+
get $beanFullName(): 'test-vona.controller.summer';
|
|
1011
|
+
get $onionName(): 'test-vona:summer';
|
|
1012
|
+
}
|
|
1013
|
+
interface ControllerTail {
|
|
1014
|
+
}
|
|
423
1015
|
interface ControllerTail {
|
|
1016
|
+
get $beanFullName(): 'test-vona.controller.tail';
|
|
1017
|
+
get $onionName(): 'test-vona:tail';
|
|
424
1018
|
}
|
|
425
1019
|
interface ControllerTransaction {
|
|
426
1020
|
}
|
|
1021
|
+
interface ControllerTransaction {
|
|
1022
|
+
get $beanFullName(): 'test-vona.controller.transaction';
|
|
1023
|
+
get $onionName(): 'test-vona:transaction';
|
|
1024
|
+
}
|
|
1025
|
+
interface ControllerUpload {
|
|
1026
|
+
}
|
|
427
1027
|
interface ControllerUpload {
|
|
1028
|
+
get $beanFullName(): 'test-vona.controller.upload';
|
|
1029
|
+
get $onionName(): 'test-vona:upload';
|
|
428
1030
|
}
|
|
429
1031
|
}
|
|
430
1032
|
/** controller: end */
|
|
@@ -432,6 +1034,7 @@ declare module 'vona-module-test-vona' {
|
|
|
432
1034
|
import '../controller/bean.ts';
|
|
433
1035
|
import '../controller/cacheMem.ts';
|
|
434
1036
|
import '../controller/cacheRedis.ts';
|
|
1037
|
+
import '../controller/dtoTest.ts';
|
|
435
1038
|
import '../controller/guardPassport.ts';
|
|
436
1039
|
import '../controller/onion.ts';
|
|
437
1040
|
import '../controller/passport.ts';
|
|
@@ -451,6 +1054,9 @@ declare module 'vona-module-test-vona' {
|
|
|
451
1054
|
interface IControllerOptionsCacheRedis {
|
|
452
1055
|
actions?: TypeControllerOptionsActions<ControllerCacheRedis>;
|
|
453
1056
|
}
|
|
1057
|
+
interface IControllerOptionsDtoTest {
|
|
1058
|
+
actions?: TypeControllerOptionsActions<ControllerDtoTest>;
|
|
1059
|
+
}
|
|
454
1060
|
interface IControllerOptionsGuardPassport {
|
|
455
1061
|
actions?: TypeControllerOptionsActions<ControllerGuardPassport>;
|
|
456
1062
|
}
|
|
@@ -483,6 +1089,12 @@ declare module 'vona-module-a-web' {
|
|
|
483
1089
|
interface IApiPathGetRecord {
|
|
484
1090
|
'/test/vona/bean/test': undefined;
|
|
485
1091
|
'/test/vona/bean/service': undefined;
|
|
1092
|
+
'/test/vona/dtoTest/getUserLazy': undefined;
|
|
1093
|
+
'/test/vona/dtoTest/getUserDynamic': undefined;
|
|
1094
|
+
'/test/vona/dtoTest/getUserStats': undefined;
|
|
1095
|
+
'/test/vona/dtoTest/getUserStatsGroup': undefined;
|
|
1096
|
+
'/test/vona/dtoTest/getCategoryTree': undefined;
|
|
1097
|
+
'/test/vona/dtoTest/getCategoryTree2': undefined;
|
|
486
1098
|
'/test/vona/guardPassport/testUserName': undefined;
|
|
487
1099
|
'/test/vona/guardPassport/testUserNameFail': undefined;
|
|
488
1100
|
'/test/vona/guardPassport/testRoleName': undefined;
|
|
@@ -497,6 +1109,7 @@ declare module 'vona-module-a-web' {
|
|
|
497
1109
|
interface IApiPathPostRecord {
|
|
498
1110
|
'/test/vona/cacheMem': undefined;
|
|
499
1111
|
'/test/vona/cacheRedis': undefined;
|
|
1112
|
+
'/test/vona/dtoTest/createUser': undefined;
|
|
500
1113
|
'//echo': undefined;
|
|
501
1114
|
'/test/vona/onion/echo2/:userId/:userName': undefined;
|
|
502
1115
|
'/test/vona/onion/echo4': undefined;
|
|
@@ -514,6 +1127,9 @@ declare module 'vona-module-a-web' {
|
|
|
514
1127
|
'/test/vona/upload/file': undefined;
|
|
515
1128
|
'/test/vona/upload/files': undefined;
|
|
516
1129
|
}
|
|
1130
|
+
interface IApiPathPatchRecord {
|
|
1131
|
+
'/test/vona/dtoTest/updateUser/:id': undefined;
|
|
1132
|
+
}
|
|
517
1133
|
}
|
|
518
1134
|
/** controller: end */
|
|
519
1135
|
/** config: begin */
|
|
@@ -523,6 +1139,7 @@ export declare const locales: {
|
|
|
523
1139
|
'en-us': {
|
|
524
1140
|
User: string;
|
|
525
1141
|
UserId: string;
|
|
1142
|
+
Test: string;
|
|
526
1143
|
TestHelloWorld: string;
|
|
527
1144
|
TestApples: string;
|
|
528
1145
|
TestApples_0: string;
|
|
@@ -534,6 +1151,7 @@ export declare const locales: {
|
|
|
534
1151
|
'zh-cn': {
|
|
535
1152
|
User: string;
|
|
536
1153
|
UserId: string;
|
|
1154
|
+
Test: string;
|
|
537
1155
|
TestHelloWorld: string;
|
|
538
1156
|
TestApples: string;
|
|
539
1157
|
TestApples_0: string;
|