vona-module-test-vona 5.0.33 → 5.0.34
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 +168 -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;
|
|
@@ -289,6 +344,24 @@ declare module 'vona-module-test-vona' {
|
|
|
289
344
|
parent: IModelRelationBelongsTo<ModelCategoryChain, ModelCategoryChain, true, 'id' | 'name' | 'categoryIdParent'>;
|
|
290
345
|
};
|
|
291
346
|
}
|
|
347
|
+
interface IModelOptionsOrder {
|
|
348
|
+
relations: {
|
|
349
|
+
user: IModelRelationBelongsTo<ModelOrder, ModelUser, true, 'id' | 'name'>;
|
|
350
|
+
products: IModelRelationHasMany<ModelProduct, true, 'id' | 'name' | 'price' | 'quantity' | 'amount', undefined, undefined, undefined>;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
interface IModelOptionsOrderStats {
|
|
354
|
+
relations: {
|
|
355
|
+
productStats: IModelRelationHasMany<ModelProduct, true, '*', undefined, {
|
|
356
|
+
count?: '*' | Array<'*'>;
|
|
357
|
+
sum?: 'amount' | Array<'amount'>;
|
|
358
|
+
}, undefined>;
|
|
359
|
+
productsGroups: IModelRelationHasMany<ModelProduct, false, undefined, undefined, {
|
|
360
|
+
count?: '*' | Array<'*'>;
|
|
361
|
+
sum?: 'amount' | Array<'amount'>;
|
|
362
|
+
}, 'id' | Array<'id'>>;
|
|
363
|
+
};
|
|
364
|
+
}
|
|
292
365
|
interface IModelOptionsPost {
|
|
293
366
|
relations: {
|
|
294
367
|
postContent: IModelRelationHasOne<'test-vona:postContent', false, 'id' | 'content'>;
|
|
@@ -371,6 +444,44 @@ declare module 'vona-module-test-vona' {
|
|
|
371
444
|
aggregate<T extends IModelSelectAggrParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
372
445
|
group<T extends IModelSelectGroupParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityCategory, T>[]>;
|
|
373
446
|
}
|
|
447
|
+
interface ModelOrder {
|
|
448
|
+
[SymbolKeyEntity]: EntityOrder;
|
|
449
|
+
[SymbolKeyEntityMeta]: EntityOrderMeta;
|
|
450
|
+
[SymbolKeyModelOptions]: IModelOptionsOrder;
|
|
451
|
+
get<T extends IModelGetOptions<EntityOrder, ModelOrder>>(where: TypeModelWhere<EntityOrder>, options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T> | undefined>;
|
|
452
|
+
mget<T extends IModelGetOptions<EntityOrder, ModelOrder>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T>[]>;
|
|
453
|
+
select<T extends IModelSelectParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T>[]>;
|
|
454
|
+
insert<T extends IModelInsertOptions<EntityOrder, ModelOrder>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>>;
|
|
455
|
+
insertBulk<T extends IModelInsertOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>[]>;
|
|
456
|
+
update<T extends IModelUpdateOptions<EntityOrder, ModelOrder>>(data: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>;
|
|
457
|
+
updateBulk<T extends IModelUpdateOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[]>;
|
|
458
|
+
delete<T extends IModelDeleteOptions<EntityOrder, ModelOrder>>(where?: TypeModelWhere<EntityOrder>, options?: T): Promise<void>;
|
|
459
|
+
deleteBulk<T extends IModelDeleteOptions<EntityOrder, ModelOrder>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
460
|
+
mutate<T extends IModelMutateOptions<EntityOrder, ModelOrder>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>;
|
|
461
|
+
mutateBulk<T extends IModelMutateOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[]>;
|
|
462
|
+
count<T extends IModelSelectCountParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
463
|
+
aggregate<T extends IModelSelectAggrParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
464
|
+
group<T extends IModelSelectGroupParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityOrder, T>[]>;
|
|
465
|
+
}
|
|
466
|
+
interface ModelOrderStats {
|
|
467
|
+
[SymbolKeyEntity]: EntityOrder;
|
|
468
|
+
[SymbolKeyEntityMeta]: EntityOrderMeta;
|
|
469
|
+
[SymbolKeyModelOptions]: IModelOptionsOrderStats;
|
|
470
|
+
get<T extends IModelGetOptions<EntityOrder, ModelOrderStats>>(where: TypeModelWhere<EntityOrder>, options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T> | undefined>;
|
|
471
|
+
mget<T extends IModelGetOptions<EntityOrder, ModelOrderStats>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T>[]>;
|
|
472
|
+
select<T extends IModelSelectParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T>[]>;
|
|
473
|
+
insert<T extends IModelInsertOptions<EntityOrder, ModelOrderStats>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>>;
|
|
474
|
+
insertBulk<T extends IModelInsertOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>[]>;
|
|
475
|
+
update<T extends IModelUpdateOptions<EntityOrder, ModelOrderStats>>(data: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>;
|
|
476
|
+
updateBulk<T extends IModelUpdateOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[]>;
|
|
477
|
+
delete<T extends IModelDeleteOptions<EntityOrder, ModelOrderStats>>(where?: TypeModelWhere<EntityOrder>, options?: T): Promise<void>;
|
|
478
|
+
deleteBulk<T extends IModelDeleteOptions<EntityOrder, ModelOrderStats>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
479
|
+
mutate<T extends IModelMutateOptions<EntityOrder, ModelOrderStats>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>;
|
|
480
|
+
mutateBulk<T extends IModelMutateOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[]>;
|
|
481
|
+
count<T extends IModelSelectCountParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
482
|
+
aggregate<T extends IModelSelectAggrParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
483
|
+
group<T extends IModelSelectGroupParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityOrder, T>[]>;
|
|
484
|
+
}
|
|
374
485
|
interface ModelPost {
|
|
375
486
|
[SymbolKeyEntity]: EntityPost;
|
|
376
487
|
[SymbolKeyEntityMeta]: EntityPostMeta;
|
|
@@ -409,6 +520,25 @@ declare module 'vona-module-test-vona' {
|
|
|
409
520
|
aggregate<T extends IModelSelectAggrParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
410
521
|
group<T extends IModelSelectGroupParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityPostContent, T>[]>;
|
|
411
522
|
}
|
|
523
|
+
interface ModelProduct {
|
|
524
|
+
[SymbolKeyEntity]: EntityProduct;
|
|
525
|
+
[SymbolKeyEntityMeta]: EntityProductMeta;
|
|
526
|
+
[SymbolKeyModelOptions]: IModelOptionsProduct;
|
|
527
|
+
get<T extends IModelGetOptions<EntityProduct, ModelProduct>>(where: TypeModelWhere<EntityProduct>, options?: T): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T> | undefined>;
|
|
528
|
+
mget<T extends IModelGetOptions<EntityProduct, ModelProduct>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T>[]>;
|
|
529
|
+
select<T extends IModelSelectParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T>[]>;
|
|
530
|
+
insert<T extends IModelInsertOptions<EntityProduct, ModelProduct>>(data?: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>>;
|
|
531
|
+
insertBulk<T extends IModelInsertOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>[]>;
|
|
532
|
+
update<T extends IModelUpdateOptions<EntityProduct, ModelProduct>>(data: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>;
|
|
533
|
+
updateBulk<T extends IModelUpdateOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[]>;
|
|
534
|
+
delete<T extends IModelDeleteOptions<EntityProduct, ModelProduct>>(where?: TypeModelWhere<EntityProduct>, options?: T): Promise<void>;
|
|
535
|
+
deleteBulk<T extends IModelDeleteOptions<EntityProduct, ModelProduct>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
536
|
+
mutate<T extends IModelMutateOptions<EntityProduct, ModelProduct>>(data?: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>;
|
|
537
|
+
mutateBulk<T extends IModelMutateOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[]>;
|
|
538
|
+
count<T extends IModelSelectCountParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
539
|
+
aggregate<T extends IModelSelectAggrParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
540
|
+
group<T extends IModelSelectGroupParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityProduct, T>[]>;
|
|
541
|
+
}
|
|
412
542
|
interface ModelRole {
|
|
413
543
|
[SymbolKeyEntity]: EntityRole;
|
|
414
544
|
[SymbolKeyEntityMeta]: EntityRoleMeta;
|
|
@@ -547,8 +677,11 @@ declare module 'vona-module-a-orm' {
|
|
|
547
677
|
interface IModelClassRecord {
|
|
548
678
|
'test-vona:category': ModelCategory;
|
|
549
679
|
'test-vona:categoryChain': ModelCategoryChain;
|
|
680
|
+
'test-vona:order': ModelOrder;
|
|
681
|
+
'test-vona:orderStats': ModelOrderStats;
|
|
550
682
|
'test-vona:post': ModelPost;
|
|
551
683
|
'test-vona:postContent': ModelPostContent;
|
|
684
|
+
'test-vona:product': ModelProduct;
|
|
552
685
|
'test-vona:role': ModelRole;
|
|
553
686
|
'test-vona:roleUser': ModelRoleUser;
|
|
554
687
|
'test-vona:test': ModelTest;
|
|
@@ -880,6 +1013,9 @@ export interface IModuleSummerCache {
|
|
|
880
1013
|
/** summerCache: end */
|
|
881
1014
|
/** dto: begin */
|
|
882
1015
|
export * from '../dto/categoryTree.ts';
|
|
1016
|
+
export * from '../dto/orderCreate.ts';
|
|
1017
|
+
export * from '../dto/orderResult.ts';
|
|
1018
|
+
export * from '../dto/orderUpdate.ts';
|
|
883
1019
|
export * from '../dto/postCreate.ts';
|
|
884
1020
|
export * from '../dto/profile.ts';
|
|
885
1021
|
export * from '../dto/roleLazy.ts';
|
|
@@ -888,6 +1024,9 @@ export * from '../dto/userCreate.ts';
|
|
|
888
1024
|
export * from '../dto/userLazy.ts';
|
|
889
1025
|
export * from '../dto/userUpdate.ts';
|
|
890
1026
|
import type { IDtoOptionsCategoryTree } from '../dto/categoryTree.ts';
|
|
1027
|
+
import type { IDtoOptionsOrderCreate } from '../dto/orderCreate.ts';
|
|
1028
|
+
import type { IDtoOptionsOrderResult } from '../dto/orderResult.ts';
|
|
1029
|
+
import type { IDtoOptionsOrderUpdate } from '../dto/orderUpdate.ts';
|
|
891
1030
|
import type { IDtoOptionsPostCreate } from '../dto/postCreate.ts';
|
|
892
1031
|
import type { IDtoOptionsProfile } from '../dto/profile.ts';
|
|
893
1032
|
import type { IDtoOptionsRoleLazy } from '../dto/roleLazy.ts';
|
|
@@ -899,6 +1038,9 @@ import 'vona';
|
|
|
899
1038
|
declare module 'vona-module-a-web' {
|
|
900
1039
|
interface IDtoRecord {
|
|
901
1040
|
'test-vona:categoryTree': IDtoOptionsCategoryTree;
|
|
1041
|
+
'test-vona:orderCreate': IDtoOptionsOrderCreate;
|
|
1042
|
+
'test-vona:orderResult': IDtoOptionsOrderResult;
|
|
1043
|
+
'test-vona:orderUpdate': IDtoOptionsOrderUpdate;
|
|
902
1044
|
'test-vona:postCreate': IDtoOptionsPostCreate;
|
|
903
1045
|
'test-vona:profile': IDtoOptionsProfile;
|
|
904
1046
|
'test-vona:roleLazy': IDtoOptionsRoleLazy;
|
|
@@ -913,6 +1055,9 @@ declare module 'vona-module-test-vona' {
|
|
|
913
1055
|
/** dto: end */
|
|
914
1056
|
/** dto: begin */
|
|
915
1057
|
import type { DtoCategoryTree } from '../dto/categoryTree.ts';
|
|
1058
|
+
import type { DtoOrderCreate } from '../dto/orderCreate.ts';
|
|
1059
|
+
import type { DtoOrderResult } from '../dto/orderResult.ts';
|
|
1060
|
+
import type { DtoOrderUpdate } from '../dto/orderUpdate.ts';
|
|
916
1061
|
import type { DtoPostCreate } from '../dto/postCreate.ts';
|
|
917
1062
|
import type { DtoProfile } from '../dto/profile.ts';
|
|
918
1063
|
import type { DtoRoleLazy } from '../dto/roleLazy.ts';
|
|
@@ -924,6 +1069,15 @@ declare module 'vona-module-test-vona' {
|
|
|
924
1069
|
interface IDtoOptionsCategoryTree {
|
|
925
1070
|
fields?: TypeEntityOptionsFields<DtoCategoryTree, IDtoOptionsCategoryTree[TypeSymbolKeyFieldsMore]>;
|
|
926
1071
|
}
|
|
1072
|
+
interface IDtoOptionsOrderCreate {
|
|
1073
|
+
fields?: TypeEntityOptionsFields<DtoOrderCreate, IDtoOptionsOrderCreate[TypeSymbolKeyFieldsMore]>;
|
|
1074
|
+
}
|
|
1075
|
+
interface IDtoOptionsOrderResult {
|
|
1076
|
+
fields?: TypeEntityOptionsFields<DtoOrderResult, IDtoOptionsOrderResult[TypeSymbolKeyFieldsMore]>;
|
|
1077
|
+
}
|
|
1078
|
+
interface IDtoOptionsOrderUpdate {
|
|
1079
|
+
fields?: TypeEntityOptionsFields<DtoOrderUpdate, IDtoOptionsOrderUpdate[TypeSymbolKeyFieldsMore]>;
|
|
1080
|
+
}
|
|
927
1081
|
interface IDtoOptionsPostCreate {
|
|
928
1082
|
fields?: TypeEntityOptionsFields<DtoPostCreate, IDtoOptionsPostCreate[TypeSymbolKeyFieldsMore]>;
|
|
929
1083
|
}
|
|
@@ -1180,6 +1334,7 @@ export * from '../config/config.ts';
|
|
|
1180
1334
|
import type { config } from '../config/config.ts';
|
|
1181
1335
|
export declare const locales: {
|
|
1182
1336
|
'en-us': {
|
|
1337
|
+
Name: string;
|
|
1183
1338
|
User: string;
|
|
1184
1339
|
UserId: string;
|
|
1185
1340
|
Test: string;
|
|
@@ -1190,8 +1345,15 @@ export declare const locales: {
|
|
|
1190
1345
|
TestNameApples_: string;
|
|
1191
1346
|
TestNameApples_0_1: string;
|
|
1192
1347
|
TestNameApples_1_1: string;
|
|
1348
|
+
Order: string;
|
|
1349
|
+
OrderNo: string;
|
|
1350
|
+
Remark: string;
|
|
1351
|
+
Price: string;
|
|
1352
|
+
Quantity: string;
|
|
1353
|
+
Amount: string;
|
|
1193
1354
|
};
|
|
1194
1355
|
'zh-cn': {
|
|
1356
|
+
Name: string;
|
|
1195
1357
|
User: string;
|
|
1196
1358
|
UserId: string;
|
|
1197
1359
|
Test: string;
|
|
@@ -1200,6 +1362,12 @@ export declare const locales: {
|
|
|
1200
1362
|
TestApples_0: string;
|
|
1201
1363
|
TestNameApples_: string;
|
|
1202
1364
|
TestNameApples_0_1: string;
|
|
1365
|
+
Order: string;
|
|
1366
|
+
OrderNo: string;
|
|
1367
|
+
Remark: string;
|
|
1368
|
+
Price: string;
|
|
1369
|
+
Quantity: string;
|
|
1370
|
+
Amount: string;
|
|
1203
1371
|
};
|
|
1204
1372
|
};
|
|
1205
1373
|
/** 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
|
+
}
|