vona-module-test-vona 5.0.33 → 5.0.35
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 +189 -0
- package/dist/config/locale/en-us.d.ts +7 -0
- package/dist/config/locale/zh-cn.d.ts +7 -0
- package/dist/dto/orderCreate.d.ts +10 -0
- package/dist/dto/orderResult.d.ts +8 -0
- package/dist/dto/orderUpdate.d.ts +10 -0
- package/dist/entity/order.d.ts +10 -0
- package/dist/entity/product.d.ts +12 -0
- package/dist/index.js +368 -188
- package/dist/model/order.d.ts +7 -0
- package/dist/model/orderStats.d.ts +7 -0
- package/dist/model/product.d.ts +7 -0
- package/package.json +1 -1
|
@@ -45,15 +45,19 @@ declare module 'vona-module-test-vona' {
|
|
|
45
45
|
/** aopMethod: end */
|
|
46
46
|
/** entity: begin */
|
|
47
47
|
export * from '../entity/category.ts';
|
|
48
|
+
export * from '../entity/order.ts';
|
|
48
49
|
export * from '../entity/post.ts';
|
|
49
50
|
export * from '../entity/postContent.ts';
|
|
51
|
+
export * from '../entity/product.ts';
|
|
50
52
|
export * from '../entity/role.ts';
|
|
51
53
|
export * from '../entity/roleUser.ts';
|
|
52
54
|
export * from '../entity/test.ts';
|
|
53
55
|
export * from '../entity/user.ts';
|
|
54
56
|
import type { IEntityOptionsCategory } from '../entity/category.ts';
|
|
57
|
+
import type { IEntityOptionsOrder } from '../entity/order.ts';
|
|
55
58
|
import type { IEntityOptionsPost } from '../entity/post.ts';
|
|
56
59
|
import type { IEntityOptionsPostContent } from '../entity/postContent.ts';
|
|
60
|
+
import type { IEntityOptionsProduct } from '../entity/product.ts';
|
|
57
61
|
import type { IEntityOptionsRole } from '../entity/role.ts';
|
|
58
62
|
import type { IEntityOptionsRoleUser } from '../entity/roleUser.ts';
|
|
59
63
|
import type { IEntityOptionsTest } from '../entity/test.ts';
|
|
@@ -62,8 +66,10 @@ import 'vona';
|
|
|
62
66
|
declare module 'vona-module-a-orm' {
|
|
63
67
|
interface IEntityRecord {
|
|
64
68
|
'test-vona:category': IEntityOptionsCategory;
|
|
69
|
+
'test-vona:order': IEntityOptionsOrder;
|
|
65
70
|
'test-vona:post': IEntityOptionsPost;
|
|
66
71
|
'test-vona:postContent': IEntityOptionsPostContent;
|
|
72
|
+
'test-vona:product': IEntityOptionsProduct;
|
|
67
73
|
'test-vona:role': IEntityOptionsRole;
|
|
68
74
|
'test-vona:roleUser': IEntityOptionsRoleUser;
|
|
69
75
|
'test-vona:test': IEntityOptionsTest;
|
|
@@ -75,16 +81,20 @@ declare module 'vona-module-test-vona' {
|
|
|
75
81
|
/** entity: end */
|
|
76
82
|
/** entity: begin */
|
|
77
83
|
import type { EntityCategory } from '../entity/category.ts';
|
|
84
|
+
import type { EntityOrder } from '../entity/order.ts';
|
|
78
85
|
import type { EntityPost } from '../entity/post.ts';
|
|
79
86
|
import type { EntityPostContent } from '../entity/postContent.ts';
|
|
87
|
+
import type { EntityProduct } from '../entity/product.ts';
|
|
80
88
|
import type { EntityRole } from '../entity/role.ts';
|
|
81
89
|
import type { EntityRoleUser } from '../entity/roleUser.ts';
|
|
82
90
|
import type { EntityTest } from '../entity/test.ts';
|
|
83
91
|
import type { EntityUser } from '../entity/user.ts';
|
|
84
92
|
export interface IModuleEntity {
|
|
85
93
|
'category': EntityCategoryMeta;
|
|
94
|
+
'order': EntityOrderMeta;
|
|
86
95
|
'post': EntityPostMeta;
|
|
87
96
|
'postContent': EntityPostContentMeta;
|
|
97
|
+
'product': EntityProductMeta;
|
|
88
98
|
'role': EntityRoleMeta;
|
|
89
99
|
'roleUser': EntityRoleUserMeta;
|
|
90
100
|
'test': EntityTestMeta;
|
|
@@ -93,15 +103,19 @@ export interface IModuleEntity {
|
|
|
93
103
|
/** entity: end */
|
|
94
104
|
/** entity: begin */
|
|
95
105
|
export type EntityCategoryTableName = 'testVonaCategory';
|
|
106
|
+
export type EntityOrderTableName = 'testVonaOrder';
|
|
96
107
|
export type EntityPostTableName = 'testVonaPost';
|
|
97
108
|
export type EntityPostContentTableName = 'testVonaPostContent';
|
|
109
|
+
export type EntityProductTableName = 'testVonaProduct';
|
|
98
110
|
export type EntityRoleTableName = 'testVonaRole';
|
|
99
111
|
export type EntityRoleUserTableName = 'testVonaRoleUser';
|
|
100
112
|
export type EntityTestTableName = 'testVonaTest';
|
|
101
113
|
export type EntityUserTableName = 'testVonaUser';
|
|
102
114
|
export type EntityCategoryMeta = TypeEntityMeta<EntityCategory, EntityCategoryTableName>;
|
|
115
|
+
export type EntityOrderMeta = TypeEntityMeta<EntityOrder, EntityOrderTableName>;
|
|
103
116
|
export type EntityPostMeta = TypeEntityMeta<EntityPost, EntityPostTableName>;
|
|
104
117
|
export type EntityPostContentMeta = TypeEntityMeta<EntityPostContent, EntityPostContentTableName>;
|
|
118
|
+
export type EntityProductMeta = TypeEntityMeta<EntityProduct, EntityProductTableName>;
|
|
105
119
|
export type EntityRoleMeta = TypeEntityMeta<EntityRole, EntityRoleTableName>;
|
|
106
120
|
export type EntityRoleUserMeta = TypeEntityMeta<EntityRoleUser, EntityRoleUserTableName>;
|
|
107
121
|
export type EntityTestMeta = TypeEntityMeta<EntityTest, EntityTestTableName>;
|
|
@@ -109,8 +123,10 @@ export type EntityUserMeta = TypeEntityMeta<EntityUser, EntityUserTableName>;
|
|
|
109
123
|
declare module 'vona-module-a-orm' {
|
|
110
124
|
interface ITableRecord {
|
|
111
125
|
'testVonaCategory': never;
|
|
126
|
+
'testVonaOrder': never;
|
|
112
127
|
'testVonaPost': never;
|
|
113
128
|
'testVonaPostContent': never;
|
|
129
|
+
'testVonaProduct': never;
|
|
114
130
|
'testVonaRole': never;
|
|
115
131
|
'testVonaRoleUser': never;
|
|
116
132
|
'testVonaTest': never;
|
|
@@ -121,12 +137,18 @@ declare module 'vona-module-test-vona' {
|
|
|
121
137
|
interface IEntityOptionsCategory {
|
|
122
138
|
fields?: TypeEntityOptionsFields<EntityCategory, IEntityOptionsCategory[TypeSymbolKeyFieldsMore]>;
|
|
123
139
|
}
|
|
140
|
+
interface IEntityOptionsOrder {
|
|
141
|
+
fields?: TypeEntityOptionsFields<EntityOrder, IEntityOptionsOrder[TypeSymbolKeyFieldsMore]>;
|
|
142
|
+
}
|
|
124
143
|
interface IEntityOptionsPost {
|
|
125
144
|
fields?: TypeEntityOptionsFields<EntityPost, IEntityOptionsPost[TypeSymbolKeyFieldsMore]>;
|
|
126
145
|
}
|
|
127
146
|
interface IEntityOptionsPostContent {
|
|
128
147
|
fields?: TypeEntityOptionsFields<EntityPostContent, IEntityOptionsPostContent[TypeSymbolKeyFieldsMore]>;
|
|
129
148
|
}
|
|
149
|
+
interface IEntityOptionsProduct {
|
|
150
|
+
fields?: TypeEntityOptionsFields<EntityProduct, IEntityOptionsProduct[TypeSymbolKeyFieldsMore]>;
|
|
151
|
+
}
|
|
130
152
|
interface IEntityOptionsRole {
|
|
131
153
|
fields?: TypeEntityOptionsFields<EntityRole, IEntityOptionsRole[TypeSymbolKeyFieldsMore]>;
|
|
132
154
|
}
|
|
@@ -144,8 +166,11 @@ declare module 'vona-module-test-vona' {
|
|
|
144
166
|
/** model: begin */
|
|
145
167
|
export * from '../model/category.ts';
|
|
146
168
|
export * from '../model/categoryChain.ts';
|
|
169
|
+
export * from '../model/order.ts';
|
|
170
|
+
export * from '../model/orderStats.ts';
|
|
147
171
|
export * from '../model/post.ts';
|
|
148
172
|
export * from '../model/postContent.ts';
|
|
173
|
+
export * from '../model/product.ts';
|
|
149
174
|
export * from '../model/role.ts';
|
|
150
175
|
export * from '../model/roleUser.ts';
|
|
151
176
|
export * from '../model/test.ts';
|
|
@@ -155,8 +180,11 @@ export * from '../model/userStats.ts';
|
|
|
155
180
|
export * from '../model/userStatsGroup.ts';
|
|
156
181
|
import type { IModelOptionsCategory } from '../model/category.ts';
|
|
157
182
|
import type { IModelOptionsCategoryChain } from '../model/categoryChain.ts';
|
|
183
|
+
import type { IModelOptionsOrder } from '../model/order.ts';
|
|
184
|
+
import type { IModelOptionsOrderStats } from '../model/orderStats.ts';
|
|
158
185
|
import type { IModelOptionsPost } from '../model/post.ts';
|
|
159
186
|
import type { IModelOptionsPostContent } from '../model/postContent.ts';
|
|
187
|
+
import type { IModelOptionsProduct } from '../model/product.ts';
|
|
160
188
|
import type { IModelOptionsRole } from '../model/role.ts';
|
|
161
189
|
import type { IModelOptionsRoleUser } from '../model/roleUser.ts';
|
|
162
190
|
import type { IModelOptionsTest } from '../model/test.ts';
|
|
@@ -169,8 +197,11 @@ declare module 'vona-module-a-orm' {
|
|
|
169
197
|
interface IModelRecord {
|
|
170
198
|
'test-vona:category': IModelOptionsCategory;
|
|
171
199
|
'test-vona:categoryChain': IModelOptionsCategoryChain;
|
|
200
|
+
'test-vona:order': IModelOptionsOrder;
|
|
201
|
+
'test-vona:orderStats': IModelOptionsOrderStats;
|
|
172
202
|
'test-vona:post': IModelOptionsPost;
|
|
173
203
|
'test-vona:postContent': IModelOptionsPostContent;
|
|
204
|
+
'test-vona:product': IModelOptionsProduct;
|
|
174
205
|
'test-vona:role': IModelOptionsRole;
|
|
175
206
|
'test-vona:roleUser': IModelOptionsRoleUser;
|
|
176
207
|
'test-vona:test': IModelOptionsTest;
|
|
@@ -193,6 +224,18 @@ declare module 'vona-module-test-vona' {
|
|
|
193
224
|
get $beanFullName(): 'test-vona.model.categoryChain';
|
|
194
225
|
get $onionName(): 'test-vona:categoryChain';
|
|
195
226
|
}
|
|
227
|
+
interface ModelOrder {
|
|
228
|
+
}
|
|
229
|
+
interface ModelOrder {
|
|
230
|
+
get $beanFullName(): 'test-vona.model.order';
|
|
231
|
+
get $onionName(): 'test-vona:order';
|
|
232
|
+
}
|
|
233
|
+
interface ModelOrderStats {
|
|
234
|
+
}
|
|
235
|
+
interface ModelOrderStats {
|
|
236
|
+
get $beanFullName(): 'test-vona.model.orderStats';
|
|
237
|
+
get $onionName(): 'test-vona:orderStats';
|
|
238
|
+
}
|
|
196
239
|
interface ModelPost {
|
|
197
240
|
}
|
|
198
241
|
interface ModelPost {
|
|
@@ -205,6 +248,12 @@ declare module 'vona-module-test-vona' {
|
|
|
205
248
|
get $beanFullName(): 'test-vona.model.postContent';
|
|
206
249
|
get $onionName(): 'test-vona:postContent';
|
|
207
250
|
}
|
|
251
|
+
interface ModelProduct {
|
|
252
|
+
}
|
|
253
|
+
interface ModelProduct {
|
|
254
|
+
get $beanFullName(): 'test-vona.model.product';
|
|
255
|
+
get $onionName(): 'test-vona:product';
|
|
256
|
+
}
|
|
208
257
|
interface ModelRole {
|
|
209
258
|
}
|
|
210
259
|
interface ModelRole {
|
|
@@ -252,8 +301,11 @@ declare module 'vona-module-test-vona' {
|
|
|
252
301
|
/** model: begin */
|
|
253
302
|
import type { ModelCategory } from '../model/category.ts';
|
|
254
303
|
import type { ModelCategoryChain } from '../model/categoryChain.ts';
|
|
304
|
+
import type { ModelOrder } from '../model/order.ts';
|
|
305
|
+
import type { ModelOrderStats } from '../model/orderStats.ts';
|
|
255
306
|
import type { ModelPost } from '../model/post.ts';
|
|
256
307
|
import type { ModelPostContent } from '../model/postContent.ts';
|
|
308
|
+
import type { ModelProduct } from '../model/product.ts';
|
|
257
309
|
import type { ModelRole } from '../model/role.ts';
|
|
258
310
|
import type { ModelRoleUser } from '../model/roleUser.ts';
|
|
259
311
|
import type { ModelTest } from '../model/test.ts';
|
|
@@ -264,8 +316,11 @@ import type { ModelUserStatsGroup } from '../model/userStatsGroup.ts';
|
|
|
264
316
|
export interface IModuleModel {
|
|
265
317
|
'category': ModelCategory;
|
|
266
318
|
'categoryChain': ModelCategoryChain;
|
|
319
|
+
'order': ModelOrder;
|
|
320
|
+
'orderStats': ModelOrderStats;
|
|
267
321
|
'post': ModelPost;
|
|
268
322
|
'postContent': ModelPostContent;
|
|
323
|
+
'product': ModelProduct;
|
|
269
324
|
'role': ModelRole;
|
|
270
325
|
'roleUser': ModelRoleUser;
|
|
271
326
|
'test': ModelTest;
|
|
@@ -276,6 +331,27 @@ export interface IModuleModel {
|
|
|
276
331
|
}
|
|
277
332
|
/** model: end */
|
|
278
333
|
/** model: begin */
|
|
334
|
+
import 'vona';
|
|
335
|
+
declare module 'vona' {
|
|
336
|
+
interface IBeanRecordGeneral {
|
|
337
|
+
'test-vona.model.category': ModelCategory;
|
|
338
|
+
'test-vona.model.categoryChain': ModelCategoryChain;
|
|
339
|
+
'test-vona.model.order': ModelOrder;
|
|
340
|
+
'test-vona.model.orderStats': ModelOrderStats;
|
|
341
|
+
'test-vona.model.post': ModelPost;
|
|
342
|
+
'test-vona.model.postContent': ModelPostContent;
|
|
343
|
+
'test-vona.model.product': ModelProduct;
|
|
344
|
+
'test-vona.model.role': ModelRole;
|
|
345
|
+
'test-vona.model.roleUser': ModelRoleUser;
|
|
346
|
+
'test-vona.model.test': ModelTest;
|
|
347
|
+
'test-vona.model.testDynamicTable': ModelTestDynamicTable;
|
|
348
|
+
'test-vona.model.user': ModelUser;
|
|
349
|
+
'test-vona.model.userStats': ModelUserStats;
|
|
350
|
+
'test-vona.model.userStatsGroup': ModelUserStatsGroup;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
/** model: end */
|
|
354
|
+
/** model: begin */
|
|
279
355
|
import type { IModelGetOptions, IModelMethodOptions, IModelSelectParams, TableIdentity, TypeModelRelationResult, TypeModelWhere, IModelInsertOptions, TypeModelMutateRelationData, IModelDeleteOptions, IModelUpdateOptions, IModelMutateOptions, IModelSelectCountParams, IModelSelectAggrParams, TypeModelAggrRelationResult, IModelSelectGroupParams, TypeModelGroupRelationResult } from 'vona-module-a-orm';
|
|
280
356
|
import { SymbolKeyEntity, SymbolKeyEntityMeta, SymbolKeyModelOptions } from 'vona-module-a-orm';
|
|
281
357
|
declare module 'vona-module-test-vona' {
|
|
@@ -289,6 +365,24 @@ declare module 'vona-module-test-vona' {
|
|
|
289
365
|
parent: IModelRelationBelongsTo<ModelCategoryChain, ModelCategoryChain, true, 'id' | 'name' | 'categoryIdParent'>;
|
|
290
366
|
};
|
|
291
367
|
}
|
|
368
|
+
interface IModelOptionsOrder {
|
|
369
|
+
relations: {
|
|
370
|
+
user: IModelRelationBelongsTo<ModelOrder, ModelUser, true, 'id' | 'name'>;
|
|
371
|
+
products: IModelRelationHasMany<ModelProduct, true, 'id' | 'name' | 'price' | 'quantity' | 'amount', undefined, undefined, undefined>;
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
interface IModelOptionsOrderStats {
|
|
375
|
+
relations: {
|
|
376
|
+
productStats: IModelRelationHasMany<ModelProduct, true, '*', undefined, {
|
|
377
|
+
count?: '*' | Array<'*'>;
|
|
378
|
+
sum?: 'amount' | Array<'amount'>;
|
|
379
|
+
}, undefined>;
|
|
380
|
+
productsGroups: IModelRelationHasMany<ModelProduct, false, undefined, undefined, {
|
|
381
|
+
count?: '*' | Array<'*'>;
|
|
382
|
+
sum?: 'amount' | Array<'amount'>;
|
|
383
|
+
}, 'id' | Array<'id'>>;
|
|
384
|
+
};
|
|
385
|
+
}
|
|
292
386
|
interface IModelOptionsPost {
|
|
293
387
|
relations: {
|
|
294
388
|
postContent: IModelRelationHasOne<'test-vona:postContent', false, 'id' | 'content'>;
|
|
@@ -371,6 +465,44 @@ declare module 'vona-module-test-vona' {
|
|
|
371
465
|
aggregate<T extends IModelSelectAggrParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
372
466
|
group<T extends IModelSelectGroupParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityCategory, T>[]>;
|
|
373
467
|
}
|
|
468
|
+
interface ModelOrder {
|
|
469
|
+
[SymbolKeyEntity]: EntityOrder;
|
|
470
|
+
[SymbolKeyEntityMeta]: EntityOrderMeta;
|
|
471
|
+
[SymbolKeyModelOptions]: IModelOptionsOrder;
|
|
472
|
+
get<T extends IModelGetOptions<EntityOrder, ModelOrder>>(where: TypeModelWhere<EntityOrder>, options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T> | undefined>;
|
|
473
|
+
mget<T extends IModelGetOptions<EntityOrder, ModelOrder>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T>[]>;
|
|
474
|
+
select<T extends IModelSelectParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T>[]>;
|
|
475
|
+
insert<T extends IModelInsertOptions<EntityOrder, ModelOrder>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>>;
|
|
476
|
+
insertBulk<T extends IModelInsertOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>[]>;
|
|
477
|
+
update<T extends IModelUpdateOptions<EntityOrder, ModelOrder>>(data: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>;
|
|
478
|
+
updateBulk<T extends IModelUpdateOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[]>;
|
|
479
|
+
delete<T extends IModelDeleteOptions<EntityOrder, ModelOrder>>(where?: TypeModelWhere<EntityOrder>, options?: T): Promise<void>;
|
|
480
|
+
deleteBulk<T extends IModelDeleteOptions<EntityOrder, ModelOrder>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
481
|
+
mutate<T extends IModelMutateOptions<EntityOrder, ModelOrder>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>;
|
|
482
|
+
mutateBulk<T extends IModelMutateOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[]>;
|
|
483
|
+
count<T extends IModelSelectCountParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
484
|
+
aggregate<T extends IModelSelectAggrParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
485
|
+
group<T extends IModelSelectGroupParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityOrder, T>[]>;
|
|
486
|
+
}
|
|
487
|
+
interface ModelOrderStats {
|
|
488
|
+
[SymbolKeyEntity]: EntityOrder;
|
|
489
|
+
[SymbolKeyEntityMeta]: EntityOrderMeta;
|
|
490
|
+
[SymbolKeyModelOptions]: IModelOptionsOrderStats;
|
|
491
|
+
get<T extends IModelGetOptions<EntityOrder, ModelOrderStats>>(where: TypeModelWhere<EntityOrder>, options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T> | undefined>;
|
|
492
|
+
mget<T extends IModelGetOptions<EntityOrder, ModelOrderStats>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T>[]>;
|
|
493
|
+
select<T extends IModelSelectParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T>[]>;
|
|
494
|
+
insert<T extends IModelInsertOptions<EntityOrder, ModelOrderStats>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>>;
|
|
495
|
+
insertBulk<T extends IModelInsertOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>[]>;
|
|
496
|
+
update<T extends IModelUpdateOptions<EntityOrder, ModelOrderStats>>(data: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>;
|
|
497
|
+
updateBulk<T extends IModelUpdateOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[]>;
|
|
498
|
+
delete<T extends IModelDeleteOptions<EntityOrder, ModelOrderStats>>(where?: TypeModelWhere<EntityOrder>, options?: T): Promise<void>;
|
|
499
|
+
deleteBulk<T extends IModelDeleteOptions<EntityOrder, ModelOrderStats>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
500
|
+
mutate<T extends IModelMutateOptions<EntityOrder, ModelOrderStats>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>;
|
|
501
|
+
mutateBulk<T extends IModelMutateOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[]>;
|
|
502
|
+
count<T extends IModelSelectCountParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
503
|
+
aggregate<T extends IModelSelectAggrParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
504
|
+
group<T extends IModelSelectGroupParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityOrder, T>[]>;
|
|
505
|
+
}
|
|
374
506
|
interface ModelPost {
|
|
375
507
|
[SymbolKeyEntity]: EntityPost;
|
|
376
508
|
[SymbolKeyEntityMeta]: EntityPostMeta;
|
|
@@ -409,6 +541,25 @@ declare module 'vona-module-test-vona' {
|
|
|
409
541
|
aggregate<T extends IModelSelectAggrParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
410
542
|
group<T extends IModelSelectGroupParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityPostContent, T>[]>;
|
|
411
543
|
}
|
|
544
|
+
interface ModelProduct {
|
|
545
|
+
[SymbolKeyEntity]: EntityProduct;
|
|
546
|
+
[SymbolKeyEntityMeta]: EntityProductMeta;
|
|
547
|
+
[SymbolKeyModelOptions]: IModelOptionsProduct;
|
|
548
|
+
get<T extends IModelGetOptions<EntityProduct, ModelProduct>>(where: TypeModelWhere<EntityProduct>, options?: T): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T> | undefined>;
|
|
549
|
+
mget<T extends IModelGetOptions<EntityProduct, ModelProduct>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T>[]>;
|
|
550
|
+
select<T extends IModelSelectParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T>[]>;
|
|
551
|
+
insert<T extends IModelInsertOptions<EntityProduct, ModelProduct>>(data?: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>>;
|
|
552
|
+
insertBulk<T extends IModelInsertOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>[]>;
|
|
553
|
+
update<T extends IModelUpdateOptions<EntityProduct, ModelProduct>>(data: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>;
|
|
554
|
+
updateBulk<T extends IModelUpdateOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[]>;
|
|
555
|
+
delete<T extends IModelDeleteOptions<EntityProduct, ModelProduct>>(where?: TypeModelWhere<EntityProduct>, options?: T): Promise<void>;
|
|
556
|
+
deleteBulk<T extends IModelDeleteOptions<EntityProduct, ModelProduct>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
557
|
+
mutate<T extends IModelMutateOptions<EntityProduct, ModelProduct>>(data?: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>;
|
|
558
|
+
mutateBulk<T extends IModelMutateOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[]>;
|
|
559
|
+
count<T extends IModelSelectCountParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
560
|
+
aggregate<T extends IModelSelectAggrParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
561
|
+
group<T extends IModelSelectGroupParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityProduct, T>[]>;
|
|
562
|
+
}
|
|
412
563
|
interface ModelRole {
|
|
413
564
|
[SymbolKeyEntity]: EntityRole;
|
|
414
565
|
[SymbolKeyEntityMeta]: EntityRoleMeta;
|
|
@@ -547,8 +698,11 @@ declare module 'vona-module-a-orm' {
|
|
|
547
698
|
interface IModelClassRecord {
|
|
548
699
|
'test-vona:category': ModelCategory;
|
|
549
700
|
'test-vona:categoryChain': ModelCategoryChain;
|
|
701
|
+
'test-vona:order': ModelOrder;
|
|
702
|
+
'test-vona:orderStats': ModelOrderStats;
|
|
550
703
|
'test-vona:post': ModelPost;
|
|
551
704
|
'test-vona:postContent': ModelPostContent;
|
|
705
|
+
'test-vona:product': ModelProduct;
|
|
552
706
|
'test-vona:role': ModelRole;
|
|
553
707
|
'test-vona:roleUser': ModelRoleUser;
|
|
554
708
|
'test-vona:test': ModelTest;
|
|
@@ -880,6 +1034,9 @@ export interface IModuleSummerCache {
|
|
|
880
1034
|
/** summerCache: end */
|
|
881
1035
|
/** dto: begin */
|
|
882
1036
|
export * from '../dto/categoryTree.ts';
|
|
1037
|
+
export * from '../dto/orderCreate.ts';
|
|
1038
|
+
export * from '../dto/orderResult.ts';
|
|
1039
|
+
export * from '../dto/orderUpdate.ts';
|
|
883
1040
|
export * from '../dto/postCreate.ts';
|
|
884
1041
|
export * from '../dto/profile.ts';
|
|
885
1042
|
export * from '../dto/roleLazy.ts';
|
|
@@ -888,6 +1045,9 @@ export * from '../dto/userCreate.ts';
|
|
|
888
1045
|
export * from '../dto/userLazy.ts';
|
|
889
1046
|
export * from '../dto/userUpdate.ts';
|
|
890
1047
|
import type { IDtoOptionsCategoryTree } from '../dto/categoryTree.ts';
|
|
1048
|
+
import type { IDtoOptionsOrderCreate } from '../dto/orderCreate.ts';
|
|
1049
|
+
import type { IDtoOptionsOrderResult } from '../dto/orderResult.ts';
|
|
1050
|
+
import type { IDtoOptionsOrderUpdate } from '../dto/orderUpdate.ts';
|
|
891
1051
|
import type { IDtoOptionsPostCreate } from '../dto/postCreate.ts';
|
|
892
1052
|
import type { IDtoOptionsProfile } from '../dto/profile.ts';
|
|
893
1053
|
import type { IDtoOptionsRoleLazy } from '../dto/roleLazy.ts';
|
|
@@ -899,6 +1059,9 @@ import 'vona';
|
|
|
899
1059
|
declare module 'vona-module-a-web' {
|
|
900
1060
|
interface IDtoRecord {
|
|
901
1061
|
'test-vona:categoryTree': IDtoOptionsCategoryTree;
|
|
1062
|
+
'test-vona:orderCreate': IDtoOptionsOrderCreate;
|
|
1063
|
+
'test-vona:orderResult': IDtoOptionsOrderResult;
|
|
1064
|
+
'test-vona:orderUpdate': IDtoOptionsOrderUpdate;
|
|
902
1065
|
'test-vona:postCreate': IDtoOptionsPostCreate;
|
|
903
1066
|
'test-vona:profile': IDtoOptionsProfile;
|
|
904
1067
|
'test-vona:roleLazy': IDtoOptionsRoleLazy;
|
|
@@ -913,6 +1076,9 @@ declare module 'vona-module-test-vona' {
|
|
|
913
1076
|
/** dto: end */
|
|
914
1077
|
/** dto: begin */
|
|
915
1078
|
import type { DtoCategoryTree } from '../dto/categoryTree.ts';
|
|
1079
|
+
import type { DtoOrderCreate } from '../dto/orderCreate.ts';
|
|
1080
|
+
import type { DtoOrderResult } from '../dto/orderResult.ts';
|
|
1081
|
+
import type { DtoOrderUpdate } from '../dto/orderUpdate.ts';
|
|
916
1082
|
import type { DtoPostCreate } from '../dto/postCreate.ts';
|
|
917
1083
|
import type { DtoProfile } from '../dto/profile.ts';
|
|
918
1084
|
import type { DtoRoleLazy } from '../dto/roleLazy.ts';
|
|
@@ -924,6 +1090,15 @@ declare module 'vona-module-test-vona' {
|
|
|
924
1090
|
interface IDtoOptionsCategoryTree {
|
|
925
1091
|
fields?: TypeEntityOptionsFields<DtoCategoryTree, IDtoOptionsCategoryTree[TypeSymbolKeyFieldsMore]>;
|
|
926
1092
|
}
|
|
1093
|
+
interface IDtoOptionsOrderCreate {
|
|
1094
|
+
fields?: TypeEntityOptionsFields<DtoOrderCreate, IDtoOptionsOrderCreate[TypeSymbolKeyFieldsMore]>;
|
|
1095
|
+
}
|
|
1096
|
+
interface IDtoOptionsOrderResult {
|
|
1097
|
+
fields?: TypeEntityOptionsFields<DtoOrderResult, IDtoOptionsOrderResult[TypeSymbolKeyFieldsMore]>;
|
|
1098
|
+
}
|
|
1099
|
+
interface IDtoOptionsOrderUpdate {
|
|
1100
|
+
fields?: TypeEntityOptionsFields<DtoOrderUpdate, IDtoOptionsOrderUpdate[TypeSymbolKeyFieldsMore]>;
|
|
1101
|
+
}
|
|
927
1102
|
interface IDtoOptionsPostCreate {
|
|
928
1103
|
fields?: TypeEntityOptionsFields<DtoPostCreate, IDtoOptionsPostCreate[TypeSymbolKeyFieldsMore]>;
|
|
929
1104
|
}
|
|
@@ -1180,6 +1355,7 @@ export * from '../config/config.ts';
|
|
|
1180
1355
|
import type { config } from '../config/config.ts';
|
|
1181
1356
|
export declare const locales: {
|
|
1182
1357
|
'en-us': {
|
|
1358
|
+
Name: string;
|
|
1183
1359
|
User: string;
|
|
1184
1360
|
UserId: string;
|
|
1185
1361
|
Test: string;
|
|
@@ -1190,8 +1366,15 @@ export declare const locales: {
|
|
|
1190
1366
|
TestNameApples_: string;
|
|
1191
1367
|
TestNameApples_0_1: string;
|
|
1192
1368
|
TestNameApples_1_1: string;
|
|
1369
|
+
Order: string;
|
|
1370
|
+
OrderNo: string;
|
|
1371
|
+
Remark: string;
|
|
1372
|
+
Price: string;
|
|
1373
|
+
Quantity: string;
|
|
1374
|
+
Amount: string;
|
|
1193
1375
|
};
|
|
1194
1376
|
'zh-cn': {
|
|
1377
|
+
Name: string;
|
|
1195
1378
|
User: string;
|
|
1196
1379
|
UserId: string;
|
|
1197
1380
|
Test: string;
|
|
@@ -1200,6 +1383,12 @@ export declare const locales: {
|
|
|
1200
1383
|
TestApples_0: string;
|
|
1201
1384
|
TestNameApples_: string;
|
|
1202
1385
|
TestNameApples_0_1: string;
|
|
1386
|
+
Order: string;
|
|
1387
|
+
OrderNo: string;
|
|
1388
|
+
Remark: string;
|
|
1389
|
+
Price: string;
|
|
1390
|
+
Quantity: string;
|
|
1391
|
+
Amount: string;
|
|
1203
1392
|
};
|
|
1204
1393
|
};
|
|
1205
1394
|
/** locale: end */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
Name: string;
|
|
2
3
|
User: string;
|
|
3
4
|
UserId: string;
|
|
4
5
|
Test: string;
|
|
@@ -9,5 +10,11 @@ declare const _default: {
|
|
|
9
10
|
TestNameApples_: string;
|
|
10
11
|
TestNameApples_0_1: string;
|
|
11
12
|
TestNameApples_1_1: string;
|
|
13
|
+
Order: string;
|
|
14
|
+
OrderNo: string;
|
|
15
|
+
Remark: string;
|
|
16
|
+
Price: string;
|
|
17
|
+
Quantity: string;
|
|
18
|
+
Amount: string;
|
|
12
19
|
};
|
|
13
20
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
Name: string;
|
|
2
3
|
User: string;
|
|
3
4
|
UserId: string;
|
|
4
5
|
Test: string;
|
|
@@ -7,5 +8,11 @@ declare const _default: {
|
|
|
7
8
|
TestApples_0: string;
|
|
8
9
|
TestNameApples_: string;
|
|
9
10
|
TestNameApples_0_1: string;
|
|
11
|
+
Order: string;
|
|
12
|
+
OrderNo: string;
|
|
13
|
+
Remark: string;
|
|
14
|
+
Price: string;
|
|
15
|
+
Quantity: string;
|
|
16
|
+
Amount: string;
|
|
10
17
|
};
|
|
11
18
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import { ModelOrder } from '../model/order.ts';
|
|
3
|
+
export interface IDtoOptionsOrderCreate extends IDecoratorDtoOptions {
|
|
4
|
+
}
|
|
5
|
+
declare const DtoOrderCreate_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoMutateResult<ModelOrder, {
|
|
6
|
+
columns: ("orderNo" | "remark")[];
|
|
7
|
+
}, "create", "iid" | "id" | "createdAt" | "updatedAt" | "deleted", true>>;
|
|
8
|
+
export declare class DtoOrderCreate extends DtoOrderCreate_base {
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import { ModelOrder } from '../model/order.ts';
|
|
3
|
+
export interface IDtoOptionsOrderResult extends IDecoratorDtoOptions {
|
|
4
|
+
}
|
|
5
|
+
declare const DtoOrderResult_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoGetResult<ModelOrder, undefined>>;
|
|
6
|
+
export declare class DtoOrderResult extends DtoOrderResult_base {
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import { ModelOrder } from '../model/order.ts';
|
|
3
|
+
export interface IDtoOptionsOrderUpdate extends IDecoratorDtoOptions {
|
|
4
|
+
}
|
|
5
|
+
declare const DtoOrderUpdate_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoMutateResult<ModelOrder, {
|
|
6
|
+
columns: ("orderNo" | "remark")[];
|
|
7
|
+
}, "update", "iid" | "id" | "createdAt" | "updatedAt" | "deleted", true>>;
|
|
8
|
+
export declare class DtoOrderUpdate extends DtoOrderUpdate_base {
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
|
|
2
|
+
import { EntityBase } from 'vona-module-a-orm';
|
|
3
|
+
import '../.metadata/index.ts';
|
|
4
|
+
export interface IEntityOptionsOrder extends IDecoratorEntityOptions {
|
|
5
|
+
}
|
|
6
|
+
export declare class EntityOrder extends EntityBase {
|
|
7
|
+
orderNo: string;
|
|
8
|
+
remark?: string;
|
|
9
|
+
userId: TableIdentity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
|
|
2
|
+
import { EntityBase } from 'vona-module-a-orm';
|
|
3
|
+
import '../.metadata/index.ts';
|
|
4
|
+
export interface IEntityOptionsProduct extends IDecoratorEntityOptions {
|
|
5
|
+
}
|
|
6
|
+
export declare class EntityProduct extends EntityBase {
|
|
7
|
+
name: string;
|
|
8
|
+
price: number;
|
|
9
|
+
quantity: number;
|
|
10
|
+
amount: number;
|
|
11
|
+
orderId: TableIdentity;
|
|
12
|
+
}
|